From ae2e7c0d3e558f945bfa2475f9d1f93b734e0aa6 Mon Sep 17 00:00:00 2001 From: Jo Li Date: Mon, 6 Feb 2023 16:18:08 +0800 Subject: [PATCH] =?UTF-8?q?add=20cli,Uniapp=20page,=E4=BC=98=E5=8C=96List?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ssr/assets/css/main.scss | 22 +++++ apps/ssr/config/index.ts | 2 + apps/ssr/pages/cli/index.vue | 143 ++++++++++++++++++++++++++++++++ apps/ssr/pages/index.vue | 14 +++- apps/ssr/pages/post/edit.vue | 14 +++- apps/ssr/pages/types.d.ts | 9 ++ apps/ssr/pages/uniapp/index.vue | 143 ++++++++++++++++++++++++++++++++ 7 files changed, 341 insertions(+), 6 deletions(-) create mode 100644 apps/ssr/pages/cli/index.vue create mode 100644 apps/ssr/pages/types.d.ts create mode 100644 apps/ssr/pages/uniapp/index.vue diff --git a/apps/ssr/assets/css/main.scss b/apps/ssr/assets/css/main.scss index f6cbc1c..ca1039c 100644 --- a/apps/ssr/assets/css/main.scss +++ b/apps/ssr/assets/css/main.scss @@ -262,6 +262,28 @@ } } } +.app-page-banner.app-uniapp-banner{ + background:#b0cf1a; + //background: linear-gradient(to right, #eae507 0%, #339500 100%); + background:linear-gradient(to right, #5d76b9 0%, #1900ff 100%); + .banner-text{ + .admin-btn{ + color: #1900ff; + box-shadow:0 0 16px #1900ff; + } + } +} +.app-page-banner.app-cli-banner{ + background:#b0cf1a; + //background: linear-gradient(to right, #eae507 0%, #339500 100%); + background:linear-gradient(to right, #cc95a8 0%, #ec0279 100%); + .banner-text{ + .admin-btn{ + color: #cc95a8; + box-shadow:0 0 16px #cc95a8; + } + } +} .app-dialog{ --el-dialog-margin-top:8vh; .el-dialog__body{ diff --git a/apps/ssr/config/index.ts b/apps/ssr/config/index.ts index 505d39b..63788d1 100644 --- a/apps/ssr/config/index.ts +++ b/apps/ssr/config/index.ts @@ -5,6 +5,8 @@ export const ROUTES_LINKS = [ { title: 'Admin', path: '/admin' }, { title: 'UI组件库', path: '/ui' }, { title: 'Hooks', path: '/hooks' }, + { title: 'CLI', path: '/cli' }, + { title: 'UniApp', path: '/uniapp' }, { title: '关于我们', path: '/help/about/', isBlank: false }, // { title: '帮助中心', path: '/docs', isBlank: true }, ] diff --git a/apps/ssr/pages/cli/index.vue b/apps/ssr/pages/cli/index.vue new file mode 100644 index 0000000..964880c --- /dev/null +++ b/apps/ssr/pages/cli/index.vue @@ -0,0 +1,143 @@ + + + diff --git a/apps/ssr/pages/index.vue b/apps/ssr/pages/index.vue index 4c567d7..632c598 100644 --- a/apps/ssr/pages/index.vue +++ b/apps/ssr/pages/index.vue @@ -7,9 +7,10 @@

提交入口

- 管理后台 - UI组件库 - Hooks工具集 + {{ item.title }} + + +
@@ -73,6 +74,13 @@ const state = reactive({ }, }) const loading = ref(true) +const topList = ref([ + { value: 1, title: '管理后台', class: 'el-button--primary' }, + { value: 2, title: 'UI组件库', class: 'el-button--success' }, + { value: 3, title: 'Hooks工具集', class: 'el-button--warning' }, + { value: 4, title: 'Cli', class: 'el-button--primary' }, + { value: 5, title: 'UniApp', class: 'el-button--success' }, +]) // 获取列表 const getList = async (params: any) => { diff --git a/apps/ssr/pages/post/edit.vue b/apps/ssr/pages/post/edit.vue index 589ff7e..5e1aa4f 100644 --- a/apps/ssr/pages/post/edit.vue +++ b/apps/ssr/pages/post/edit.vue @@ -52,9 +52,10 @@ - - - + + + + @@ -142,6 +143,13 @@ const modelForm = reactive({ status: 1, backend: '', }) +const navItems = ref([ + { label: 'Admin', value: 1 }, + { label: 'UI组件库', value: 2 }, + { label: 'Hooks', value: 3 }, + { label: 'CLI', value: 4 }, + { label: 'Uniapp', value: 5 }, +]) const drawer = ref(false) const activeCollapse = ref(['1', '2', '3', '4']) const route = useRoute() diff --git a/apps/ssr/pages/types.d.ts b/apps/ssr/pages/types.d.ts new file mode 100644 index 0000000..d6e8f6e --- /dev/null +++ b/apps/ssr/pages/types.d.ts @@ -0,0 +1,9 @@ +declare interface INavList { + value: number + label: string +} + +declare interface ITopList extends INavList { + title: string + class: string +} diff --git a/apps/ssr/pages/uniapp/index.vue b/apps/ssr/pages/uniapp/index.vue new file mode 100644 index 0000000..4f18b7b --- /dev/null +++ b/apps/ssr/pages/uniapp/index.vue @@ -0,0 +1,143 @@ + + + -- Gitee