@kevairy/template 0.1.0

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.
Files changed (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -0
  3. package/package.json +37 -0
  4. package/template/.env +22 -0
  5. package/template/.env.development +13 -0
  6. package/template/.env.production +10 -0
  7. package/template/.prettierignore +3 -0
  8. package/template/.prettierrc +20 -0
  9. package/template/.stylelintignore +9 -0
  10. package/template/.stylelintrc.cjs +84 -0
  11. package/template/LICENSE +21 -0
  12. package/template/README.md +22 -0
  13. package/template/_gitignore +19 -0
  14. package/template/eslint-auto-import.json +324 -0
  15. package/template/eslint.config.mjs +83 -0
  16. package/template/index.html +25 -0
  17. package/template/package.json +79 -0
  18. package/template/playwright.config.ts +25 -0
  19. package/template/public/favicon.ico +0 -0
  20. package/template/src/App.vue +39 -0
  21. package/template/src/adapters/auth/index.ts +9 -0
  22. package/template/src/adapters/auth/mock.ts +10 -0
  23. package/template/src/adapters/auth/types.ts +11 -0
  24. package/template/src/adapters/navigation/index.ts +13 -0
  25. package/template/src/adapters/navigation/types.ts +6 -0
  26. package/template/src/api/auth.ts +23 -0
  27. package/template/src/assets/images/avatar/avatar.webp +0 -0
  28. package/template/src/assets/images/avatar/avatar1.webp +0 -0
  29. package/template/src/assets/images/avatar/avatar10.webp +0 -0
  30. package/template/src/assets/images/avatar/avatar2.webp +0 -0
  31. package/template/src/assets/images/avatar/avatar3.webp +0 -0
  32. package/template/src/assets/images/avatar/avatar4.webp +0 -0
  33. package/template/src/assets/images/avatar/avatar5.webp +0 -0
  34. package/template/src/assets/images/avatar/avatar6.webp +0 -0
  35. package/template/src/assets/images/avatar/avatar7.webp +0 -0
  36. package/template/src/assets/images/avatar/avatar8.webp +0 -0
  37. package/template/src/assets/images/avatar/avatar9.webp +0 -0
  38. package/template/src/assets/images/ceremony/hb.png +0 -0
  39. package/template/src/assets/images/ceremony/sd.png +0 -0
  40. package/template/src/assets/images/ceremony/xc.png +0 -0
  41. package/template/src/assets/images/ceremony/yd.png +0 -0
  42. package/template/src/assets/images/common/logo.webp +0 -0
  43. package/template/src/assets/images/draw/draw1.png +0 -0
  44. package/template/src/assets/images/favicon.ico +0 -0
  45. package/template/src/assets/images/lock/bg_dark.webp +0 -0
  46. package/template/src/assets/images/lock/bg_light.webp +0 -0
  47. package/template/src/assets/images/login/kylin-hero-source.png +0 -0
  48. package/template/src/assets/images/login/lf_icon2.webp +0 -0
  49. package/template/src/assets/images/settings/menu_layouts/dual_column.png +0 -0
  50. package/template/src/assets/images/settings/menu_layouts/horizontal.png +0 -0
  51. package/template/src/assets/images/settings/menu_layouts/mixed.png +0 -0
  52. package/template/src/assets/images/settings/menu_layouts/vertical.png +0 -0
  53. package/template/src/assets/images/settings/menu_styles/dark.png +0 -0
  54. package/template/src/assets/images/settings/menu_styles/design.png +0 -0
  55. package/template/src/assets/images/settings/menu_styles/light.png +0 -0
  56. package/template/src/assets/images/settings/theme_styles/dark.png +0 -0
  57. package/template/src/assets/images/settings/theme_styles/light.png +0 -0
  58. package/template/src/assets/images/settings/theme_styles/system.png +0 -0
  59. package/template/src/assets/images/svg/403.svg +1 -0
  60. package/template/src/assets/images/svg/404.svg +1 -0
  61. package/template/src/assets/images/svg/500.svg +5 -0
  62. package/template/src/assets/images/svg/login_icon.svg +1 -0
  63. package/template/src/assets/images/user/avatar.webp +0 -0
  64. package/template/src/assets/images/user/bg.webp +0 -0
  65. package/template/src/assets/styles/core/app.scss +227 -0
  66. package/template/src/assets/styles/core/dark.scss +93 -0
  67. package/template/src/assets/styles/core/el-dark.scss +2 -0
  68. package/template/src/assets/styles/core/el-light.scss +34 -0
  69. package/template/src/assets/styles/core/el-ui.scss +519 -0
  70. package/template/src/assets/styles/core/md.scss +1036 -0
  71. package/template/src/assets/styles/core/mixin.scss +157 -0
  72. package/template/src/assets/styles/core/reset.scss +41 -0
  73. package/template/src/assets/styles/core/router-transition.scss +104 -0
  74. package/template/src/assets/styles/core/tailwind.css +219 -0
  75. package/template/src/assets/styles/core/theme-animation.scss +63 -0
  76. package/template/src/assets/styles/core/theme-change.scss +11 -0
  77. package/template/src/assets/styles/custom/one-dark-pro.scss +98 -0
  78. package/template/src/assets/styles/index.scss +23 -0
  79. package/template/src/assets/svg/loading.ts +32 -0
  80. package/template/src/bootstrap/initializeApp.ts +30 -0
  81. package/template/src/components/core/banners/art-basic-banner/index.vue +343 -0
  82. package/template/src/components/core/banners/art-card-banner/index.vue +114 -0
  83. package/template/src/components/core/base/art-back-to-top/index.vue +40 -0
  84. package/template/src/components/core/base/art-logo/index.vue +34 -0
  85. package/template/src/components/core/base/art-svg-icon/index.vue +24 -0
  86. package/template/src/components/core/cards/art-bar-chart-card/index.vue +103 -0
  87. package/template/src/components/core/cards/art-data-list-card/index.vue +74 -0
  88. package/template/src/components/core/cards/art-donut-chart-card/index.vue +124 -0
  89. package/template/src/components/core/cards/art-image-card/index.vue +89 -0
  90. package/template/src/components/core/cards/art-line-chart-card/index.vue +126 -0
  91. package/template/src/components/core/cards/art-progress-card/index.vue +86 -0
  92. package/template/src/components/core/cards/art-stats-card/index.vue +67 -0
  93. package/template/src/components/core/cards/art-timeline-list-card/index.vue +69 -0
  94. package/template/src/components/core/charts/art-bar-chart/index.vue +203 -0
  95. package/template/src/components/core/charts/art-dual-bar-compare-chart/index.vue +195 -0
  96. package/template/src/components/core/charts/art-h-bar-chart/index.vue +208 -0
  97. package/template/src/components/core/charts/art-k-line-chart/index.vue +152 -0
  98. package/template/src/components/core/charts/art-line-chart/index.vue +371 -0
  99. package/template/src/components/core/charts/art-radar-chart/index.vue +105 -0
  100. package/template/src/components/core/charts/art-ring-chart/index.vue +133 -0
  101. package/template/src/components/core/charts/art-scatter-chart/index.vue +115 -0
  102. package/template/src/components/core/feedback/art-page-loading/index.vue +281 -0
  103. package/template/src/components/core/forms/art-button-more/index.vue +71 -0
  104. package/template/src/components/core/forms/art-button-table/index.vue +59 -0
  105. package/template/src/components/core/forms/art-drag-verify/index.vue +430 -0
  106. package/template/src/components/core/forms/art-excel-export/index.vue +390 -0
  107. package/template/src/components/core/forms/art-excel-import/index.vue +62 -0
  108. package/template/src/components/core/forms/art-form/index.vue +507 -0
  109. package/template/src/components/core/forms/art-wang-editor/index.vue +261 -0
  110. package/template/src/components/core/forms/art-wang-editor/style.scss +273 -0
  111. package/template/src/components/core/layouts/art-breadcrumb/index.vue +142 -0
  112. package/template/src/components/core/layouts/art-chat-window/index.vue +262 -0
  113. package/template/src/components/core/layouts/art-fast-enter/index.vue +113 -0
  114. package/template/src/components/core/layouts/art-fireworks-effect/index.vue +633 -0
  115. package/template/src/components/core/layouts/art-global-component/index.vue +14 -0
  116. package/template/src/components/core/layouts/art-global-search/index.vue +431 -0
  117. package/template/src/components/core/layouts/art-header-bar/index.vue +485 -0
  118. package/template/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue +118 -0
  119. package/template/src/components/core/layouts/art-menus/art-horizontal-menu/index.vue +110 -0
  120. package/template/src/components/core/layouts/art-menus/art-horizontal-menu/widget/HorizontalSubmenu.vue +106 -0
  121. package/template/src/components/core/layouts/art-menus/art-mixed-menu/index.vue +279 -0
  122. package/template/src/components/core/layouts/art-menus/art-sidebar-menu/index.vue +354 -0
  123. package/template/src/components/core/layouts/art-menus/art-sidebar-menu/style.scss +251 -0
  124. package/template/src/components/core/layouts/art-menus/art-sidebar-menu/theme.scss +258 -0
  125. package/template/src/components/core/layouts/art-menus/art-sidebar-menu/widget/SidebarSubmenu.vue +190 -0
  126. package/template/src/components/core/layouts/art-notification/index.vue +456 -0
  127. package/template/src/components/core/layouts/art-page-content/index.vue +137 -0
  128. package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsConfig.ts +248 -0
  129. package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsHandlers.ts +167 -0
  130. package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsPanel.ts +233 -0
  131. package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsState.ts +37 -0
  132. package/template/src/components/core/layouts/art-settings-panel/index.vue +72 -0
  133. package/template/src/components/core/layouts/art-settings-panel/style.scss +92 -0
  134. package/template/src/components/core/layouts/art-settings-panel/widget/BasicSettings.vue +77 -0
  135. package/template/src/components/core/layouts/art-settings-panel/widget/BoxStyleSettings.vue +38 -0
  136. package/template/src/components/core/layouts/art-settings-panel/widget/ColorSettings.vue +35 -0
  137. package/template/src/components/core/layouts/art-settings-panel/widget/ContainerSettings.vue +33 -0
  138. package/template/src/components/core/layouts/art-settings-panel/widget/MenuLayoutSettings.vue +31 -0
  139. package/template/src/components/core/layouts/art-settings-panel/widget/MenuStyleSettings.vue +44 -0
  140. package/template/src/components/core/layouts/art-settings-panel/widget/SectionTitle.vue +17 -0
  141. package/template/src/components/core/layouts/art-settings-panel/widget/SettingActions.vue +236 -0
  142. package/template/src/components/core/layouts/art-settings-panel/widget/SettingDrawer.vue +51 -0
  143. package/template/src/components/core/layouts/art-settings-panel/widget/SettingHeader.vue +18 -0
  144. package/template/src/components/core/layouts/art-settings-panel/widget/SettingItem.vue +101 -0
  145. package/template/src/components/core/layouts/art-settings-panel/widget/ThemeSettings.vue +28 -0
  146. package/template/src/components/core/layouts/art-work-tab/index.vue +584 -0
  147. package/template/src/components/core/media/art-cutter-img/index.vue +350 -0
  148. package/template/src/components/core/media/art-video-player/index.vue +111 -0
  149. package/template/src/components/core/others/art-menu-right/index.vue +415 -0
  150. package/template/src/components/core/others/art-watermark/index.vue +64 -0
  151. package/template/src/components/core/text-effect/art-count-to/index.vue +310 -0
  152. package/template/src/components/core/text-effect/art-festival-text-scroll/index.vue +32 -0
  153. package/template/src/components/core/text-effect/art-text-scroll/index.vue +285 -0
  154. package/template/src/components/core/theme/theme-svg/index.vue +100 -0
  155. package/template/src/components/core/views/exception/ArtException.vue +55 -0
  156. package/template/src/components/core/views/login/AuthTopBar.vue +149 -0
  157. package/template/src/components/core/views/login/LoginLeftView.vue +602 -0
  158. package/template/src/components/core/views/result/ArtResultPage.vue +43 -0
  159. package/template/src/components/core/widget/art-icon-button/index.vue +23 -0
  160. package/template/src/config/assets/images.ts +61 -0
  161. package/template/src/config/index.ts +170 -0
  162. package/template/src/config/modules/component.ts +98 -0
  163. package/template/src/config/modules/fastEnter.ts +16 -0
  164. package/template/src/config/modules/festival.ts +51 -0
  165. package/template/src/config/modules/headerBar.ts +64 -0
  166. package/template/src/config/setting.ts +109 -0
  167. package/template/src/directives/core/auth.ts +66 -0
  168. package/template/src/directives/core/highlight-loader.ts +37 -0
  169. package/template/src/directives/core/highlight.ts +253 -0
  170. package/template/src/directives/core/ripple.ts +116 -0
  171. package/template/src/directives/core/roles.ts +87 -0
  172. package/template/src/directives/index.ts +14 -0
  173. package/template/src/enums/appEnum.ts +81 -0
  174. package/template/src/enums/formEnum.ts +17 -0
  175. package/template/src/env.d.ts +32 -0
  176. package/template/src/hooks/core/useAppMode.ts +45 -0
  177. package/template/src/hooks/core/useAuth.ts +74 -0
  178. package/template/src/hooks/core/useCeremony.ts +184 -0
  179. package/template/src/hooks/core/useChart.ts +745 -0
  180. package/template/src/hooks/core/useCommon.ts +87 -0
  181. package/template/src/hooks/core/useFastEnter.ts +55 -0
  182. package/template/src/hooks/core/useHeaderBar.ts +201 -0
  183. package/template/src/hooks/core/useLayoutHeight.ts +148 -0
  184. package/template/src/hooks/core/useTableColumns.ts +313 -0
  185. package/template/src/hooks/core/useTheme.ts +174 -0
  186. package/template/src/hooks/index.ts +29 -0
  187. package/template/src/locales/index.ts +123 -0
  188. package/template/src/locales/langs/en.json +283 -0
  189. package/template/src/locales/langs/zh.json +283 -0
  190. package/template/src/main.ts +29 -0
  191. package/template/src/mock/auth.ts +46 -0
  192. package/template/src/plugins/echarts.ts +76 -0
  193. package/template/src/plugins/index.ts +6 -0
  194. package/template/src/router/core/ComponentLoader.ts +82 -0
  195. package/template/src/router/core/IframeRouteManager.ts +78 -0
  196. package/template/src/router/core/MenuProcessor.ts +280 -0
  197. package/template/src/router/core/RoutePermissionValidator.ts +161 -0
  198. package/template/src/router/core/RouteRegistry.ts +90 -0
  199. package/template/src/router/core/RouteTransformer.ts +132 -0
  200. package/template/src/router/core/RouteValidator.ts +187 -0
  201. package/template/src/router/core/index.ts +14 -0
  202. package/template/src/router/guards/afterEach.ts +34 -0
  203. package/template/src/router/guards/beforeEach.ts +442 -0
  204. package/template/src/router/index.ts +24 -0
  205. package/template/src/router/modules/dashboard.ts +23 -0
  206. package/template/src/router/modules/examples.ts +109 -0
  207. package/template/src/router/modules/exception.ts +46 -0
  208. package/template/src/router/modules/index.ts +12 -0
  209. package/template/src/router/modules/result.ts +32 -0
  210. package/template/src/router/routes/asyncRoutes.ts +9 -0
  211. package/template/src/router/routes/staticRoutes.ts +60 -0
  212. package/template/src/router/routesAlias.ts +8 -0
  213. package/template/src/services/auth.ts +15 -0
  214. package/template/src/store/index.ts +52 -0
  215. package/template/src/store/modules/menu.ts +109 -0
  216. package/template/src/store/modules/setting.ts +450 -0
  217. package/template/src/store/modules/user.ts +218 -0
  218. package/template/src/store/modules/worktab.ts +568 -0
  219. package/template/src/types/api/api.d.ts +86 -0
  220. package/template/src/types/common/index.ts +95 -0
  221. package/template/src/types/common/response.ts +32 -0
  222. package/template/src/types/component/chart.ts +324 -0
  223. package/template/src/types/component/index.ts +86 -0
  224. package/template/src/types/config/index.ts +253 -0
  225. package/template/src/types/directive/directive.d.ts +15 -0
  226. package/template/src/types/import/auto-imports.d.ts +319 -0
  227. package/template/src/types/import/components.d.ts +126 -0
  228. package/template/src/types/index.ts +22 -0
  229. package/template/src/types/router/index.ts +80 -0
  230. package/template/src/types/store/index.ts +157 -0
  231. package/template/src/utils/form/index.ts +9 -0
  232. package/template/src/utils/form/validator.ts +316 -0
  233. package/template/src/utils/http/contract.ts +39 -0
  234. package/template/src/utils/http/error.ts +182 -0
  235. package/template/src/utils/http/index.ts +226 -0
  236. package/template/src/utils/http/status.ts +18 -0
  237. package/template/src/utils/index.ts +31 -0
  238. package/template/src/utils/navigation/index.ts +10 -0
  239. package/template/src/utils/navigation/jump.ts +68 -0
  240. package/template/src/utils/navigation/route.ts +85 -0
  241. package/template/src/utils/navigation/worktab.ts +67 -0
  242. package/template/src/utils/router.ts +63 -0
  243. package/template/src/utils/socket/index.ts +423 -0
  244. package/template/src/utils/storage/index.ts +7 -0
  245. package/template/src/utils/storage/storage-config.ts +127 -0
  246. package/template/src/utils/storage/storage-key-manager.ts +97 -0
  247. package/template/src/utils/storage/storage.ts +250 -0
  248. package/template/src/utils/sys/console.ts +9 -0
  249. package/template/src/utils/sys/error-handle.ts +143 -0
  250. package/template/src/utils/sys/index.ts +2 -0
  251. package/template/src/utils/sys/mittBus.ts +61 -0
  252. package/template/src/utils/ui/animation.ts +80 -0
  253. package/template/src/utils/ui/colors.ts +273 -0
  254. package/template/src/utils/ui/emojo.ts +24 -0
  255. package/template/src/utils/ui/iconify-loader.ts +31 -0
  256. package/template/src/utils/ui/index.ts +11 -0
  257. package/template/src/utils/ui/loading.ts +158 -0
  258. package/template/src/utils/ui/tabs.ts +60 -0
  259. package/template/src/views/auth/forget-password/index.vue +62 -0
  260. package/template/src/views/auth/login/index.vue +166 -0
  261. package/template/src/views/auth/login/style.css +38 -0
  262. package/template/src/views/auth/register/index.vue +240 -0
  263. package/template/src/views/dashboard/console/index.vue +173 -0
  264. package/template/src/views/examples/analytics/index.vue +389 -0
  265. package/template/src/views/examples/complex-form/index.vue +395 -0
  266. package/template/src/views/examples/crud-workspace/index.vue +412 -0
  267. package/template/src/views/examples/navigation/detail/index.vue +151 -0
  268. package/template/src/views/examples/navigation/state/index.vue +226 -0
  269. package/template/src/views/examples/overview/index.vue +309 -0
  270. package/template/src/views/examples/permissions/index.vue +303 -0
  271. package/template/src/views/examples/search-table/index.vue +182 -0
  272. package/template/src/views/examples/search-table/search.config.ts +81 -0
  273. package/template/src/views/examples/search-table/service.ts +116 -0
  274. package/template/src/views/examples/search-table/table.config.ts +37 -0
  275. package/template/src/views/exception/403/index.vue +16 -0
  276. package/template/src/views/exception/404/index.vue +16 -0
  277. package/template/src/views/exception/500/index.vue +16 -0
  278. package/template/src/views/index/index.vue +29 -0
  279. package/template/src/views/index/style.scss +93 -0
  280. package/template/src/views/outside/Iframe.vue +42 -0
  281. package/template/src/views/result/fail/index.vue +28 -0
  282. package/template/src/views/result/success/index.vue +21 -0
  283. package/template/tests/e2e/auth.spec.ts +14 -0
  284. package/template/tests/e2e/search-table.spec.ts +154 -0
  285. package/template/tests/unit/adapters/auth.spec.ts +38 -0
  286. package/template/tests/unit/config/app-config.spec.ts +17 -0
  287. package/template/tests/unit/directives/highlight.spec.ts +20 -0
  288. package/template/tests/unit/http/contract.spec.ts +47 -0
  289. package/template/tests/unit/mock/search-table.spec.ts +62 -0
  290. package/template/tests/unit/router/examples.spec.ts +52 -0
  291. package/template/tsconfig.json +28 -0
  292. package/template/vite.config.ts +181 -0
  293. package/template/vitest.config.ts +27 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SuperManTT
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # @kevairy/template
2
+
3
+ 供 `@kevairy/cli` 下载的 Kevairy Admin 项目模板。该包独立发布,CLI 默认获取 npm `latest`,也可以通过创建命令锁定具体版本。
4
+
5
+ ## 维护
6
+
7
+ 模板源码或组件版本变更后,先同步并检查发布内容:
8
+
9
+ ```bash
10
+ pnpm --filter @kevairy/template sync:template
11
+ pnpm --filter @kevairy/template check:template
12
+ ```
13
+
14
+ 业务项目不需要直接安装此包。
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@kevairy/template",
3
+ "version": "0.1.0",
4
+ "description": "Project template consumed by @kevairy/cli",
5
+ "keywords": [
6
+ "vue",
7
+ "admin",
8
+ "template",
9
+ "scaffold"
10
+ ],
11
+ "license": "MIT",
12
+ "author": "SuperManTT",
13
+ "type": "module",
14
+ "files": [
15
+ "template",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "engines": {
20
+ "node": ">=20.19.0"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "^24.13.3",
28
+ "typescript": "~5.6.3",
29
+ "vitest": "^4.1.10"
30
+ },
31
+ "scripts": {
32
+ "sync:template": "node scripts/sync-template.js",
33
+ "check:template": "node scripts/check-template-sync.js",
34
+ "test": "vitest run tests/sync-template.spec.js",
35
+ "typecheck": "tsc --noEmit --allowJs --checkJs --module NodeNext --moduleResolution NodeNext --target ES2022 scripts/*.js"
36
+ }
37
+ }
package/template/.env ADDED
@@ -0,0 +1,22 @@
1
+ # 【通用】环境变量
2
+
3
+ # 版本号
4
+ VITE_VERSION = 0.1.0
5
+
6
+ # 端口号
7
+ VITE_PORT = 3006
8
+
9
+ # 应用部署基础路径(如部署在子目录 /admin,则设置为 /admin/)
10
+ VITE_BASE_URL = /
11
+
12
+ # 权限模式【 frontend 前端模式 / backend 后端模式 】
13
+ VITE_ACCESS_MODE = frontend
14
+
15
+ # 跨域请求时是否携带 Cookie(开启前需确保后端支持)
16
+ VITE_WITH_CREDENTIALS = false
17
+
18
+ # Authorization 头前缀;接入业务后端时可按约定设置为 Bearer 等值。
19
+ VITE_AUTH_SCHEME =
20
+
21
+ # 是否打开路由信息
22
+ VITE_OPEN_ROUTE_INFO = false
@@ -0,0 +1,13 @@
1
+ # 【开发】环境变量
2
+
3
+ # 应用部署基础路径(如部署在子目录 /admin,则设置为 /admin/)
4
+ VITE_BASE_URL = /
5
+
6
+ # API 请求基础路径(开发环境设置为 / 使用代理,生产环境设置为完整后端地址)
7
+ VITE_API_URL = /api/
8
+
9
+ # 可选代理目标;模板 Mock 阶段留空,接入业务接口后再配置。
10
+ VITE_API_PROXY_URL =
11
+
12
+ # Delete console
13
+ VITE_DROP_CONSOLE = false
@@ -0,0 +1,10 @@
1
+ # 【生产】环境变量
2
+
3
+ # 应用部署基础路径(如部署在子目录 /admin,则设置为 /admin/)
4
+ VITE_BASE_URL = /
5
+
6
+ # API 地址前缀
7
+ VITE_API_URL = /api/
8
+
9
+ # Delete console
10
+ VITE_DROP_CONSOLE = true
@@ -0,0 +1,3 @@
1
+ **/node_modules/*
2
+ **/dist/*
3
+ **/src/main.ts
@@ -0,0 +1,20 @@
1
+ {
2
+ "printWidth": 100,
3
+ "tabWidth": 2,
4
+ "useTabs": false,
5
+ "semi": false,
6
+ "vueIndentScriptAndStyle": true,
7
+ "singleQuote": true,
8
+ "quoteProps": "as-needed",
9
+ "bracketSpacing": true,
10
+ "trailingComma": "none",
11
+ "bracketSameLine": false,
12
+ "jsxSingleQuote": false,
13
+ "arrowParens": "always",
14
+ "insertPragma": false,
15
+ "requirePragma": false,
16
+ "proseWrap": "never",
17
+ "htmlWhitespaceSensitivity": "strict",
18
+ "endOfLine": "auto",
19
+ "rangeStart": 0
20
+ }
@@ -0,0 +1,9 @@
1
+ **/dist
2
+ **/node_modules
3
+ **/public
4
+ .husky
5
+ .vscode
6
+
7
+ **/src/components/Layout/MenuLeft/index.vue
8
+ **/src/assets
9
+ stats.html
@@ -0,0 +1,84 @@
1
+ module.exports = {
2
+ // 继承推荐规范配置
3
+ extends: [
4
+ 'stylelint-config-standard',
5
+ 'stylelint-config-recommended-scss',
6
+ 'stylelint-config-recommended-vue/scss',
7
+ 'stylelint-config-html/vue',
8
+ 'stylelint-config-recess-order'
9
+ ],
10
+ // 指定不同文件对应的解析器
11
+ overrides: [
12
+ {
13
+ files: ['**/*.{vue,html}'],
14
+ customSyntax: 'postcss-html'
15
+ },
16
+ {
17
+ files: ['**/*.{css,scss}'],
18
+ customSyntax: 'postcss-scss'
19
+ }
20
+ ],
21
+ // 自定义规则
22
+ rules: {
23
+ 'import-notation': 'string', // 指定导入CSS文件的方式("string"|"url")
24
+ 'selector-class-pattern': null, // 选择器类名命名规则
25
+ 'custom-property-pattern': null, // 自定义属性命名规则
26
+ 'keyframes-name-pattern': null, // 动画帧节点样式命名规则
27
+ 'no-descending-specificity': null, // 允许无降序特异性
28
+ 'no-empty-source': null, // 允许空样式
29
+ 'property-no-vendor-prefix': null, // 允许属性前缀
30
+ // Prettier keeps Sass @else branches on the same line as the preceding brace.
31
+ 'at-rule-empty-line-before': null,
32
+ // 允许 global 、export 、deep伪类
33
+ 'selector-pseudo-class-no-unknown': [
34
+ true,
35
+ {
36
+ ignorePseudoClasses: ['global', 'export', 'deep']
37
+ }
38
+ ],
39
+ // 允许未知属性
40
+ 'property-no-unknown': [
41
+ true,
42
+ {
43
+ ignoreProperties: []
44
+ }
45
+ ],
46
+ // 允许未知规则
47
+ 'at-rule-no-unknown': [
48
+ true,
49
+ {
50
+ ignoreAtRules: [
51
+ 'apply',
52
+ 'use',
53
+ 'mixin',
54
+ 'include',
55
+ 'extend',
56
+ 'each',
57
+ 'if',
58
+ 'else',
59
+ 'for',
60
+ 'while',
61
+ 'reference'
62
+ ]
63
+ }
64
+ ],
65
+ 'scss/at-rule-no-unknown': [
66
+ true,
67
+ {
68
+ ignoreAtRules: [
69
+ 'apply',
70
+ 'use',
71
+ 'mixin',
72
+ 'include',
73
+ 'extend',
74
+ 'each',
75
+ 'if',
76
+ 'else',
77
+ 'for',
78
+ 'while',
79
+ 'reference'
80
+ ]
81
+ }
82
+ ]
83
+ }
84
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SuperManTT
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,22 @@
1
+ # {{DISPLAY_NAME}}
2
+
3
+ 由 `@kevairy/cli` 的 `create` 命令生成的 Vue 3 后台管理项目。
4
+
5
+ ## 开始使用
6
+
7
+ ```bash
8
+ __INSTALL_COMMAND__
9
+ __RUN_COMMAND__ dev
10
+ ```
11
+
12
+ 应用源码和工程配置均位于项目根目录,并使用 npm registry 中经过验证的 `@kevairy/components` 版本。
13
+
14
+ ## 常用命令
15
+
16
+ ```bash
17
+ __RUN_COMMAND__ dev
18
+ __RUN_COMMAND__ lint
19
+ __RUN_COMMAND__ typecheck
20
+ __RUN_COMMAND__ test
21
+ __RUN_COMMAND__ build
22
+ ```
@@ -0,0 +1,19 @@
1
+ node_modules
2
+ .DS_Store
3
+ dist
4
+ dist-ssr
5
+ *.tgz
6
+ *.local
7
+ .tmp-audit/
8
+ .cursorrules
9
+
10
+ # Auto-generated files
11
+ **/src/types/import/auto-imports.d.ts
12
+ **/src/types/import/components.d.ts
13
+ **/.auto-import.json
14
+
15
+ # Test artifacts
16
+ test-results
17
+ playwright-report
18
+ coverage
19
+ **/.vitepress/cache
@@ -0,0 +1,324 @@
1
+ {
2
+ "globals": {
3
+ "Component": true,
4
+ "ComponentPublicInstance": true,
5
+ "ComputedRef": true,
6
+ "DirectiveBinding": true,
7
+ "EffectScope": true,
8
+ "ElMessage": true,
9
+ "ExtractDefaultPropTypes": true,
10
+ "ExtractPropTypes": true,
11
+ "ExtractPublicPropTypes": true,
12
+ "InjectionKey": true,
13
+ "MaybeRef": true,
14
+ "MaybeRefOrGetter": true,
15
+ "PropType": true,
16
+ "Ref": true,
17
+ "ShallowRef": true,
18
+ "Slot": true,
19
+ "Slots": true,
20
+ "VNode": true,
21
+ "WritableComputedRef": true,
22
+ "acceptHMRUpdate": true,
23
+ "asyncComputed": true,
24
+ "autoResetRef": true,
25
+ "computed": true,
26
+ "computedAsync": true,
27
+ "computedEager": true,
28
+ "computedInject": true,
29
+ "computedWithControl": true,
30
+ "controlledComputed": true,
31
+ "controlledRef": true,
32
+ "createApp": true,
33
+ "createEventHook": true,
34
+ "createGlobalState": true,
35
+ "createInjectionState": true,
36
+ "createPinia": true,
37
+ "createReactiveFn": true,
38
+ "createRef": true,
39
+ "createReusableTemplate": true,
40
+ "createSharedComposable": true,
41
+ "createTemplatePromise": true,
42
+ "createUnrefFn": true,
43
+ "customRef": true,
44
+ "debouncedRef": true,
45
+ "debouncedWatch": true,
46
+ "defineAsyncComponent": true,
47
+ "defineComponent": true,
48
+ "defineStore": true,
49
+ "eagerComputed": true,
50
+ "effectScope": true,
51
+ "extendRef": true,
52
+ "getActivePinia": true,
53
+ "getCurrentInstance": true,
54
+ "getCurrentScope": true,
55
+ "getCurrentWatcher": true,
56
+ "h": true,
57
+ "ignorableWatch": true,
58
+ "inject": true,
59
+ "injectLocal": true,
60
+ "isDefined": true,
61
+ "isProxy": true,
62
+ "isReactive": true,
63
+ "isReadonly": true,
64
+ "isRef": true,
65
+ "isShallow": true,
66
+ "makeDestructurable": true,
67
+ "mapActions": true,
68
+ "mapGetters": true,
69
+ "mapState": true,
70
+ "mapStores": true,
71
+ "mapWritableState": true,
72
+ "markRaw": true,
73
+ "nextTick": true,
74
+ "onActivated": true,
75
+ "onBeforeMount": true,
76
+ "onBeforeRouteLeave": true,
77
+ "onBeforeRouteUpdate": true,
78
+ "onBeforeUnmount": true,
79
+ "onBeforeUpdate": true,
80
+ "onClickOutside": true,
81
+ "onDeactivated": true,
82
+ "onElementRemoval": true,
83
+ "onErrorCaptured": true,
84
+ "onKeyStroke": true,
85
+ "onLongPress": true,
86
+ "onMounted": true,
87
+ "onRenderTracked": true,
88
+ "onRenderTriggered": true,
89
+ "onScopeDispose": true,
90
+ "onServerPrefetch": true,
91
+ "onStartTyping": true,
92
+ "onUnmounted": true,
93
+ "onUpdated": true,
94
+ "onWatcherCleanup": true,
95
+ "pausableWatch": true,
96
+ "provide": true,
97
+ "provideLocal": true,
98
+ "reactify": true,
99
+ "reactifyObject": true,
100
+ "reactive": true,
101
+ "reactiveComputed": true,
102
+ "reactiveOmit": true,
103
+ "reactivePick": true,
104
+ "readonly": true,
105
+ "ref": true,
106
+ "refAutoReset": true,
107
+ "refDebounced": true,
108
+ "refDefault": true,
109
+ "refThrottled": true,
110
+ "refWithControl": true,
111
+ "resolveComponent": true,
112
+ "resolveRef": true,
113
+ "resolveUnref": true,
114
+ "setActivePinia": true,
115
+ "setMapStoreSuffix": true,
116
+ "shallowReactive": true,
117
+ "shallowReadonly": true,
118
+ "shallowRef": true,
119
+ "storeToRefs": true,
120
+ "syncRef": true,
121
+ "syncRefs": true,
122
+ "templateRef": true,
123
+ "throttledRef": true,
124
+ "throttledWatch": true,
125
+ "toRaw": true,
126
+ "toReactive": true,
127
+ "toRef": true,
128
+ "toRefs": true,
129
+ "toValue": true,
130
+ "triggerRef": true,
131
+ "tryOnBeforeMount": true,
132
+ "tryOnBeforeUnmount": true,
133
+ "tryOnMounted": true,
134
+ "tryOnScopeDispose": true,
135
+ "tryOnUnmounted": true,
136
+ "unref": true,
137
+ "unrefElement": true,
138
+ "until": true,
139
+ "useActiveElement": true,
140
+ "useAnimate": true,
141
+ "useArrayDifference": true,
142
+ "useArrayEvery": true,
143
+ "useArrayFilter": true,
144
+ "useArrayFind": true,
145
+ "useArrayFindIndex": true,
146
+ "useArrayFindLast": true,
147
+ "useArrayIncludes": true,
148
+ "useArrayJoin": true,
149
+ "useArrayMap": true,
150
+ "useArrayReduce": true,
151
+ "useArraySome": true,
152
+ "useArrayUnique": true,
153
+ "useAsyncQueue": true,
154
+ "useAsyncState": true,
155
+ "useAttrs": true,
156
+ "useBase64": true,
157
+ "useBattery": true,
158
+ "useBluetooth": true,
159
+ "useBreakpoints": true,
160
+ "useBroadcastChannel": true,
161
+ "useBrowserLocation": true,
162
+ "useCached": true,
163
+ "useClipboard": true,
164
+ "useClipboardItems": true,
165
+ "useCloned": true,
166
+ "useColorMode": true,
167
+ "useConfirmDialog": true,
168
+ "useCountdown": true,
169
+ "useCounter": true,
170
+ "useCssModule": true,
171
+ "useCssVar": true,
172
+ "useCssVars": true,
173
+ "useCurrentElement": true,
174
+ "useCycleList": true,
175
+ "useDark": true,
176
+ "useDateFormat": true,
177
+ "useDebounce": true,
178
+ "useDebounceFn": true,
179
+ "useDebouncedRefHistory": true,
180
+ "useDeviceMotion": true,
181
+ "useDeviceOrientation": true,
182
+ "useDevicePixelRatio": true,
183
+ "useDevicesList": true,
184
+ "useDisplayMedia": true,
185
+ "useDocumentVisibility": true,
186
+ "useDraggable": true,
187
+ "useDropZone": true,
188
+ "useElementBounding": true,
189
+ "useElementByPoint": true,
190
+ "useElementHover": true,
191
+ "useElementSize": true,
192
+ "useElementVisibility": true,
193
+ "useEventBus": true,
194
+ "useEventListener": true,
195
+ "useEventSource": true,
196
+ "useEyeDropper": true,
197
+ "useFavicon": true,
198
+ "useFetch": true,
199
+ "useFileDialog": true,
200
+ "useFileSystemAccess": true,
201
+ "useFocus": true,
202
+ "useFocusWithin": true,
203
+ "useFps": true,
204
+ "useFullscreen": true,
205
+ "useGamepad": true,
206
+ "useGeolocation": true,
207
+ "useId": true,
208
+ "useIdle": true,
209
+ "useImage": true,
210
+ "useInfiniteScroll": true,
211
+ "useIntersectionObserver": true,
212
+ "useInterval": true,
213
+ "useIntervalFn": true,
214
+ "useKeyModifier": true,
215
+ "useLastChanged": true,
216
+ "useLink": true,
217
+ "useLocalStorage": true,
218
+ "useMagicKeys": true,
219
+ "useManualRefHistory": true,
220
+ "useMediaControls": true,
221
+ "useMediaQuery": true,
222
+ "useMemoize": true,
223
+ "useMemory": true,
224
+ "useModel": true,
225
+ "useMounted": true,
226
+ "useMouse": true,
227
+ "useMouseInElement": true,
228
+ "useMousePressed": true,
229
+ "useMutationObserver": true,
230
+ "useNavigatorLanguage": true,
231
+ "useNetwork": true,
232
+ "useNow": true,
233
+ "useObjectUrl": true,
234
+ "useOffsetPagination": true,
235
+ "useOnline": true,
236
+ "usePageLeave": true,
237
+ "useParallax": true,
238
+ "useParentElement": true,
239
+ "usePerformanceObserver": true,
240
+ "usePermission": true,
241
+ "usePointer": true,
242
+ "usePointerLock": true,
243
+ "usePointerSwipe": true,
244
+ "usePreferredColorScheme": true,
245
+ "usePreferredContrast": true,
246
+ "usePreferredDark": true,
247
+ "usePreferredLanguages": true,
248
+ "usePreferredReducedMotion": true,
249
+ "usePreferredReducedTransparency": true,
250
+ "usePrevious": true,
251
+ "useRafFn": true,
252
+ "useRefHistory": true,
253
+ "useResizeObserver": true,
254
+ "useRoute": true,
255
+ "useRouter": true,
256
+ "useSSRWidth": true,
257
+ "useScreenOrientation": true,
258
+ "useScreenSafeArea": true,
259
+ "useScriptTag": true,
260
+ "useScroll": true,
261
+ "useScrollLock": true,
262
+ "useSessionStorage": true,
263
+ "useShare": true,
264
+ "useSlots": true,
265
+ "useSorted": true,
266
+ "useSpeechRecognition": true,
267
+ "useSpeechSynthesis": true,
268
+ "useStepper": true,
269
+ "useStorage": true,
270
+ "useStorageAsync": true,
271
+ "useStyleTag": true,
272
+ "useSupported": true,
273
+ "useSwipe": true,
274
+ "useTemplateRef": true,
275
+ "useTemplateRefsList": true,
276
+ "useTextDirection": true,
277
+ "useTextSelection": true,
278
+ "useTextareaAutosize": true,
279
+ "useThrottle": true,
280
+ "useThrottleFn": true,
281
+ "useThrottledRefHistory": true,
282
+ "useTimeAgo": true,
283
+ "useTimeAgoIntl": true,
284
+ "useTimeout": true,
285
+ "useTimeoutFn": true,
286
+ "useTimeoutPoll": true,
287
+ "useTimestamp": true,
288
+ "useTitle": true,
289
+ "useToNumber": true,
290
+ "useToString": true,
291
+ "useToggle": true,
292
+ "useTransition": true,
293
+ "useUrlSearchParams": true,
294
+ "useUserMedia": true,
295
+ "useVModel": true,
296
+ "useVModels": true,
297
+ "useVibrate": true,
298
+ "useVirtualList": true,
299
+ "useWakeLock": true,
300
+ "useWebNotification": true,
301
+ "useWebSocket": true,
302
+ "useWebWorker": true,
303
+ "useWebWorkerFn": true,
304
+ "useWindowFocus": true,
305
+ "useWindowScroll": true,
306
+ "useWindowSize": true,
307
+ "watch": true,
308
+ "watchArray": true,
309
+ "watchAtMost": true,
310
+ "watchDebounced": true,
311
+ "watchDeep": true,
312
+ "watchEffect": true,
313
+ "watchIgnorable": true,
314
+ "watchImmediate": true,
315
+ "watchOnce": true,
316
+ "watchPausable": true,
317
+ "watchPostEffect": true,
318
+ "watchSyncEffect": true,
319
+ "watchThrottled": true,
320
+ "watchTriggerable": true,
321
+ "watchWithFilter": true,
322
+ "whenever": true
323
+ }
324
+ }