create-young-proj 0.10.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/dist/index.mjs +9 -9
  2. package/package.json +1 -1
  3. package/template-nuxt-admin/README.md +42 -1
  4. package/template-nuxt-admin/components/layout/Main.vue +2 -2
  5. package/template-nuxt-admin/components/layout/NavBar.vue +11 -2
  6. package/template-nuxt-admin/components/layout/SideBar.vue +6 -2
  7. package/template-nuxt-admin/components/layout/SubMenu.vue +9 -2
  8. package/template-nuxt-admin/components/layout/TabsBar.vue +4 -5
  9. package/template-nuxt-admin/composables/api.ts +17 -3
  10. package/template-nuxt-admin/composables/nav.ts +20 -3
  11. package/template-nuxt-admin/composables/tags.ts +29 -1
  12. package/template-nuxt-admin/middleware/auth.global.ts +16 -4
  13. package/template-nuxt-admin/nuxt.config.ts +5 -1
  14. package/template-nuxt-admin/pages/home/[id].vue +2 -2
  15. package/template-nuxt-admin/pages/index.vue +2 -7
  16. package/template-nuxt-admin/pages/login.vue +2 -2
  17. package/template-nuxt-admin/pages/system/menuList.vue +0 -1
  18. package/template-nuxt-admin/public/bg.webp +0 -0
  19. package/template-nuxt-admin/public/favicon.svg +2 -0
  20. package/template-nuxt-admin/public/logo.svg +2 -0
  21. package/template-nuxt-admin/server/plugins/env.ts +3 -4
  22. package/template-nuxt-admin/utils/tool.ts +17 -1
  23. package/template-nuxt-admin/public/favicon.ico +0 -0
  24. package/template-vue-admin/.vscode/extensions.json +0 -10
  25. package/template-vue-admin/.vscode/list-add.code-snippets +0 -108
  26. package/template-vue-admin/.vscode/list-export.code-snippets +0 -72
  27. package/template-vue-admin/.vscode/list.code-snippets +0 -61
  28. package/template-vue-admin/.vscode/settings.json +0 -7
  29. package/template-vue-admin/Dockerfile +0 -42
  30. package/template-vue-admin/README.md +0 -75
  31. package/template-vue-admin/_env +0 -8
  32. package/template-vue-admin/_gitignore +0 -30
  33. package/template-vue-admin/boot.mjs +0 -16
  34. package/template-vue-admin/build/custom-plugin.ts +0 -57
  35. package/template-vue-admin/build/index.ts +0 -7
  36. package/template-vue-admin/build/plugins.ts +0 -59
  37. package/template-vue-admin/config/.devrc +0 -2
  38. package/template-vue-admin/config/.onlinerc +0 -2
  39. package/template-vue-admin/config/.testrc +0 -2
  40. package/template-vue-admin/index.html +0 -21
  41. package/template-vue-admin/nitro.config.ts +0 -19
  42. package/template-vue-admin/package.json +0 -51
  43. package/template-vue-admin/plugins/init.ts +0 -31
  44. package/template-vue-admin/public/vite.svg +0 -1
  45. package/template-vue-admin/rome.json +0 -26
  46. package/template-vue-admin/routes/api/[...all].ts +0 -49
  47. package/template-vue-admin/routes/get/env.ts +0 -18
  48. package/template-vue-admin/src/App.vue +0 -14
  49. package/template-vue-admin/src/apis/delete.ts +0 -36
  50. package/template-vue-admin/src/apis/get.ts +0 -83
  51. package/template-vue-admin/src/apis/index.ts +0 -10
  52. package/template-vue-admin/src/apis/patch.ts +0 -78
  53. package/template-vue-admin/src/apis/post.ts +0 -76
  54. package/template-vue-admin/src/assets/img/login_background.jpg +0 -0
  55. package/template-vue-admin/src/auto-components.d.ts +0 -38
  56. package/template-vue-admin/src/auto-imports.d.ts +0 -302
  57. package/template-vue-admin/src/layouts/blank.vue +0 -9
  58. package/template-vue-admin/src/layouts/default/components/Link.vue +0 -23
  59. package/template-vue-admin/src/layouts/default/components/Logo.vue +0 -20
  60. package/template-vue-admin/src/layouts/default/components/Menu.vue +0 -54
  61. package/template-vue-admin/src/layouts/default/components/NavSearch.vue +0 -52
  62. package/template-vue-admin/src/layouts/default/components/ScrollPane.vue +0 -79
  63. package/template-vue-admin/src/layouts/default/components/TagsView.vue +0 -137
  64. package/template-vue-admin/src/layouts/default/components/TopMenu.vue +0 -21
  65. package/template-vue-admin/src/layouts/default/components/UserCenter.vue +0 -50
  66. package/template-vue-admin/src/layouts/default/index.vue +0 -95
  67. package/template-vue-admin/src/main.ts +0 -46
  68. package/template-vue-admin/src/modules/1-router.ts +0 -48
  69. package/template-vue-admin/src/modules/2-pinia.ts +0 -10
  70. package/template-vue-admin/src/modules/3-net.ts +0 -79
  71. package/template-vue-admin/src/modules/4-auth.ts +0 -124
  72. package/template-vue-admin/src/modules/5-checkupdate.ts +0 -38
  73. package/template-vue-admin/src/shims.d.ts +0 -12
  74. package/template-vue-admin/src/stores/index.ts +0 -9
  75. package/template-vue-admin/src/stores/local/index.ts +0 -31
  76. package/template-vue-admin/src/stores/session/index.ts +0 -63
  77. package/template-vue-admin/src/stores/tags.ts +0 -109
  78. package/template-vue-admin/src/typings/global.d.ts +0 -70
  79. package/template-vue-admin/src/typings/index.ts +0 -13
  80. package/template-vue-admin/src/typings/system.d.ts +0 -46
  81. package/template-vue-admin/src/views/403.vue +0 -33
  82. package/template-vue-admin/src/views/[...all_404].vue +0 -557
  83. package/template-vue-admin/src/views/base/login.vue +0 -194
  84. package/template-vue-admin/src/views/dashboard/[name].vue +0 -28
  85. package/template-vue-admin/src/views/index.vue +0 -25
  86. package/template-vue-admin/src/views/system/api.vue +0 -160
  87. package/template-vue-admin/src/views/system/hooks/useRole.ts +0 -286
  88. package/template-vue-admin/src/views/system/menuList.vue +0 -194
  89. package/template-vue-admin/src/views/system/role.vue +0 -131
  90. package/template-vue-admin/src/views/system/user.vue +0 -192
  91. package/template-vue-admin/src/vite-env.d.ts +0 -52
  92. package/template-vue-admin/tsconfig.json +0 -21
  93. package/template-vue-admin/tsconfig.node.json +0 -9
  94. package/template-vue-admin/unocss.config.ts +0 -47
  95. package/template-vue-admin/vite.config.ts +0 -32
