create-jnrs-template-vue 1.0.3
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/bin/create.js +148 -0
- package/bin/release.mjs +97 -0
- package/jnrs-template-vue/.env.development +13 -0
- package/jnrs-template-vue/.env.example +14 -0
- package/jnrs-template-vue/.env.production +4 -0
- package/jnrs-template-vue/README.md +40 -0
- package/jnrs-template-vue/auto-imports.d.ts +10 -0
- package/jnrs-template-vue/components.d.ts +38 -0
- package/jnrs-template-vue/dist/assets/403-55YASZLT.js +1 -0
- package/jnrs-template-vue/dist/assets/403-D-mG3HAD.css +1 -0
- package/jnrs-template-vue/dist/assets/404-BqrrbZGC.png +0 -0
- package/jnrs-template-vue/dist/assets/404-D4Vl2MWc.css +1 -0
- package/jnrs-template-vue/dist/assets/404-DVLSsp1-.js +1 -0
- package/jnrs-template-vue/dist/assets/@jnrs/core-BU1kTVoG.js +6 -0
- package/jnrs-template-vue/dist/assets/@jnrs/core-BU1kTVoG.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/@jnrs/shared-l0sNRNKZ.js +1 -0
- package/jnrs-template-vue/dist/assets/@jnrs/vue-core-l0sNRNKZ.js +1 -0
- package/jnrs-template-vue/dist/assets/BlankLayout-B-kY6Y4b.css +1 -0
- package/jnrs-template-vue/dist/assets/BlankLayout-CkiI_Nhm.js +1 -0
- package/jnrs-template-vue/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/jnrs-template-vue/dist/assets/base-CiSqh4F9.css +1 -0
- package/jnrs-template-vue/dist/assets/base-CmE9WEcf.js +5 -0
- package/jnrs-template-vue/dist/assets/baseInfo-BiTxP_UO.css +1 -0
- package/jnrs-template-vue/dist/assets/baseInfo-BiTxP_UO.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/baseInfo-CHuis_5y.js +6 -0
- package/jnrs-template-vue/dist/assets/baseInfo-CHuis_5y.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/cloneDeep-BVBQ-W19.js +1 -0
- package/jnrs-template-vue/dist/assets/el-button-5iH8Z9fP.js +3 -0
- package/jnrs-template-vue/dist/assets/el-button-5iH8Z9fP.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-button-BRDnKxwT.css +1 -0
- package/jnrs-template-vue/dist/assets/el-button-BRDnKxwT.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-form-item-BWkJzdQ_.css +1 -0
- package/jnrs-template-vue/dist/assets/el-form-item-DylvNks9.js +12 -0
- package/jnrs-template-vue/dist/assets/el-form-item-DylvNks9.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-input-D6B3r8CH.css +1 -0
- package/jnrs-template-vue/dist/assets/el-input-D6B3r8CH.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-popper-4UYDmLWx.js +1 -0
- package/jnrs-template-vue/dist/assets/el-popper-4UYDmLWx.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-popper-C41MzGWJ.css +1 -0
- package/jnrs-template-vue/dist/assets/el-tab-pane-BftfEp2_.js +1 -0
- package/jnrs-template-vue/dist/assets/el-tab-pane-BftfEp2_.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/el-tab-pane-DqZ6zn_1.css +1 -0
- package/jnrs-template-vue/dist/assets/el-tab-pane-DqZ6zn_1.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-B1cTZm95.js +1 -0
- package/jnrs-template-vue/dist/assets/index-B5XrJJDw.js +1 -0
- package/jnrs-template-vue/dist/assets/index-BGgB6KhI.js +1 -0
- package/jnrs-template-vue/dist/assets/index-BYils8Mj.css +1 -0
- package/jnrs-template-vue/dist/assets/index-BYils8Mj.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-CC-eWpht.css +1 -0
- package/jnrs-template-vue/dist/assets/index-CRcN6Pzu.js +1 -0
- package/jnrs-template-vue/dist/assets/index-CRcN6Pzu.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-CpWTb2J0.js +1 -0
- package/jnrs-template-vue/dist/assets/index-DN0EoMuW.js +1 -0
- package/jnrs-template-vue/dist/assets/index-DPbBrzRI.js +1 -0
- package/jnrs-template-vue/dist/assets/index-DebQgqfG.js +1 -0
- package/jnrs-template-vue/dist/assets/index-DebQgqfG.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-DqtQTKtP.css +1 -0
- package/jnrs-template-vue/dist/assets/index-DqtQTKtP.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-LwepFxV8.css +1 -0
- package/jnrs-template-vue/dist/assets/index-LwepFxV8.css.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-XBhlrMBC.js +7 -0
- package/jnrs-template-vue/dist/assets/index-XBhlrMBC.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/index-ZWYb22SS.js +7 -0
- package/jnrs-template-vue/dist/assets/index-ZWYb22SS.js.gz +0 -0
- package/jnrs-template-vue/dist/assets/omit-DbAcXfFA.js +1 -0
- package/jnrs-template-vue/dist/assets/securitySettings-BNnxaFkx.js +1 -0
- package/jnrs-template-vue/dist/assets/securitySettings-Nuun0dL6.css +1 -0
- package/jnrs-template-vue/dist/assets/useAvatar-DcJXzEPm.js +1 -0
- package/jnrs-template-vue/dist/favicon.ico +0 -0
- package/jnrs-template-vue/dist/index.html +15 -0
- package/jnrs-template-vue/dist/system/menu.json +61 -0
- package/jnrs-template-vue/index.html +13 -0
- package/jnrs-template-vue/node_modules/.bin/browserslist +21 -0
- package/jnrs-template-vue/node_modules/.bin/esbuild +21 -0
- package/jnrs-template-vue/node_modules/.bin/eslint +21 -0
- package/jnrs-template-vue/node_modules/.bin/jiti +21 -0
- package/jnrs-template-vue/node_modules/.bin/npm-run-all +21 -0
- package/jnrs-template-vue/node_modules/.bin/npm-run-all2 +21 -0
- package/jnrs-template-vue/node_modules/.bin/parser +21 -0
- package/jnrs-template-vue/node_modules/.bin/prettier +21 -0
- package/jnrs-template-vue/node_modules/.bin/random +21 -0
- package/jnrs-template-vue/node_modules/.bin/run-p +21 -0
- package/jnrs-template-vue/node_modules/.bin/run-s +21 -0
- package/jnrs-template-vue/node_modules/.bin/sass +21 -0
- package/jnrs-template-vue/node_modules/.bin/tsc +21 -0
- package/jnrs-template-vue/node_modules/.bin/tsserver +21 -0
- package/jnrs-template-vue/node_modules/.bin/tsx +21 -0
- package/jnrs-template-vue/node_modules/.bin/vite +21 -0
- package/jnrs-template-vue/node_modules/.bin/vue-tsc +21 -0
- package/jnrs-template-vue/node_modules/.vite/deps/@element-plus_icons-vue.js +592 -0
- package/jnrs-template-vue/node_modules/.vite/deps/@element-plus_icons-vue.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/_metadata.json +181 -0
- package/jnrs-template-vue/node_modules/.vite/deps/axios.js +2629 -0
- package/jnrs-template-vue/node_modules/.vite/deps/axios.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-4ANMNF4R.js +3 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-4ANMNF4R.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-DQS4ONBU.js +3 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-DQS4ONBU.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-G3PMV62Z.js +35 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-G3PMV62Z.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-MXDGN2HV.js +66567 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-MXDGN2HV.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-PQI3C63X.js +3 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-PQI3C63X.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-UFUR7V47.js +12728 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-UFUR7V47.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-ZPHMCC7P.js +5467 -0
- package/jnrs-template-vue/node_modules/.vite/deps/chunk-ZPHMCC7P.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus.js +1025 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es.js +1025 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_aside_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_aside_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_badge_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_badge_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_base_style_css.js +1 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_base_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_button-group_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_button-group_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_button_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_button_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_cascader_style_css.js +22 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_cascader_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_container_style_css.js +9 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_container_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_header_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_header_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_icon_style_css.js +1 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_icon_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_input_style_css.js +2 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_input_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_main_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_main_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_menu-item_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_menu-item_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_menu_style_css.js +9 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_menu_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_popover_style_css.js +6 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_popover_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_sub-menu_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_sub-menu_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_tab-pane_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_tab-pane_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_tabs_style_css.js +5 -0
- package/jnrs-template-vue/node_modules/.vite/deps/element-plus_es_components_tabs_style_css.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/package.json +3 -0
- package/jnrs-template-vue/node_modules/.vite/deps/pinia-plugin-persistedstate.js +122 -0
- package/jnrs-template-vue/node_modules/.vite/deps/pinia-plugin-persistedstate.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/pinia.js +5886 -0
- package/jnrs-template-vue/node_modules/.vite/deps/pinia.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/vue-router.js +2386 -0
- package/jnrs-template-vue/node_modules/.vite/deps/vue-router.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vite/deps/vue.js +343 -0
- package/jnrs-template-vue/node_modules/.vite/deps/vue.js.map +7 -0
- package/jnrs-template-vue/node_modules/.vue-global-types/vue_3.5_0.d.ts +136 -0
- package/jnrs-template-vue/package.json +57 -0
- package/jnrs-template-vue/public/favicon.ico +0 -0
- package/jnrs-template-vue/public/system/menu.json +61 -0
- package/jnrs-template-vue/src/App.vue +14 -0
- package/jnrs-template-vue/src/api/base/index.ts +65 -0
- package/jnrs-template-vue/src/api/common/index.ts +9 -0
- package/jnrs-template-vue/src/api/mock/index.ts +23 -0
- package/jnrs-template-vue/src/api/request.ts +37 -0
- package/jnrs-template-vue/src/api/user/index.ts +12 -0
- package/jnrs-template-vue/src/assets/images/common/403.png +0 -0
- package/jnrs-template-vue/src/assets/images/common/404.png +0 -0
- package/jnrs-template-vue/src/assets/images/common/avatar.png +0 -0
- package/jnrs-template-vue/src/assets/styles/base.css +28 -0
- package/jnrs-template-vue/src/assets/styles/main.css +1 -0
- package/jnrs-template-vue/src/composables/common/useAvatar.ts +36 -0
- package/jnrs-template-vue/src/composables/index.ts +11 -0
- package/jnrs-template-vue/src/composables/useForm.ts +9 -0
- package/jnrs-template-vue/src/composables/useModal.ts +9 -0
- package/jnrs-template-vue/src/composables/useTable.ts +35 -0
- package/jnrs-template-vue/src/composables/useUser.ts +9 -0
- package/jnrs-template-vue/src/layout/BlankLayout.vue +14 -0
- package/jnrs-template-vue/src/layout/RouterTabs.vue +147 -0
- package/jnrs-template-vue/src/layout/SideMenu.vue +140 -0
- package/jnrs-template-vue/src/layout/SideMenuItem.vue +38 -0
- package/jnrs-template-vue/src/layout/TopHeader.vue +208 -0
- package/jnrs-template-vue/src/layout/index.vue +37 -0
- package/jnrs-template-vue/src/main.ts +24 -0
- package/jnrs-template-vue/src/router/index.ts +42 -0
- package/jnrs-template-vue/src/router/routes.ts +61 -0
- package/jnrs-template-vue/src/stores/index.ts +2 -0
- package/jnrs-template-vue/src/stores/mock.ts +19 -0
- package/jnrs-template-vue/src/types/env.d.ts +12 -0
- package/jnrs-template-vue/src/types/index.ts +1 -0
- package/jnrs-template-vue/src/utils/file.ts +7 -0
- package/jnrs-template-vue/src/utils/storage.ts +7 -0
- package/jnrs-template-vue/src/utils/validate.ts +321 -0
- package/jnrs-template-vue/src/utils/validator.ts +153 -0
- package/jnrs-template-vue/src/views/common/403.vue +56 -0
- package/jnrs-template-vue/src/views/common/404.vue +56 -0
- package/jnrs-template-vue/src/views/crud/index.vue +6 -0
- package/jnrs-template-vue/src/views/home/index.vue +115 -0
- package/jnrs-template-vue/src/views/login/index.vue +61 -0
- package/jnrs-template-vue/src/views/system/mine/baseInfo.vue +137 -0
- package/jnrs-template-vue/src/views/system/mine/index.vue +83 -0
- package/jnrs-template-vue/src/views/system/mine/securitySettings.vue +114 -0
- package/jnrs-template-vue/src/views/system/role/index.vue +9 -0
- package/jnrs-template-vue/src/views/system/user/index.vue +9 -0
- package/jnrs-template-vue/src/views/visual/index.vue +23 -0
- package/jnrs-template-vue/tsconfig.json +24 -0
- package/jnrs-template-vue/vite.config.ts +72 -0
- package/jnrs-template-vue/viteMockServe/index.ts +53 -0
- package/jnrs-template-vue/viteMockServe/login.json +712 -0
- package/package.json +38 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseTransition,
|
|
3
|
+
BaseTransitionPropsValidators,
|
|
4
|
+
Comment,
|
|
5
|
+
DeprecationTypes,
|
|
6
|
+
EffectScope,
|
|
7
|
+
ErrorCodes,
|
|
8
|
+
ErrorTypeStrings,
|
|
9
|
+
Fragment,
|
|
10
|
+
KeepAlive,
|
|
11
|
+
ReactiveEffect,
|
|
12
|
+
Static,
|
|
13
|
+
Suspense,
|
|
14
|
+
Teleport,
|
|
15
|
+
Text,
|
|
16
|
+
TrackOpTypes,
|
|
17
|
+
Transition,
|
|
18
|
+
TransitionGroup,
|
|
19
|
+
TriggerOpTypes,
|
|
20
|
+
VueElement,
|
|
21
|
+
assertNumber,
|
|
22
|
+
callWithAsyncErrorHandling,
|
|
23
|
+
callWithErrorHandling,
|
|
24
|
+
camelize,
|
|
25
|
+
capitalize,
|
|
26
|
+
cloneVNode,
|
|
27
|
+
compatUtils,
|
|
28
|
+
compile,
|
|
29
|
+
computed,
|
|
30
|
+
createApp,
|
|
31
|
+
createBaseVNode,
|
|
32
|
+
createBlock,
|
|
33
|
+
createCommentVNode,
|
|
34
|
+
createElementBlock,
|
|
35
|
+
createHydrationRenderer,
|
|
36
|
+
createPropsRestProxy,
|
|
37
|
+
createRenderer,
|
|
38
|
+
createSSRApp,
|
|
39
|
+
createSlots,
|
|
40
|
+
createStaticVNode,
|
|
41
|
+
createTextVNode,
|
|
42
|
+
createVNode,
|
|
43
|
+
customRef,
|
|
44
|
+
defineAsyncComponent,
|
|
45
|
+
defineComponent,
|
|
46
|
+
defineCustomElement,
|
|
47
|
+
defineEmits,
|
|
48
|
+
defineExpose,
|
|
49
|
+
defineModel,
|
|
50
|
+
defineOptions,
|
|
51
|
+
defineProps,
|
|
52
|
+
defineSSRCustomElement,
|
|
53
|
+
defineSlots,
|
|
54
|
+
devtools,
|
|
55
|
+
effect,
|
|
56
|
+
effectScope,
|
|
57
|
+
getCurrentInstance,
|
|
58
|
+
getCurrentScope,
|
|
59
|
+
getCurrentWatcher,
|
|
60
|
+
getTransitionRawChildren,
|
|
61
|
+
guardReactiveProps,
|
|
62
|
+
h,
|
|
63
|
+
handleError,
|
|
64
|
+
hasInjectionContext,
|
|
65
|
+
hydrate,
|
|
66
|
+
hydrateOnIdle,
|
|
67
|
+
hydrateOnInteraction,
|
|
68
|
+
hydrateOnMediaQuery,
|
|
69
|
+
hydrateOnVisible,
|
|
70
|
+
initCustomFormatter,
|
|
71
|
+
initDirectivesForSSR,
|
|
72
|
+
inject,
|
|
73
|
+
isMemoSame,
|
|
74
|
+
isProxy,
|
|
75
|
+
isReactive,
|
|
76
|
+
isReadonly,
|
|
77
|
+
isRef,
|
|
78
|
+
isRuntimeOnly,
|
|
79
|
+
isShallow,
|
|
80
|
+
isVNode,
|
|
81
|
+
markRaw,
|
|
82
|
+
mergeDefaults,
|
|
83
|
+
mergeModels,
|
|
84
|
+
mergeProps,
|
|
85
|
+
nextTick,
|
|
86
|
+
normalizeClass,
|
|
87
|
+
normalizeProps,
|
|
88
|
+
normalizeStyle,
|
|
89
|
+
onActivated,
|
|
90
|
+
onBeforeMount,
|
|
91
|
+
onBeforeUnmount,
|
|
92
|
+
onBeforeUpdate,
|
|
93
|
+
onDeactivated,
|
|
94
|
+
onErrorCaptured,
|
|
95
|
+
onMounted,
|
|
96
|
+
onRenderTracked,
|
|
97
|
+
onRenderTriggered,
|
|
98
|
+
onScopeDispose,
|
|
99
|
+
onServerPrefetch,
|
|
100
|
+
onUnmounted,
|
|
101
|
+
onUpdated,
|
|
102
|
+
onWatcherCleanup,
|
|
103
|
+
openBlock,
|
|
104
|
+
popScopeId,
|
|
105
|
+
provide,
|
|
106
|
+
proxyRefs,
|
|
107
|
+
pushScopeId,
|
|
108
|
+
queuePostFlushCb,
|
|
109
|
+
reactive,
|
|
110
|
+
readonly,
|
|
111
|
+
ref,
|
|
112
|
+
registerRuntimeCompiler,
|
|
113
|
+
render,
|
|
114
|
+
renderList,
|
|
115
|
+
renderSlot,
|
|
116
|
+
resolveComponent,
|
|
117
|
+
resolveDirective,
|
|
118
|
+
resolveDynamicComponent,
|
|
119
|
+
resolveFilter,
|
|
120
|
+
resolveTransitionHooks,
|
|
121
|
+
setBlockTracking,
|
|
122
|
+
setDevtoolsHook,
|
|
123
|
+
setTransitionHooks,
|
|
124
|
+
shallowReactive,
|
|
125
|
+
shallowReadonly,
|
|
126
|
+
shallowRef,
|
|
127
|
+
ssrContextKey,
|
|
128
|
+
ssrUtils,
|
|
129
|
+
stop,
|
|
130
|
+
toDisplayString,
|
|
131
|
+
toHandlerKey,
|
|
132
|
+
toHandlers,
|
|
133
|
+
toRaw,
|
|
134
|
+
toRef,
|
|
135
|
+
toRefs,
|
|
136
|
+
toValue,
|
|
137
|
+
transformVNodeArgs,
|
|
138
|
+
triggerRef,
|
|
139
|
+
unref,
|
|
140
|
+
useAttrs,
|
|
141
|
+
useCssModule,
|
|
142
|
+
useCssVars,
|
|
143
|
+
useHost,
|
|
144
|
+
useId,
|
|
145
|
+
useModel,
|
|
146
|
+
useSSRContext,
|
|
147
|
+
useShadowRoot,
|
|
148
|
+
useSlots,
|
|
149
|
+
useTemplateRef,
|
|
150
|
+
useTransitionState,
|
|
151
|
+
vModelCheckbox,
|
|
152
|
+
vModelDynamic,
|
|
153
|
+
vModelRadio,
|
|
154
|
+
vModelSelect,
|
|
155
|
+
vModelText,
|
|
156
|
+
vShow,
|
|
157
|
+
version,
|
|
158
|
+
warn,
|
|
159
|
+
watch,
|
|
160
|
+
watchEffect,
|
|
161
|
+
watchPostEffect,
|
|
162
|
+
watchSyncEffect,
|
|
163
|
+
withAsyncContext,
|
|
164
|
+
withCtx,
|
|
165
|
+
withDefaults,
|
|
166
|
+
withDirectives,
|
|
167
|
+
withKeys,
|
|
168
|
+
withMemo,
|
|
169
|
+
withModifiers,
|
|
170
|
+
withScopeId
|
|
171
|
+
} from "./chunk-UFUR7V47.js";
|
|
172
|
+
import "./chunk-G3PMV62Z.js";
|
|
173
|
+
export {
|
|
174
|
+
BaseTransition,
|
|
175
|
+
BaseTransitionPropsValidators,
|
|
176
|
+
Comment,
|
|
177
|
+
DeprecationTypes,
|
|
178
|
+
EffectScope,
|
|
179
|
+
ErrorCodes,
|
|
180
|
+
ErrorTypeStrings,
|
|
181
|
+
Fragment,
|
|
182
|
+
KeepAlive,
|
|
183
|
+
ReactiveEffect,
|
|
184
|
+
Static,
|
|
185
|
+
Suspense,
|
|
186
|
+
Teleport,
|
|
187
|
+
Text,
|
|
188
|
+
TrackOpTypes,
|
|
189
|
+
Transition,
|
|
190
|
+
TransitionGroup,
|
|
191
|
+
TriggerOpTypes,
|
|
192
|
+
VueElement,
|
|
193
|
+
assertNumber,
|
|
194
|
+
callWithAsyncErrorHandling,
|
|
195
|
+
callWithErrorHandling,
|
|
196
|
+
camelize,
|
|
197
|
+
capitalize,
|
|
198
|
+
cloneVNode,
|
|
199
|
+
compatUtils,
|
|
200
|
+
compile,
|
|
201
|
+
computed,
|
|
202
|
+
createApp,
|
|
203
|
+
createBlock,
|
|
204
|
+
createCommentVNode,
|
|
205
|
+
createElementBlock,
|
|
206
|
+
createBaseVNode as createElementVNode,
|
|
207
|
+
createHydrationRenderer,
|
|
208
|
+
createPropsRestProxy,
|
|
209
|
+
createRenderer,
|
|
210
|
+
createSSRApp,
|
|
211
|
+
createSlots,
|
|
212
|
+
createStaticVNode,
|
|
213
|
+
createTextVNode,
|
|
214
|
+
createVNode,
|
|
215
|
+
customRef,
|
|
216
|
+
defineAsyncComponent,
|
|
217
|
+
defineComponent,
|
|
218
|
+
defineCustomElement,
|
|
219
|
+
defineEmits,
|
|
220
|
+
defineExpose,
|
|
221
|
+
defineModel,
|
|
222
|
+
defineOptions,
|
|
223
|
+
defineProps,
|
|
224
|
+
defineSSRCustomElement,
|
|
225
|
+
defineSlots,
|
|
226
|
+
devtools,
|
|
227
|
+
effect,
|
|
228
|
+
effectScope,
|
|
229
|
+
getCurrentInstance,
|
|
230
|
+
getCurrentScope,
|
|
231
|
+
getCurrentWatcher,
|
|
232
|
+
getTransitionRawChildren,
|
|
233
|
+
guardReactiveProps,
|
|
234
|
+
h,
|
|
235
|
+
handleError,
|
|
236
|
+
hasInjectionContext,
|
|
237
|
+
hydrate,
|
|
238
|
+
hydrateOnIdle,
|
|
239
|
+
hydrateOnInteraction,
|
|
240
|
+
hydrateOnMediaQuery,
|
|
241
|
+
hydrateOnVisible,
|
|
242
|
+
initCustomFormatter,
|
|
243
|
+
initDirectivesForSSR,
|
|
244
|
+
inject,
|
|
245
|
+
isMemoSame,
|
|
246
|
+
isProxy,
|
|
247
|
+
isReactive,
|
|
248
|
+
isReadonly,
|
|
249
|
+
isRef,
|
|
250
|
+
isRuntimeOnly,
|
|
251
|
+
isShallow,
|
|
252
|
+
isVNode,
|
|
253
|
+
markRaw,
|
|
254
|
+
mergeDefaults,
|
|
255
|
+
mergeModels,
|
|
256
|
+
mergeProps,
|
|
257
|
+
nextTick,
|
|
258
|
+
normalizeClass,
|
|
259
|
+
normalizeProps,
|
|
260
|
+
normalizeStyle,
|
|
261
|
+
onActivated,
|
|
262
|
+
onBeforeMount,
|
|
263
|
+
onBeforeUnmount,
|
|
264
|
+
onBeforeUpdate,
|
|
265
|
+
onDeactivated,
|
|
266
|
+
onErrorCaptured,
|
|
267
|
+
onMounted,
|
|
268
|
+
onRenderTracked,
|
|
269
|
+
onRenderTriggered,
|
|
270
|
+
onScopeDispose,
|
|
271
|
+
onServerPrefetch,
|
|
272
|
+
onUnmounted,
|
|
273
|
+
onUpdated,
|
|
274
|
+
onWatcherCleanup,
|
|
275
|
+
openBlock,
|
|
276
|
+
popScopeId,
|
|
277
|
+
provide,
|
|
278
|
+
proxyRefs,
|
|
279
|
+
pushScopeId,
|
|
280
|
+
queuePostFlushCb,
|
|
281
|
+
reactive,
|
|
282
|
+
readonly,
|
|
283
|
+
ref,
|
|
284
|
+
registerRuntimeCompiler,
|
|
285
|
+
render,
|
|
286
|
+
renderList,
|
|
287
|
+
renderSlot,
|
|
288
|
+
resolveComponent,
|
|
289
|
+
resolveDirective,
|
|
290
|
+
resolveDynamicComponent,
|
|
291
|
+
resolveFilter,
|
|
292
|
+
resolveTransitionHooks,
|
|
293
|
+
setBlockTracking,
|
|
294
|
+
setDevtoolsHook,
|
|
295
|
+
setTransitionHooks,
|
|
296
|
+
shallowReactive,
|
|
297
|
+
shallowReadonly,
|
|
298
|
+
shallowRef,
|
|
299
|
+
ssrContextKey,
|
|
300
|
+
ssrUtils,
|
|
301
|
+
stop,
|
|
302
|
+
toDisplayString,
|
|
303
|
+
toHandlerKey,
|
|
304
|
+
toHandlers,
|
|
305
|
+
toRaw,
|
|
306
|
+
toRef,
|
|
307
|
+
toRefs,
|
|
308
|
+
toValue,
|
|
309
|
+
transformVNodeArgs,
|
|
310
|
+
triggerRef,
|
|
311
|
+
unref,
|
|
312
|
+
useAttrs,
|
|
313
|
+
useCssModule,
|
|
314
|
+
useCssVars,
|
|
315
|
+
useHost,
|
|
316
|
+
useId,
|
|
317
|
+
useModel,
|
|
318
|
+
useSSRContext,
|
|
319
|
+
useShadowRoot,
|
|
320
|
+
useSlots,
|
|
321
|
+
useTemplateRef,
|
|
322
|
+
useTransitionState,
|
|
323
|
+
vModelCheckbox,
|
|
324
|
+
vModelDynamic,
|
|
325
|
+
vModelRadio,
|
|
326
|
+
vModelSelect,
|
|
327
|
+
vModelText,
|
|
328
|
+
vShow,
|
|
329
|
+
version,
|
|
330
|
+
warn,
|
|
331
|
+
watch,
|
|
332
|
+
watchEffect,
|
|
333
|
+
watchPostEffect,
|
|
334
|
+
watchSyncEffect,
|
|
335
|
+
withAsyncContext,
|
|
336
|
+
withCtx,
|
|
337
|
+
withDefaults,
|
|
338
|
+
withDirectives,
|
|
339
|
+
withKeys,
|
|
340
|
+
withMemo,
|
|
341
|
+
withModifiers,
|
|
342
|
+
withScopeId
|
|
343
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
export {};
|
|
3
|
+
|
|
4
|
+
; declare global {
|
|
5
|
+
const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any };
|
|
6
|
+
const __VLS_unref: typeof import('vue').unref;
|
|
7
|
+
const __VLS_placeholder: any;
|
|
8
|
+
const __VLS_intrinsics: import('vue/jsx-runtime').JSX.IntrinsicElements;
|
|
9
|
+
|
|
10
|
+
type __VLS_Elements = __VLS_SpreadMerge<SVGElementTagNameMap, HTMLElementTagNameMap>;
|
|
11
|
+
type __VLS_GlobalComponents = import('vue').GlobalComponents;
|
|
12
|
+
type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
|
|
13
|
+
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
|
|
14
|
+
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
|
|
15
|
+
type __VLS_SpreadMerge<A, B> = Omit<A, keyof B> & B;
|
|
16
|
+
type __VLS_WithComponent<N0 extends string, LocalComponents, Self, N1 extends string, N2 extends string, N3 extends string> =
|
|
17
|
+
N1 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N1] } :
|
|
18
|
+
N2 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N2] } :
|
|
19
|
+
N3 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N3] } :
|
|
20
|
+
Self extends object ? { [K in N0]: Self } :
|
|
21
|
+
N1 extends keyof __VLS_GlobalComponents ? { [K in N0]: __VLS_GlobalComponents[N1] } :
|
|
22
|
+
N2 extends keyof __VLS_GlobalComponents ? { [K in N0]: __VLS_GlobalComponents[N2] } :
|
|
23
|
+
N3 extends keyof __VLS_GlobalComponents ? { [K in N0]: __VLS_GlobalComponents[N3] } :
|
|
24
|
+
{};
|
|
25
|
+
type __VLS_FunctionalComponentCtx<T, K> = __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}>
|
|
26
|
+
? K extends { __ctx?: infer Ctx } ? NonNullable<Ctx> : never : any
|
|
27
|
+
, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any
|
|
28
|
+
>;
|
|
29
|
+
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}>
|
|
30
|
+
? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never
|
|
31
|
+
: T extends (props: infer P, ...args: any) => any ? P
|
|
32
|
+
: {};
|
|
33
|
+
type __VLS_FunctionalComponent<T> = (props: (T extends { $props: infer Props } ? Props : {}) & Record<string, unknown>, ctx?: any) => import('vue/jsx-runtime').JSX.Element & {
|
|
34
|
+
__ctx?: {
|
|
35
|
+
attrs?: any;
|
|
36
|
+
slots?: T extends { $slots: infer Slots } ? Slots : Record<string, any>;
|
|
37
|
+
emit?: T extends { $emit: infer Emit } ? Emit : {};
|
|
38
|
+
props?: (T extends { $props: infer Props } ? Props : {}) & Record<string, unknown>;
|
|
39
|
+
expose?: (exposed: T) => void;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_IsFunction<T, K> = K extends keyof T
|
|
43
|
+
? __VLS_IsAny<T[K]> extends false
|
|
44
|
+
? unknown extends T[K]
|
|
45
|
+
? false
|
|
46
|
+
: true
|
|
47
|
+
: false
|
|
48
|
+
: false;
|
|
49
|
+
type __VLS_NormalizeComponentEvent<
|
|
50
|
+
Props,
|
|
51
|
+
Emits,
|
|
52
|
+
onEvent extends keyof Props,
|
|
53
|
+
Event extends keyof Emits,
|
|
54
|
+
CamelizedEvent extends keyof Emits,
|
|
55
|
+
> = __VLS_IsFunction<Props, onEvent> extends true
|
|
56
|
+
? Props
|
|
57
|
+
: __VLS_IsFunction<Emits, Event> extends true
|
|
58
|
+
? { [K in onEvent]?: Emits[Event] }
|
|
59
|
+
: __VLS_IsFunction<Emits, CamelizedEvent> extends true
|
|
60
|
+
? { [K in onEvent]?: Emits[CamelizedEvent] }
|
|
61
|
+
: Props;
|
|
62
|
+
// fix https://github.com/vuejs/language-tools/issues/926
|
|
63
|
+
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
|
|
64
|
+
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
|
|
65
|
+
? U extends T
|
|
66
|
+
? never
|
|
67
|
+
: __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R)
|
|
68
|
+
: never;
|
|
69
|
+
type __VLS_OverloadUnion<T> = Exclude<
|
|
70
|
+
__VLS_OverloadUnionInner<(() => never) & T>,
|
|
71
|
+
T extends () => never ? never : () => never
|
|
72
|
+
>;
|
|
73
|
+
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
|
|
74
|
+
? F extends (event: infer E, ...args: infer A) => any
|
|
75
|
+
? { [K in E & string]: (...args: A) => void; }
|
|
76
|
+
: never
|
|
77
|
+
: never;
|
|
78
|
+
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<
|
|
79
|
+
__VLS_UnionToIntersection<
|
|
80
|
+
__VLS_ConstructorOverloads<T> & {
|
|
81
|
+
[K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never
|
|
82
|
+
}
|
|
83
|
+
>
|
|
84
|
+
>;
|
|
85
|
+
type __VLS_EmitsToProps<T> = __VLS_PrettifyGlobal<{
|
|
86
|
+
[K in string & keyof T as `on${Capitalize<K>}`]?:
|
|
87
|
+
(...args: T[K] extends (...args: infer P) => any ? P : T[K] extends null ? any[] : never) => any;
|
|
88
|
+
}>;
|
|
89
|
+
type __VLS_ResolveEmits<
|
|
90
|
+
Comp,
|
|
91
|
+
Emits,
|
|
92
|
+
TypeEmits = {},
|
|
93
|
+
NormalizedEmits = __VLS_NormalizeEmits<Emits> extends infer E ? string extends keyof E ? {} : E : never,
|
|
94
|
+
> = __VLS_SpreadMerge<NormalizedEmits, TypeEmits>;
|
|
95
|
+
type __VLS_ResolveDirectives<T> = {
|
|
96
|
+
[K in keyof T & string as `v${Capitalize<K>}`]: T[K];
|
|
97
|
+
};
|
|
98
|
+
type __VLS_PrettifyGlobal<T> = { [K in keyof T as K]: T[K]; } & {};
|
|
99
|
+
type __VLS_WithDefaultsGlobal<P, D> = {
|
|
100
|
+
[K in keyof P as K extends keyof D ? K : never]-?: P[K];
|
|
101
|
+
} & {
|
|
102
|
+
[K in keyof P as K extends keyof D ? never : K]: P[K];
|
|
103
|
+
};
|
|
104
|
+
type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
|
|
105
|
+
type __VLS_ProxyRefs<T> = import('vue').ShallowUnwrapRef<T>;
|
|
106
|
+
|
|
107
|
+
function __VLS_getVForSourceType<T extends number | string | any[] | Iterable<any>>(source: T): [
|
|
108
|
+
item: T extends number ? number
|
|
109
|
+
: T extends string ? string
|
|
110
|
+
: T extends any[] ? T[number]
|
|
111
|
+
: T extends Iterable<infer T1> ? T1
|
|
112
|
+
: any,
|
|
113
|
+
index: number,
|
|
114
|
+
][];
|
|
115
|
+
function __VLS_getVForSourceType<T>(source: T): [
|
|
116
|
+
item: T[keyof T],
|
|
117
|
+
key: keyof T,
|
|
118
|
+
index: number,
|
|
119
|
+
][];
|
|
120
|
+
function __VLS_getSlotParameters<S, D extends S>(slot: S, decl?: D):
|
|
121
|
+
D extends (...args: infer P) => any ? P : any[];
|
|
122
|
+
function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective
|
|
123
|
+
? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>
|
|
124
|
+
: T extends (...args: any) => any
|
|
125
|
+
? T
|
|
126
|
+
: (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
|
|
127
|
+
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
|
|
128
|
+
T extends new (...args: any) => any ? __VLS_FunctionalComponent<K>
|
|
129
|
+
: T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
|
|
130
|
+
: T extends (...args: any) => any ? T
|
|
131
|
+
: __VLS_FunctionalComponent<{}>;
|
|
132
|
+
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
|
|
133
|
+
function __VLS_asFunctionalElement<T>(tag: T, endTag?: T): (attrs: T & Record<string, unknown>) => void;
|
|
134
|
+
function __VLS_asFunctionalSlot<S>(slot: S): S extends () => infer R ? (props: {}) => R : NonNullable<S>;
|
|
135
|
+
function __VLS_tryAsConstant<const T>(t: T): T;
|
|
136
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-jnrs-template-vue",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "As the name suggests.",
|
|
5
|
+
"author": "Talia-Tan",
|
|
6
|
+
"private": true,
|
|
7
|
+
"type": "module",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"create-jnrs-template-vue": "create.js"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "run-p type-check \"build-only {@}\" --",
|
|
17
|
+
"build-only": "vite build",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"type-check": "vue-tsc --build",
|
|
20
|
+
"lint": "eslint . --fix",
|
|
21
|
+
"format": "prettier --write src/"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@jnrs/shared": "workspace:*",
|
|
25
|
+
"@jnrs/core": "workspace:*",
|
|
26
|
+
"@jnrs/vue-core": "workspace:*",
|
|
27
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
28
|
+
"async-validator": "^4.2.5",
|
|
29
|
+
"element-plus": "^2.11.4",
|
|
30
|
+
"pinia": "^3.0.3",
|
|
31
|
+
"pinia-plugin-persistedstate": "^4.5.0",
|
|
32
|
+
"vue": "^3.5.22"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@tsconfig/node22": "^22.0.2",
|
|
36
|
+
"@types/node": "^22.18.6",
|
|
37
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
38
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
39
|
+
"@vue/eslint-config-prettier": "^10.2.0",
|
|
40
|
+
"@vue/eslint-config-typescript": "^14.6.0",
|
|
41
|
+
"@vue/tsconfig": "^0.8.1",
|
|
42
|
+
"eslint": "^9.33.0",
|
|
43
|
+
"eslint-plugin-vue": "~10.4.0",
|
|
44
|
+
"jiti": "^2.5.1",
|
|
45
|
+
"npm-run-all2": "^8.0.4",
|
|
46
|
+
"prettier": "3.6.2",
|
|
47
|
+
"sass-embedded": "^1.93.2",
|
|
48
|
+
"typescript": "~5.9.0",
|
|
49
|
+
"unplugin-auto-import": "^20.2.0",
|
|
50
|
+
"unplugin-vue-components": "^29.1.0",
|
|
51
|
+
"vite": "^7.1.7",
|
|
52
|
+
"vite-plugin-compression": "^0.5.1",
|
|
53
|
+
"vite-plugin-vue-devtools": "^8.0.2",
|
|
54
|
+
"vue-tsc": "^3.1.0",
|
|
55
|
+
"vite-plugin-mock": "^3.0.2"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": 0,
|
|
3
|
+
"msg": "操作成功",
|
|
4
|
+
"data": [
|
|
5
|
+
{
|
|
6
|
+
"path": "/visual",
|
|
7
|
+
"name": "Visual",
|
|
8
|
+
"meta": {
|
|
9
|
+
"title": "可视化看板",
|
|
10
|
+
"icon": "Platform",
|
|
11
|
+
"noAuth": true,
|
|
12
|
+
"global": true
|
|
13
|
+
},
|
|
14
|
+
"component": "/visual/index"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "/crud",
|
|
18
|
+
"name": "Crud",
|
|
19
|
+
"meta": {
|
|
20
|
+
"title": "测试页面",
|
|
21
|
+
"icon": "Platform"
|
|
22
|
+
},
|
|
23
|
+
"component": "/crud/index"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"meta": {
|
|
27
|
+
"title": "系统管理",
|
|
28
|
+
"icon": "Tools"
|
|
29
|
+
},
|
|
30
|
+
"children": [
|
|
31
|
+
{
|
|
32
|
+
"path": "/system/mine/index",
|
|
33
|
+
"name": "SystemMine",
|
|
34
|
+
"meta": {
|
|
35
|
+
"title": "个人中心",
|
|
36
|
+
"icon": "User"
|
|
37
|
+
},
|
|
38
|
+
"component": "/system/mine/index"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "/system/user",
|
|
42
|
+
"name": "SystemUser",
|
|
43
|
+
"meta": {
|
|
44
|
+
"title": "用户管理",
|
|
45
|
+
"icon": "User"
|
|
46
|
+
},
|
|
47
|
+
"component": "/system/user/index"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "/system/role",
|
|
51
|
+
"name": "SystemRole",
|
|
52
|
+
"meta": {
|
|
53
|
+
"title": "(redirect test)"
|
|
54
|
+
},
|
|
55
|
+
"component": "/system/role/index",
|
|
56
|
+
"redirect": "/crud"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
console.log(
|
|
3
|
+
'%cPowered by 🅹🅽🆁🆂 TECH',
|
|
4
|
+
`background: #f2f2c1;
|
|
5
|
+
color: #d15f2c;
|
|
6
|
+
font-weight: bold;
|
|
7
|
+
padding: 0 8px;
|
|
8
|
+
font-family: 'Helvetica Neue', sans-serif;`
|
|
9
|
+
)
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<router-view></router-view>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { request } from '../request'
|
|
2
|
+
import type { Dict } from '@/types'
|
|
3
|
+
import type { User } from '@/types'
|
|
4
|
+
import type { MenuItem } from '@jnrs/vue-core'
|
|
5
|
+
|
|
6
|
+
// 登录结果
|
|
7
|
+
export interface LoginResult extends User {
|
|
8
|
+
token: string
|
|
9
|
+
dict: Dict
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// 修改密码
|
|
13
|
+
interface PasswordChange {
|
|
14
|
+
userId: number
|
|
15
|
+
password: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// 菜单
|
|
19
|
+
export const MenuApi = () => {
|
|
20
|
+
return request<MenuItem[]>({
|
|
21
|
+
url: '/system/menu.json', // /public 文件夹下
|
|
22
|
+
mockUrl: '/mock/menu',
|
|
23
|
+
method: 'get'
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface LoginParams {
|
|
28
|
+
account: string
|
|
29
|
+
password: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 登录
|
|
33
|
+
export const LoginApi = (data: LoginParams): Promise<LoginResult> => {
|
|
34
|
+
return request({
|
|
35
|
+
url: '/api/auth/login',
|
|
36
|
+
method: 'post',
|
|
37
|
+
data,
|
|
38
|
+
noAuth: true
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 退出登录
|
|
43
|
+
export const LogoutApi = () => {
|
|
44
|
+
return request({
|
|
45
|
+
url: '/api/auth/logout',
|
|
46
|
+
method: 'get'
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 获取用户信息
|
|
51
|
+
export const UserInfoApi = () => {
|
|
52
|
+
return request({
|
|
53
|
+
url: '/api/auth/user-info',
|
|
54
|
+
method: 'get'
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//修改密码
|
|
59
|
+
export const PasswordChangeApi = (data: PasswordChange) => {
|
|
60
|
+
return request({
|
|
61
|
+
url: '/api/auth/change-password',
|
|
62
|
+
method: 'post',
|
|
63
|
+
data
|
|
64
|
+
})
|
|
65
|
+
}
|