@liujitcn/kratos-admin-core 0.0.20 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/package/declarations/src/api/base/language.d.ts +8 -0
- package/dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts +1 -0
- package/dist/package/declarations/src/components/Dict/index.vue.d.ts +4 -3
- package/dist/package/declarations/src/components/Dict/value.d.ts +11 -0
- package/dist/package/declarations/src/components/LocaleSwitch/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/index.d.ts +2 -0
- package/dist/package/declarations/src/locales/generated.d.ts +3382 -0
- package/dist/package/declarations/src/locales/index.d.ts +53 -0
- package/dist/package/declarations/src/modules/index.d.ts +7 -2
- package/dist/package/declarations/src/request.d.ts +1 -0
- package/dist/package/declarations/src/routers/modules/staticRouter.d.ts +1 -0
- package/dist/package/declarations/src/rpc/base/v1/config.d.ts +13 -1
- package/dist/package/declarations/src/rpc/base/v1/language.d.ts +20 -0
- package/dist/package/declarations/src/rpc/base/v1/login.d.ts +13 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +1 -1
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +9 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_translation.d.ts +75 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/common.d.ts +13 -0
- package/dist/package/declarations/src/stores/interface/index.d.ts +2 -0
- package/dist/package/declarations/src/stores/modules/auth.d.ts +6 -6
- package/dist/package/declarations/src/stores/runtime.d.ts +1 -0
- package/dist/package/declarations/src/utils/dict.d.ts +2 -2
- package/dist/package/declarations/src/utils/index.d.ts +1 -1
- package/dist/package/declarations/src/utils/oauthProvider.d.ts +2 -0
- package/dist/package/declarations/src/utils/passwordCrypto.d.ts +1 -1
- package/dist/package/declarations/src/utils/passwordStrength.d.ts +0 -7
- package/dist/package/src/App.vue +5 -2
- package/dist/package/src/api/base/language.ts +20 -0
- package/dist/package/src/api/base/oauth.ts +0 -1
- package/dist/package/src/api/system/auth.ts +0 -1
- package/dist/package/src/bootstrap.ts +57 -2
- package/dist/package/src/components/CronExpression/index.vue +80 -82
- package/dist/package/src/components/Dialog/FormDialog.vue +10 -5
- package/dist/package/src/components/Dialog/ProDialog.vue +10 -4
- package/dist/package/src/components/Dict/index.vue +26 -9
- package/dist/package/src/components/Dict/value.ts +18 -0
- package/dist/package/src/components/ECharts/config/index.ts +6 -1
- package/dist/package/src/components/ErrorMessage/index.vue +3 -1
- package/dist/package/src/components/ImportExcel/index.vue +29 -18
- package/dist/package/src/components/LocaleSwitch/index.vue +28 -0
- package/dist/package/src/components/PasswordStrength/index.vue +8 -5
- package/dist/package/src/components/ProForm/components/DynamicList.vue +8 -3
- package/dist/package/src/components/ProForm/components/KvList.vue +14 -6
- package/dist/package/src/components/ProForm/index.vue +2 -2
- package/dist/package/src/components/ProTable/components/ColSetting.vue +7 -5
- package/dist/package/src/components/ProTable/components/TableColumn.vue +2 -1
- package/dist/package/src/components/ProTable/index.vue +36 -11
- package/dist/package/src/components/SearchForm/components/SearchFormItem.vue +9 -4
- package/dist/package/src/components/SearchForm/index.vue +6 -3
- package/dist/package/src/components/SelectFilter/index.vue +4 -1
- package/dist/package/src/components/SelectIcon/index.vue +8 -4
- package/dist/package/src/components/TreeFilter/index.vue +14 -6
- package/dist/package/src/components/Upload/File.vue +18 -13
- package/dist/package/src/components/Upload/Files.vue +22 -15
- package/dist/package/src/components/Upload/Img.vue +14 -11
- package/dist/package/src/components/Upload/Imgs.vue +15 -12
- package/dist/package/src/components/WangEditor/index.vue +12 -4
- package/dist/package/src/directives/modules/copy.ts +2 -1
- package/dist/package/src/hooks/useDownload.ts +3 -2
- package/dist/package/src/hooks/useHandleData.ts +5 -4
- package/dist/package/src/hooks/useTheme.ts +2 -1
- package/dist/package/src/hooks/useTime.ts +11 -2
- package/dist/package/src/index.ts +2 -0
- package/dist/package/src/layouts/components/Header/ToolBarRight.vue +2 -0
- package/dist/package/src/layouts/components/Header/components/AssemblySize.vue +8 -6
- package/dist/package/src/layouts/components/Header/components/Avatar.vue +11 -9
- package/dist/package/src/layouts/components/Header/components/Breadcrumb.vue +11 -3
- package/dist/package/src/layouts/components/Header/components/Fullscreen.vue +4 -2
- package/dist/package/src/layouts/components/Header/components/InfoDialog.vue +6 -3
- package/dist/package/src/layouts/components/Header/components/PasswordDialog.vue +6 -3
- package/dist/package/src/layouts/components/Header/components/SearchMenu.vue +5 -3
- package/dist/package/src/layouts/components/Header/components/ThemeSetting.vue +3 -1
- package/dist/package/src/layouts/components/Main/index.vue +1 -0
- package/dist/package/src/layouts/components/Tabs/components/MoreButton.vue +9 -7
- package/dist/package/src/layouts/components/Tabs/index.vue +15 -1
- package/dist/package/src/layouts/components/ThemeDrawer/index.vue +27 -24
- package/dist/package/src/locales/README.md +15 -0
- package/dist/package/src/locales/en-US.json +283 -0
- package/dist/package/src/locales/es-ES.json +283 -0
- package/dist/package/src/locales/fr-FR.json +283 -0
- package/dist/package/src/locales/generated.ts +57 -0
- package/dist/package/src/locales/index.ts +222 -0
- package/dist/package/src/locales/ja-JP.json +283 -0
- package/dist/package/src/locales/ko-KR.json +283 -0
- package/dist/package/src/locales/zh-CN.json +283 -0
- package/dist/package/src/locales/zh-TW.json +283 -0
- package/dist/package/src/modules/index.ts +7 -2
- package/dist/package/src/modules/kratosAdmin.ts +5 -1
- package/dist/package/src/request.ts +8 -1
- package/dist/package/src/routers/index.ts +4 -1
- package/dist/package/src/routers/modules/dynamicRouter.ts +5 -4
- package/dist/package/src/routers/modules/staticRouter.ts +8 -4
- package/dist/package/src/rpc/base/v1/config.ts +14 -1
- package/dist/package/src/rpc/base/v1/language.ts +31 -0
- package/dist/package/src/rpc/base/v1/login.ts +14 -1
- package/dist/package/src/rpc/system/admin/v1/auth.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +9 -0
- package/dist/package/src/rpc/system/admin/v1/base_translation.ts +90 -0
- package/dist/package/src/rpc/system/admin/v1/common.ts +21 -0
- package/dist/package/src/stores/interface/index.ts +2 -0
- package/dist/package/src/stores/modules/config.ts +7 -3
- package/dist/package/src/stores/modules/user.ts +2 -1
- package/dist/package/src/stores/runtime.ts +1 -0
- package/dist/package/src/styles/element.scss +2 -0
- package/dist/package/src/utils/color.ts +5 -4
- package/dist/package/src/utils/dict.ts +27 -4
- package/dist/package/src/utils/eleValidate.ts +3 -2
- package/dist/package/src/utils/errorHandler.ts +9 -8
- package/dist/package/src/utils/index.ts +9 -8
- package/dist/package/src/utils/oauthProvider.ts +15 -10
- package/dist/package/src/utils/passwordCrypto.ts +4 -3
- package/dist/package/src/utils/passwordStrength.ts +1 -16
- package/dist/package/src/utils/request.ts +13 -8
- package/dist/package/src/views/error/403.vue +3 -1
- package/dist/package/src/views/error/404.vue +3 -1
- package/dist/package/src/views/error/500.vue +3 -1
- package/dist/package/src/views/error/pending.vue +5 -2
- package/dist/package/src/views/login/components/LoginForm.vue +58 -29
- package/dist/package/src/views/login/index.scss +6 -0
- package/dist/package/src/views/login/index.vue +2 -0
- package/dist/package/types/generated/auto-imports.d.ts +129 -111
- package/dist/package/types/generated/components.d.ts +67 -67
- package/package.json +4 -2
- package/types/generated/auto-imports.d.ts +129 -111
- package/types/generated/components.d.ts +67 -67
- package/vite.config.ts +12 -0
- package/dist/package/declarations/src/rpc/base/v1/enum.d.ts +0 -43
- package/dist/package/declarations/src/rpc/system/common/v1/enum.d.ts +0 -67
- package/dist/package/src/rpc/base/v1/enum.ts +0 -54
- package/dist/package/src/rpc/system/common/v1/enum.ts +0 -80
|
@@ -6,119 +6,137 @@
|
|
|
6
6
|
// biome-ignore lint: disable
|
|
7
7
|
export {}
|
|
8
8
|
declare global {
|
|
9
|
-
const ArrowDown: typeof import(
|
|
10
|
-
const ArrowRight: typeof import(
|
|
11
|
-
const ArrowUp: typeof import(
|
|
12
|
-
const Camera: typeof import(
|
|
13
|
-
const CircleCheck: typeof import(
|
|
14
|
-
const CircleClose: typeof import(
|
|
15
|
-
const CirclePlus: typeof import(
|
|
16
|
-
const Delete: typeof import(
|
|
17
|
-
const Document: typeof import(
|
|
18
|
-
const Download: typeof import(
|
|
19
|
-
const Edit: typeof import(
|
|
20
|
-
const EditPen: typeof import(
|
|
21
|
-
const EffectScope: typeof import(
|
|
22
|
-
const ElConfigProvider: typeof import(
|
|
23
|
-
const ElLoading: typeof import(
|
|
24
|
-
const ElMessage: typeof import(
|
|
25
|
-
const ElMessageBox: typeof import(
|
|
26
|
-
const ElNotification: typeof import(
|
|
27
|
-
const ElTable: typeof import(
|
|
28
|
-
const ElTree: typeof import(
|
|
29
|
-
const Expand: typeof import(
|
|
30
|
-
const Female: typeof import(
|
|
31
|
-
const Fold: typeof import(
|
|
32
|
-
const Goods: typeof import(
|
|
33
|
-
const InfoFilled: typeof import(
|
|
34
|
-
const List: typeof import(
|
|
35
|
-
const Male: typeof import(
|
|
36
|
-
const Moon: typeof import(
|
|
37
|
-
const Operation: typeof import(
|
|
38
|
-
const Phone: typeof import(
|
|
39
|
-
const Plus: typeof import(
|
|
40
|
-
const Position: typeof import(
|
|
41
|
-
const QuestionFilled: typeof import(
|
|
42
|
-
const Refresh: typeof import(
|
|
43
|
-
const RefreshLeft: typeof import(
|
|
44
|
-
const Search: typeof import(
|
|
45
|
-
const Sunny: typeof import(
|
|
46
|
-
const Switch: typeof import(
|
|
47
|
-
const Tickets: typeof import(
|
|
48
|
-
const Timer: typeof import(
|
|
49
|
-
const User: typeof import(
|
|
50
|
-
const UserFilled: typeof import(
|
|
51
|
-
const Van: typeof import(
|
|
52
|
-
const View: typeof import(
|
|
53
|
-
const Wallet: typeof import(
|
|
54
|
-
const computed: typeof import(
|
|
55
|
-
const createApp: typeof import(
|
|
56
|
-
const customRef: typeof import(
|
|
57
|
-
const defineAsyncComponent: typeof import(
|
|
58
|
-
const defineComponent: typeof import(
|
|
59
|
-
const effectScope: typeof import(
|
|
60
|
-
const formContextKey: typeof import(
|
|
61
|
-
const formItemContextKey: typeof import(
|
|
62
|
-
const getCurrentInstance: typeof import(
|
|
63
|
-
const getCurrentScope: typeof import(
|
|
64
|
-
const getCurrentWatcher: typeof import(
|
|
65
|
-
const h: typeof import(
|
|
66
|
-
const inject: typeof import(
|
|
67
|
-
const isProxy: typeof import(
|
|
68
|
-
const isReactive: typeof import(
|
|
69
|
-
const isReadonly: typeof import(
|
|
70
|
-
const isRef: typeof import(
|
|
71
|
-
const isShallow: typeof import(
|
|
72
|
-
const markRaw: typeof import(
|
|
73
|
-
const nextTick: typeof import(
|
|
74
|
-
const onActivated: typeof import(
|
|
75
|
-
const onBeforeMount: typeof import(
|
|
76
|
-
const onBeforeRouteLeave: typeof import(
|
|
77
|
-
const onBeforeRouteUpdate: typeof import(
|
|
78
|
-
const onBeforeUnmount: typeof import(
|
|
79
|
-
const onBeforeUpdate: typeof import(
|
|
80
|
-
const onDeactivated: typeof import(
|
|
81
|
-
const onErrorCaptured: typeof import(
|
|
82
|
-
const onMounted: typeof import(
|
|
83
|
-
const onRenderTracked: typeof import(
|
|
84
|
-
const onRenderTriggered: typeof import(
|
|
85
|
-
const onScopeDispose: typeof import(
|
|
86
|
-
const onServerPrefetch: typeof import(
|
|
87
|
-
const onUnmounted: typeof import(
|
|
88
|
-
const onUpdated: typeof import(
|
|
89
|
-
const onWatcherCleanup: typeof import(
|
|
90
|
-
const provide: typeof import(
|
|
91
|
-
const reactive: typeof import(
|
|
92
|
-
const readonly: typeof import(
|
|
93
|
-
const ref: typeof import(
|
|
94
|
-
const resolveComponent: typeof import(
|
|
95
|
-
const shallowReactive: typeof import(
|
|
96
|
-
const shallowReadonly: typeof import(
|
|
97
|
-
const shallowRef: typeof import(
|
|
98
|
-
const toRaw: typeof import(
|
|
99
|
-
const toRef: typeof import(
|
|
100
|
-
const toRefs: typeof import(
|
|
101
|
-
const toValue: typeof import(
|
|
102
|
-
const triggerRef: typeof import(
|
|
103
|
-
const unref: typeof import(
|
|
104
|
-
const useAttrs: typeof import(
|
|
105
|
-
const useCssModule: typeof import(
|
|
106
|
-
const useCssVars: typeof import(
|
|
107
|
-
const useId: typeof import(
|
|
108
|
-
const useLink: typeof import(
|
|
109
|
-
const useModel: typeof import(
|
|
110
|
-
const useRoute: typeof import(
|
|
111
|
-
const useRouter: typeof import(
|
|
112
|
-
const useSlots: typeof import(
|
|
113
|
-
const useTemplateRef: typeof import(
|
|
114
|
-
const watch: typeof import(
|
|
115
|
-
const watchEffect: typeof import(
|
|
116
|
-
const watchPostEffect: typeof import(
|
|
117
|
-
const watchSyncEffect: typeof import(
|
|
9
|
+
const ArrowDown: typeof import("@element-plus/icons-vue").ArrowDown;
|
|
10
|
+
const ArrowRight: typeof import("@element-plus/icons-vue").ArrowRight;
|
|
11
|
+
const ArrowUp: typeof import("@element-plus/icons-vue").ArrowUp;
|
|
12
|
+
const Camera: typeof import("@element-plus/icons-vue").Camera;
|
|
13
|
+
const CircleCheck: typeof import("@element-plus/icons-vue").CircleCheck;
|
|
14
|
+
const CircleClose: typeof import("@element-plus/icons-vue").CircleClose;
|
|
15
|
+
const CirclePlus: typeof import("@element-plus/icons-vue").CirclePlus;
|
|
16
|
+
const Delete: typeof import("@element-plus/icons-vue").Delete;
|
|
17
|
+
const Document: typeof import("@element-plus/icons-vue").Document;
|
|
18
|
+
const Download: typeof import("@element-plus/icons-vue").Download;
|
|
19
|
+
const Edit: typeof import("@element-plus/icons-vue").Edit;
|
|
20
|
+
const EditPen: typeof import("@element-plus/icons-vue").EditPen;
|
|
21
|
+
const EffectScope: typeof import("vue").EffectScope;
|
|
22
|
+
const ElConfigProvider: typeof import("element-plus").ElConfigProvider;
|
|
23
|
+
const ElLoading: typeof import("element-plus").ElLoading;
|
|
24
|
+
const ElMessage: typeof import("element-plus").ElMessage;
|
|
25
|
+
const ElMessageBox: typeof import("element-plus").ElMessageBox;
|
|
26
|
+
const ElNotification: typeof import("element-plus").ElNotification;
|
|
27
|
+
const ElTable: typeof import("element-plus").ElTable;
|
|
28
|
+
const ElTree: typeof import("element-plus").ElTree;
|
|
29
|
+
const Expand: typeof import("@element-plus/icons-vue").Expand;
|
|
30
|
+
const Female: typeof import("@element-plus/icons-vue").Female;
|
|
31
|
+
const Fold: typeof import("@element-plus/icons-vue").Fold;
|
|
32
|
+
const Goods: typeof import("@element-plus/icons-vue").Goods;
|
|
33
|
+
const InfoFilled: typeof import("@element-plus/icons-vue").InfoFilled;
|
|
34
|
+
const List: typeof import("@element-plus/icons-vue").List;
|
|
35
|
+
const Male: typeof import("@element-plus/icons-vue").Male;
|
|
36
|
+
const Moon: typeof import("@element-plus/icons-vue").Moon;
|
|
37
|
+
const Operation: typeof import("@element-plus/icons-vue").Operation;
|
|
38
|
+
const Phone: typeof import("@element-plus/icons-vue").Phone;
|
|
39
|
+
const Plus: typeof import("@element-plus/icons-vue").Plus;
|
|
40
|
+
const Position: typeof import("@element-plus/icons-vue").Position;
|
|
41
|
+
const QuestionFilled: typeof import("@element-plus/icons-vue").QuestionFilled;
|
|
42
|
+
const Refresh: typeof import("@element-plus/icons-vue").Refresh;
|
|
43
|
+
const RefreshLeft: typeof import("@element-plus/icons-vue").RefreshLeft;
|
|
44
|
+
const Search: typeof import("@element-plus/icons-vue").Search;
|
|
45
|
+
const Sunny: typeof import("@element-plus/icons-vue").Sunny;
|
|
46
|
+
const Switch: typeof import("@element-plus/icons-vue").Switch;
|
|
47
|
+
const Tickets: typeof import("@element-plus/icons-vue").Tickets;
|
|
48
|
+
const Timer: typeof import("@element-plus/icons-vue").Timer;
|
|
49
|
+
const User: typeof import("@element-plus/icons-vue").User;
|
|
50
|
+
const UserFilled: typeof import("@element-plus/icons-vue").UserFilled;
|
|
51
|
+
const Van: typeof import("@element-plus/icons-vue").Van;
|
|
52
|
+
const View: typeof import("@element-plus/icons-vue").View;
|
|
53
|
+
const Wallet: typeof import("@element-plus/icons-vue").Wallet;
|
|
54
|
+
const computed: typeof import("vue").computed;
|
|
55
|
+
const createApp: typeof import("vue").createApp;
|
|
56
|
+
const customRef: typeof import("vue").customRef;
|
|
57
|
+
const defineAsyncComponent: typeof import("vue").defineAsyncComponent;
|
|
58
|
+
const defineComponent: typeof import("vue").defineComponent;
|
|
59
|
+
const effectScope: typeof import("vue").effectScope;
|
|
60
|
+
const formContextKey: typeof import("element-plus").formContextKey;
|
|
61
|
+
const formItemContextKey: typeof import("element-plus").formItemContextKey;
|
|
62
|
+
const getCurrentInstance: typeof import("vue").getCurrentInstance;
|
|
63
|
+
const getCurrentScope: typeof import("vue").getCurrentScope;
|
|
64
|
+
const getCurrentWatcher: typeof import("vue").getCurrentWatcher;
|
|
65
|
+
const h: typeof import("vue").h;
|
|
66
|
+
const inject: typeof import("vue").inject;
|
|
67
|
+
const isProxy: typeof import("vue").isProxy;
|
|
68
|
+
const isReactive: typeof import("vue").isReactive;
|
|
69
|
+
const isReadonly: typeof import("vue").isReadonly;
|
|
70
|
+
const isRef: typeof import("vue").isRef;
|
|
71
|
+
const isShallow: typeof import("vue").isShallow;
|
|
72
|
+
const markRaw: typeof import("vue").markRaw;
|
|
73
|
+
const nextTick: typeof import("vue").nextTick;
|
|
74
|
+
const onActivated: typeof import("vue").onActivated;
|
|
75
|
+
const onBeforeMount: typeof import("vue").onBeforeMount;
|
|
76
|
+
const onBeforeRouteLeave: typeof import("vue-router").onBeforeRouteLeave;
|
|
77
|
+
const onBeforeRouteUpdate: typeof import("vue-router").onBeforeRouteUpdate;
|
|
78
|
+
const onBeforeUnmount: typeof import("vue").onBeforeUnmount;
|
|
79
|
+
const onBeforeUpdate: typeof import("vue").onBeforeUpdate;
|
|
80
|
+
const onDeactivated: typeof import("vue").onDeactivated;
|
|
81
|
+
const onErrorCaptured: typeof import("vue").onErrorCaptured;
|
|
82
|
+
const onMounted: typeof import("vue").onMounted;
|
|
83
|
+
const onRenderTracked: typeof import("vue").onRenderTracked;
|
|
84
|
+
const onRenderTriggered: typeof import("vue").onRenderTriggered;
|
|
85
|
+
const onScopeDispose: typeof import("vue").onScopeDispose;
|
|
86
|
+
const onServerPrefetch: typeof import("vue").onServerPrefetch;
|
|
87
|
+
const onUnmounted: typeof import("vue").onUnmounted;
|
|
88
|
+
const onUpdated: typeof import("vue").onUpdated;
|
|
89
|
+
const onWatcherCleanup: typeof import("vue").onWatcherCleanup;
|
|
90
|
+
const provide: typeof import("vue").provide;
|
|
91
|
+
const reactive: typeof import("vue").reactive;
|
|
92
|
+
const readonly: typeof import("vue").readonly;
|
|
93
|
+
const ref: typeof import("vue").ref;
|
|
94
|
+
const resolveComponent: typeof import("vue").resolveComponent;
|
|
95
|
+
const shallowReactive: typeof import("vue").shallowReactive;
|
|
96
|
+
const shallowReadonly: typeof import("vue").shallowReadonly;
|
|
97
|
+
const shallowRef: typeof import("vue").shallowRef;
|
|
98
|
+
const toRaw: typeof import("vue").toRaw;
|
|
99
|
+
const toRef: typeof import("vue").toRef;
|
|
100
|
+
const toRefs: typeof import("vue").toRefs;
|
|
101
|
+
const toValue: typeof import("vue").toValue;
|
|
102
|
+
const triggerRef: typeof import("vue").triggerRef;
|
|
103
|
+
const unref: typeof import("vue").unref;
|
|
104
|
+
const useAttrs: typeof import("vue").useAttrs;
|
|
105
|
+
const useCssModule: typeof import("vue").useCssModule;
|
|
106
|
+
const useCssVars: typeof import("vue").useCssVars;
|
|
107
|
+
const useId: typeof import("vue").useId;
|
|
108
|
+
const useLink: typeof import("vue-router").useLink;
|
|
109
|
+
const useModel: typeof import("vue").useModel;
|
|
110
|
+
const useRoute: typeof import("vue-router").useRoute;
|
|
111
|
+
const useRouter: typeof import("vue-router").useRouter;
|
|
112
|
+
const useSlots: typeof import("vue").useSlots;
|
|
113
|
+
const useTemplateRef: typeof import("vue").useTemplateRef;
|
|
114
|
+
const watch: typeof import("vue").watch;
|
|
115
|
+
const watchEffect: typeof import("vue").watchEffect;
|
|
116
|
+
const watchPostEffect: typeof import("vue").watchPostEffect;
|
|
117
|
+
const watchSyncEffect: typeof import("vue").watchSyncEffect;
|
|
118
118
|
}
|
|
119
119
|
// for type re-export
|
|
120
120
|
declare global {
|
|
121
121
|
// @ts-ignore
|
|
122
|
-
export type {
|
|
123
|
-
|
|
122
|
+
export type {
|
|
123
|
+
Component,
|
|
124
|
+
Slot,
|
|
125
|
+
Slots,
|
|
126
|
+
ComponentPublicInstance,
|
|
127
|
+
ComputedRef,
|
|
128
|
+
DirectiveBinding,
|
|
129
|
+
ExtractDefaultPropTypes,
|
|
130
|
+
ExtractPropTypes,
|
|
131
|
+
ExtractPublicPropTypes,
|
|
132
|
+
InjectionKey,
|
|
133
|
+
PropType,
|
|
134
|
+
Ref,
|
|
135
|
+
ShallowRef,
|
|
136
|
+
MaybeRef,
|
|
137
|
+
MaybeRefOrGetter,
|
|
138
|
+
VNode,
|
|
139
|
+
WritableComputedRef
|
|
140
|
+
} from "vue";
|
|
141
|
+
import("vue");
|
|
124
142
|
}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// ------
|
|
6
6
|
// Generated by unplugin-vue-components
|
|
7
7
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
8
|
-
import { GlobalComponents } from
|
|
8
|
+
import { GlobalComponents } from "vue";
|
|
9
9
|
|
|
10
|
-
export {}
|
|
10
|
+
export {};
|
|
11
11
|
|
|
12
12
|
/* prettier-ignore */
|
|
13
13
|
declare module 'vue' {
|
|
@@ -84,68 +84,68 @@ declare module 'vue' {
|
|
|
84
84
|
|
|
85
85
|
// For TSX support
|
|
86
86
|
declare global {
|
|
87
|
-
const ElAlert: typeof import(
|
|
88
|
-
const ElAside: typeof import(
|
|
89
|
-
const ElAvatar: typeof import(
|
|
90
|
-
const ElBreadcrumb: typeof import(
|
|
91
|
-
const ElBreadcrumbItem: typeof import(
|
|
92
|
-
const ElButton: typeof import(
|
|
93
|
-
const ElCard: typeof import(
|
|
94
|
-
const ElCheckbox: typeof import(
|
|
95
|
-
const ElCheckboxGroup: typeof import(
|
|
96
|
-
const ElCol: typeof import(
|
|
97
|
-
const ElCollapse: typeof import(
|
|
98
|
-
const ElCollapseItem: typeof import(
|
|
99
|
-
const ElColorPicker: typeof import(
|
|
100
|
-
const ElContainer: typeof import(
|
|
101
|
-
const ElDatePicker: typeof import(
|
|
102
|
-
const ElDescriptions: typeof import(
|
|
103
|
-
const ElDescriptionsItem: typeof import(
|
|
104
|
-
const ElDialog: typeof import(
|
|
105
|
-
const ElDivider: typeof import(
|
|
106
|
-
const ElDrawer: typeof import(
|
|
107
|
-
const ElDropdown: typeof import(
|
|
108
|
-
const ElDropdownItem: typeof import(
|
|
109
|
-
const ElDropdownMenu: typeof import(
|
|
110
|
-
const ElEmpty: typeof import(
|
|
111
|
-
const ElFooter: typeof import(
|
|
112
|
-
const ElForm: typeof import(
|
|
113
|
-
const ElFormItem: typeof import(
|
|
114
|
-
const ElHeader: typeof import(
|
|
115
|
-
const ElIcon: typeof import(
|
|
116
|
-
const ElImageViewer: typeof import(
|
|
117
|
-
const ElInput: typeof import(
|
|
118
|
-
const ElInputNumber: typeof import(
|
|
119
|
-
const ElMain: typeof import(
|
|
120
|
-
const ElMenu: typeof import(
|
|
121
|
-
const ElMenuItem: typeof import(
|
|
122
|
-
const ElOption: typeof import(
|
|
123
|
-
const ElPagination: typeof import(
|
|
124
|
-
const ElPopconfirm: typeof import(
|
|
125
|
-
const ElPopover: typeof import(
|
|
126
|
-
const ElProgress: typeof import(
|
|
127
|
-
const ElRadio: typeof import(
|
|
128
|
-
const ElRadioButton: typeof import(
|
|
129
|
-
const ElRadioGroup: typeof import(
|
|
130
|
-
const ElResult: typeof import(
|
|
131
|
-
const ElRow: typeof import(
|
|
132
|
-
const ElScrollbar: typeof import(
|
|
133
|
-
const ElSegmented: typeof import(
|
|
134
|
-
const ElSelect: typeof import(
|
|
135
|
-
const ElSkeleton: typeof import(
|
|
136
|
-
const ElSpace: typeof import(
|
|
137
|
-
const ElSubMenu: typeof import(
|
|
138
|
-
const ElSwitch: typeof import(
|
|
139
|
-
const ElTable: typeof import(
|
|
140
|
-
const ElTableColumn: typeof import(
|
|
141
|
-
const ElTabPane: typeof import(
|
|
142
|
-
const ElTabs: typeof import(
|
|
143
|
-
const ElTag: typeof import(
|
|
144
|
-
const ElTooltip: typeof import(
|
|
145
|
-
const ElTransfer: typeof import(
|
|
146
|
-
const ElTreeSelect: typeof import(
|
|
147
|
-
const ElUpload: typeof import(
|
|
148
|
-
const ElWatermark: typeof import(
|
|
149
|
-
const RouterLink: typeof import(
|
|
150
|
-
const RouterView: typeof import(
|
|
151
|
-
}
|
|
87
|
+
const ElAlert: (typeof import("element-plus/es"))["ElAlert"];
|
|
88
|
+
const ElAside: (typeof import("element-plus/es"))["ElAside"];
|
|
89
|
+
const ElAvatar: (typeof import("element-plus/es"))["ElAvatar"];
|
|
90
|
+
const ElBreadcrumb: (typeof import("element-plus/es"))["ElBreadcrumb"];
|
|
91
|
+
const ElBreadcrumbItem: (typeof import("element-plus/es"))["ElBreadcrumbItem"];
|
|
92
|
+
const ElButton: (typeof import("element-plus/es"))["ElButton"];
|
|
93
|
+
const ElCard: (typeof import("element-plus/es"))["ElCard"];
|
|
94
|
+
const ElCheckbox: (typeof import("element-plus/es"))["ElCheckbox"];
|
|
95
|
+
const ElCheckboxGroup: (typeof import("element-plus/es"))["ElCheckboxGroup"];
|
|
96
|
+
const ElCol: (typeof import("element-plus/es"))["ElCol"];
|
|
97
|
+
const ElCollapse: (typeof import("element-plus/es"))["ElCollapse"];
|
|
98
|
+
const ElCollapseItem: (typeof import("element-plus/es"))["ElCollapseItem"];
|
|
99
|
+
const ElColorPicker: (typeof import("element-plus/es"))["ElColorPicker"];
|
|
100
|
+
const ElContainer: (typeof import("element-plus/es"))["ElContainer"];
|
|
101
|
+
const ElDatePicker: (typeof import("element-plus/es"))["ElDatePicker"];
|
|
102
|
+
const ElDescriptions: (typeof import("element-plus/es"))["ElDescriptions"];
|
|
103
|
+
const ElDescriptionsItem: (typeof import("element-plus/es"))["ElDescriptionsItem"];
|
|
104
|
+
const ElDialog: (typeof import("element-plus/es"))["ElDialog"];
|
|
105
|
+
const ElDivider: (typeof import("element-plus/es"))["ElDivider"];
|
|
106
|
+
const ElDrawer: (typeof import("element-plus/es"))["ElDrawer"];
|
|
107
|
+
const ElDropdown: (typeof import("element-plus/es"))["ElDropdown"];
|
|
108
|
+
const ElDropdownItem: (typeof import("element-plus/es"))["ElDropdownItem"];
|
|
109
|
+
const ElDropdownMenu: (typeof import("element-plus/es"))["ElDropdownMenu"];
|
|
110
|
+
const ElEmpty: (typeof import("element-plus/es"))["ElEmpty"];
|
|
111
|
+
const ElFooter: (typeof import("element-plus/es"))["ElFooter"];
|
|
112
|
+
const ElForm: (typeof import("element-plus/es"))["ElForm"];
|
|
113
|
+
const ElFormItem: (typeof import("element-plus/es"))["ElFormItem"];
|
|
114
|
+
const ElHeader: (typeof import("element-plus/es"))["ElHeader"];
|
|
115
|
+
const ElIcon: (typeof import("element-plus/es"))["ElIcon"];
|
|
116
|
+
const ElImageViewer: (typeof import("element-plus/es"))["ElImageViewer"];
|
|
117
|
+
const ElInput: (typeof import("element-plus/es"))["ElInput"];
|
|
118
|
+
const ElInputNumber: (typeof import("element-plus/es"))["ElInputNumber"];
|
|
119
|
+
const ElMain: (typeof import("element-plus/es"))["ElMain"];
|
|
120
|
+
const ElMenu: (typeof import("element-plus/es"))["ElMenu"];
|
|
121
|
+
const ElMenuItem: (typeof import("element-plus/es"))["ElMenuItem"];
|
|
122
|
+
const ElOption: (typeof import("element-plus/es"))["ElOption"];
|
|
123
|
+
const ElPagination: (typeof import("element-plus/es"))["ElPagination"];
|
|
124
|
+
const ElPopconfirm: (typeof import("element-plus/es"))["ElPopconfirm"];
|
|
125
|
+
const ElPopover: (typeof import("element-plus/es"))["ElPopover"];
|
|
126
|
+
const ElProgress: (typeof import("element-plus/es"))["ElProgress"];
|
|
127
|
+
const ElRadio: (typeof import("element-plus/es"))["ElRadio"];
|
|
128
|
+
const ElRadioButton: (typeof import("element-plus/es"))["ElRadioButton"];
|
|
129
|
+
const ElRadioGroup: (typeof import("element-plus/es"))["ElRadioGroup"];
|
|
130
|
+
const ElResult: (typeof import("element-plus/es"))["ElResult"];
|
|
131
|
+
const ElRow: (typeof import("element-plus/es"))["ElRow"];
|
|
132
|
+
const ElScrollbar: (typeof import("element-plus/es"))["ElScrollbar"];
|
|
133
|
+
const ElSegmented: (typeof import("element-plus/es"))["ElSegmented"];
|
|
134
|
+
const ElSelect: (typeof import("element-plus/es"))["ElSelect"];
|
|
135
|
+
const ElSkeleton: (typeof import("element-plus/es"))["ElSkeleton"];
|
|
136
|
+
const ElSpace: (typeof import("element-plus/es"))["ElSpace"];
|
|
137
|
+
const ElSubMenu: (typeof import("element-plus/es"))["ElSubMenu"];
|
|
138
|
+
const ElSwitch: (typeof import("element-plus/es"))["ElSwitch"];
|
|
139
|
+
const ElTable: (typeof import("element-plus/es"))["ElTable"];
|
|
140
|
+
const ElTableColumn: (typeof import("element-plus/es"))["ElTableColumn"];
|
|
141
|
+
const ElTabPane: (typeof import("element-plus/es"))["ElTabPane"];
|
|
142
|
+
const ElTabs: (typeof import("element-plus/es"))["ElTabs"];
|
|
143
|
+
const ElTag: (typeof import("element-plus/es"))["ElTag"];
|
|
144
|
+
const ElTooltip: (typeof import("element-plus/es"))["ElTooltip"];
|
|
145
|
+
const ElTransfer: (typeof import("element-plus/es"))["ElTransfer"];
|
|
146
|
+
const ElTreeSelect: (typeof import("element-plus/es"))["ElTreeSelect"];
|
|
147
|
+
const ElUpload: (typeof import("element-plus/es"))["ElUpload"];
|
|
148
|
+
const ElWatermark: (typeof import("element-plus/es"))["ElWatermark"];
|
|
149
|
+
const RouterLink: (typeof import("vue-router"))["RouterLink"];
|
|
150
|
+
const RouterView: (typeof import("vue-router"))["RouterView"];
|
|
151
|
+
}
|
package/vite.config.ts
CHANGED
|
@@ -43,6 +43,7 @@ export function defineAdminViteConfig(options: AdminViteConfigOptions = {}) {
|
|
|
43
43
|
packageRoot: coreRoot,
|
|
44
44
|
sourceRoot: coreSourceRoot
|
|
45
45
|
};
|
|
46
|
+
const dayjsLocaleDependencies = readDayjsLocaleDependencies(coreSourceRoot);
|
|
46
47
|
const modulePackages = (options.modulePackages ?? []).map(packageName => ({
|
|
47
48
|
packageName,
|
|
48
49
|
...resolvePackageSource(root, packageName)
|
|
@@ -87,6 +88,7 @@ export function defineAdminViteConfig(options: AdminViteConfigOptions = {}) {
|
|
|
87
88
|
"@liujitcn/kratos-admin-core > dayjs/plugin/localeData.js",
|
|
88
89
|
"@liujitcn/kratos-admin-core > dayjs/plugin/weekOfYear.js",
|
|
89
90
|
"@liujitcn/kratos-admin-core > dayjs/plugin/weekYear.js",
|
|
91
|
+
...dayjsLocaleDependencies,
|
|
90
92
|
"@liujitcn/kratos-admin-core > dompurify",
|
|
91
93
|
"@liujitcn/kratos-admin-core > highlight.js",
|
|
92
94
|
"@liujitcn/kratos-admin-core > md-editor-v3",
|
|
@@ -173,6 +175,16 @@ function readPackageInfo(root: string) {
|
|
|
173
175
|
return { dependencies, devDependencies, name, version };
|
|
174
176
|
}
|
|
175
177
|
|
|
178
|
+
/** 从生成的语言注册文件读取 Day.js locale 预构建入口。 */
|
|
179
|
+
function readDayjsLocaleDependencies(sourceRoot: string): string[] {
|
|
180
|
+
const generatedPath = resolve(sourceRoot, "locales/generated.ts");
|
|
181
|
+
if (!existsSync(generatedPath)) return [];
|
|
182
|
+
const generatedSource = readFileSync(generatedPath, "utf8");
|
|
183
|
+
return [...generatedSource.matchAll(/import "dayjs\/locale\/([^"]+)"/g)].map(
|
|
184
|
+
match => `@liujitcn/kratos-admin-core > dayjs/locale/${match[1]}`
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
176
188
|
/** 解析业务模块在当前宿主中的源码目录。 */
|
|
177
189
|
function resolvePackageSource(root: string, packageName: string): Pick<AdminSourcePackage, "packageRoot" | "sourceRoot"> {
|
|
178
190
|
const require = createRequire(resolve(root, "package.json"));
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/** AI 助手消息状态 */
|
|
2
|
-
export declare enum AiMessageStatus {
|
|
3
|
-
/** UNKNOWN_AMS - 未知AI助手消息状态 */
|
|
4
|
-
UNKNOWN_AMS = 0,
|
|
5
|
-
/** GENERATING_AMS - 生成中 */
|
|
6
|
-
GENERATING_AMS = 1,
|
|
7
|
-
/** SUCCESS_AMS - 成功 */
|
|
8
|
-
SUCCESS_AMS = 2,
|
|
9
|
-
/** FAILED_AMS - 失败 */
|
|
10
|
-
FAILED_AMS = 3
|
|
11
|
-
}
|
|
12
|
-
/** 终端类型 */
|
|
13
|
-
export declare enum Terminal {
|
|
14
|
-
/** UNKNOWN_TERMINAL - 未知终端 */
|
|
15
|
-
UNKNOWN_TERMINAL = 0,
|
|
16
|
-
/** TERMINAL_APP - 移动端 */
|
|
17
|
-
TERMINAL_APP = 1,
|
|
18
|
-
/** TERMINAL_ADMIN - 管理端 */
|
|
19
|
-
TERMINAL_ADMIN = 2
|
|
20
|
-
}
|
|
21
|
-
/** 系统配置位置 */
|
|
22
|
-
export declare enum BaseConfigSite {
|
|
23
|
-
UNKNOWN_BCS = 0,
|
|
24
|
-
/** SYSTEM - 系统内使用 */
|
|
25
|
-
SYSTEM = 1,
|
|
26
|
-
/** ADMIN - 管理端 */
|
|
27
|
-
ADMIN = 2,
|
|
28
|
-
/** APP - 移动端 */
|
|
29
|
-
APP = 3
|
|
30
|
-
}
|
|
31
|
-
/** 密码加密场景枚举 */
|
|
32
|
-
export declare enum PasswordCryptoScene {
|
|
33
|
-
/** UNKNOWN_PCS - 未指定密码加密场景 */
|
|
34
|
-
UNKNOWN_PCS = 0,
|
|
35
|
-
/** LOGIN - 登录密码加密场景 */
|
|
36
|
-
LOGIN = 1,
|
|
37
|
-
/** CREATE_BASE_USER - 新增后台用户密码加密场景 */
|
|
38
|
-
CREATE_BASE_USER = 2,
|
|
39
|
-
/** RESET_BASE_USER_PASSWORD - 重置后台用户密码加密场景 */
|
|
40
|
-
RESET_BASE_USER_PASSWORD = 3,
|
|
41
|
-
/** UPDATE_USER_PASSWORD - 个人修改密码加密场景 */
|
|
42
|
-
UPDATE_USER_PASSWORD = 4
|
|
43
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/** 系统配置类型 */
|
|
2
|
-
export declare enum BaseConfigType {
|
|
3
|
-
UNKNOWN_BCT = 0,
|
|
4
|
-
/** TEXT - 文本 */
|
|
5
|
-
TEXT = 1,
|
|
6
|
-
/** IMAGE - 图片 */
|
|
7
|
-
IMAGE = 2,
|
|
8
|
-
/** RICH_TEXT - 富文本 */
|
|
9
|
-
RICH_TEXT = 3,
|
|
10
|
-
/** DICT - 字典 */
|
|
11
|
-
DICT = 4,
|
|
12
|
-
/** BOOLEAN - 布尔 */
|
|
13
|
-
BOOLEAN = 5
|
|
14
|
-
}
|
|
15
|
-
/** 定时任务日志状态 */
|
|
16
|
-
export declare enum BaseJobLogStatus {
|
|
17
|
-
UNKNOWN_BJLS = 0,
|
|
18
|
-
/** SUCCESS - 成功 */
|
|
19
|
-
SUCCESS = 1,
|
|
20
|
-
/** FAIL - 失败 */
|
|
21
|
-
FAIL = 2
|
|
22
|
-
}
|
|
23
|
-
/** 菜单类型 */
|
|
24
|
-
export declare enum BaseMenuType {
|
|
25
|
-
UNKNOWN_MT = 0,
|
|
26
|
-
/** FOLDER - 目录 */
|
|
27
|
-
FOLDER = 1,
|
|
28
|
-
/** MENU - 菜单 */
|
|
29
|
-
MENU = 2,
|
|
30
|
-
/** BUTTON - 按钮 */
|
|
31
|
-
BUTTON = 3,
|
|
32
|
-
/** EXT_LINK - 外部链接 */
|
|
33
|
-
EXT_LINK = 4
|
|
34
|
-
}
|
|
35
|
-
/** 角色数据范围 */
|
|
36
|
-
export declare enum BaseRoleDataScope {
|
|
37
|
-
UNKNOWN_RDS = 0,
|
|
38
|
-
/** ALL - 全部数据 */
|
|
39
|
-
ALL = 1,
|
|
40
|
-
/** DEPT_AND_CHILDREN - 部门及子部门数据 */
|
|
41
|
-
DEPT_AND_CHILDREN = 2,
|
|
42
|
-
/** SELF_DEPT - 本部门数据 */
|
|
43
|
-
SELF_DEPT = 3,
|
|
44
|
-
/** SELF_USER - 本人数据 */
|
|
45
|
-
SELF_USER = 4
|
|
46
|
-
}
|
|
47
|
-
/** 用户性别 */
|
|
48
|
-
export declare enum BaseUserGender {
|
|
49
|
-
UNKNOWN_BUG = 0,
|
|
50
|
-
/** SECRET - 保密 */
|
|
51
|
-
SECRET = 1,
|
|
52
|
-
/** BOY - 男 */
|
|
53
|
-
BOY = 2,
|
|
54
|
-
/** GIRL - 禁用 */
|
|
55
|
-
GIRL = 3
|
|
56
|
-
}
|
|
57
|
-
/** 代码生成表状态 */
|
|
58
|
-
export declare enum CodeGenTableStatus {
|
|
59
|
-
/** UNKNOWN_CGTS - 未指定 */
|
|
60
|
-
UNKNOWN_CGTS = 0,
|
|
61
|
-
/** DRAFT_CGTS - 草稿 */
|
|
62
|
-
DRAFT_CGTS = 1,
|
|
63
|
-
/** GENERATED_CGTS - 已生成 */
|
|
64
|
-
GENERATED_CGTS = 2,
|
|
65
|
-
/** DISABLED_CGTS - 停用 */
|
|
66
|
-
DISABLED_CGTS = 3
|
|
67
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.8
|
|
4
|
-
// protoc unknown
|
|
5
|
-
// source: base/v1/enum.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
|
|
9
|
-
/** AI 助手消息状态 */
|
|
10
|
-
export enum AiMessageStatus {
|
|
11
|
-
/** UNKNOWN_AMS - 未知AI助手消息状态 */
|
|
12
|
-
UNKNOWN_AMS = 0,
|
|
13
|
-
/** GENERATING_AMS - 生成中 */
|
|
14
|
-
GENERATING_AMS = 1,
|
|
15
|
-
/** SUCCESS_AMS - 成功 */
|
|
16
|
-
SUCCESS_AMS = 2,
|
|
17
|
-
/** FAILED_AMS - 失败 */
|
|
18
|
-
FAILED_AMS = 3,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** 终端类型 */
|
|
22
|
-
export enum Terminal {
|
|
23
|
-
/** UNKNOWN_TERMINAL - 未知终端 */
|
|
24
|
-
UNKNOWN_TERMINAL = 0,
|
|
25
|
-
/** TERMINAL_APP - 移动端 */
|
|
26
|
-
TERMINAL_APP = 1,
|
|
27
|
-
/** TERMINAL_ADMIN - 管理端 */
|
|
28
|
-
TERMINAL_ADMIN = 2,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/** 系统配置位置 */
|
|
32
|
-
export enum BaseConfigSite {
|
|
33
|
-
UNKNOWN_BCS = 0,
|
|
34
|
-
/** SYSTEM - 系统内使用 */
|
|
35
|
-
SYSTEM = 1,
|
|
36
|
-
/** ADMIN - 管理端 */
|
|
37
|
-
ADMIN = 2,
|
|
38
|
-
/** APP - 移动端 */
|
|
39
|
-
APP = 3,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** 密码加密场景枚举 */
|
|
43
|
-
export enum PasswordCryptoScene {
|
|
44
|
-
/** UNKNOWN_PCS - 未指定密码加密场景 */
|
|
45
|
-
UNKNOWN_PCS = 0,
|
|
46
|
-
/** LOGIN - 登录密码加密场景 */
|
|
47
|
-
LOGIN = 1,
|
|
48
|
-
/** CREATE_BASE_USER - 新增后台用户密码加密场景 */
|
|
49
|
-
CREATE_BASE_USER = 2,
|
|
50
|
-
/** RESET_BASE_USER_PASSWORD - 重置后台用户密码加密场景 */
|
|
51
|
-
RESET_BASE_USER_PASSWORD = 3,
|
|
52
|
-
/** UPDATE_USER_PASSWORD - 个人修改密码加密场景 */
|
|
53
|
-
UPDATE_USER_PASSWORD = 4,
|
|
54
|
-
}
|