@@ -1,302 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- // @ts-nocheck
4
- // Generated by unplugin-auto-import
5
- export {}
6
- declare global {
7
- const EffectScope: typeof import('vue')['EffectScope']
8
- const ElLoadingService: typeof import('element-plus')['ElLoadingService']
9
- const ElMessage: typeof import('element-plus')['ElMessage']
10
- const ElMessageBox: typeof import('element-plus')['ElMessageBox']
11
- const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
12
- const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
13
- const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
14
- const computed: typeof import('vue')['computed']
15
- const computedAsync: typeof import('@vueuse/core')['computedAsync']
16
- const computedEager: typeof import('@vueuse/core')['computedEager']
17
- const computedInject: typeof import('@vueuse/core')['computedInject']
18
- const computedWithControl: typeof import('@vueuse/core')['computedWithControl']
19
- const controlledComputed: typeof import('@vueuse/core')['controlledComputed']
20
- const controlledRef: typeof import('@vueuse/core')['controlledRef']
21
- const createApp: typeof import('vue')['createApp']
22
- const createEventHook: typeof import('@vueuse/core')['createEventHook']
23
- const createGlobalState: typeof import('@vueuse/core')['createGlobalState']
24
- const createInjectionState: typeof import('@vueuse/core')['createInjectionState']
25
- const createPinia: typeof import('pinia')['createPinia']
26
- const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
27
- const createReusableTemplate: typeof import('@vueuse/core')['createReusableTemplate']
28
- const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
29
- const createTemplatePromise: typeof import('@vueuse/core')['createTemplatePromise']
30
- const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']
31
- const customRef: typeof import('vue')['customRef']
32
- const debouncedRef: typeof import('@vueuse/core')['debouncedRef']
33
- const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']
34
- const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
35
- const defineComponent: typeof import('vue')['defineComponent']
36
- const defineStore: typeof import('pinia')['defineStore']
37
- const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
38
- const effectScope: typeof import('vue')['effectScope']
39
- const extendRef: typeof import('@vueuse/core')['extendRef']
40
- const getActivePinia: typeof import('pinia')['getActivePinia']
41
- const getCurrentInstance: typeof import('vue')['getCurrentInstance']
42
- const getCurrentScope: typeof import('vue')['getCurrentScope']
43
- const h: typeof import('vue')['h']
44
- const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
45
- const inject: typeof import('vue')['inject']
46
- const isDefined: typeof import('@vueuse/core')['isDefined']
47
- const isProxy: typeof import('vue')['isProxy']
48
- const isReactive: typeof import('vue')['isReactive']
49
- const isReadonly: typeof import('vue')['isReadonly']
50
- const isRef: typeof import('vue')['isRef']
51
- const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']
52
- const mapActions: typeof import('pinia')['mapActions']
53
- const mapGetters: typeof import('pinia')['mapGetters']
54
- const mapState: typeof import('pinia')['mapState']
55
- const mapStores: typeof import('pinia')['mapStores']
56
- const mapWritableState: typeof import('pinia')['mapWritableState']
57
- const markRaw: typeof import('vue')['markRaw']
58
- const nextTick: typeof import('vue')['nextTick']
59
- const onActivated: typeof import('vue')['onActivated']
60
- const onBeforeMount: typeof import('vue')['onBeforeMount']
61
- const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
62
- const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
63
- const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
64
- const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
65
- const onClickOutside: typeof import('@vueuse/core')['onClickOutside']
66
- const onDeactivated: typeof import('vue')['onDeactivated']
67
- const onErrorCaptured: typeof import('vue')['onErrorCaptured']
68
- const onKeyStroke: typeof import('@vueuse/core')['onKeyStroke']
69
- const onLongPress: typeof import('@vueuse/core')['onLongPress']
70
- const onMounted: typeof import('vue')['onMounted']
71
- const onRenderTracked: typeof import('vue')['onRenderTracked']
72
- const onRenderTriggered: typeof import('vue')['onRenderTriggered']
73
- const onScopeDispose: typeof import('vue')['onScopeDispose']
74
- const onServerPrefetch: typeof import('vue')['onServerPrefetch']
75
- const onStartTyping: typeof import('@vueuse/core')['onStartTyping']
76
- const onUnmounted: typeof import('vue')['onUnmounted']
77
- const onUpdated: typeof import('vue')['onUpdated']
78
- const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
79
- const provide: typeof import('vue')['provide']
80
- const reactify: typeof import('@vueuse/core')['reactify']
81
- const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
82
- const reactive: typeof import('vue')['reactive']
83
- const reactiveComputed: typeof import('@vueuse/core')['reactiveComputed']
84
- const reactiveOmit: typeof import('@vueuse/core')['reactiveOmit']
85
- const reactivePick: typeof import('@vueuse/core')['reactivePick']
86
- const readonly: typeof import('vue')['readonly']
87
- const ref: typeof import('vue')['ref']
88
- const refAutoReset: typeof import('@vueuse/core')['refAutoReset']
89
- const refDebounced: typeof import('@vueuse/core')['refDebounced']
90
- const refDefault: typeof import('@vueuse/core')['refDefault']
91
- const refThrottled: typeof import('@vueuse/core')['refThrottled']
92
- const refWithControl: typeof import('@vueuse/core')['refWithControl']
93
- const resolveComponent: typeof import('vue')['resolveComponent']
94
- const resolveDirective: typeof import('vue')['resolveDirective']
95
- const resolveRef: typeof import('@vueuse/core')['resolveRef']
96
- const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
97
- const setActivePinia: typeof import('pinia')['setActivePinia']
98
- const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
99
- const shallowReactive: typeof import('vue')['shallowReactive']
100
- const shallowReadonly: typeof import('vue')['shallowReadonly']
101
- const shallowRef: typeof import('vue')['shallowRef']
102
- const storeToRefs: typeof import('pinia')['storeToRefs']
103
- const syncRef: typeof import('@vueuse/core')['syncRef']
104
- const syncRefs: typeof import('@vueuse/core')['syncRefs']
105
- const templateRef: typeof import('@vueuse/core')['templateRef']
106
- const throttledRef: typeof import('@vueuse/core')['throttledRef']
107
- const throttledWatch: typeof import('@vueuse/core')['throttledWatch']
108
- const toRaw: typeof import('vue')['toRaw']
109
- const toReactive: typeof import('@vueuse/core')['toReactive']
110
- const toRef: typeof import('vue')['toRef']
111
- const toRefs: typeof import('vue')['toRefs']
112
- const triggerRef: typeof import('vue')['triggerRef']
113
- const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']
114
- const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']
115
- const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted']
116
- const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose']
117
- const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted']
118
- const unref: typeof import('vue')['unref']
119
- const unrefElement: typeof import('@vueuse/core')['unrefElement']
120
- const until: typeof import('@vueuse/core')['until']
121
- const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
122
- const useAnimate: typeof import('@vueuse/core')['useAnimate']
123
- const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference']
124
- const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery']
125
- const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
126
- const useArrayFind: typeof import('@vueuse/core')['useArrayFind']
127
- const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex']
128
- const useArrayFindLast: typeof import('@vueuse/core')['useArrayFindLast']
129
- const useArrayIncludes: typeof import('@vueuse/core')['useArrayIncludes']
130
- const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin']
131
- const useArrayMap: typeof import('@vueuse/core')['useArrayMap']
132
- const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce']
133
- const useArraySome: typeof import('@vueuse/core')['useArraySome']
134
- const useArrayUnique: typeof import('@vueuse/core')['useArrayUnique']
135
- const useAsyncQueue: typeof import('@vueuse/core')['useAsyncQueue']
136
- const useAsyncState: typeof import('@vueuse/core')['useAsyncState']
137
- const useAttrs: typeof import('vue')['useAttrs']
138
- const useBase64: typeof import('@vueuse/core')['useBase64']
139
- const useBattery: typeof import('@vueuse/core')['useBattery']
140
- const useBluetooth: typeof import('@vueuse/core')['useBluetooth']
141
- const useBreakpoints: typeof import('@vueuse/core')['useBreakpoints']
142
- const useBroadcastChannel: typeof import('@vueuse/core')['useBroadcastChannel']
143
- const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
144
- const useCached: typeof import('@vueuse/core')['useCached']
145
- const useClipboard: typeof import('@vueuse/core')['useClipboard']
146
- const useCloned: typeof import('@vueuse/core')['useCloned']
147
- const useColorMode: typeof import('@vueuse/core')['useColorMode']
148
- const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
149
- const useCounter: typeof import('@vueuse/core')['useCounter']
150
- const useCssModule: typeof import('vue')['useCssModule']
151
- const useCssVar: typeof import('@vueuse/core')['useCssVar']
152
- const useCssVars: typeof import('vue')['useCssVars']
153
- const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement']
154
- const useCycleList: typeof import('@vueuse/core')['useCycleList']
155
- const useDark: typeof import('@vueuse/core')['useDark']
156
- const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
157
- const useDebounce: typeof import('@vueuse/core')['useDebounce']
158
- const useDebounceFn: typeof import('@vueuse/core')['useDebounceFn']
159
- const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory']
160
- const useDeviceMotion: typeof import('@vueuse/core')['useDeviceMotion']
161
- const useDeviceOrientation: typeof import('@vueuse/core')['useDeviceOrientation']
162
- const useDevicePixelRatio: typeof import('@vueuse/core')['useDevicePixelRatio']
163
- const useDevicesList: typeof import('@vueuse/core')['useDevicesList']
164
- const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia']
165
- const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility']
166
- const useDraggable: typeof import('@vueuse/core')['useDraggable']
167
- const useDropZone: typeof import('@vueuse/core')['useDropZone']
168
- const useElementBounding: typeof import('@vueuse/core')['useElementBounding']
169
- const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint']
170
- const useElementHover: typeof import('@vueuse/core')['useElementHover']
171
- const useElementSize: typeof import('@vueuse/core')['useElementSize']
172
- const useElementVisibility: typeof import('@vueuse/core')['useElementVisibility']
173
- const useEventBus: typeof import('@vueuse/core')['useEventBus']
174
- const useEventListener: typeof import('@vueuse/core')['useEventListener']
175
- const useEventSource: typeof import('@vueuse/core')['useEventSource']
176
- const useEyeDropper: typeof import('@vueuse/core')['useEyeDropper']
177
- const useFavicon: typeof import('@vueuse/core')['useFavicon']
178
- const useFetch: typeof import('@vueuse/core')['useFetch']
179
- const useFileDialog: typeof import('@vueuse/core')['useFileDialog']
180
- const useFileSystemAccess: typeof import('@vueuse/core')['useFileSystemAccess']
181
- const useFocus: typeof import('@vueuse/core')['useFocus']
182
- const useFocusWithin: typeof import('@vueuse/core')['useFocusWithin']
183
- const useFps: typeof import('@vueuse/core')['useFps']
184
- const useFullscreen: typeof import('@vueuse/core')['useFullscreen']
185
- const useGamepad: typeof import('@vueuse/core')['useGamepad']
186
- const useGeolocation: typeof import('@vueuse/core')['useGeolocation']
187
- const useIdle: typeof import('@vueuse/core')['useIdle']
188
- const useImage: typeof import('@vueuse/core')['useImage']
189
- const useInfiniteScroll: typeof import('@vueuse/core')['useInfiniteScroll']
190
- const useIntersectionObserver: typeof import('@vueuse/core')['useIntersectionObserver']
191
- const useInterval: typeof import('@vueuse/core')['useInterval']
192
- const useIntervalFn: typeof import('@vueuse/core')['useIntervalFn']
193
- const useKeyModifier: typeof import('@vueuse/core')['useKeyModifier']
194
- const useLastChanged: typeof import('@vueuse/core')['useLastChanged']
195
- const useLink: typeof import('vue-router')['useLink']
196
- const useLocalStorage: typeof import('@vueuse/core')['useLocalStorage']
197
- const useMagicKeys: typeof import('@vueuse/core')['useMagicKeys']
198
- const useManualRefHistory: typeof import('@vueuse/core')['useManualRefHistory']
199
- const useMediaControls: typeof import('@vueuse/core')['useMediaControls']
200
- const useMediaQuery: typeof import('@vueuse/core')['useMediaQuery']
201
- const useMemoize: typeof import('@vueuse/core')['useMemoize']
202
- const useMemory: typeof import('@vueuse/core')['useMemory']
203
- const useMounted: typeof import('@vueuse/core')['useMounted']
204
- const useMouse: typeof import('@vueuse/core')['useMouse']
205
- const useMouseInElement: typeof import('@vueuse/core')['useMouseInElement']
206
- const useMousePressed: typeof import('@vueuse/core')['useMousePressed']
207
- const useMutationObserver: typeof import('@vueuse/core')['useMutationObserver']
208
- const useNavigatorLanguage: typeof import('@vueuse/core')['useNavigatorLanguage']
209
- const useNetwork: typeof import('@vueuse/core')['useNetwork']
210
- const useNow: typeof import('@vueuse/core')['useNow']
211
- const useObjectUrl: typeof import('@vueuse/core')['useObjectUrl']
212
- const useOffsetPagination: typeof import('@vueuse/core')['useOffsetPagination']
213
- const useOnline: typeof import('@vueuse/core')['useOnline']
214
- const usePageLeave: typeof import('@vueuse/core')['usePageLeave']
215
- const useParallax: typeof import('@vueuse/core')['useParallax']
216
- const useParentElement: typeof import('@vueuse/core')['useParentElement']
217
- const usePerformanceObserver: typeof import('@vueuse/core')['usePerformanceObserver']
218
- const usePermission: typeof import('@vueuse/core')['usePermission']
219
- const usePointer: typeof import('@vueuse/core')['usePointer']
220
- const usePointerLock: typeof import('@vueuse/core')['usePointerLock']
221
- const usePointerSwipe: typeof import('@vueuse/core')['usePointerSwipe']
222
- const usePreferredColorScheme: typeof import('@vueuse/core')['usePreferredColorScheme']
223
- const usePreferredContrast: typeof import('@vueuse/core')['usePreferredContrast']
224
- const usePreferredDark: typeof import('@vueuse/core')['usePreferredDark']
225
- const usePreferredLanguages: typeof import('@vueuse/core')['usePreferredLanguages']
226
- const usePreferredReducedMotion: typeof import('@vueuse/core')['usePreferredReducedMotion']
227
- const usePrevious: typeof import('@vueuse/core')['usePrevious']
228
- const useRafFn: typeof import('@vueuse/core')['useRafFn']
229
- const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
230
- const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
231
- const useRoute: typeof import('vue-router')['useRoute']
232
- const useRouter: typeof import('vue-router')['useRouter']
233
- const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
234
- const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
235
- const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
236
- const useScroll: typeof import('@vueuse/core')['useScroll']
237
- const useScrollLock: typeof import('@vueuse/core')['useScrollLock']
238
- const useSessionStorage: typeof import('@vueuse/core')['useSessionStorage']
239
- const useShare: typeof import('@vueuse/core')['useShare']
240
- const useSlots: typeof import('vue')['useSlots']
241
- const useSorted: typeof import('@vueuse/core')['useSorted']
242
- const useSpeechRecognition: typeof import('@vueuse/core')['useSpeechRecognition']
243
- const useSpeechSynthesis: typeof import('@vueuse/core')['useSpeechSynthesis']
244
- const useStepper: typeof import('@vueuse/core')['useStepper']
245
- const useStorage: typeof import('@vueuse/core')['useStorage']
246
- const useStorageAsync: typeof import('@vueuse/core')['useStorageAsync']
247
- const useStyleTag: typeof import('@vueuse/core')['useStyleTag']
248
- const useSupported: typeof import('@vueuse/core')['useSupported']
249
- const useSwipe: typeof import('@vueuse/core')['useSwipe']
250
- const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
251
- const useTextDirection: typeof import('@vueuse/core')['useTextDirection']
252
- const useTextSelection: typeof import('@vueuse/core')['useTextSelection']
253
- const useTextareaAutosize: typeof import('@vueuse/core')['useTextareaAutosize']
254
- const useThrottle: typeof import('@vueuse/core')['useThrottle']
255
- const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn']
256
- const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']
257
- const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo']
258
- const useTimeout: typeof import('@vueuse/core')['useTimeout']
259
- const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn']
260
- const useTimeoutPoll: typeof import('@vueuse/core')['useTimeoutPoll']
261
- const useTimestamp: typeof import('@vueuse/core')['useTimestamp']
262
- const useTitle: typeof import('@vueuse/core')['useTitle']
263
- const useToNumber: typeof import('@vueuse/core')['useToNumber']
264
- const useToString: typeof import('@vueuse/core')['useToString']
265
- const useToggle: typeof import('@vueuse/core')['useToggle']
266
- const useTransition: typeof import('@vueuse/core')['useTransition']
267
- const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams']
268
- const useUserMedia: typeof import('@vueuse/core')['useUserMedia']
269
- const useVModel: typeof import('@vueuse/core')['useVModel']
270
- const useVModels: typeof import('@vueuse/core')['useVModels']
271
- const useVibrate: typeof import('@vueuse/core')['useVibrate']
272
- const useVirtualList: typeof import('@vueuse/core')['useVirtualList']
273
- const useWakeLock: typeof import('@vueuse/core')['useWakeLock']
274
- const useWebNotification: typeof import('@vueuse/core')['useWebNotification']
275
- const useWebSocket: typeof import('@vueuse/core')['useWebSocket']
276
- const useWebWorker: typeof import('@vueuse/core')['useWebWorker']
277
- const useWebWorkerFn: typeof import('@vueuse/core')['useWebWorkerFn']
278
- const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus']
279
- const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll']
280
- const useWindowSize: typeof import('@vueuse/core')['useWindowSize']
281
- const watch: typeof import('vue')['watch']
282
- const watchArray: typeof import('@vueuse/core')['watchArray']
283
- const watchAtMost: typeof import('@vueuse/core')['watchAtMost']
284
- const watchDebounced: typeof import('@vueuse/core')['watchDebounced']
285
- const watchDeep: typeof import('@vueuse/core')['watchDeep']
286
- const watchEffect: typeof import('vue')['watchEffect']
287
- const watchIgnorable: typeof import('@vueuse/core')['watchIgnorable']
288
- const watchImmediate: typeof import('@vueuse/core')['watchImmediate']
289
- const watchOnce: typeof import('@vueuse/core')['watchOnce']
290
- const watchPausable: typeof import('@vueuse/core')['watchPausable']
291
- const watchPostEffect: typeof import('vue')['watchPostEffect']
292
- const watchSyncEffect: typeof import('vue')['watchSyncEffect']
293
- const watchThrottled: typeof import('@vueuse/core')['watchThrottled']
294
- const watchTriggerable: typeof import('@vueuse/core')['watchTriggerable']
295
- const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
296
- const whenever: typeof import('@vueuse/core')['whenever']
297
- }
298
- // for type re-export
299
- declare global {
300
- // @ts-ignore
301
- export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
302
- }
@@ -1,9 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2022-12-03 16:22:39
4
- * @LastEditTime: 2022-12-03 16:22:40
5
- * @Description:
6
- -->
7
- <template>
8
- <RouterView />
9
- </template>
@@ -1,23 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2022-10-25 17:32:07
4
- * @LastEditTime: 2023-01-05 16:54:27
5
- * @Description:
6
- -->
7
- <template>
8
- <a v-if="linkProps(to) === 'a'" :href="to" target="_blank" rel="noopener">
9
- <div class="flex items-center">
10
- <slot />
11
- </div>
12
- </a>
13
- <router-link v-else :to="to">
14
- <div class="flex items-center">
15
- <slot />
16
- </div>
17
- </router-link>
18
- </template>
19
- <script lang="ts" setup>
20
- import { isHttpUrl } from '@bluesyoung/utils';
21
- const props = defineProps<{ to: string }>();
22
- const linkProps = (url: string) => isHttpUrl(url) ? 'a' : 'router-link';
23
- </script>
@@ -1,20 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2020-12-10 14:10:09
4
- * @LastEditTime: 2023-01-05 16:06:32
5
- * @Description: 侧边栏 logo 组件
6
- -->
7
- <template>
8
- <RouterLink v-if="isCollapse" key="collapse" class="sidebar-logo-link" to="/">
9
- <div class="i-dashicons-admin-home sidebar-logo-hide text-white" />
10
- </RouterLink>
11
- <RouterLink v-else key="expand" class="sidebar-logo-link" to="/">
12
- <div class="w-full text-center">{{ title }}</div>
13
- <code
14
- class="text-sm bg-gradient-to-r from-green-300 via-blue-500 to-purple-600 bg-clip-text text-transparent font-900 animate-pulse">Ctrl + K 呼出快捷菜单</code>
15
- </RouterLink>
16
- </template>
17
- <script lang="ts" setup>
18
- import { isCollapse } from '@/stores';
19
- const title = window.__YOUNG_VITE_ENV__.VITE_TITLE ?? '小黑后台';
20
- </script>
@@ -1,54 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2022-10-26 09:24:29
4
- * @LastEditTime: 2023-01-06 16:42:20
5
- * @Description:
6
- -->
7
- <script lang="ts" setup>
8
- import { useNavStore } from '@/stores';
9
- import Link from './Link.vue';
10
- const { NavArr } = useNavStore();
11
- const activeIndex = ref('0');
12
- const haldleSelected = (index: string) => {
13
- activeIndex.value = index;
14
- };
15
- </script>
16
- <template>
17
- <ElMenu :default-active="activeIndex" background-color="rgb(48, 65, 86)" text-color="#fff" mode="vertical"
18
- style="border-right: none;" router @select="haldleSelected">
19
- <div v-for="(nav, index) in NavArr" :key="index + 'adskjgkjer'">
20
- <ElSubMenu v-if="NavArr[index]?.children?.filter((n) => +n.visible === 1).length"
21
- :index="index + 'adskjgkjer' + nav.component">
22
- <template #title>
23
- <Link v-if="nav.component" :to="nav.component">
24
- <span class="ml-1">{{ nav.title }}</span>
25
- </Link>
26
- <span v-else class="ml-1">{{ nav.title }}</span>
27
- </template>
28
- <ElMenuItemGroup>
29
- <ElMenuItem style="padding: 0;" v-for="(sub, idx) in NavArr[index].children?.filter((n) => +n.visible === 1)"
30
- :key="index + '-' + idx + 'fdjahsuy'" :index="sub.component" :route="sub.component">
31
- <template #title>
32
- <Link class="block w-full text-left box-border pl-[40px] pr-[20px]" :to="sub.component">
33
- <span class="ml-1">{{ sub.title }}</span>
34
- </Link>
35
- </template>
36
- </ElMenuItem>
37
- </ElMenuItemGroup>
38
- </ElSubMenu>
39
- <ElMenuItem v-else :index="nav.component">
40
- <template #title>
41
- <Link :to="nav.component">
42
- <span class="ml-1">{{ nav.title }}</span>
43
- </Link>
44
- </template>
45
- </ElMenuItem>
46
- </div>
47
- </ElMenu>
48
- </template>
49
-
50
- <style>
51
- .el-menu-item-group__title {
52
- display: none;
53
- }
54
- </style>
@@ -1,52 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2022-10-26 10:08:07
4
- * @LastEditTime: 2023-01-09 10:27:03
5
- * @Description:
6
- -->
7
- <script lang="ts" setup>
8
- import type { SelectOptionItem } from '@bluesyoung/ui-vue3-element-plus';
9
- import { YoungCmdPopup } from '@bluesyoung/ui-vue3';
10
- import { useNavStore } from '@/stores';
11
-
12
- const { FlatNavArr } = useNavStore();
13
-
14
- const options = ref<SelectOptionItem<string>[]>([]);
15
- const searchStr = ref('');
16
- const remoteMethod = (query: string) => {
17
- if (query) {
18
- options.value = FlatNavArr.value
19
- .filter((item) => +item.visible === 1 && item.title?.toLowerCase().includes(query.toLowerCase()))
20
- .map((item) => ({ label: item.title || '', value: item.component }));
21
- } else {
22
- options.value = [];
23
- }
24
- };
25
-
26
- const router = useRouter();
27
-
28
- const cmdRef = ref()
29
-
30
- const goPage = (url: string) => {
31
- if (url) {
32
- router.push(url);
33
- searchStr.value = '';
34
- cmdRef.value?.hide()
35
- }
36
- };
37
- </script>
38
- <template>
39
- <YoungCmdPopup ref="cmdRef">
40
- <template #default="{ el }">
41
- <div class="flex flex-col items-center">
42
- <div class="text-xl mb-4">
43
- 快捷菜单搜索:
44
- </div>
45
- <ElSelect :ref="el" class="w-260px" v-model="searchStr" filterable remote reserve-keyword
46
- placeholder="请输入菜单关键字,快捷键 Ctrl + K" :remote-method="remoteMethod" @change="goPage">
47
- <ElOption v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
48
- </ElSelect>
49
- </div>
50
- </template>
51
- </YoungCmdPopup>
52
- </template>
@@ -1,79 +0,0 @@
1
- <!--
2
- * @Author: zhangyang
3
- * @Date: 2020-12-11 11:02:54
4
- * @LastEditTime: 2023-01-05 16:07:55
5
- * @Description: 滚动容器
6
- -->
7
- <template>
8
- <div ref="scrollWrapper" class="max-w-[calc(90vw)] flex-nowrap whitespace-nowrap overflow-x-auto"
9
- @wheel.prevent="scrollHandler">
10
- <span>
11
- <slot />
12
- </span>
13
- </div>
14
- </template>
15
- <script lang="ts" setup>
16
- type EL = Element | null;
17
- /**
18
- * 标签间距
19
- */
20
- const tagSpacing = 4;
21
- const scrollWrapper = ref<HTMLElement>();
22
- // 滚动鼠标滚轮
23
- const scrollHandler = (e: WheelEvent) => {
24
- const eventData = e.deltaY * 40;
25
- const wrap = scrollWrapper.value;
26
- if (wrap) {
27
- wrap.scrollLeft = wrap.scrollLeft + eventData / 4;
28
- }
29
- };
30
- const moveToTarget = () => {
31
- if (scrollWrapper.value) {
32
- // 外层包裹
33
- const wrap: HTMLElement = scrollWrapper.value as any;
34
- // 容器宽度
35
- const containerWidth = 1704;
36
- // 标签列表
37
- const tagList: HTMLCollection = (wrap.firstElementChild as HTMLElement)?.children;
38
-
39
- let firstChild: EL = null, lastChild: EL = null, targetElement: EL = null;
40
- if (tagList.length > 0) {
41
- firstChild = tagList[0];
42
- lastChild = tagList[tagList.length - 1];
43
- for (const element of Array.from(tagList)) {
44
- if (Array.from(element.classList).includes('el-tag--success')) {
45
- targetElement = element;
46
- break;
47
- }
48
- }
49
-
50
- if (firstChild === targetElement) {
51
- wrap.scrollLeft = 0;
52
- } else if (lastChild === targetElement) {
53
- wrap.scrollLeft = wrap.scrollWidth - containerWidth;
54
- } else {
55
- const currentIndex = Array.from(tagList).findIndex((item) => item === targetElement);
56
-
57
- const preElement = tagList[currentIndex - 1];
58
- const nextElement = tagList[currentIndex + 1];
59
- if (!preElement || !nextElement) {
60
- return;
61
- }
62
-
63
- const afterNextTagOffsetLeft = (nextElement as HTMLElement).offsetLeft + (nextElement as HTMLElement).offsetWidth + tagSpacing;
64
- const beforePrevTagOffsetLeft = (preElement as HTMLElement).offsetLeft - tagSpacing;
65
-
66
- if (afterNextTagOffsetLeft > wrap.scrollLeft + containerWidth) {
67
- wrap.scrollLeft = afterNextTagOffsetLeft - containerWidth;
68
- } else if (beforePrevTagOffsetLeft < wrap.scrollLeft) {
69
- wrap.scrollLeft = beforePrevTagOffsetLeft;
70
- }
71
- }
72
- } else {
73
- return;
74
- }
75
- }
76
- };
77
- // 暴露给其父级组件通过 ref 使用
78
- defineExpose({ moveToTarget });
79
- </script>