From 22c05674f876bf6972ad23a3fbcdb59f6f91c11d Mon Sep 17 00:00:00 2001 From: Soybean Date: Tue, 20 Sep 2022 12:09:15 +0800 Subject: [PATCH] build(projects): update deps, update logos --- mock/model/route.ts | 26 ++++++++++++++++--- package.json | 16 ++++++------ src/typings/route.d.ts | 2 +- .../components/WorkbenchMain/index.vue | 15 +++++------ src/views/document/naive/index.vue | 4 ++- .../document/{vue-new => project}/index.vue | 4 ++- src/views/document/vite/index.vue | 4 ++- src/views/document/vue/index.vue | 4 ++- 8 files changed, 50 insertions(+), 25 deletions(-) rename src/views/document/{vue-new => project}/index.vue (68%) diff --git a/mock/model/route.ts b/mock/model/route.ts index f80378fd..4d6943fc 100644 --- a/mock/model/route.ts +++ b/mock/model/route.ts @@ -44,7 +44,7 @@ export const routeModel: Record = { meta: { title: 'vue文档', requiresAuth: true, - icon: 'mdi:vuejs' + icon: 'logos:vue' } }, { @@ -54,16 +54,36 @@ export const routeModel: Record = { meta: { title: 'vite文档', requiresAuth: true, - icon: 'simple-icons:vite' + icon: 'logos:vitejs' + } + }, + { + name: 'document_naive', + path: '/document/naive', + component: 'self', + meta: { + title: 'naive文档', + requiresAuth: true, + icon: 'logos:naiveui' } }, { name: 'document_project', path: '/document/project', + component: 'self', + meta: { + title: '项目文档', + requiresAuth: true, + customIcon: 'logo' + } + }, + { + name: 'document_project-link', + path: '/document/project-link', meta: { title: '项目文档(外链)', requiresAuth: true, - icon: 'mdi:file-link-outline', + customIcon: 'logo', href: 'https://docs.soybean.pro/' } } diff --git a/package.json b/package.json index 5dec63a6..bd49f0cc 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ }, "dependencies": { "@antv/data-set": "^0.11.8", - "@antv/g2": "^4.2.7", + "@antv/g2": "^4.2.8", "@better-scroll/core": "^2.4.2", "@soybeanjs/vue-admin-layout": "^1.1.1", "@soybeanjs/vue-admin-tab": "^1.0.5", @@ -70,7 +70,7 @@ "pinia": "^2.0.22", "print-js": "^1.6.0", "qs": "^6.11.0", - "swiper": "^8.4.0", + "swiper": "^8.4.2", "ua-parser-js": "^1.0.2", "vditor": "^3.8.17", "vue": "3.2.39", @@ -82,7 +82,7 @@ "@amap/amap-jsapi-types": "^0.0.8", "@commitlint/cli": "^17.1.2", "@commitlint/config-conventional": "^17.1.0", - "@iconify/json": "^2.1.107", + "@iconify/json": "^2.1.109", "@iconify/vue": "^4.0.0", "@milahu/patch-package": "^6.4.14", "@types/bmapgl": "^0.0.5", @@ -90,8 +90,8 @@ "@types/node": "^18.7.18", "@types/qs": "^6.9.7", "@types/ua-parser-js": "^0.7.36", - "@unocss/preset-uno": "^0.45.21", - "@unocss/vite": "^0.45.21", + "@unocss/preset-uno": "^0.45.22", + "@unocss/vite": "^0.45.22", "@vitejs/plugin-vue": "^3.1.0", "@vitejs/plugin-vue-jsx": "^2.0.1", "commitizen": "^4.2.5", @@ -108,16 +108,16 @@ "sass": "^1.54.9", "standard-version": "^9.5.0", "typescript": "4.8.3", - "unplugin-icons": "^0.14.9", + "unplugin-icons": "^0.14.10", "unplugin-vue-components": "0.22.7", "unplugin-vue-macros": "^0.11.2", "utility-types": "^3.10.0", - "vite": "^3.1.0", + "vite": "^3.1.3", "vite-plugin-compression": "^0.5.1", "vite-plugin-html": "^3.2.0", "vite-plugin-mock": "^2.9.6", "vite-plugin-progress": "^0.0.4", - "vite-plugin-pwa": "^0.12.7", + "vite-plugin-pwa": "^0.13.0", "vite-plugin-svg-icons": "^2.0.1", "vue-tsc": "^0.40.13" }, diff --git a/src/typings/route.d.ts b/src/typings/route.d.ts index a2d3eb20..391975e8 100644 --- a/src/typings/route.d.ts +++ b/src/typings/route.d.ts @@ -18,10 +18,10 @@ declare namespace AuthRoute { | 'dashboard_workbench' | 'document' | 'document_vue' - | 'document_vue-new' | 'document_vite' | 'document_naive' | 'document_project' + | 'document_project-link' | 'component' | 'component_button' | 'component_card' diff --git a/src/views/dashboard/workbench/components/WorkbenchMain/index.vue b/src/views/dashboard/workbench/components/WorkbenchMain/index.vue index ea67cd6c..25ea3fb7 100644 --- a/src/views/dashboard/workbench/components/WorkbenchMain/index.vue +++ b/src/views/dashboard/workbench/components/WorkbenchMain/index.vue @@ -66,7 +66,7 @@ const technology: Technology[] = [ description: '一套用于构建用户界面的渐进式框架', author: '尤雨溪 - Evan You', site: 'https://v3.cn.vuejs.org/', - icon: 'vscode-icons:file-type-vue' + icon: 'logos:vue' }, { id: 1, @@ -74,7 +74,7 @@ const technology: Technology[] = [ description: 'JavaScript类型的超集,它可以编译成纯JavaScript', author: '微软 - Microsoft', site: 'https://www.typescriptlang.org/', - icon: 'vscode-icons:file-type-typescript-official' + icon: 'logos:typescript-icon' }, { id: 2, @@ -82,7 +82,7 @@ const technology: Technology[] = [ description: '下一代前端开发与构建工具', author: '尤雨溪 - Evan You', site: 'https://vitejs.cn/', - icon: 'vscode-icons:file-type-vite' + icon: 'logos:vitejs' }, { id: 3, @@ -90,8 +90,7 @@ const technology: Technology[] = [ description: '一个 Vue 3 组件库', author: '图森未来 - TuSimple', site: 'https://www.naiveui.com/zh-CN/os-theme', - icon: 'mdi:alpha-n-box-outline', - iconColor: '#5fbc22' + icon: 'logos:naiveui' }, { id: 4, @@ -99,8 +98,7 @@ const technology: Technology[] = [ description: '下一代实用优先的CSS框架', author: 'Anthony Fu', site: 'https://uno.antfu.me/?s=', - icon: 'logos:unocss', - iconColor: '#48b0f1' + icon: 'logos:unocss' }, { id: 5, @@ -108,8 +106,7 @@ const technology: Technology[] = [ description: 'vue状态管理框架,支持vue2、vue3', author: 'Posva', site: 'https://pinia.esm.dev/', - icon: 'mdi:fruit-pineapple', - iconColor: '#fecf48' + icon: 'noto:pineapple' } ]; diff --git a/src/views/document/naive/index.vue b/src/views/document/naive/index.vue index 4eda60eb..997241e4 100644 --- a/src/views/document/naive/index.vue +++ b/src/views/document/naive/index.vue @@ -5,7 +5,9 @@ diff --git a/src/views/document/vue-new/index.vue b/src/views/document/project/index.vue similarity index 68% rename from src/views/document/vue-new/index.vue rename to src/views/document/project/index.vue index 74d8112b..0f6cd783 100644 --- a/src/views/document/vue-new/index.vue +++ b/src/views/document/project/index.vue @@ -5,7 +5,9 @@ diff --git a/src/views/document/vite/index.vue b/src/views/document/vite/index.vue index abd95b4a..c7f951d2 100644 --- a/src/views/document/vite/index.vue +++ b/src/views/document/vite/index.vue @@ -5,7 +5,9 @@ diff --git a/src/views/document/vue/index.vue b/src/views/document/vue/index.vue index 92df65ea..bac16629 100644 --- a/src/views/document/vue/index.vue +++ b/src/views/document/vue/index.vue @@ -5,7 +5,9 @@