From 23991a6ab20a7134345a0666124a30f2cd42a00a Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 18 Oct 2023 19:06:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=A2=E9=98=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/package-lock.json | 4 +- .../content-container/LayoutContent.vue | 41 ++++ ui/src/components/icons/AppIcon.vue | 10 +- ui/src/components/icons/index.ts | 20 ++ ui/src/components/index.ts | 2 + .../main-container/LayoutContent.vue | 52 ----- .../main-container/LayoutContentMain.vue | 32 --- .../layout/components/sidebar/SidebarItem.vue | 18 +- .../top-bar/avatar/ResetPasssword.vue | 2 +- ui/src/layout/components/top-bar/index.vue | 7 +- ui/src/layout/main-layout/index.vue | 7 +- ui/src/router/index.ts | 7 +- ui/src/styles/app.scss | 195 +++--------------- ui/src/styles/element-plus.scss | 3 + ui/src/styles/variables.scss | 9 +- ui/src/views/login/forgot-password/index.vue | 6 +- ui/src/views/login/register/index.vue | 6 +- ui/src/views/login/reset-password/index.vue | 4 +- ui/src/views/setting/index.vue | 71 +++++-- 19 files changed, 187 insertions(+), 309 deletions(-) create mode 100644 ui/src/components/content-container/LayoutContent.vue delete mode 100644 ui/src/components/main-container/LayoutContent.vue delete mode 100644 ui/src/components/main-container/LayoutContentMain.vue diff --git a/ui/package-lock.json b/ui/package-lock.json index 0ccfcde45..4edcf7174 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -2028,7 +2028,7 @@ }, "node_modules/escape-html": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-10.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, "node_modules/escape-string-regexp": { @@ -7283,7 +7283,7 @@ }, "escape-html": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-10.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, "escape-string-regexp": { diff --git a/ui/src/components/content-container/LayoutContent.vue b/ui/src/components/content-container/LayoutContent.vue new file mode 100644 index 000000000..8062d0d24 --- /dev/null +++ b/ui/src/components/content-container/LayoutContent.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/ui/src/components/icons/AppIcon.vue b/ui/src/components/icons/AppIcon.vue index 81ab143fd..346405b1c 100644 --- a/ui/src/components/icons/AppIcon.vue +++ b/ui/src/components/icons/AppIcon.vue @@ -30,12 +30,4 @@ const props = withDefaults( const isIconfont = computed(() => props.iconName?.includes('app-')) - + diff --git a/ui/src/components/icons/index.ts b/ui/src/components/icons/index.ts index c81caad33..8236ecd0a 100644 --- a/ui/src/components/icons/index.ts +++ b/ui/src/components/icons/index.ts @@ -114,5 +114,25 @@ export const iconMap: any = { ) ]) } + }, + 'app-add-users': { + iconReader: () => { + return h('i', [ + h( + 'svg', + { + viewBox: '0 0 1024 1024', + version: '1.1', + xmlns: 'http://www.w3.org/2000/svg' + }, + [ + h('path', { + d: 'M 892 772 h -80 v -80 c 0 -4.4 -3.6 -8 -8 -8 h -48 c -4.4 0 -8 3.6 -8 8 v 80 h -80 c -4.4 0 -8 3.6 -8 8 v 48 c 0 4.4 3.6 8 8 8 h 80 v 80 c 0 4.4 3.6 8 8 8 h 48 c 4.4 0 8 -3.6 8 -8 v -80 h 80 c 4.4 0 8 -3.6 8 -8 v -48 c 0 -4.4 -3.6 -8 -8 -8 Z M 373.5 498.4 c -0.9 -8.7 -1.4 -17.5 -1.4 -26.4 c 0 -15.9 1.5 -31.4 4.3 -46.5 c 0.7 -3.6 -1.2 -7.3 -4.5 -8.8 c -13.6 -6.1 -26.1 -14.5 -36.9 -25.1 c -25.8 -25.2 -39.7 -59.3 -38.7 -95.4 c 0.9 -32.1 13.8 -62.6 36.3 -85.6 c 24.7 -25.3 57.9 -39.1 93.2 -38.7 c 31.9 0.3 62.7 12.6 86 34.4 c 7.9 7.4 14.7 15.6 20.4 24.4 c 2 3.1 5.9 4.4 9.3 3.2 c 17.6 -6.1 36.2 -10.4 55.3 -12.4 c 5.6 -0.6 8.8 -6.6 6.3 -11.6 c -32.5 -64.3 -98.9 -108.7 -175.7 -109.9 c -110.8 -1.7 -203.2 89.2 -203.2 200 c 0 62.8 28.9 118.8 74.2 155.5 c -31.8 14.7 -61.1 35 -86.5 60.4 c -54.8 54.7 -85.8 126.9 -87.8 204 c -0.1 4.5 3.5 8.2 8 8.2 h 56.1 c 4.3 0 7.9 -3.4 8 -7.7 c 1.9 -58 25.4 -112.3 66.7 -153.5 c 29.4 -29.4 65.4 -49.8 104.7 -59.7 c 3.8 -1.1 6.4 -4.8 5.9 -8.8 Z M 824 472 c 0 -109.4 -87.9 -198.3 -196.9 -200 C 516.3 270.3 424 361.2 424 472 c 0 62.8 29 118.8 74.2 155.5 c -31.7 14.7 -60.9 34.9 -86.4 60.4 C 357 742.6 326 814.8 324 891.8 c -0.1 4.5 3.5 8.2 8 8.2 h 56 c 4.3 0 7.9 -3.4 8 -7.7 c 1.9 -58 25.4 -112.3 66.7 -153.5 C 505.8 695.7 563 672 624 672 c 110.4 0 200 -89.5 200 -200 Z m -109.5 90.5 C 690.3 586.7 658.2 600 624 600 s -66.3 -13.3 -90.5 -37.5 C 509 538 495.7 505.4 496 470.7 c 0.3 -32.8 13.4 -64.5 36.3 -88 c 24 -24.6 56.1 -38.3 90.4 -38.7 c 33.9 -0.3 66.8 12.9 91 36.6 c 24.8 24.3 38.4 56.8 38.4 91.4 c -0.1 34.2 -13.4 66.3 -37.6 90.5 Z', + fill: 'currentColor' + }) + ] + ) + ]) + } } } diff --git a/ui/src/components/index.ts b/ui/src/components/index.ts index 3042d221a..8b837a76d 100644 --- a/ui/src/components/index.ts +++ b/ui/src/components/index.ts @@ -2,11 +2,13 @@ import { type App } from 'vue' import AppIcon from './icons/AppIcon.vue' import LoginLayout from './login-layout/index.vue' import LoginContainer from './login-container/index.vue' +import LayoutContent from './content-container/LayoutContent.vue' export default { install(app: App) { app.component(AppIcon.name, AppIcon) app.component(LoginLayout.name, LoginLayout) app.component(LoginContainer.name, LoginContainer) + app.component(LayoutContent.name, LayoutContent) } } diff --git a/ui/src/components/main-container/LayoutContent.vue b/ui/src/components/main-container/LayoutContent.vue deleted file mode 100644 index b49e0095d..000000000 --- a/ui/src/components/main-container/LayoutContent.vue +++ /dev/null @@ -1,52 +0,0 @@ - - - - - diff --git a/ui/src/components/main-container/LayoutContentMain.vue b/ui/src/components/main-container/LayoutContentMain.vue deleted file mode 100644 index 804ee24ca..000000000 --- a/ui/src/components/main-container/LayoutContentMain.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/ui/src/layout/components/sidebar/SidebarItem.vue b/ui/src/layout/components/sidebar/SidebarItem.vue index 613d2ec35..f56c83a6e 100644 --- a/ui/src/layout/components/sidebar/SidebarItem.vue +++ b/ui/src/layout/components/sidebar/SidebarItem.vue @@ -1,5 +1,5 @@