@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
@@ -0,0 +1,602 @@
1
+ <!-- 登录、注册、忘记密码左侧背景 -->
2
+ <template>
3
+ <div class="login-left-view">
4
+ <div class="logo">
5
+ <ArtLogo class="icon" size="46" />
6
+ <h1 class="title">{{ AppConfig.systemInfo.name }}</h1>
7
+ </div>
8
+
9
+ <div class="left-img">
10
+ <ThemeSvg :src="loginIcon" size="100%" />
11
+ </div>
12
+
13
+ <div class="text-wrap">
14
+ <h1> {{ $t('login.leftView.title') }} </h1>
15
+ <p> {{ $t('login.leftView.subTitle') }} </p>
16
+ </div>
17
+
18
+ <!-- 几何装饰元素 -->
19
+ <div class="geometric-decorations">
20
+ <!-- 基础几何形状 -->
21
+ <div class="geo-element circle-outline animate-fade-in-up" style="animation-delay: 0s"></div>
22
+ <div
23
+ class="geo-element square-rotated animate-fade-in-left"
24
+ style="animation-delay: 0s"
25
+ ></div>
26
+ <div class="geo-element circle-small animate-fade-in-up" style="animation-delay: 0.3s"></div>
27
+
28
+ <div
29
+ class="geo-element square-bottom-right animate-fade-in-right"
30
+ style="animation-delay: 0s"
31
+ ></div>
32
+
33
+ <!-- 背景泡泡 -->
34
+ <div class="geo-element bg-bubble animate-scale-in" style="animation-delay: 0.5"></div>
35
+
36
+ <!-- 太阳/月亮 -->
37
+ <div
38
+ class="geo-element circle-top-right animate-fade-in-down"
39
+ style="animation-delay: 0.5"
40
+ @click="themeAnimation"
41
+ ></div>
42
+
43
+ <!-- 装饰点 -->
44
+ <div class="geo-element dot dot-top-left animate-bounce-in" style="animation-delay: 0s"></div>
45
+ <div
46
+ class="geo-element dot dot-top-right animate-bounce-in"
47
+ style="animation-delay: 0s"
48
+ ></div>
49
+ <div
50
+ class="geo-element dot dot-center-right animate-bounce-in"
51
+ style="animation-delay: 0s"
52
+ ></div>
53
+
54
+ <!-- 叠加方块组 -->
55
+ <div class="squares-group">
56
+ <i
57
+ class="geo-element square square-blue animate-fade-in-left-rotated-blue"
58
+ style="animation-delay: 0.2s"
59
+ ></i>
60
+ <i
61
+ class="geo-element square square-pink animate-fade-in-left-rotated-pink"
62
+ style="animation-delay: 0.4s"
63
+ ></i>
64
+ <i
65
+ class="geo-element square square-purple animate-fade-in-left-no-rotation"
66
+ style="animation-delay: 0.6s"
67
+ ></i>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </template>
72
+
73
+ <script setup lang="ts">
74
+ import AppConfig from '@/config'
75
+ import loginIcon from '@imgs/svg/login_icon.svg'
76
+ import { themeAnimation } from '@/utils/ui/animation'
77
+
78
+ // 定义 props
79
+ defineProps<{
80
+ hideContent?: boolean // 是否隐藏内容,只显示 logo
81
+ }>()
82
+ </script>
83
+
84
+ <style lang="scss" scoped>
85
+ // 颜色变量定义
86
+ $primary-light-7: var(--el-color-primary-light-7);
87
+ $primary-light-8: var(--el-color-primary-light-8);
88
+ $primary-light-9: var(--el-color-primary-light-9);
89
+ $primary-base: var(--el-color-primary);
90
+ $main-bg: var(--default-box-color);
91
+
92
+ // 混合颜色函数
93
+ $bg-mix-light-9: color-mix(in srgb, $primary-light-9 100%, $main-bg);
94
+ $bg-mix-light-8: color-mix(in srgb, $primary-light-8 80%, $main-bg);
95
+ $bg-mix-light-7: color-mix(in srgb, $primary-light-7 80%, $main-bg);
96
+
97
+ .login-left-view {
98
+ position: relative;
99
+ box-sizing: border-box;
100
+ width: 65vw;
101
+ height: 100%;
102
+ padding: 15px;
103
+ overflow: hidden;
104
+ background-color: $bg-mix-light-9;
105
+
106
+ .logo {
107
+ position: relative;
108
+ z-index: 100;
109
+ display: flex;
110
+ align-items: center;
111
+
112
+ .title {
113
+ margin-left: 10px;
114
+ font-size: 20px;
115
+ font-weight: 400;
116
+ }
117
+ }
118
+
119
+ .left-img {
120
+ position: absolute;
121
+ inset: 0 0 10.5%;
122
+ z-index: 10;
123
+ width: 40%;
124
+ margin: auto;
125
+ animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
126
+ }
127
+
128
+ .text-wrap {
129
+ position: absolute;
130
+ bottom: 80px;
131
+ width: 100%;
132
+ text-align: center;
133
+ animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
134
+
135
+ h1 {
136
+ font-size: 24px;
137
+ font-weight: 400;
138
+ color: var(--art-gray-900) !important;
139
+ }
140
+
141
+ p {
142
+ margin-top: 10px;
143
+ font-size: 14px;
144
+ color: var(--art-gray-600) !important;
145
+ }
146
+ }
147
+
148
+ .geometric-decorations {
149
+ .geo-element {
150
+ position: absolute;
151
+ opacity: 0;
152
+ animation-duration: 0.8s;
153
+ animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
154
+ animation-fill-mode: forwards;
155
+ }
156
+
157
+ // 动画 mixin
158
+ @mixin fadeAnimation($direction: '', $rotation: 0deg) {
159
+ from {
160
+ opacity: 0;
161
+
162
+ @if $direction == 'up' {
163
+ transform: translateY(30px) rotate($rotation);
164
+ } @else if $direction == 'down' {
165
+ transform: translateY(-30px) rotate($rotation);
166
+ } @else if $direction == 'left' {
167
+ transform: translateX(-30px) rotate($rotation);
168
+ } @else if $direction == 'right' {
169
+ transform: translateX(30px) rotate($rotation);
170
+ }
171
+ }
172
+
173
+ to {
174
+ opacity: 1;
175
+
176
+ @if $direction == 'up' or $direction == 'down' {
177
+ transform: translateY(0) rotate($rotation);
178
+ } @else {
179
+ transform: translateX(0) rotate($rotation);
180
+ }
181
+ }
182
+ }
183
+
184
+ // 动画定义
185
+ @keyframes fadeInUp {
186
+ @include fadeAnimation('up');
187
+ }
188
+
189
+ @keyframes fadeInDown {
190
+ @include fadeAnimation('down');
191
+ }
192
+
193
+ @keyframes fadeInLeft {
194
+ @include fadeAnimation('left');
195
+ }
196
+
197
+ @keyframes fadeInLeftRotated {
198
+ @include fadeAnimation('left', -25deg);
199
+ }
200
+
201
+ @keyframes fadeInRight {
202
+ @include fadeAnimation('right');
203
+ }
204
+
205
+ @keyframes fadeInRightRotated {
206
+ @include fadeAnimation('right', 45deg);
207
+ }
208
+
209
+ @keyframes fadeInLeftRotatedBlue {
210
+ @include fadeAnimation('left', -10deg);
211
+ }
212
+
213
+ @keyframes fadeInLeftRotatedPink {
214
+ @include fadeAnimation('left', 10deg);
215
+ }
216
+
217
+ @keyframes fadeInLeftNoRotation {
218
+ @include fadeAnimation('left');
219
+ }
220
+
221
+ @keyframes scaleIn {
222
+ from {
223
+ opacity: 0;
224
+ transform: scale(0.8);
225
+ }
226
+
227
+ to {
228
+ opacity: 1;
229
+ transform: scale(1);
230
+ }
231
+ }
232
+
233
+ @keyframes bounceIn {
234
+ 0% {
235
+ opacity: 0;
236
+ transform: scale(0.3);
237
+ }
238
+
239
+ 50% {
240
+ opacity: 1;
241
+ transform: scale(1.05);
242
+ }
243
+
244
+ 70% {
245
+ transform: scale(0.9);
246
+ }
247
+
248
+ 100% {
249
+ opacity: 1;
250
+ transform: scale(1);
251
+ }
252
+ }
253
+
254
+ @keyframes lineGrow {
255
+ from {
256
+ opacity: 0;
257
+ }
258
+
259
+ to {
260
+ opacity: 1;
261
+ }
262
+ }
263
+
264
+ @keyframes slideInLeft {
265
+ from {
266
+ opacity: 0;
267
+ transform: translateX(-30px);
268
+ }
269
+
270
+ to {
271
+ opacity: 1;
272
+ transform: translateX(0);
273
+ }
274
+ }
275
+
276
+ // 动画类
277
+ .animate-fade-in-up {
278
+ animation-name: fadeInUp;
279
+ }
280
+
281
+ .animate-fade-in-down {
282
+ animation-name: fadeInDown;
283
+ }
284
+
285
+ .animate-fade-in-left {
286
+ animation-name: fadeInLeft;
287
+ }
288
+
289
+ .animate-fade-in-right {
290
+ animation-name: fadeInRight;
291
+ }
292
+
293
+ .animate-scale-in {
294
+ animation-name: scaleIn;
295
+ animation-duration: 1.2s;
296
+ }
297
+
298
+ .animate-bounce-in {
299
+ animation-name: bounceIn;
300
+ animation-duration: 0.6s;
301
+ }
302
+
303
+ .animate-fade-in-left-rotated-blue {
304
+ animation-name: fadeInLeftRotatedBlue;
305
+ }
306
+
307
+ .animate-fade-in-left-rotated-pink {
308
+ animation-name: fadeInLeftRotatedPink;
309
+ }
310
+
311
+ .animate-fade-in-left-no-rotation {
312
+ animation-name: fadeInLeftNoRotation;
313
+ }
314
+
315
+ // 基础几何形状
316
+ .circle-outline {
317
+ top: 10%;
318
+ left: 25%;
319
+ width: 42px;
320
+ height: 42px;
321
+ border: 2px solid $primary-light-8;
322
+ border-radius: 50%;
323
+ }
324
+
325
+ .square-rotated {
326
+ top: 50%;
327
+ left: 16%;
328
+ width: 60px;
329
+ height: 60px;
330
+ background-color: $bg-mix-light-8;
331
+
332
+ &.animate-fade-in-left {
333
+ animation-name: fadeInLeftRotated;
334
+ }
335
+ }
336
+
337
+ .circle-small {
338
+ bottom: 26%;
339
+ left: 30%;
340
+ width: 18px;
341
+ height: 18px;
342
+ background-color: $primary-light-8;
343
+ border-radius: 50%;
344
+ }
345
+
346
+ // 太阳/月亮效果
347
+ .circle-top-right {
348
+ top: 3%;
349
+ right: 3%;
350
+ z-index: 100;
351
+ width: 50px;
352
+ height: 50px;
353
+ cursor: pointer;
354
+ background: $bg-mix-light-7;
355
+ border-radius: 50%;
356
+ transition: all 0.3s;
357
+
358
+ &::after {
359
+ position: absolute;
360
+ top: 50%;
361
+ left: 50%;
362
+ width: 100%;
363
+ height: 100%;
364
+ content: '';
365
+ background: linear-gradient(to right, #fcbb04, #fffc00);
366
+ border-radius: 50%;
367
+ opacity: 0;
368
+ transform: translate(-50%, -50%);
369
+ transition: all 0.5s;
370
+ }
371
+
372
+ &:hover {
373
+ box-shadow: 0 0 36px #fffc00;
374
+
375
+ &::after {
376
+ opacity: 1;
377
+ }
378
+ }
379
+ }
380
+
381
+ .square-bottom-right {
382
+ right: 10%;
383
+ bottom: 10%;
384
+ width: 50px;
385
+ height: 50px;
386
+ background-color: $primary-light-8;
387
+
388
+ &.animate-fade-in-right {
389
+ animation-name: fadeInRightRotated;
390
+ }
391
+ }
392
+
393
+ // 背景泡泡
394
+ .bg-bubble {
395
+ top: -120px;
396
+ right: -120px;
397
+ width: 360px;
398
+ height: 360px;
399
+ background-color: $bg-mix-light-8;
400
+ border-radius: 50%;
401
+ }
402
+
403
+ // 装饰点
404
+ .dot {
405
+ width: 14px;
406
+ height: 14px;
407
+ background-color: $primary-light-7;
408
+ border-radius: 50%;
409
+
410
+ &.dot-top-left {
411
+ top: 140px;
412
+ left: 100px;
413
+ }
414
+
415
+ &.dot-top-right {
416
+ top: 140px;
417
+ right: 120px;
418
+ }
419
+
420
+ &.dot-center-right {
421
+ top: 46%;
422
+ right: 22%;
423
+ background-color: $primary-light-8;
424
+ }
425
+ }
426
+
427
+ // 叠加方块组
428
+ .squares-group {
429
+ position: absolute;
430
+ bottom: 18px;
431
+ left: 20px;
432
+ width: 140px;
433
+ height: 140px;
434
+ pointer-events: none;
435
+
436
+ .square {
437
+ position: absolute;
438
+ display: block;
439
+ border-radius: 8px;
440
+ box-shadow: 0 8px 24px rgb(64 87 167 / 12%);
441
+
442
+ &.square-blue {
443
+ top: 12px;
444
+ left: 30px;
445
+ z-index: 2;
446
+ width: 50px;
447
+ height: 50px;
448
+ background-color: rgb(from $primary-base r g b / 30%);
449
+ }
450
+
451
+ &.square-pink {
452
+ top: 30px;
453
+ left: 48px;
454
+ z-index: 1;
455
+ width: 70px;
456
+ height: 70px;
457
+ background-color: rgb(from $primary-base r g b / 15%);
458
+ }
459
+
460
+ &.square-purple {
461
+ top: 66px;
462
+ left: 86px;
463
+ z-index: 3;
464
+ width: 32px;
465
+ height: 32px;
466
+ background-color: rgb(from $primary-base r g b / 45%);
467
+ }
468
+ }
469
+
470
+ // 装饰线条
471
+ &::after {
472
+ position: absolute;
473
+ top: 86px;
474
+ left: 72px;
475
+ width: 80px;
476
+ height: 1px;
477
+ content: '';
478
+ background: linear-gradient(90deg, var(--el-color-primary-light-6), transparent);
479
+ opacity: 0;
480
+ transform: rotate(50deg);
481
+ animation: lineGrow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
482
+ animation-delay: 1.2s;
483
+ }
484
+ }
485
+ }
486
+
487
+ @media only screen and (width <= 1600px) {
488
+ width: 60vw;
489
+
490
+ .text-wrap {
491
+ bottom: 40px;
492
+ }
493
+ }
494
+
495
+ @media only screen and (width <= 1180px) {
496
+ width: auto;
497
+ height: auto;
498
+ padding: 0;
499
+ // 隐藏背景和其他内容,只保留 logo
500
+ background: transparent;
501
+
502
+ .left-img,
503
+ .text-wrap,
504
+ .geometric-decorations {
505
+ display: none;
506
+ }
507
+
508
+ .logo {
509
+ display: none;
510
+ }
511
+ }
512
+ }
513
+
514
+ // 暗色主题
515
+ .dark .login-left-view {
516
+ background-color: color-mix(in srgb, $primary-light-9 60%, #070707);
517
+
518
+ @media only screen and (width <= 1180px) {
519
+ background: transparent;
520
+ }
521
+
522
+ .geometric-decorations {
523
+ // 月亮效果
524
+ .circle-top-right {
525
+ background-color: $bg-mix-light-8;
526
+ box-shadow: 0 0 25px #333 inset;
527
+ rotate: -48deg;
528
+ transition: all 0.3s ease-in-out 0.1s;
529
+
530
+ &::before {
531
+ position: absolute;
532
+ top: 0;
533
+ left: 15px;
534
+ width: 50px;
535
+ height: 50px;
536
+ content: '';
537
+ background-color: $bg-mix-light-9;
538
+ border-radius: 50%;
539
+ transition: all 0.3s ease-in-out;
540
+ }
541
+
542
+ &:hover {
543
+ background-color: transparent;
544
+ box-shadow: 0 40px 25px #ddd inset;
545
+
546
+ &::before {
547
+ left: 18px;
548
+ }
549
+
550
+ &::after {
551
+ opacity: 0;
552
+ }
553
+ }
554
+ }
555
+
556
+ .bg-bubble {
557
+ background-color: $bg-mix-light-9;
558
+ }
559
+
560
+ // 其他元素颜色调整
561
+ .square-rotated {
562
+ background-color: $bg-mix-light-9;
563
+ }
564
+
565
+ .circle-small,
566
+ .dot {
567
+ background-color: $primary-light-8;
568
+ }
569
+
570
+ .square-bottom-right {
571
+ background-color: $primary-light-9;
572
+ }
573
+
574
+ .dot.dot-top-right {
575
+ background-color: $primary-light-8;
576
+ }
577
+ }
578
+
579
+ // 方块组暗色调整
580
+ .squares-group {
581
+ .square {
582
+ box-shadow: none;
583
+
584
+ &.square-blue {
585
+ background-color: rgb(from $primary-base r g b / 18%);
586
+ }
587
+
588
+ &.square-pink {
589
+ background-color: rgb(from $primary-base r g b / 10%);
590
+ }
591
+
592
+ &.square-purple {
593
+ background-color: rgb(from $primary-base r g b / 20%);
594
+ }
595
+ }
596
+
597
+ &::after {
598
+ background: linear-gradient(90deg, $primary-light-8, transparent);
599
+ }
600
+ }
601
+ }
602
+ </style>
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <div class="page-content box-border !px-20 py-3.5 text-center max-md:!px-5" :class="type">
3
+ <ArtSvgIcon
4
+ class="icon size-22 p-2 mt-16 block rounded-full !text-white"
5
+ :icon="iconCode"
6
+ :class="type === 'success' ? 'bg-[#19BE6B]' : 'bg-[#ED4014]'"
7
+ />
8
+ <h1 class="title mt-8 text-3xl font-medium !text-g-900 max-md:mt-2.5 max-md:text-2xl">{{
9
+ title
10
+ }}</h1>
11
+ <p class="msg mt-5 text-base text-g-600">{{ message }}</p>
12
+ <div
13
+ class="res mt-7.5 rounded bg-g-200/80 dark:bg-g-300/40 px-7.5 py-5.5 text-left max-md:px-7.5 max-md:py-2.5 [&_p]:flex [&_p]:items-center [&_p]:py-2 [&_p]:text-sm [&_p]:text-[#808695] [&_p_i]:mr-1.5"
14
+ >
15
+ <slot name="content"></slot>
16
+ </div>
17
+ <div class="btn-group mt-12.5">
18
+ <slot name="buttons"></slot>
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ defineOptions({ name: 'ArtResultPage' })
25
+
26
+ interface ResultPageProps {
27
+ /** 成功/失败 */
28
+ type: 'success' | 'fail'
29
+ /** 标题 */
30
+ title: string
31
+ /** 消息 */
32
+ message: string
33
+ /** 图标 */
34
+ iconCode: string
35
+ }
36
+
37
+ withDefaults(defineProps<ResultPageProps>(), {
38
+ type: 'success',
39
+ title: '',
40
+ message: '',
41
+ iconCode: ''
42
+ })
43
+ </script>
@@ -0,0 +1,23 @@
1
+ <!-- 按钮组件 -->
2
+ <template>
3
+ <div
4
+ class="size-8.5 inline-flex flex-cc c-p text-g-600 dark:text-g-800 text-xl rounded tad-300 hover:bg-hover-color"
5
+ :class="{ 'rounded-full': circle }"
6
+ >
7
+ <ArtSvgIcon :icon="icon"></ArtSvgIcon>
8
+ <slot></slot>
9
+ </div>
10
+ </template>
11
+
12
+ <script lang="ts" setup>
13
+ defineOptions({ name: 'ArtIconButton' })
14
+
15
+ interface Props {
16
+ /** 图标名称 */
17
+ icon: string
18
+ /** 圆角按钮 */
19
+ circle?: boolean
20
+ }
21
+
22
+ withDefaults(defineProps<Props>(), {})
23
+ </script>