mirror of https://github.com/halo-dev/halo
chore: use lodash-es instead of lodash (#5125)
#### What type of PR is this? /area console /kind improvement /milestone 2.12.x #### What this PR does / why we need it: 优化 Lodash 依赖,使用 lodash-es 代替 lodash 库。 #### Which issue(s) this PR fixes: Fixes #5124 #### Special notes for your reviewer: CI 通过即可。 #### Does this PR introduce a user-facing change? ```release-note None ```pull/5078/head^2
parent
285ac6a77f
commit
36ebc24aeb
|
@ -6,7 +6,7 @@ export interface ContentCache {
|
|||
content?: string;
|
||||
version: number;
|
||||
}
|
||||
import debounce from "lodash.debounce";
|
||||
import { debounce } from "lodash-es";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
interface useContentCacheReturn {
|
||||
|
|
|
@ -5,8 +5,7 @@ import { ref } from "vue";
|
|||
import { apiClient } from "@/utils/api-client";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import merge from "lodash.merge";
|
||||
import { cloneDeep, merge } from "lodash-es";
|
||||
import type { ConfigMap, Setting, SettingForm } from "@halo-dev/api-client";
|
||||
import type { FormKitSchemaCondition, FormKitSchemaNode } from "@formkit/core";
|
||||
import { Toast } from "@halo-dev/components";
|
||||
|
|
|
@ -30,7 +30,7 @@ import type { Attachment, Group } from "@halo-dev/api-client";
|
|||
import { useFetchAttachmentPolicy } from "./composables/use-attachment-policy";
|
||||
import { useAttachmentControl } from "./composables/use-attachment";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { isImage } from "@/utils/image";
|
||||
import { useRouteQuery } from "@vueuse/router";
|
||||
import { useFetchAttachmentGroup } from "./composables/use-attachment-group";
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Toast, VButton, VModal, VSpace } from "@halo-dev/components";
|
|||
import SubmitButton from "@/components/button/SubmitButton.vue";
|
||||
import type { Group } from "@halo-dev/api-client";
|
||||
import { computed, ref, watch } from "vue";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { Toast, VButton, VModal, VSpace } from "@halo-dev/components";
|
||||
import SubmitButton from "@/components/button/SubmitButton.vue";
|
||||
import type { Policy, PolicyTemplate } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { computed, ref, toRaw, watch, watchEffect } from "vue";
|
||||
import { useSettingForm } from "@console/composables/use-setting-form";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
|
|
|
@ -27,7 +27,7 @@ import { formatDatetime } from "@/utils/date";
|
|||
import { computed, provide, ref, onMounted, type Ref } from "vue";
|
||||
import ReplyListItem from "./ReplyListItem.vue";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { usePermission } from "@/utils/permission";
|
||||
import { useQuery, useQueryClient } from "@tanstack/vue-query";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -18,7 +18,7 @@ import { Picker } from "emoji-mart";
|
|||
import i18n from "@emoji-mart/data/i18n/zh.json";
|
||||
import { computed, nextTick, ref, watch, watchEffect } from "vue";
|
||||
import { reset } from "@formkit/core";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -14,7 +14,7 @@ import type { ListedReply } from "@halo-dev/api-client";
|
|||
import { formatDatetime } from "@/utils/date";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { computed, inject, type Ref } from "vue";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useQueryClient } from "@tanstack/vue-query";
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import { ref, watch } from "vue";
|
|||
import type { ListedSinglePage, SinglePage } from "@halo-dev/api-client";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { formatDatetime } from "@/utils/date";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { usePermission } from "@/utils/permission";
|
||||
import { useQuery } from "@tanstack/vue-query";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -24,7 +24,7 @@ import {
|
|||
} from "vue";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useRouteQuery } from "@vueuse/router";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { useRouter } from "vue-router";
|
||||
import { randomUUID } from "@/utils/id";
|
||||
import { useContentCache } from "@console/composables/use-content-cache";
|
||||
|
|
|
@ -17,7 +17,7 @@ import type { ListedSinglePage, SinglePage } from "@halo-dev/api-client";
|
|||
import { apiClient } from "@/utils/api-client";
|
||||
import { formatDatetime } from "@/utils/date";
|
||||
import { RouterLink } from "vue-router";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { usePermission } from "@/utils/permission";
|
||||
import { singlePageLabels } from "@/constants/labels";
|
||||
import { useMutation, useQueryClient } from "@tanstack/vue-query";
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from "@halo-dev/components";
|
||||
import { computed, nextTick, ref, watchEffect } from "vue";
|
||||
import type { SinglePage } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useThemeCustomTemplates } from "@console/modules/interface/themes/composables/use-theme";
|
||||
import { singlePageLabels } from "@/constants/labels";
|
||||
|
|
|
@ -23,7 +23,7 @@ import type { ListedPost, Post } from "@halo-dev/api-client";
|
|||
import { apiClient } from "@/utils/api-client";
|
||||
import { formatDatetime } from "@/utils/date";
|
||||
import { usePermission } from "@/utils/permission";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { useQuery } from "@tanstack/vue-query";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import ContributorList from "../_components/ContributorList.vue";
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
toRef,
|
||||
type ComputedRef,
|
||||
} from "vue";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useRouteQuery } from "@vueuse/router";
|
||||
import { useRouter } from "vue-router";
|
||||
|
|
|
@ -17,7 +17,7 @@ import SubmitButton from "@/components/button/SubmitButton.vue";
|
|||
import type { Category } from "@halo-dev/api-client";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import { useThemeCustomTemplates } from "@console/modules/interface/themes/composables/use-theme";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { Category, CategorySpec } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
||||
export interface CategoryTreeSpec extends Omit<CategorySpec, "children"> {
|
||||
children: CategoryTree[];
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
} from "@halo-dev/components";
|
||||
import { computed, nextTick, ref, watchEffect } from "vue";
|
||||
import type { Post } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { useThemeCustomTemplates } from "@console/modules/interface/themes/composables/use-theme";
|
||||
import { postLabels } from "@/constants/labels";
|
||||
|
|
|
@ -19,7 +19,7 @@ import SubmitButton from "@/components/button/SubmitButton.vue";
|
|||
import type { Tag } from "@halo-dev/api-client";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import AnnotationsForm from "@/components/form/AnnotationsForm.vue";
|
||||
|
|
|
@ -123,7 +123,7 @@ import {
|
|||
} from "@halo-dev/components";
|
||||
import { onMounted, provide, ref, type Ref } from "vue";
|
||||
import { useStorage } from "@vueuse/core";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import type { DashboardStats } from "@halo-dev/api-client";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -17,7 +17,7 @@ import MenuList from "./components/MenuList.vue";
|
|||
import { computed, ref } from "vue";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import type { Menu, MenuItem } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import type { MenuTreeItem } from "./utils";
|
||||
import {
|
||||
buildMenuItemsTree,
|
||||
|
|
|
@ -5,7 +5,7 @@ import type { Menu } from "@halo-dev/api-client";
|
|||
import { computed, ref, watch } from "vue";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { reset } from "@formkit/core";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import { computed, nextTick, ref, watch } from "vue";
|
|||
import type { Menu, MenuItem, Ref } from "@halo-dev/api-client";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { reset } from "@formkit/core";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import AnnotationsForm from "@/components/form/AnnotationsForm.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { MenuItem, MenuItemSpec } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
||||
export interface MenuTreeItemSpec extends Omit<MenuItemSpec, "children"> {
|
||||
children: MenuTreeItem[];
|
||||
|
|
|
@ -5,7 +5,7 @@ import { provide, ref } from "vue";
|
|||
import { useRoute, useRouter } from "vue-router";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
||||
// hooks
|
||||
import { useThemeLifeCycle } from "../composables/use-theme";
|
||||
|
|
|
@ -5,7 +5,7 @@ import { useRoute } from "vue-router";
|
|||
import { apiClient } from "@/utils/api-client";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
||||
// components
|
||||
import { VCard, VPageHeader, VTabbar, VAvatar } from "@halo-dev/components";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { ComputedRef, Ref } from "vue";
|
||||
import { computed } from "vue";
|
||||
import { type Plugin } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import { Dialog, Toast } from "@halo-dev/components";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
|
|
@ -5,7 +5,7 @@ import { computed, watch } from "vue";
|
|||
import { rbacAnnotations } from "@/constants/annotations";
|
||||
import type { Role } from "@halo-dev/api-client";
|
||||
import { useRoleForm, useRoleTemplateSelection } from "@/composables/use-role";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
import { pluginLabels, roleLabels } from "@/constants/labels";
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Toast, VButton, VModal, VSpace } from "@halo-dev/components";
|
|||
import SubmitButton from "@/components/button/SubmitButton.vue";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
|
||||
// hooks
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Toast, VButton, VModal, VSpace } from "@halo-dev/components";
|
|||
import SubmitButton from "@/components/button/SubmitButton.vue";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
|
||||
// hooks
|
||||
|
|
|
@ -4,7 +4,7 @@ import SubmitButton from "@/components/button/SubmitButton.vue";
|
|||
import { ref, watch } from "vue";
|
||||
import type { User } from "@halo-dev/api-client";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
|
||||
|
|
|
@ -83,11 +83,7 @@
|
|||
"floating-vue": "2.0.0-beta.24",
|
||||
"fuse.js": "^6.6.2",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"lodash.clonedeep": "^4.5.0",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"lodash.isequal": "^4.5.0",
|
||||
"lodash.merge": "^4.6.2",
|
||||
"lodash.sortby": "^4.7.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"overlayscrollbars": "^2.1.1",
|
||||
"overlayscrollbars-vue": "^0.5.1",
|
||||
"path-browserify": "^1.0.1",
|
||||
|
@ -114,11 +110,7 @@
|
|||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@tsconfig/node18": "^2.0.1",
|
||||
"@types/jsdom": "^20.0.1",
|
||||
"@types/lodash.clonedeep": "4.5.7",
|
||||
"@types/lodash.debounce": "^4.0.7",
|
||||
"@types/lodash.isequal": "^4.5.6",
|
||||
"@types/lodash.merge": "^4.6.7",
|
||||
"@types/lodash.sortby": "^4.7.9",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^18.11.19",
|
||||
"@types/qs": "^6.9.7",
|
||||
"@types/randomstring": "^1.1.8",
|
||||
|
|
|
@ -146,21 +146,9 @@ importers:
|
|||
jsencrypt:
|
||||
specifier: ^3.3.2
|
||||
version: 3.3.2
|
||||
lodash.clonedeep:
|
||||
specifier: ^4.5.0
|
||||
version: 4.5.0
|
||||
lodash.debounce:
|
||||
specifier: ^4.0.8
|
||||
version: 4.0.8
|
||||
lodash.isequal:
|
||||
specifier: ^4.5.0
|
||||
version: 4.5.0
|
||||
lodash.merge:
|
||||
specifier: ^4.6.2
|
||||
version: 4.6.2
|
||||
lodash.sortby:
|
||||
specifier: ^4.7.0
|
||||
version: 4.7.0
|
||||
lodash-es:
|
||||
specifier: ^4.17.21
|
||||
version: 4.17.21
|
||||
overlayscrollbars:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1
|
||||
|
@ -234,21 +222,9 @@ importers:
|
|||
'@types/jsdom':
|
||||
specifier: ^20.0.1
|
||||
version: 20.0.1
|
||||
'@types/lodash.clonedeep':
|
||||
specifier: 4.5.7
|
||||
version: 4.5.7
|
||||
'@types/lodash.debounce':
|
||||
specifier: ^4.0.7
|
||||
version: 4.0.7
|
||||
'@types/lodash.isequal':
|
||||
specifier: ^4.5.6
|
||||
version: 4.5.6
|
||||
'@types/lodash.merge':
|
||||
specifier: ^4.6.7
|
||||
version: 4.6.7
|
||||
'@types/lodash.sortby':
|
||||
specifier: ^4.7.9
|
||||
version: 4.7.9
|
||||
'@types/lodash-es':
|
||||
specifier: ^4.17.12
|
||||
version: 4.17.12
|
||||
'@types/node':
|
||||
specifier: ^18.11.19
|
||||
version: 18.13.0
|
||||
|
@ -5679,7 +5655,7 @@ packages:
|
|||
ts-dedent: 2.2.0
|
||||
type-fest: 2.19.0
|
||||
vue: 3.3.4
|
||||
vue-component-type-helpers: 1.8.24
|
||||
vue-component-type-helpers: 1.8.27
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
@ -6371,32 +6347,8 @@ packages:
|
|||
resolution: {integrity: sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==}
|
||||
dev: true
|
||||
|
||||
/@types/lodash.clonedeep@4.5.7:
|
||||
resolution: {integrity: sha512-ccNqkPptFIXrpVqUECi60/DFxjNKsfoQxSQsgcBJCX/fuX1wgyQieojkcWH/KpE3xzLoWN/2k+ZeGqIN3paSvw==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.186
|
||||
dev: true
|
||||
|
||||
/@types/lodash.debounce@4.0.7:
|
||||
resolution: {integrity: sha512-X1T4wMZ+gT000M2/91SYj0d/7JfeNZ9PeeOldSNoE/lunLeQXKvkmIumI29IaKMotU/ln/McOIvgzZcQ/3TrSA==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.186
|
||||
dev: true
|
||||
|
||||
/@types/lodash.isequal@4.5.6:
|
||||
resolution: {integrity: sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.186
|
||||
dev: true
|
||||
|
||||
/@types/lodash.merge@4.6.7:
|
||||
resolution: {integrity: sha512-OwxUJ9E50gw3LnAefSHJPHaBLGEKmQBQ7CZe/xflHkyy/wH2zVyEIAKReHvVrrn7zKdF58p16We9kMfh7v0RRQ==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.186
|
||||
dev: true
|
||||
|
||||
/@types/lodash.sortby@4.7.9:
|
||||
resolution: {integrity: sha512-PDmjHnOlndLS59GofH0pnxIs+n9i4CWeXGErSB5JyNFHu2cmvW6mQOaUKjG8EDPkni14IgF8NsRW8bKvFzTm9A==}
|
||||
/@types/lodash-es@4.17.12:
|
||||
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
|
||||
dependencies:
|
||||
'@types/lodash': 4.14.186
|
||||
dev: true
|
||||
|
@ -12606,16 +12558,17 @@ packages:
|
|||
p-locate: 5.0.0
|
||||
dev: true
|
||||
|
||||
/lodash-es@4.17.21:
|
||||
resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
|
||||
dev: false
|
||||
|
||||
/lodash.capitalize@4.2.1:
|
||||
resolution: {integrity: sha512-kZzYOKspf8XVX5AvmQF94gQW0lejFVgb80G85bU4ZWzoJ6C03PQg3coYAUpSTpQWelrZELd3XWgHzw4Ck5kaIw==}
|
||||
dev: true
|
||||
|
||||
/lodash.clonedeep@4.5.0:
|
||||
resolution: {integrity: sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==}
|
||||
dev: false
|
||||
|
||||
/lodash.debounce@4.0.8:
|
||||
resolution: {integrity: sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==}
|
||||
dev: true
|
||||
|
||||
/lodash.escaperegexp@4.1.2:
|
||||
resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==}
|
||||
|
@ -12627,6 +12580,7 @@ packages:
|
|||
|
||||
/lodash.isequal@4.5.0:
|
||||
resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==}
|
||||
dev: true
|
||||
|
||||
/lodash.isplainobject@4.0.6:
|
||||
resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==}
|
||||
|
@ -12638,6 +12592,7 @@ packages:
|
|||
|
||||
/lodash.merge@4.6.2:
|
||||
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
||||
dev: true
|
||||
|
||||
/lodash.mergewith@4.6.2:
|
||||
resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==}
|
||||
|
@ -12649,6 +12604,7 @@ packages:
|
|||
|
||||
/lodash.sortby@4.7.0:
|
||||
resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==}
|
||||
dev: true
|
||||
|
||||
/lodash.startcase@4.4.0:
|
||||
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
|
||||
|
@ -17256,8 +17212,8 @@ packages:
|
|||
engines: {node: '>=0.10.0'}
|
||||
dev: true
|
||||
|
||||
/vue-component-type-helpers@1.8.24:
|
||||
resolution: {integrity: sha512-lqWs/7fdRXoSBAlbouHBX+LNuaY6gI9xWW34m/ZIz9zVPYHEyw0b2/zaCBwlKx0NtKTeF/6pOpvrxVkh7nhIYg==}
|
||||
/vue-component-type-helpers@1.8.27:
|
||||
resolution: {integrity: sha512-0vOfAtI67UjeO1G6UiX5Kd76CqaQ67wrRZiOe7UAb9Jm6GzlUr/fC7CV90XfwapJRjpCMaZFhv1V0ajWRmE9Dg==}
|
||||
dev: true
|
||||
|
||||
/vue-component-type-helpers@1.8.4:
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
import { computed, nextTick, onMounted, ref, watch } from "vue";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import type { AnnotationSetting } from "@halo-dev/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { getValidationMessages } from "@formkit/validation";
|
||||
import { useThemeStore } from "@console/stores/theme";
|
||||
import { randomUUID } from "@/utils/id";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { useRoleStore } from "@/stores/role";
|
||||
import type { MenuGroupType, MenuItemType } from "@halo-dev/console-shared";
|
||||
import { onMounted, ref, type Ref } from "vue";
|
||||
import sortBy from "lodash.sortby";
|
||||
import { sortBy } from "lodash-es";
|
||||
import { hasPermission } from "@/utils/permission";
|
||||
import {
|
||||
useRouter,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useRoleStore } from "@/stores/role";
|
||||
import isEqual from "lodash.isequal";
|
||||
import { isEqual } from "lodash-es";
|
||||
|
||||
/**
|
||||
* It returns true if the user has all the permissions required to access a resource
|
||||
|
|
|
@ -4,7 +4,7 @@ import SubmitButton from "@/components/button/SubmitButton.vue";
|
|||
import { ref, watch } from "vue";
|
||||
import type { User } from "@halo-dev/api-client";
|
||||
import { apiClient } from "@/utils/api-client";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
import { setFocus } from "@/formkit/utils/focus";
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Toast, VButton, VModal, VSpace } from "@halo-dev/components";
|
|||
import SubmitButton from "@/components/button/SubmitButton.vue";
|
||||
|
||||
// libs
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import { reset } from "@formkit/core";
|
||||
|
||||
// hooks
|
||||
|
|
|
@ -6,7 +6,7 @@ import { VLoading, VSwitch } from "@halo-dev/components";
|
|||
import type { Ref } from "vue";
|
||||
import { computed } from "vue";
|
||||
import { inject } from "vue";
|
||||
import cloneDeep from "lodash.clonedeep";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
import type { ReasonTypeNotifierRequest } from "@halo-dev/api-client";
|
||||
|
||||
const queryClient = useQueryClient();
|
||||
|
|
Loading…
Reference in New Issue