diff options
author | vnugent <public@vaughnnugent.com> | 2023-08-09 11:59:15 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-08-09 11:59:15 -0400 |
commit | 5dd4b69ebf4f407a2ba7ccc53fe43b445ab0684e (patch) | |
tree | c0e5613aa4e33c7f436f9c67d0a4d75c1b9bfb77 /front-end/src/views/Blog | |
parent | c3c0ece6fb3a66c2de545858731a066d5542ff1e (diff) |
Package updates, lodash-es, release state fixes
Diffstat (limited to 'front-end/src/views/Blog')
12 files changed, 19 insertions, 12 deletions
diff --git a/front-end/src/views/Blog/ckeditor/Editor.vue b/front-end/src/views/Blog/ckeditor/Editor.vue index 41e0ec0..ee16742 100644 --- a/front-end/src/views/Blog/ckeditor/Editor.vue +++ b/front-end/src/views/Blog/ckeditor/Editor.vue @@ -55,7 +55,7 @@ </template> <script setup lang="ts"> -import { debounce, defer } from 'lodash'; +import { debounce, defer } from 'lodash-es'; import { ref } from 'vue'; import { useSessionStorage } from '@vueuse/core'; import { tryOnMounted } from '@vueuse/shared'; diff --git a/front-end/src/views/Blog/components/Channels.vue b/front-end/src/views/Blog/components/Channels.vue index ad88e50..417d3f9 100644 --- a/front-end/src/views/Blog/components/Channels.vue +++ b/front-end/src/views/Blog/components/Channels.vue @@ -22,7 +22,7 @@ <script setup lang="ts"> import { computed } from 'vue'; import { BlogState } from '../blog-api'; -import { isEmpty, filter as _filter } from 'lodash'; +import { isEmpty, filter as _filter } from 'lodash-es'; import { apiCall } from '@vnuge/vnlib.browser'; import { BlogChannel, ChannelFeed, useFilteredPages } from '@vnuge/cmnext-admin'; import ChannelEdit from './Channels/ChannelEdit.vue'; diff --git a/front-end/src/views/Blog/components/Channels/ChannelEdit.vue b/front-end/src/views/Blog/components/Channels/ChannelEdit.vue index 56376fe..b84adf0 100644 --- a/front-end/src/views/Blog/components/Channels/ChannelEdit.vue +++ b/front-end/src/views/Blog/components/Channels/ChannelEdit.vue @@ -16,6 +16,7 @@ <dynamic-form id="channel-edit-form" class="mx-auto" + :disabled="false" :form="channelSchema" :validator="channelVal.v$" @submit="onSubmit" @@ -42,6 +43,7 @@ class="mx-auto mt-4" :form="feedSchema" :validator="feedVal.v$" + :disabled="false" @submit="onSubmit" /> @@ -61,7 +63,7 @@ <script setup lang="ts"> import { computed } from 'vue'; import { BlogState } from '../../blog-api'; -import { forEach, isEmpty, cloneDeep, isNil } from 'lodash'; +import { forEach, isEmpty, cloneDeep, isNil } from 'lodash-es'; import { reactiveComputed } from '@vueuse/core'; import { useConfirm } from '@vnuge/vnlib.browser'; import FeedFields from '../FeedFields.vue'; diff --git a/front-end/src/views/Blog/components/Content.vue b/front-end/src/views/Blog/components/Content.vue index 00f8602..ae0f6cf 100644 --- a/front-end/src/views/Blog/components/Content.vue +++ b/front-end/src/views/Blog/components/Content.vue @@ -23,7 +23,7 @@ <script setup lang="ts"> import { computed } from 'vue'; import { BlogState } from '../blog-api'; -import { isEmpty } from 'lodash'; +import { isEmpty } from 'lodash-es'; import { apiCall } from '@vnuge/vnlib.browser'; import EditorTable from './EditorTable.vue'; import ContentEditor from './Content/ContentEditor.vue'; diff --git a/front-end/src/views/Blog/components/Content/ContentEditor.vue b/front-end/src/views/Blog/components/Content/ContentEditor.vue index 4de7f8a..d3f8438 100644 --- a/front-end/src/views/Blog/components/Content/ContentEditor.vue +++ b/front-end/src/views/Blog/components/Content/ContentEditor.vue @@ -100,7 +100,7 @@ import { computed, ref } from 'vue'; import { reactiveComputed, useFileDialog } from '@vueuse/core'; import { ContentMeta } from '@vnuge/cmnext-admin'; import { useConfirm, useVuelidateWrapper, useFormToaster, useWait } from '@vnuge/vnlib.browser'; -import { defaultTo, first, isEmpty, round, truncate } from 'lodash'; +import { defaultTo, first, isEmpty, round, truncate } from 'lodash-es'; import { required, helpers, maxLength } from '@vuelidate/validators' import useVuelidate from '@vuelidate/core'; import { BlogState } from '../../blog-api'; diff --git a/front-end/src/views/Blog/components/Content/ContentTable.vue b/front-end/src/views/Blog/components/Content/ContentTable.vue index c47a063..e5cbe58 100644 --- a/front-end/src/views/Blog/components/Content/ContentTable.vue +++ b/front-end/src/views/Blog/components/Content/ContentTable.vue @@ -45,7 +45,7 @@ <script setup lang="ts"> import { toRefs } from 'vue'; -import { filter as _filter, truncate } from 'lodash'; +import { filter as _filter, truncate } from 'lodash-es'; import { useClipboard } from '@vueuse/core'; import { useWait } from '@vnuge/vnlib.browser'; import { ContentMeta } from '@vnuge/cmnext-admin'; diff --git a/front-end/src/views/Blog/components/ContentSearch.vue b/front-end/src/views/Blog/components/ContentSearch.vue index 37fd438..03cb432 100644 --- a/front-end/src/views/Blog/components/ContentSearch.vue +++ b/front-end/src/views/Blog/components/ContentSearch.vue @@ -38,7 +38,7 @@ import { useClipboard } from '@vueuse/core'; import { apiCall, useWait } from '@vnuge/vnlib.browser'; import { computed, Ref, ref } from 'vue'; -import { map, slice, truncate } from 'lodash'; +import { map, slice, truncate } from 'lodash-es'; import { ContentMeta } from '@vnuge/cmnext-admin'; import { BlogState } from '../blog-api'; diff --git a/front-end/src/views/Blog/components/Posts.vue b/front-end/src/views/Blog/components/Posts.vue index 5ebeeac..0407a26 100644 --- a/front-end/src/views/Blog/components/Posts.vue +++ b/front-end/src/views/Blog/components/Posts.vue @@ -21,7 +21,7 @@ <script setup lang="ts"> import { computed } from 'vue'; -import { isEmpty } from 'lodash'; +import { isEmpty } from 'lodash-es'; import { PostMeta, useFilteredPages } from '@vnuge/cmnext-admin'; import { apiCall, debugLog } from '@vnuge/vnlib.browser'; import EditorTable from './EditorTable.vue'; diff --git a/front-end/src/views/Blog/components/Posts/PostEdit.vue b/front-end/src/views/Blog/components/Posts/PostEdit.vue index 4f7b52b..724a8d7 100644 --- a/front-end/src/views/Blog/components/Posts/PostEdit.vue +++ b/front-end/src/views/Blog/components/Posts/PostEdit.vue @@ -47,7 +47,7 @@ import { computed } from 'vue'; import { BlogState } from '../../blog-api'; import { reactiveComputed } from '@vueuse/core'; -import { isNil, isString, split } from 'lodash'; +import { isNil, isString, split } from 'lodash-es'; import { PostMeta, useXmlProperties } from '@vnuge/cmnext-admin'; import { apiCall, useConfirm, useUser } from '@vnuge/vnlib.browser'; import { getPostForm } from '../../form-helpers'; diff --git a/front-end/src/views/Blog/components/Posts/PostTable.vue b/front-end/src/views/Blog/components/Posts/PostTable.vue index e5e45f2..734d340 100644 --- a/front-end/src/views/Blog/components/Posts/PostTable.vue +++ b/front-end/src/views/Blog/components/Posts/PostTable.vue @@ -40,7 +40,7 @@ <script setup lang="ts"> import { toRefs } from 'vue'; -import { filter as _filter, truncate } from 'lodash'; +import { filter as _filter, truncate } from 'lodash-es'; import { useClipboard } from '@vueuse/core'; import { PostMeta } from '@vnuge/cmnext-admin'; diff --git a/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue b/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue index 79b21cf..d4adb6f 100644 --- a/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue +++ b/front-end/src/views/Blog/components/podcast-helpers/EpisodeAdder.vue @@ -39,6 +39,7 @@ id="enclosure-form" :form="schema" :validator="v$" + :disabled="false" @submit="onFormSubmit" @cancel="onCancel" /> diff --git a/front-end/src/views/Blog/index.vue b/front-end/src/views/Blog/index.vue index 6bfcb6e..b5fa0d4 100644 --- a/front-end/src/views/Blog/index.vue +++ b/front-end/src/views/Blog/index.vue @@ -112,8 +112,9 @@ import { computed } from 'vue'; import { useScriptTag } from '@vueuse/core'; import { useRouteQuery } from '@vueuse/router'; import { TabGroup, TabList, Tab, TabPanels, TabPanel, Switch } from '@headlessui/vue' -import { first } from 'lodash'; -import { usePageGuard, useUser, useTitle } from '@vnuge/vnlib.browser'; +import { first } from 'lodash-es'; +import { useRoute, useRouter } from 'vue-router'; +import { usePageGuard, useUser, useTitle, useAxios } from '@vnuge/vnlib.browser'; import { createBlogContext, useComputedChannels, useComputedPosts, useComputedContent, SortType } from '@vnuge/cmnext-admin'; import { BlogState } from './blog-api'; import Channels from './components/Channels.vue'; @@ -141,6 +142,9 @@ const firstLetter = computed(() => first(userName.value)) const tabIdQ = useRouteQuery<string>('tabid', '', { mode: 'push' }) const context = createBlogContext({ + route: useRoute(), + router: useRouter(), + axios: useAxios(null), channelUrl: '/blog/channels', postUrl: '/blog/posts', contentUrl: '/blog/content' |