diff --git a/.vscode/settings.json b/.vscode/settings.json index 9e955890..ad0b8da8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -43,7 +43,7 @@ "terminal.integrated.fontWeight": 500, "terminal.integrated.tabs.enabled": true, "workbench.iconTheme": "material-icon-theme", - "workbench.colorTheme": "One Dark Pro", + "workbench.colorTheme": "GitHub Light Colorblind (Beta)", "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, diff --git a/mock/model/route.ts b/mock/model/route.ts index 713aceac..42a3f0e5 100644 --- a/mock/model/route.ts +++ b/mock/model/route.ts @@ -34,527 +34,6 @@ export const routeModel: Record = { order: 1, i18nTitle: 'message.routes.dashboard._value' } - }, - { - name: 'document', - path: '/document', - component: 'basic', - children: [ - { - name: 'document_vue', - path: '/document/vue', - component: 'self', - meta: { - title: 'vue文档', - i18nTitle: 'message.routes.document.vue', - requiresAuth: true, - icon: 'logos:vue' - } - }, - { - name: 'document_vite', - path: '/document/vite', - component: 'self', - meta: { - title: 'vite文档', - i18nTitle: 'message.routes.document.vite', - requiresAuth: true, - icon: 'logos:vitejs' - } - }, - { - name: 'document_naive', - path: '/document/naive', - component: 'self', - meta: { - title: 'naive文档', - i18nTitle: 'message.routes.document.naive', - requiresAuth: true, - icon: 'logos:naiveui' - } - }, - { - name: 'document_project', - path: '/document/project', - component: 'self', - meta: { - title: '项目文档', - i18nTitle: 'message.routes.document.project', - requiresAuth: true, - localIcon: 'logo' - } - }, - { - name: 'document_project-link', - path: '/document/project-link', - meta: { - title: '项目文档(外链)', - i18nTitle: 'message.routes.document.project-link', - requiresAuth: true, - localIcon: 'logo', - href: 'https://docs.soybean.pro/' - } - } - ], - meta: { - title: '文档', - i18nTitle: 'message.routes.document._value', - icon: 'mdi:file-document-multiple-outline', - order: 2 - } - }, - { - name: 'component', - path: '/component', - component: 'basic', - children: [ - { - name: 'component_button', - path: '/component/button', - component: 'self', - meta: { - title: '按钮', - i18nTitle: 'message.routes.component.button', - requiresAuth: true, - icon: 'mdi:button-cursor' - } - }, - { - name: 'component_card', - path: '/component/card', - component: 'self', - meta: { - title: '卡片', - i18nTitle: 'message.routes.component.card', - requiresAuth: true, - icon: 'mdi:card-outline' - } - }, - { - name: 'component_table', - path: '/component/table', - component: 'self', - meta: { - title: '表格', - i18nTitle: 'message.routes.component.table', - requiresAuth: true, - icon: 'mdi:table-large' - } - } - ], - meta: { - title: '组件示例', - i18nTitle: 'message.routes.component._value', - icon: 'cib:app-store', - order: 3 - } - }, - { - name: 'plugin', - path: '/plugin', - component: 'basic', - children: [ - { - name: 'plugin_charts', - path: '/plugin/charts', - component: 'multi', - children: [ - { - name: 'plugin_charts_echarts', - path: '/plugin/charts/echarts', - component: 'self', - meta: { - title: 'ECharts', - i18nTitle: 'message.routes.plugin.charts.echarts', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - i18nTitle: 'message.routes.plugin.charts.antv', - requiresAuth: true, - icon: 'simple-icons:antdesign' - } - } - ], - meta: { - title: '图表', - i18nTitle: 'message.routes.plugin.charts._value', - icon: 'mdi:chart-areaspline' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - i18nTitle: 'message.routes.plugin.map', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - i18nTitle: 'message.routes.plugin.video', - requiresAuth: true, - icon: 'mdi:video' - } - }, - { - name: 'plugin_editor', - path: '/plugin/editor', - component: 'multi', - children: [ - { - name: 'plugin_editor_quill', - path: '/plugin/editor/quill', - component: 'self', - meta: { - title: '富文本编辑器', - i18nTitle: 'message.routes.plugin.editor.quill', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - i18nTitle: 'message.routes.plugin.editor.markdown', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - i18nTitle: 'message.routes.plugin.editor._value', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - i18nTitle: 'message.routes.plugin.swiper', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - i18nTitle: 'message.routes.plugin.copy', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - i18nTitle: 'message.routes.plugin.icon', - requiresAuth: true, - localIcon: 'custom-icon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - i18nTitle: 'message.routes.plugin.print', - requiresAuth: true, - icon: 'mdi:printer' - } - } - ], - meta: { - title: '插件示例', - i18nTitle: 'message.routes.plugin._value', - icon: 'clarity:plugin-line', - order: 4 - } - }, - { - name: 'auth-demo', - path: '/auth-demo', - component: 'basic', - children: [ - { - name: 'auth-demo_permission', - path: '/auth-demo/permission', - component: 'self', - meta: { - title: '权限切换', - i18nTitle: 'message.routes.auth-demo.permission', - requiresAuth: true, - icon: 'ic:round-construction' - } - }, - { - name: 'auth-demo_super', - path: '/auth-demo/super', - component: 'self', - meta: { - title: '超级管理员可见', - i18nTitle: 'message.routes.auth-demo.super', - requiresAuth: true, - icon: 'ic:round-supervisor-account' - } - } - ], - meta: { - title: '权限示例', - i18nTitle: 'message.routes.auth-demo._value', - icon: 'ic:baseline-security', - order: 5 - } - }, - { - name: 'function', - path: '/function', - component: 'basic', - children: [ - { - name: 'function_tab', - path: '/function/tab', - component: 'self', - meta: { - title: 'Tab', - i18nTitle: 'message.routes.function.tab', - requiresAuth: true, - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-detail', - path: '/function/tab-detail', - component: 'self', - meta: { - title: 'Tab Detail', - requiresAuth: true, - hide: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-multi-detail', - path: '/function/tab-multi-detail', - component: 'self', - meta: { - title: 'Tab Multi Detail', - requiresAuth: true, - hide: true, - multiTab: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - } - ], - meta: { - title: '功能', - i18nTitle: 'message.routes.function._value', - icon: 'icon-park-outline:all-application', - order: 6 - } - }, - { - name: 'exception', - path: '/exception', - component: 'basic', - children: [ - { - name: 'exception_403', - path: '/exception/403', - component: 'self', - meta: { - title: '异常页403', - i18nTitle: 'message.routes.exception.403', - requiresAuth: true, - icon: 'ic:baseline-block' - } - }, - { - name: 'exception_404', - path: '/exception/404', - component: 'self', - meta: { - title: '异常页404', - i18nTitle: 'message.routes.exception.404', - requiresAuth: true, - icon: 'ic:baseline-web-asset-off' - } - }, - { - name: 'exception_500', - path: '/exception/500', - component: 'self', - meta: { - title: '异常页500', - i18nTitle: 'message.routes.exception.500', - requiresAuth: true, - icon: 'ic:baseline-wifi-off' - } - } - ], - meta: { - i18nTitle: 'message.routes.exception._value', - title: '异常页', - icon: 'ant-design:exception-outlined', - order: 7 - } - }, - { - name: 'multi-menu', - path: '/multi-menu', - component: 'basic', - children: [ - { - name: 'multi-menu_first', - path: '/multi-menu/first', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second', - path: '/multi-menu/first/second', - component: 'self', - meta: { - title: '二级菜单', - i18nTitle: 'message.routes.multi-menu.first.second', - requiresAuth: true, - icon: 'mdi:menu' - } - }, - { - name: 'multi-menu_first_second-new', - path: '/multi-menu/first/second-new', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second-new_third', - path: '/multi-menu/first/second-new/third', - component: 'self', - meta: { - title: '三级菜单', - i18nTitle: 'message.routes.multi-menu.first.second-new.third', - requiresAuth: true, - icon: 'mdi:menu' - } - } - ], - meta: { - title: '二级菜单(有子菜单)', - i18nTitle: 'message.routes.multi-menu.first.second-new._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '一级菜单', - i18nTitle: 'message.routes.multi-menu.first._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '多级菜单', - i18nTitle: 'message.routes.multi-menu._value', - icon: 'carbon:menu', - order: 8 - } - }, - { - name: 'management', - path: '/management', - component: 'basic', - children: [ - { - name: 'management_auth', - path: '/management/auth', - component: 'self', - meta: { - title: '权限管理', - i18nTitle: 'message.routes.management.auth', - requiresAuth: true, - icon: 'ic:baseline-security' - } - }, - { - name: 'management_role', - path: '/management/role', - component: 'self', - meta: { - title: '角色管理', - i18nTitle: 'message.routes.management.role', - requiresAuth: true, - icon: 'carbon:user-role' - } - }, - { - name: 'management_user', - path: '/management/user', - component: 'self', - meta: { - title: '用户管理', - i18nTitle: 'message.routes.management.user', - requiresAuth: true, - icon: 'ic:round-manage-accounts' - } - }, - { - name: 'management_route', - path: '/management/route', - component: 'self', - meta: { - title: '路由管理', - i18nTitle: 'message.routes.management.route', - requiresAuth: true, - icon: 'material-symbols:route' - } - } - ], - meta: { - title: '系统管理', - i18nTitle: 'message.routes.management._value', - icon: 'carbon:cloud-service-management', - order: 9 - } - }, - { - name: 'about', - path: '/about', - component: 'self', - meta: { - title: '关于', - i18nTitle: 'message.routes.about', - requiresAuth: true, - keepAlive: true, - singleLayout: 'basic', - icon: 'fluent:book-information-24-regular', - order: 10 - } } ], admin: [ @@ -592,527 +71,6 @@ export const routeModel: Record = { order: 1, i18nTitle: 'message.routes.dashboard._value' } - }, - { - name: 'document', - path: '/document', - component: 'basic', - children: [ - { - name: 'document_vue', - path: '/document/vue', - component: 'self', - meta: { - title: 'vue文档', - i18nTitle: 'message.routes.document.vue', - requiresAuth: true, - icon: 'logos:vue' - } - }, - { - name: 'document_vite', - path: '/document/vite', - component: 'self', - meta: { - title: 'vite文档', - i18nTitle: 'message.routes.document.vite', - requiresAuth: true, - icon: 'logos:vitejs' - } - }, - { - name: 'document_naive', - path: '/document/naive', - component: 'self', - meta: { - title: 'naive文档', - i18nTitle: 'message.routes.document.naive', - requiresAuth: true, - icon: 'logos:naiveui' - } - }, - { - name: 'document_project', - path: '/document/project', - component: 'self', - meta: { - title: '项目文档', - i18nTitle: 'message.routes.document.project', - requiresAuth: true, - localIcon: 'logo' - } - }, - { - name: 'document_project-link', - path: '/document/project-link', - meta: { - title: '项目文档(外链)', - i18nTitle: 'message.routes.document.project-link', - requiresAuth: true, - localIcon: 'logo', - href: 'https://docs.soybean.pro/' - } - } - ], - meta: { - title: '文档', - i18nTitle: 'message.routes.document._value', - icon: 'mdi:file-document-multiple-outline', - order: 2 - } - }, - { - name: 'component', - path: '/component', - component: 'basic', - children: [ - { - name: 'component_button', - path: '/component/button', - component: 'self', - meta: { - title: '按钮', - i18nTitle: 'message.routes.component.button', - requiresAuth: true, - icon: 'mdi:button-cursor' - } - }, - { - name: 'component_card', - path: '/component/card', - component: 'self', - meta: { - title: '卡片', - i18nTitle: 'message.routes.component.card', - requiresAuth: true, - icon: 'mdi:card-outline' - } - }, - { - name: 'component_table', - path: '/component/table', - component: 'self', - meta: { - title: '表格', - i18nTitle: 'message.routes.component.table', - requiresAuth: true, - icon: 'mdi:table-large' - } - } - ], - meta: { - title: '组件示例', - i18nTitle: 'message.routes.component._value', - icon: 'cib:app-store', - order: 3 - } - }, - { - name: 'plugin', - path: '/plugin', - component: 'basic', - children: [ - { - name: 'plugin_charts', - path: '/plugin/charts', - component: 'multi', - children: [ - { - name: 'plugin_charts_echarts', - path: '/plugin/charts/echarts', - component: 'self', - meta: { - title: 'ECharts', - i18nTitle: 'message.routes.plugin.charts.echarts', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - i18nTitle: 'message.routes.plugin.charts.antv', - requiresAuth: true, - icon: 'simple-icons:antdesign' - } - } - ], - meta: { - title: '图表', - i18nTitle: 'message.routes.plugin.charts._value', - icon: 'mdi:chart-areaspline' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - i18nTitle: 'message.routes.plugin.map', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - i18nTitle: 'message.routes.plugin.video', - requiresAuth: true, - icon: 'mdi:video' - } - }, - { - name: 'plugin_editor', - path: '/plugin/editor', - component: 'multi', - children: [ - { - name: 'plugin_editor_quill', - path: '/plugin/editor/quill', - component: 'self', - meta: { - title: '富文本编辑器', - i18nTitle: 'message.routes.plugin.editor.quill', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - i18nTitle: 'message.routes.plugin.editor.markdown', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - i18nTitle: 'message.routes.plugin.editor._value', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - i18nTitle: 'message.routes.plugin.swiper', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - i18nTitle: 'message.routes.plugin.copy', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - i18nTitle: 'message.routes.plugin.icon', - requiresAuth: true, - localIcon: 'custom-icon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - i18nTitle: 'message.routes.plugin.print', - requiresAuth: true, - icon: 'mdi:printer' - } - } - ], - meta: { - title: '插件示例', - i18nTitle: 'message.routes.plugin._value', - icon: 'clarity:plugin-line', - order: 4 - } - }, - { - name: 'auth-demo', - path: '/auth-demo', - component: 'basic', - children: [ - { - name: 'auth-demo_permission', - path: '/auth-demo/permission', - component: 'self', - meta: { - title: '权限切换', - i18nTitle: 'message.routes.auth-demo.permission', - requiresAuth: true, - icon: 'ic:round-construction' - } - }, - { - name: 'auth-demo_super', - path: '/auth-demo/super', - component: 'self', - meta: { - title: '超级管理员可见', - i18nTitle: 'message.routes.auth-demo.super', - requiresAuth: true, - icon: 'ic:round-supervisor-account' - } - } - ], - meta: { - title: '权限示例', - i18nTitle: 'message.routes.auth-demo._value', - icon: 'ic:baseline-security', - order: 5 - } - }, - { - name: 'function', - path: '/function', - component: 'basic', - children: [ - { - name: 'function_tab', - path: '/function/tab', - component: 'self', - meta: { - title: 'Tab', - i18nTitle: 'message.routes.function.tab', - requiresAuth: true, - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-detail', - path: '/function/tab-detail', - component: 'self', - meta: { - title: 'Tab Detail', - requiresAuth: true, - hide: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-multi-detail', - path: '/function/tab-multi-detail', - component: 'self', - meta: { - title: 'Tab Multi Detail', - requiresAuth: true, - hide: true, - multiTab: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - } - ], - meta: { - title: '功能', - i18nTitle: 'message.routes.function._value', - icon: 'icon-park-outline:all-application', - order: 6 - } - }, - { - name: 'exception', - path: '/exception', - component: 'basic', - children: [ - { - name: 'exception_403', - path: '/exception/403', - component: 'self', - meta: { - title: '异常页403', - i18nTitle: 'message.routes.exception.403', - requiresAuth: true, - icon: 'ic:baseline-block' - } - }, - { - name: 'exception_404', - path: '/exception/404', - component: 'self', - meta: { - title: '异常页404', - i18nTitle: 'message.routes.exception.404', - requiresAuth: true, - icon: 'ic:baseline-web-asset-off' - } - }, - { - name: 'exception_500', - path: '/exception/500', - component: 'self', - meta: { - title: '异常页500', - i18nTitle: 'message.routes.exception.500', - requiresAuth: true, - icon: 'ic:baseline-wifi-off' - } - } - ], - meta: { - i18nTitle: 'message.routes.exception._value', - title: '异常页', - icon: 'ant-design:exception-outlined', - order: 7 - } - }, - { - name: 'multi-menu', - path: '/multi-menu', - component: 'basic', - children: [ - { - name: 'multi-menu_first', - path: '/multi-menu/first', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second', - path: '/multi-menu/first/second', - component: 'self', - meta: { - title: '二级菜单', - i18nTitle: 'message.routes.multi-menu.first.second', - requiresAuth: true, - icon: 'mdi:menu' - } - }, - { - name: 'multi-menu_first_second-new', - path: '/multi-menu/first/second-new', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second-new_third', - path: '/multi-menu/first/second-new/third', - component: 'self', - meta: { - title: '三级菜单', - i18nTitle: 'message.routes.multi-menu.first.second-new.third', - requiresAuth: true, - icon: 'mdi:menu' - } - } - ], - meta: { - title: '二级菜单(有子菜单)', - i18nTitle: 'message.routes.multi-menu.first.second-new._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '一级菜单', - i18nTitle: 'message.routes.multi-menu.first._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '多级菜单', - i18nTitle: 'message.routes.multi-menu._value', - icon: 'carbon:menu', - order: 8 - } - }, - { - name: 'management', - path: '/management', - component: 'basic', - children: [ - { - name: 'management_auth', - path: '/management/auth', - component: 'self', - meta: { - title: '权限管理', - i18nTitle: 'message.routes.management.auth', - requiresAuth: true, - icon: 'ic:baseline-security' - } - }, - { - name: 'management_role', - path: '/management/role', - component: 'self', - meta: { - title: '角色管理', - i18nTitle: 'message.routes.management.role', - requiresAuth: true, - icon: 'carbon:user-role' - } - }, - { - name: 'management_user', - path: '/management/user', - component: 'self', - meta: { - title: '用户管理', - i18nTitle: 'message.routes.management.user', - requiresAuth: true, - icon: 'ic:round-manage-accounts' - } - }, - { - name: 'management_route', - path: '/management/route', - component: 'self', - meta: { - title: '路由管理', - i18nTitle: 'message.routes.management.route', - requiresAuth: true, - icon: 'material-symbols:route' - } - } - ], - meta: { - title: '系统管理', - i18nTitle: 'message.routes.management._value', - icon: 'carbon:cloud-service-management', - order: 9 - } - }, - { - name: 'about', - path: '/about', - component: 'self', - meta: { - title: '关于', - i18nTitle: 'message.routes.about', - requiresAuth: true, - keepAlive: true, - singleLayout: 'basic', - icon: 'fluent:book-information-24-regular', - order: 10 - } } ], user: [ @@ -1150,114 +108,6 @@ export const routeModel: Record = { order: 1, i18nTitle: 'message.routes.dashboard._value' } - }, - { - name: 'auth-demo', - path: '/auth-demo', - component: 'basic', - children: [ - { - name: 'auth-demo_permission', - path: '/auth-demo/permission', - component: 'self', - meta: { - title: '权限切换', - i18nTitle: 'message.routes.auth-demo.permission', - requiresAuth: true, - icon: 'ic:round-construction' - } - }, - { - name: 'auth-demo_super', - path: '/auth-demo/super', - component: 'self', - meta: { - title: '超级管理员可见', - i18nTitle: 'message.routes.auth-demo.super', - requiresAuth: true, - icon: 'ic:round-supervisor-account' - } - } - ], - meta: { - title: '权限示例', - i18nTitle: 'message.routes.auth-demo._value', - icon: 'ic:baseline-security', - order: 5 - } - }, - { - name: 'multi-menu', - path: '/multi-menu', - component: 'basic', - children: [ - { - name: 'multi-menu_first', - path: '/multi-menu/first', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second', - path: '/multi-menu/first/second', - component: 'self', - meta: { - title: '二级菜单', - i18nTitle: 'message.routes.multi-menu.first.second', - requiresAuth: true, - icon: 'mdi:menu' - } - }, - { - name: 'multi-menu_first_second-new', - path: '/multi-menu/first/second-new', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second-new_third', - path: '/multi-menu/first/second-new/third', - component: 'self', - meta: { - title: '三级菜单', - i18nTitle: 'message.routes.multi-menu.first.second-new.third', - requiresAuth: true, - icon: 'mdi:menu' - } - } - ], - meta: { - title: '二级菜单(有子菜单)', - i18nTitle: 'message.routes.multi-menu.first.second-new._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '一级菜单', - i18nTitle: 'message.routes.multi-menu.first._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '多级菜单', - i18nTitle: 'message.routes.multi-menu._value', - icon: 'carbon:menu', - order: 8 - } - }, - { - name: 'about', - path: '/about', - component: 'self', - meta: { - title: '关于', - i18nTitle: 'message.routes.about', - requiresAuth: true, - keepAlive: true, - singleLayout: 'basic', - icon: 'fluent:book-information-24-regular', - order: 10 - } } ] }; diff --git a/package.json b/package.json index 7f81c38c..9094a40a 100644 --- a/package.json +++ b/package.json @@ -65,30 +65,21 @@ "colord": "2.9.3", "crypto-js": "4.1.1", "dayjs": "1.11.7", - "echarts": "5.4.2", "form-data": "4.0.0", "lodash-es": "4.17.21", "naive-ui": "2.34.4", "pinia": "2.1.3", - "print-js": "1.6.0", "qs": "6.11.2", - "swiper": "9.3.2", "ua-parser-js": "1.0.35", - "vditor": "3.9.3", "vue": "3.3.4", "vue-i18n": "9.2.2", - "vue-router": "4.2.2", - "vuedraggable": "4.1.0", - "wangeditor": "4.7.15", - "xgplayer": "3.0.2" + "vue-router": "4.2.2" }, "devDependencies": { - "@amap/amap-jsapi-types": "0.0.13", "@iconify/json": "2.2.72", "@iconify/vue": "4.1.1", "@soybeanjs/cli": "0.4.1", "@soybeanjs/vite-plugin-vue-page-route": "0.0.5", - "@types/bmapgl": "0.0.7", "@types/crypto-js": "4.1.1", "@types/node": "20.2.5", "@types/qs": "6.9.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0a933e5..3cbf3044 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,9 +36,6 @@ dependencies: dayjs: specifier: 1.11.7 version: 1.11.7 - echarts: - specifier: 5.4.2 - version: 5.4.2 form-data: specifier: 4.0.0 version: 4.0.0 @@ -51,21 +48,15 @@ dependencies: pinia: specifier: 2.1.3 version: 2.1.3(typescript@5.0.4)(vue@3.3.4) - print-js: - specifier: 1.6.0 - version: 1.6.0 qs: specifier: 6.11.2 version: 6.11.2 - swiper: - specifier: 9.3.2 - version: 9.3.2 + soybean-admin: + specifier: 'link:' + version: 'link:' ua-parser-js: specifier: 1.0.35 version: 1.0.35 - vditor: - specifier: 3.9.3 - version: 3.9.3 vue: specifier: 3.3.4 version: 3.3.4 @@ -75,20 +66,8 @@ dependencies: vue-router: specifier: 4.2.2 version: 4.2.2(vue@3.3.4) - vuedraggable: - specifier: 4.1.0 - version: 4.1.0(vue@3.3.4) - wangeditor: - specifier: 4.7.15 - version: 4.7.15 - xgplayer: - specifier: 3.0.2 - version: 3.0.2(core-js@3.30.2) devDependencies: - '@amap/amap-jsapi-types': - specifier: 0.0.13 - version: 0.0.13 '@iconify/json': specifier: 2.2.72 version: 2.2.72 @@ -101,9 +80,6 @@ devDependencies: '@soybeanjs/vite-plugin-vue-page-route': specifier: 0.0.5 version: 0.0.5 - '@types/bmapgl': - specifier: 0.0.7 - version: 0.0.7 '@types/crypto-js': specifier: 4.1.1 version: 4.1.1 @@ -191,10 +167,6 @@ devDependencies: packages: - /@amap/amap-jsapi-types@0.0.13: - resolution: {integrity: sha512-hwp36URjQT9vDTmoUPYph3SEAiOvoUB+PGK0jZeZamgvaxew7rgc1XZWL/HphyMfRAqKwIYsAvXm9v8DTSjjzA==} - dev: true - /@ampproject/remapping@2.2.1: resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} engines: {node: '>=6.0.0'} @@ -1617,14 +1589,6 @@ packages: resolution: {integrity: sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==} dev: true - /@babel/runtime-corejs3@7.22.3: - resolution: {integrity: sha512-6bdmknScYKmt8I9VjsJuKKGr+TwUb555FTf6tT1P/ANlCjTHCiYLhiQ4X/O7J731w5NOqu8c1aYHEVuOwPz7jA==} - engines: {node: '>=6.9.0'} - dependencies: - core-js-pure: 3.30.2 - regenerator-runtime: 0.13.11 - dev: false - /@babel/runtime@7.22.3: resolution: {integrity: sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==} engines: {node: '>=6.9.0'} @@ -2549,10 +2513,6 @@ packages: minimatch: 9.0.1 dev: true - /@types/bmapgl@0.0.7: - resolution: {integrity: sha512-3R0wFbZtynfHBJq0v477amaNH3t2u2CzBo46ViIPDdOTEJJ+Ma/ql4X8tS2XjDZcZhDAr6QDWoqV8SZvp6STvA==} - dev: true - /@types/crypto-js@4.1.1: resolution: {integrity: sha512-BG7fQKZ689HIoc5h+6D2Dgq1fABRa0RbBWKBd9SP/MVRVXROflpm5fhwyATX5duFmbStzyzyycPB8qUYKDH3NA==} dev: true @@ -3905,16 +3865,6 @@ packages: browserslist: 4.21.7 dev: true - /core-js-pure@3.30.2: - resolution: {integrity: sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==} - requiresBuild: true - dev: false - - /core-js@3.30.2: - resolution: {integrity: sha512-uBJiDmwqsbJCWHAwjrx3cvjbMXP7xD72Dmsn5LOJpiRmE3WbBbN5rCqQ2Qh6Ek6/eOrjlWngEynBWo4VxerQhg==} - requiresBuild: true - dev: false - /cors@2.8.5: resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} engines: {node: '>= 0.10'} @@ -4121,13 +4071,6 @@ packages: resolution: {integrity: sha512-dArJ32hchFsrQ8uMiTBLq256MpnZjeuBtdHpaDlYuQyjU0CVzCJl/BVW+SkszaAeH95D/8gxqAhgx0ouAWAfRg==} dev: false - /d@1.0.1: - resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==} - dependencies: - es5-ext: 0.10.62 - type: 1.2.0 - dev: false - /dagre@0.8.5: resolution: {integrity: sha512-/aTqmnRta7x7MCCpExk7HQL2O4owCT2h8NT//9I1OQ9vt29Pa0BzSAkR5lwFUcQ7491yVi/3CXU9jQ5o0Mn2Sw==} dependencies: @@ -4135,12 +4078,6 @@ packages: lodash: 4.17.21 dev: false - /danmu.js@1.1.8: - resolution: {integrity: sha512-GIFSHqJ+HFTGLLaL2BHMPBaOuPY1bWPwC0Pvi/V06uMIoxNTyEGxMuoO2SzNHsDvKC/r252zR9T/Gwx93AaKfw==} - dependencies: - event-emitter: 0.3.5 - dev: false - /date-fns-tz@1.3.8(date-fns@2.30.0): resolution: {integrity: sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==} peerDependencies: @@ -4317,10 +4254,6 @@ packages: resolution: {integrity: sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==} dev: false - /diff-match-patch@1.0.5: - resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==} - dev: false - /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -4405,10 +4338,6 @@ packages: engines: {node: '>=12'} dev: true - /downloadjs@1.4.7: - resolution: {integrity: sha512-LN1gO7+u9xjU5oEScGFKvXhYf7Y/empUIIEAGBs1LzUq/rg5duiDrkuH5A2lQGd5jfMOb9X9usDa2oVXwJ0U/Q==} - dev: false - /duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} dev: true @@ -4417,13 +4346,6 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /echarts@5.4.2: - resolution: {integrity: sha512-2W3vw3oI2tWJdyAz+b8DuWS0nfXtSDqlDmqgin/lfzbkB01cuMEN66KWBlmur3YMp5nEDEEt5s23pllnAzB4EA==} - dependencies: - tslib: 2.3.0 - zrender: 5.4.3 - dev: false - /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: true @@ -4554,31 +4476,6 @@ packages: is-symbol: 1.0.4 dev: true - /es5-ext@0.10.62: - resolution: {integrity: sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==} - engines: {node: '>=0.10'} - requiresBuild: true - dependencies: - es6-iterator: 2.0.3 - es6-symbol: 3.1.3 - next-tick: 1.1.0 - dev: false - - /es6-iterator@2.0.3: - resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} - dependencies: - d: 1.0.1 - es5-ext: 0.10.62 - es6-symbol: 3.1.3 - dev: false - - /es6-symbol@3.1.3: - resolution: {integrity: sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==} - dependencies: - d: 1.0.1 - ext: 1.7.0 - dev: false - /esbuild-android-64@0.14.54: resolution: {integrity: sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==} engines: {node: '>=12'} @@ -5280,17 +5177,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /event-emitter@0.3.5: - resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==} - dependencies: - d: 1.0.1 - es5-ext: 0.10.62 - dev: false - - /eventemitter3@4.0.7: - resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} - dev: false - /evtd@0.2.4: resolution: {integrity: sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==} dev: false @@ -5340,12 +5226,6 @@ packages: - supports-color dev: true - /ext@1.7.0: - resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==} - dependencies: - type: 2.7.2 - dev: false - /extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -7236,10 +7116,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /next-tick@1.1.0: - resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==} - dev: false - /node-fetch-native@1.1.1: resolution: {integrity: sha512-9VvspTSUp2Sxbl+9vbZTlFGq9lHwE8GDVVekxx6YsNd1YH59sb3Ba8v3Y3cD8PkLNcileGGcA21PFjVl0jzDaw==} dev: true @@ -7909,10 +7785,6 @@ packages: engines: {node: ^14.13.1 || >=16.0.0} dev: true - /print-js@1.6.0: - resolution: {integrity: sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==} - dev: false - /proc-log@3.0.0: resolution: {integrity: sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -8583,10 +8455,6 @@ packages: smart-buffer: 4.2.0 dev: true - /sortablejs@1.14.0: - resolution: {integrity: sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==} - dev: false - /source-map-js@1.0.2: resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} engines: {node: '>=0.10.0'} @@ -8676,10 +8544,6 @@ packages: extend-shallow: 3.0.2 dev: true - /ssr-window@4.0.2: - resolution: {integrity: sha512-ISv/Ch+ig7SOtw7G2+qkwfVASzazUnvlDTwypdLoPoySv+6MqlOV10VwPSE6EWkGjhW50lUmghPmpYZXMu/+AQ==} - dev: false - /ssri@10.0.4: resolution: {integrity: sha512-12+IR2CB2C28MMAw0Ncqwj5QbTcs0nGIhgJzYWzDkb21vWmfNI83KS4f3Ci6GI98WreIfG7o9UXp3C0qbpA8nQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -8950,13 +8814,6 @@ packages: stable: 0.1.8 dev: true - /swiper@9.3.2: - resolution: {integrity: sha512-Kj9Z4kXRmJR3YT/Wj+XLWj8P6IcRt+WG38uL8M3/Wny7+6sV0TlP9vnE1X+Co9c7VzNooojWGnFa+Wf/9+CUMA==} - engines: {node: '>= 4.7.0'} - dependencies: - ssr-window: 4.0.2 - dev: false - /synckit@0.8.5: resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==} engines: {node: ^14.18.0 || >=16.0.0} @@ -9094,10 +8951,6 @@ packages: /tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - /tslib@2.3.0: - resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} - dev: false - /tslib@2.5.2: resolution: {integrity: sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==} @@ -9170,14 +9023,6 @@ packages: engines: {node: '>=12.20'} dev: true - /type@1.2.0: - resolution: {integrity: sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==} - dev: false - - /type@2.7.2: - resolution: {integrity: sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==} - dev: false - /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: @@ -9475,12 +9320,6 @@ packages: vue: 3.3.4 dev: false - /vditor@3.9.3: - resolution: {integrity: sha512-w3ZSa8SQaZNFEO7XeHsJEW6NoXH4FgqU1BHVYfQ2tGk1y9rQMVWYJOXegO25QhgnAIF4qtm/AoylUg4b5mW7cg==} - dependencies: - diff-match-patch: 1.0.5 - dev: false - /vite-plugin-compression@0.5.1(vite@4.3.9): resolution: {integrity: sha512-5QJKBDc+gNYVqL/skgFAP81Yuzo9R+EAf19d+EtsMF/i8kFUpNi3J/H01QD3Oo8zBQn+NzoCIFkpPLynoOzaJg==} peerDependencies: @@ -9688,15 +9527,6 @@ packages: '@vue/server-renderer': 3.3.4(vue@3.3.4) '@vue/shared': 3.3.4 - /vuedraggable@4.1.0(vue@3.3.4): - resolution: {integrity: sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==} - peerDependencies: - vue: ^3.0.1 - dependencies: - sortablejs: 1.14.0 - vue: 3.3.4 - dev: false - /vueuc@0.4.51(vue@3.3.4): resolution: {integrity: sha512-pLiMChM4f+W8czlIClGvGBYo656lc2Y0/mXFSCydcSmnCR1izlKPGMgiYBGjbY9FDkFG8a2HEVz7t0DNzBWbDw==} peerDependencies: @@ -9712,14 +9542,6 @@ packages: vue: 3.3.4 dev: false - /wangeditor@4.7.15: - resolution: {integrity: sha512-aPTdREd8BxXVyJ5MI+LU83FQ7u1EPd341iXIorRNYSOvoimNoZ4nPg+yn3FGbB93/owEa6buLw8wdhYnMCJQLg==} - dependencies: - '@babel/runtime': 7.22.3 - '@babel/runtime-corejs3': 7.22.3 - tslib: 2.5.2 - dev: false - /webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} dev: true @@ -9862,6 +9684,7 @@ packages: /workbox-cacheable-response@6.6.0: resolution: {integrity: sha512-JfhJUSQDwsF1Xv3EV1vWzSsCOZn4mQ38bWEBR3LdvOxSPgB65gAM6cS2CX8rkkKHRgiLrN7Wxoyu+TuH67kHrw==} + deprecated: workbox-background-sync@6.6.0 dependencies: workbox-core: 6.6.0 dev: true @@ -9992,28 +9815,6 @@ packages: engines: {node: '>=12'} dev: true - /xgplayer-subtitles@1.1.1(core-js@3.30.2): - resolution: {integrity: sha512-GYzrK/e4ydAATP3Xg06sXYliiSCcyNIqqQSwnWbs7pw+cc5NwyrYXuLfa3Bp9skIxT6pT+A7qTicUps58N3eEQ==} - peerDependencies: - core-js: '>=3.12.1' - dependencies: - core-js: 3.30.2 - eventemitter3: 4.0.7 - dev: false - - /xgplayer@3.0.2(core-js@3.30.2): - resolution: {integrity: sha512-vgSo5exPlyl7BxxxOWeYA1+x1nLmZDiWDjPJmaaxeW9jFghGBSf3XP+yLKSOJmKOlTw/LpmOcNAsJxqNhi6Bzw==} - peerDependencies: - core-js: '>=3.12.1' - dependencies: - core-js: 3.30.2 - danmu.js: 1.1.8 - delegate: 3.2.0 - downloadjs: 1.4.7 - eventemitter3: 4.0.7 - xgplayer-subtitles: 1.1.1(core-js@3.30.2) - dev: false - /xml-name-validator@4.0.0: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} engines: {node: '>=12'} @@ -10064,9 +9865,3 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true - - /zrender@5.4.3: - resolution: {integrity: sha512-DRUM4ZLnoaT0PBVvGBDO9oWIDBKFdAVieNWxWwK0niYzJCMwGchRk21/hsE+RKkIveH3XHCyvXcJDkgLVvfizQ==} - dependencies: - tslib: 2.3.0 - dev: false diff --git a/src/composables/echarts.ts b/src/composables/echarts.ts deleted file mode 100644 index 981016cf..00000000 --- a/src/composables/echarts.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { nextTick, effectScope, onScopeDispose, ref, watch } from 'vue'; -import type { ComputedRef, Ref } from 'vue'; -import * as echarts from 'echarts/core'; -import { BarChart, GaugeChart, LineChart, PictorialBarChart, PieChart, RadarChart, ScatterChart } from 'echarts/charts'; -import type { - BarSeriesOption, - GaugeSeriesOption, - LineSeriesOption, - PictorialBarSeriesOption, - PieSeriesOption, - RadarSeriesOption, - ScatterSeriesOption -} from 'echarts/charts'; -import { - DatasetComponent, - GridComponent, - LegendComponent, - TitleComponent, - ToolboxComponent, - TooltipComponent, - TransformComponent -} from 'echarts/components'; -import type { - DatasetComponentOption, - GridComponentOption, - LegendComponentOption, - TitleComponentOption, - ToolboxComponentOption, - TooltipComponentOption -} from 'echarts/components'; -import { LabelLayout, UniversalTransition } from 'echarts/features'; -import { CanvasRenderer } from 'echarts/renderers'; -import { useElementSize } from '@vueuse/core'; -import { useThemeStore } from '@/store'; - -export type ECOption = echarts.ComposeOption< - | BarSeriesOption - | LineSeriesOption - | PieSeriesOption - | ScatterSeriesOption - | PictorialBarSeriesOption - | RadarSeriesOption - | GaugeSeriesOption - | TitleComponentOption - | LegendComponentOption - | TooltipComponentOption - | GridComponentOption - | ToolboxComponentOption - | DatasetComponentOption ->; - -echarts.use([ - TitleComponent, - LegendComponent, - TooltipComponent, - GridComponent, - DatasetComponent, - TransformComponent, - ToolboxComponent, - BarChart, - LineChart, - PieChart, - ScatterChart, - PictorialBarChart, - RadarChart, - GaugeChart, - LabelLayout, - UniversalTransition, - CanvasRenderer -]); - -/** - * Echarts hooks函数 - * @param options - 图表配置 - * @param renderFun - 图表渲染函数(例如:图表监听函数) - * @description 按需引入图表组件,没注册的组件需要先引入 - */ -export function useEcharts( - options: Ref | ComputedRef, - renderFun?: (chartInstance: echarts.ECharts) => void -) { - const theme = useThemeStore(); - - const domRef = ref(); - - const initialSize = { width: 0, height: 0 }; - const { width, height } = useElementSize(domRef, initialSize); - - let chart: echarts.ECharts | null = null; - - function canRender() { - return initialSize.width > 0 && initialSize.height > 0; - } - - function isRendered() { - return Boolean(domRef.value && chart); - } - - function update(updateOptions: ECOption) { - if (isRendered()) { - chart?.clear(); - chart!.setOption({ ...updateOptions, backgroundColor: 'transparent' }); - } - } - - async function render() { - if (domRef.value) { - const chartTheme = theme.darkMode ? 'dark' : 'light'; - await nextTick(); - chart = echarts.init(domRef.value, chartTheme); - if (renderFun) { - renderFun(chart); - } - update(options.value); - } - } - - function resize() { - chart?.resize(); - } - - function destroy() { - chart?.dispose(); - } - - function updateTheme() { - destroy(); - render(); - } - - const scope = effectScope(); - - scope.run(() => { - watch([width, height], ([newWidth, newHeight]) => { - initialSize.width = newWidth; - initialSize.height = newHeight; - if (newWidth === 0 && newHeight === 0) { - // 节点被删除 将chart置为空 - chart = null; - } - if (canRender()) { - if (!isRendered()) { - render(); - } else { - resize(); - } - } - }); - - watch( - options, - newValue => { - update(newValue); - }, - { deep: true } - ); - - watch( - () => theme.darkMode, - () => { - updateTheme(); - } - ); - }); - - onScopeDispose(() => { - destroy(); - scope.stop(); - }); - - return { - domRef - }; -} diff --git a/src/composables/index.ts b/src/composables/index.ts index bda997f8..484b2270 100644 --- a/src/composables/index.ts +++ b/src/composables/index.ts @@ -2,5 +2,4 @@ export * from './system'; export * from './router'; export * from './layout'; export * from './events'; -export * from './echarts'; export * from './icon'; diff --git a/src/config/index.ts b/src/config/index.ts index 847c47e2..429cade5 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,3 +1,2 @@ export * from './service'; export * from './regexp'; -export * from './map-sdk'; diff --git a/src/config/map-sdk.ts b/src/config/map-sdk.ts deleted file mode 100644 index f0b80663..00000000 --- a/src/config/map-sdk.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** 百度地图sdk地址 */ -export const BAIDU_MAP_SDK_URL = `https://api.map.baidu.com/getscript?v=3.0&ak=KSezYymXPth1DIGILRX3oYN9PxbOQQmU&services=&t=20210201100830&s=1`; - -/** 高德地图sdk地址 */ -export const GAODE_MAP_SDK_URL = 'https://webapi.amap.com/maps?v=2.0&key=e7bd02bd504062087e6563daf4d6721d'; - -/** 腾讯地图sdk地址 */ -export const TENCENT_MAP_SDK_URL = 'https://map.qq.com/api/gljs?v=1.exp&key=A6DBZ-KXPLW-JKSRY-ONZF4-CPHY3-K6BL7'; diff --git a/src/plugins/assets.ts b/src/plugins/assets.ts index 013ba6d0..6d7d66ff 100644 --- a/src/plugins/assets.ts +++ b/src/plugins/assets.ts @@ -1,8 +1,5 @@ import 'uno.css'; import '@soybeanjs/vue-materials/dist/style.css'; -import 'swiper/css'; -import 'swiper/css/navigation'; -import 'swiper/css/pagination'; import 'virtual:svg-icons-register'; import '../styles/css/global.css'; diff --git a/src/router/modules/about.ts b/src/router/modules/about.ts deleted file mode 100644 index 4683f4bf..00000000 --- a/src/router/modules/about.ts +++ /dev/null @@ -1,17 +0,0 @@ -const about1: AuthRoute.Route = { - name: 'about', - path: '/about', - component: 'self', - meta: { - title: '关于', - i18nTitle: 'message.routes.about', - requiresAuth: true, - keepAlive: true, - singleLayout: 'basic', - permissions: ['super', 'admin', 'user'], - icon: 'fluent:book-information-24-regular', - order: 10 - } -}; - -export default about1; diff --git a/src/router/modules/auth-demo.ts b/src/router/modules/auth-demo.ts deleted file mode 100644 index 6ce0fe3d..00000000 --- a/src/router/modules/auth-demo.ts +++ /dev/null @@ -1,38 +0,0 @@ -const authDemo: AuthRoute.Route = { - name: 'auth-demo', - path: '/auth-demo', - component: 'basic', - children: [ - { - name: 'auth-demo_permission', - path: '/auth-demo/permission', - component: 'self', - meta: { - title: '权限切换', - i18nTitle: 'message.routes.auth-demo.permission', - requiresAuth: true, - icon: 'ic:round-construction' - } - }, - { - name: 'auth-demo_super', - path: '/auth-demo/super', - component: 'self', - meta: { - title: '超级管理员可见', - i18nTitle: 'message.routes.auth-demo.super', - requiresAuth: true, - permissions: ['super'], - icon: 'ic:round-supervisor-account' - } - } - ], - meta: { - title: '权限示例', - i18nTitle: 'message.routes.auth-demo._value', - icon: 'ic:baseline-security', - order: 5 - } -}; - -export default authDemo; diff --git a/src/router/modules/component.ts b/src/router/modules/component.ts deleted file mode 100644 index f8974694..00000000 --- a/src/router/modules/component.ts +++ /dev/null @@ -1,48 +0,0 @@ -const component: AuthRoute.Route = { - name: 'component', - path: '/component', - component: 'basic', - children: [ - { - name: 'component_button', - path: '/component/button', - component: 'self', - meta: { - title: '按钮', - i18nTitle: 'message.routes.component.button', - requiresAuth: true, - icon: 'mdi:button-cursor' - } - }, - { - name: 'component_card', - path: '/component/card', - component: 'self', - meta: { - title: '卡片', - i18nTitle: 'message.routes.component.card', - requiresAuth: true, - icon: 'mdi:card-outline' - } - }, - { - name: 'component_table', - path: '/component/table', - component: 'self', - meta: { - title: '表格', - i18nTitle: 'message.routes.component.table', - requiresAuth: true, - icon: 'mdi:table-large' - } - } - ], - meta: { - title: '组件示例', - i18nTitle: 'message.routes.component._value', - icon: 'cib:app-store', - order: 3 - } -}; - -export default component; diff --git a/src/router/modules/document.ts b/src/router/modules/document.ts deleted file mode 100644 index fb18691c..00000000 --- a/src/router/modules/document.ts +++ /dev/null @@ -1,70 +0,0 @@ -const document: AuthRoute.Route = { - name: 'document', - path: '/document', - component: 'basic', - children: [ - { - name: 'document_vue', - path: '/document/vue', - component: 'self', - meta: { - title: 'vue文档', - i18nTitle: 'message.routes.document.vue', - requiresAuth: true, - icon: 'logos:vue' - } - }, - { - name: 'document_vite', - path: '/document/vite', - component: 'self', - meta: { - title: 'vite文档', - i18nTitle: 'message.routes.document.vite', - requiresAuth: true, - icon: 'logos:vitejs' - } - }, - { - name: 'document_naive', - path: '/document/naive', - component: 'self', - meta: { - title: 'naive文档', - i18nTitle: 'message.routes.document.naive', - requiresAuth: true, - icon: 'logos:naiveui' - } - }, - { - name: 'document_project', - path: '/document/project', - component: 'self', - meta: { - title: '项目文档', - i18nTitle: 'message.routes.document.project', - requiresAuth: true, - localIcon: 'logo' - } - }, - { - name: 'document_project-link', - path: '/document/project-link', - meta: { - title: '项目文档(外链)', - i18nTitle: 'message.routes.document.project-link', - requiresAuth: true, - localIcon: 'logo', - href: 'https://docs.soybean.pro/' - } - } - ], - meta: { - title: '文档', - i18nTitle: 'message.routes.document._value', - icon: 'mdi:file-document-multiple-outline', - order: 2 - } -}; - -export default document; diff --git a/src/router/modules/exception.ts b/src/router/modules/exception.ts deleted file mode 100644 index 3af71757..00000000 --- a/src/router/modules/exception.ts +++ /dev/null @@ -1,48 +0,0 @@ -const exception: AuthRoute.Route = { - name: 'exception', - path: '/exception', - component: 'basic', - children: [ - { - name: 'exception_403', - path: '/exception/403', - component: 'self', - meta: { - title: '异常页403', - i18nTitle: 'message.routes.exception.403', - requiresAuth: true, - icon: 'ic:baseline-block' - } - }, - { - name: 'exception_404', - path: '/exception/404', - component: 'self', - meta: { - title: '异常页404', - i18nTitle: 'message.routes.exception.404', - requiresAuth: true, - icon: 'ic:baseline-web-asset-off' - } - }, - { - name: 'exception_500', - path: '/exception/500', - component: 'self', - meta: { - title: '异常页500', - i18nTitle: 'message.routes.exception.500', - requiresAuth: true, - icon: 'ic:baseline-wifi-off' - } - } - ], - meta: { - i18nTitle: 'message.routes.exception._value', - title: '异常页', - icon: 'ant-design:exception-outlined', - order: 7 - } -}; - -export default exception; diff --git a/src/router/modules/function.ts b/src/router/modules/function.ts deleted file mode 100644 index 0e99c981..00000000 --- a/src/router/modules/function.ts +++ /dev/null @@ -1,51 +0,0 @@ -const functionRoute: AuthRoute.Route = { - name: 'function', - path: '/function', - component: 'basic', - children: [ - { - name: 'function_tab', - path: '/function/tab', - component: 'self', - meta: { - title: 'Tab', - i18nTitle: 'message.routes.function.tab', - requiresAuth: true, - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-detail', - path: '/function/tab-detail', - component: 'self', - meta: { - title: 'Tab Detail', - requiresAuth: true, - hide: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - }, - { - name: 'function_tab-multi-detail', - path: '/function/tab-multi-detail', - component: 'self', - meta: { - title: 'Tab Multi Detail', - requiresAuth: true, - hide: true, - multiTab: true, - activeMenu: 'function_tab', - icon: 'ic:round-tab' - } - } - ], - meta: { - title: '功能', - i18nTitle: 'message.routes.function._value', - icon: 'icon-park-outline:all-application', - order: 6 - } -}; - -export default functionRoute; diff --git a/src/router/modules/management.ts b/src/router/modules/management.ts deleted file mode 100644 index c84f70b5..00000000 --- a/src/router/modules/management.ts +++ /dev/null @@ -1,59 +0,0 @@ -const management: AuthRoute.Route = { - name: 'management', - path: '/management', - component: 'basic', - children: [ - { - name: 'management_auth', - path: '/management/auth', - component: 'self', - meta: { - title: '权限管理', - i18nTitle: 'message.routes.management.auth', - requiresAuth: true, - icon: 'ic:baseline-security' - } - }, - { - name: 'management_role', - path: '/management/role', - component: 'self', - meta: { - title: '角色管理', - i18nTitle: 'message.routes.management.role', - requiresAuth: true, - icon: 'carbon:user-role' - } - }, - { - name: 'management_user', - path: '/management/user', - component: 'self', - meta: { - title: '用户管理', - i18nTitle: 'message.routes.management.user', - requiresAuth: true, - icon: 'ic:round-manage-accounts' - } - }, - { - name: 'management_route', - path: '/management/route', - component: 'self', - meta: { - title: '路由管理', - i18nTitle: 'message.routes.management.route', - requiresAuth: true, - icon: 'material-symbols:route' - } - } - ], - meta: { - title: '系统管理', - i18nTitle: 'message.routes.management._value', - icon: 'carbon:cloud-service-management', - order: 9 - } -}; - -export default management; diff --git a/src/router/modules/multi-menu.ts b/src/router/modules/multi-menu.ts deleted file mode 100644 index b16d7fdf..00000000 --- a/src/router/modules/multi-menu.ts +++ /dev/null @@ -1,61 +0,0 @@ -const multiMenu: AuthRoute.Route = { - name: 'multi-menu', - path: '/multi-menu', - component: 'basic', - children: [ - { - name: 'multi-menu_first', - path: '/multi-menu/first', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second', - path: '/multi-menu/first/second', - component: 'self', - meta: { - title: '二级菜单', - i18nTitle: 'message.routes.multi-menu.first.second', - requiresAuth: true, - icon: 'mdi:menu' - } - }, - { - name: 'multi-menu_first_second-new', - path: '/multi-menu/first/second-new', - component: 'multi', - children: [ - { - name: 'multi-menu_first_second-new_third', - path: '/multi-menu/first/second-new/third', - component: 'self', - meta: { - title: '三级菜单', - i18nTitle: 'message.routes.multi-menu.first.second-new.third', - requiresAuth: true, - icon: 'mdi:menu' - } - } - ], - meta: { - title: '二级菜单(有子菜单)', - i18nTitle: 'message.routes.multi-menu.first.second-new._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '一级菜单', - i18nTitle: 'message.routes.multi-menu.first._value', - icon: 'mdi:menu' - } - } - ], - meta: { - title: '多级菜单', - i18nTitle: 'message.routes.multi-menu._value', - icon: 'carbon:menu', - order: 8 - } -}; - -export default multiMenu; diff --git a/src/router/modules/plugin.ts b/src/router/modules/plugin.ts deleted file mode 100644 index 1fe5ad15..00000000 --- a/src/router/modules/plugin.ts +++ /dev/null @@ -1,149 +0,0 @@ -const plugin: AuthRoute.Route = { - name: 'plugin', - path: '/plugin', - component: 'basic', - children: [ - { - name: 'plugin_charts', - path: '/plugin/charts', - component: 'multi', - children: [ - { - name: 'plugin_charts_echarts', - path: '/plugin/charts/echarts', - component: 'self', - meta: { - title: 'ECharts', - i18nTitle: 'message.routes.plugin.charts.echarts', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - i18nTitle: 'message.routes.plugin.charts.antv', - requiresAuth: true, - icon: 'simple-icons:antdesign' - } - } - ], - meta: { - title: '图表', - i18nTitle: 'message.routes.plugin.charts._value', - icon: 'mdi:chart-areaspline' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - i18nTitle: 'message.routes.plugin.map', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - i18nTitle: 'message.routes.plugin.video', - requiresAuth: true, - icon: 'mdi:video' - } - }, - { - name: 'plugin_editor', - path: '/plugin/editor', - component: 'multi', - children: [ - { - name: 'plugin_editor_quill', - path: '/plugin/editor/quill', - component: 'self', - meta: { - title: '富文本编辑器', - i18nTitle: 'message.routes.plugin.editor.quill', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - i18nTitle: 'message.routes.plugin.editor.markdown', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - i18nTitle: 'message.routes.plugin.editor._value', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - i18nTitle: 'message.routes.plugin.swiper', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - i18nTitle: 'message.routes.plugin.copy', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - i18nTitle: 'message.routes.plugin.icon', - requiresAuth: true, - localIcon: 'custom-icon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - i18nTitle: 'message.routes.plugin.print', - requiresAuth: true, - icon: 'mdi:printer' - } - } - ], - meta: { - title: '插件示例', - i18nTitle: 'message.routes.plugin._value', - icon: 'clarity:plugin-line', - order: 4 - } -}; - -export default plugin; diff --git a/src/typings/page-route.d.ts b/src/typings/page-route.d.ts index 48bdafa1..13d0e0e9 100644 --- a/src/typings/page-route.d.ts +++ b/src/typings/page-route.d.ts @@ -22,54 +22,9 @@ declare namespace PageRoute { | 'constant-page' | 'login' | 'not-found' - | 'about' - | 'auth-demo' - | 'auth-demo_permission' - | 'auth-demo_super' - | 'component' - | 'component_button' - | 'component_card' - | 'component_table' | 'dashboard' | 'dashboard_analysis' - | 'dashboard_workbench' - | 'document' - | 'document_naive' - | 'document_project-link' - | 'document_project' - | 'document_vite' - | 'document_vue' - | 'exception' - | 'exception_403' - | 'exception_404' - | 'exception_500' - | 'function' - | 'function_tab-detail' - | 'function_tab-multi-detail' - | 'function_tab' - | 'management' - | 'management_auth' - | 'management_role' - | 'management_route' - | 'management_user' - | 'multi-menu' - | 'multi-menu_first' - | 'multi-menu_first_second-new' - | 'multi-menu_first_second-new_third' - | 'multi-menu_first_second' - | 'plugin' - | 'plugin_charts' - | 'plugin_charts_antv' - | 'plugin_charts_echarts' - | 'plugin_copy' - | 'plugin_editor' - | 'plugin_editor_markdown' - | 'plugin_editor_quill' - | 'plugin_icon' - | 'plugin_map' - | 'plugin_print' - | 'plugin_swiper' - | 'plugin_video'; + | 'dashboard_workbench'; /** * last degree route key, which has the page file @@ -77,46 +32,6 @@ declare namespace PageRoute { */ type LastDegreeRouteKey = Extract< RouteKey, - | '403' - | '404' - | '500' - | 'constant-page' - | 'login' - | 'not-found' - | 'about' - | 'auth-demo_permission' - | 'auth-demo_super' - | 'component_button' - | 'component_card' - | 'component_table' - | 'dashboard_analysis' - | 'dashboard_workbench' - | 'document_naive' - | 'document_project-link' - | 'document_project' - | 'document_vite' - | 'document_vue' - | 'exception_403' - | 'exception_404' - | 'exception_500' - | 'function_tab-detail' - | 'function_tab-multi-detail' - | 'function_tab' - | 'management_auth' - | 'management_role' - | 'management_route' - | 'management_user' - | 'multi-menu_first_second-new_third' - | 'multi-menu_first_second' - | 'plugin_charts_antv' - | 'plugin_charts_echarts' - | 'plugin_copy' - | 'plugin_editor_markdown' - | 'plugin_editor_quill' - | 'plugin_icon' - | 'plugin_map' - | 'plugin_print' - | 'plugin_swiper' - | 'plugin_video' + '403' | '404' | '500' | 'constant-page' | 'login' | 'not-found' | 'dashboard_analysis' | 'dashboard_workbench' >; } diff --git a/src/views/about/components/dev-dependency.vue b/src/views/about/components/dev-dependency.vue deleted file mode 100644 index f61af230..00000000 --- a/src/views/about/components/dev-dependency.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/src/views/about/components/index.ts b/src/views/about/components/index.ts deleted file mode 100644 index 6c230297..00000000 --- a/src/views/about/components/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -import ProjectIntroduction from './project-introduction.vue'; -import ProjectInfo from './project-info.vue'; -import ProDependency from './pro-dependency.vue'; -import DevDependency from './dev-dependency.vue'; - -export { ProjectIntroduction, ProjectInfo, ProDependency, DevDependency }; diff --git a/src/views/about/components/model.ts b/src/views/about/components/model.ts deleted file mode 100644 index a1ae9e4f..00000000 --- a/src/views/about/components/model.ts +++ /dev/null @@ -1,39 +0,0 @@ -import pkg from '~/package.json'; - -/** npm依赖包版本信息 */ -export interface PkgVersionInfo { - name: string; - version: string; -} - -interface Package { - name: string; - version: string; - dependencies: Record; - devDependencies: Record; - [key: string]: any; -} - -interface PkgJson { - name: string; - version: string; - dependencies: PkgVersionInfo[]; - devDependencies: PkgVersionInfo[]; -} - -const pkgWithType = pkg as Package; - -function transformVersionData(tuple: [string, string]): PkgVersionInfo { - const [name, version] = tuple; - return { - name, - version - }; -} - -export const pkgJson: PkgJson = { - name: pkgWithType.name, - version: pkgWithType.version, - dependencies: Object.entries(pkgWithType.dependencies).map(item => transformVersionData(item)), - devDependencies: Object.entries(pkgWithType.devDependencies).map(item => transformVersionData(item)) -}; diff --git a/src/views/about/components/pro-dependency.vue b/src/views/about/components/pro-dependency.vue deleted file mode 100644 index ea50bbff..00000000 --- a/src/views/about/components/pro-dependency.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/src/views/about/components/project-info.vue b/src/views/about/components/project-info.vue deleted file mode 100644 index 2d455dbd..00000000 --- a/src/views/about/components/project-info.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - diff --git a/src/views/about/components/project-introduction.vue b/src/views/about/components/project-introduction.vue deleted file mode 100644 index f5807535..00000000 --- a/src/views/about/components/project-introduction.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/src/views/about/index.vue b/src/views/about/index.vue deleted file mode 100644 index c174ddee..00000000 --- a/src/views/about/index.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/src/views/auth-demo/permission/index.vue b/src/views/auth-demo/permission/index.vue deleted file mode 100644 index d92cc5ce..00000000 --- a/src/views/auth-demo/permission/index.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - diff --git a/src/views/auth-demo/super/index.vue b/src/views/auth-demo/super/index.vue deleted file mode 100644 index e7aba94a..00000000 --- a/src/views/auth-demo/super/index.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/src/views/component/button/index.vue b/src/views/component/button/index.vue deleted file mode 100644 index bc5110cb..00000000 --- a/src/views/component/button/index.vue +++ /dev/null @@ -1,575 +0,0 @@ - - - - - diff --git a/src/views/component/card/index.vue b/src/views/component/card/index.vue deleted file mode 100644 index bf4d9d65..00000000 --- a/src/views/component/card/index.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/views/component/table/index.vue b/src/views/component/table/index.vue deleted file mode 100644 index 8f18473d..00000000 --- a/src/views/component/table/index.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/bottom-part/index.vue b/src/views/dashboard/analysis/components/bottom-part/index.vue deleted file mode 100644 index 3fb9fe42..00000000 --- a/src/views/dashboard/analysis/components/bottom-part/index.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/data-card/components/gradient-bg.vue b/src/views/dashboard/analysis/components/data-card/components/gradient-bg.vue deleted file mode 100644 index 02cea29a..00000000 --- a/src/views/dashboard/analysis/components/data-card/components/gradient-bg.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/data-card/components/index.ts b/src/views/dashboard/analysis/components/data-card/components/index.ts deleted file mode 100644 index 1bd6ccb5..00000000 --- a/src/views/dashboard/analysis/components/data-card/components/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import GradientBg from './gradient-bg.vue'; - -export { GradientBg }; diff --git a/src/views/dashboard/analysis/components/data-card/index.vue b/src/views/dashboard/analysis/components/data-card/index.vue deleted file mode 100644 index 4269ac23..00000000 --- a/src/views/dashboard/analysis/components/data-card/index.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/index.ts b/src/views/dashboard/analysis/components/index.ts deleted file mode 100644 index e205afb4..00000000 --- a/src/views/dashboard/analysis/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import TopChart from './top-chart/index.vue'; -import DataCard from './data-card/index.vue'; -import BottomPart from './bottom-part/index.vue'; - -export { TopChart, DataCard, BottomPart }; diff --git a/src/views/dashboard/analysis/components/top-chart/index.vue b/src/views/dashboard/analysis/components/top-chart/index.vue deleted file mode 100644 index c7048b7e..00000000 --- a/src/views/dashboard/analysis/components/top-chart/index.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/index.vue b/src/views/dashboard/analysis/index.vue index de2a6f5d..5f4560e5 100644 --- a/src/views/dashboard/analysis/index.vue +++ b/src/views/dashboard/analysis/index.vue @@ -1,13 +1,7 @@ - + diff --git a/src/views/dashboard/workbench/components/index.ts b/src/views/dashboard/workbench/components/index.ts deleted file mode 100644 index dc98ac8f..00000000 --- a/src/views/dashboard/workbench/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import WorkbenchHeader from './workbench-header/index.vue'; -import WorkbenchMain from './workbench-main/index.vue'; - -export { WorkbenchHeader, WorkbenchMain }; diff --git a/src/views/dashboard/workbench/components/workbench-header/index.vue b/src/views/dashboard/workbench/components/workbench-header/index.vue deleted file mode 100644 index 3c57cc24..00000000 --- a/src/views/dashboard/workbench/components/workbench-header/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/workbench-main/components/index.ts b/src/views/dashboard/workbench/components/workbench-main/components/index.ts deleted file mode 100644 index 86fa8479..00000000 --- a/src/views/dashboard/workbench/components/workbench-main/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import TechnologyCard from './technology-card.vue'; -import ShortcutsCard from './shortcuts-card.vue'; - -export { TechnologyCard, ShortcutsCard }; diff --git a/src/views/dashboard/workbench/components/workbench-main/components/shortcuts-card.vue b/src/views/dashboard/workbench/components/workbench-main/components/shortcuts-card.vue deleted file mode 100644 index b4ea695f..00000000 --- a/src/views/dashboard/workbench/components/workbench-main/components/shortcuts-card.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/workbench-main/components/technology-card.vue b/src/views/dashboard/workbench/components/workbench-main/components/technology-card.vue deleted file mode 100644 index 018622d6..00000000 --- a/src/views/dashboard/workbench/components/workbench-main/components/technology-card.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/workbench-main/index.vue b/src/views/dashboard/workbench/components/workbench-main/index.vue deleted file mode 100644 index 3b449b26..00000000 --- a/src/views/dashboard/workbench/components/workbench-main/index.vue +++ /dev/null @@ -1,146 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/index.vue b/src/views/dashboard/workbench/index.vue index 0998f27e..5958cb53 100644 --- a/src/views/dashboard/workbench/index.vue +++ b/src/views/dashboard/workbench/index.vue @@ -1,12 +1,7 @@ - + diff --git a/src/views/document/naive/index.vue b/src/views/document/naive/index.vue deleted file mode 100644 index 997241e4..00000000 --- a/src/views/document/naive/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/document/project-link/index.vue b/src/views/document/project-link/index.vue deleted file mode 100644 index fb62d1f0..00000000 --- a/src/views/document/project-link/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/document/project/index.vue b/src/views/document/project/index.vue deleted file mode 100644 index 0f6cd783..00000000 --- a/src/views/document/project/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/document/vite/index.vue b/src/views/document/vite/index.vue deleted file mode 100644 index c7f951d2..00000000 --- a/src/views/document/vite/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/document/vue/index.vue b/src/views/document/vue/index.vue deleted file mode 100644 index bac16629..00000000 --- a/src/views/document/vue/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/exception/403/index.vue b/src/views/exception/403/index.vue deleted file mode 100644 index 871020a8..00000000 --- a/src/views/exception/403/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/exception/404/index.vue b/src/views/exception/404/index.vue deleted file mode 100644 index ebc953f6..00000000 --- a/src/views/exception/404/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/exception/500/index.vue b/src/views/exception/500/index.vue deleted file mode 100644 index 74ed5386..00000000 --- a/src/views/exception/500/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/function/tab-detail/index.vue b/src/views/function/tab-detail/index.vue deleted file mode 100644 index 0cf99cdc..00000000 --- a/src/views/function/tab-detail/index.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/src/views/function/tab-multi-detail/index.vue b/src/views/function/tab-multi-detail/index.vue deleted file mode 100644 index c1b82ec1..00000000 --- a/src/views/function/tab-multi-detail/index.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/src/views/function/tab/index.vue b/src/views/function/tab/index.vue deleted file mode 100644 index 6bd81a15..00000000 --- a/src/views/function/tab/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/src/views/index.ts b/src/views/index.ts index f4b28ffa..def22c4a 100644 --- a/src/views/index.ts +++ b/src/views/index.ts @@ -10,39 +10,6 @@ export const views: Record< 'constant-page': () => import('./_builtin/constant-page/index.vue'), login: () => import('./_builtin/login/index.vue'), 'not-found': () => import('./_builtin/not-found/index.vue'), - about: () => import('./about/index.vue'), - 'auth-demo_permission': () => import('./auth-demo/permission/index.vue'), - 'auth-demo_super': () => import('./auth-demo/super/index.vue'), - component_button: () => import('./component/button/index.vue'), - component_card: () => import('./component/card/index.vue'), - component_table: () => import('./component/table/index.vue'), dashboard_analysis: () => import('./dashboard/analysis/index.vue'), - dashboard_workbench: () => import('./dashboard/workbench/index.vue'), - document_naive: () => import('./document/naive/index.vue'), - 'document_project-link': () => import('./document/project-link/index.vue'), - document_project: () => import('./document/project/index.vue'), - document_vite: () => import('./document/vite/index.vue'), - document_vue: () => import('./document/vue/index.vue'), - exception_403: () => import('./exception/403/index.vue'), - exception_404: () => import('./exception/404/index.vue'), - exception_500: () => import('./exception/500/index.vue'), - 'function_tab-detail': () => import('./function/tab-detail/index.vue'), - 'function_tab-multi-detail': () => import('./function/tab-multi-detail/index.vue'), - function_tab: () => import('./function/tab/index.vue'), - management_auth: () => import('./management/auth/index.vue'), - management_role: () => import('./management/role/index.vue'), - management_route: () => import('./management/route/index.vue'), - management_user: () => import('./management/user/index.vue'), - 'multi-menu_first_second-new_third': () => import('./multi-menu/first/second-new/third/index.vue'), - 'multi-menu_first_second': () => import('./multi-menu/first/second/index.vue'), - plugin_charts_antv: () => import('./plugin/charts/antv/index.vue'), - plugin_charts_echarts: () => import('./plugin/charts/echarts/index.vue'), - plugin_copy: () => import('./plugin/copy/index.vue'), - plugin_editor_markdown: () => import('./plugin/editor/markdown/index.vue'), - plugin_editor_quill: () => import('./plugin/editor/quill/index.vue'), - plugin_icon: () => import('./plugin/icon/index.vue'), - plugin_map: () => import('./plugin/map/index.vue'), - plugin_print: () => import('./plugin/print/index.vue'), - plugin_swiper: () => import('./plugin/swiper/index.vue'), - plugin_video: () => import('./plugin/video/index.vue') + dashboard_workbench: () => import('./dashboard/workbench/index.vue') }; diff --git a/src/views/management/auth/index.vue b/src/views/management/auth/index.vue deleted file mode 100644 index d9e12337..00000000 --- a/src/views/management/auth/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/management/role/index.vue b/src/views/management/role/index.vue deleted file mode 100644 index 3f1b1432..00000000 --- a/src/views/management/role/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/management/route/index.vue b/src/views/management/route/index.vue deleted file mode 100644 index f42651c0..00000000 --- a/src/views/management/route/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/management/user/components/column-setting.vue b/src/views/management/user/components/column-setting.vue deleted file mode 100644 index a7835f4d..00000000 --- a/src/views/management/user/components/column-setting.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - diff --git a/src/views/management/user/components/table-action-modal.vue b/src/views/management/user/components/table-action-modal.vue deleted file mode 100644 index 83159e28..00000000 --- a/src/views/management/user/components/table-action-modal.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - - - diff --git a/src/views/management/user/index.vue b/src/views/management/user/index.vue deleted file mode 100644 index d27769cd..00000000 --- a/src/views/management/user/index.vue +++ /dev/null @@ -1,203 +0,0 @@ - - - - - diff --git a/src/views/multi-menu/first/second-new/third/index.vue b/src/views/multi-menu/first/second-new/third/index.vue deleted file mode 100644 index 01d5f05d..00000000 --- a/src/views/multi-menu/first/second-new/third/index.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/src/views/multi-menu/first/second/index.vue b/src/views/multi-menu/first/second/index.vue deleted file mode 100644 index 9bdf7d36..00000000 --- a/src/views/multi-menu/first/second/index.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/src/views/plugin/charts/antv/index.vue b/src/views/plugin/charts/antv/index.vue deleted file mode 100644 index c7617e82..00000000 --- a/src/views/plugin/charts/antv/index.vue +++ /dev/null @@ -1,482 +0,0 @@ - - - - - diff --git a/src/views/plugin/charts/echarts/index.vue b/src/views/plugin/charts/echarts/index.vue deleted file mode 100644 index 7ad4a2cd..00000000 --- a/src/views/plugin/charts/echarts/index.vue +++ /dev/null @@ -1,783 +0,0 @@ - - - - - diff --git a/src/views/plugin/copy/index.vue b/src/views/plugin/copy/index.vue deleted file mode 100644 index c636f011..00000000 --- a/src/views/plugin/copy/index.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - diff --git a/src/views/plugin/editor/markdown/index.vue b/src/views/plugin/editor/markdown/index.vue deleted file mode 100644 index 1d5708da..00000000 --- a/src/views/plugin/editor/markdown/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - diff --git a/src/views/plugin/editor/quill/index.vue b/src/views/plugin/editor/quill/index.vue deleted file mode 100644 index 9447bd25..00000000 --- a/src/views/plugin/editor/quill/index.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - diff --git a/src/views/plugin/icon/icons.ts b/src/views/plugin/icon/icons.ts deleted file mode 100644 index 1af75741..00000000 --- a/src/views/plugin/icon/icons.ts +++ /dev/null @@ -1,32 +0,0 @@ -export const icons = [ - 'mdi:emoticon', - 'mdi:ab-testing', - 'ph:alarm', - 'ph:android-logo', - 'ph:align-bottom', - 'ph:archive-box-light', - 'uil:basketball', - 'uil:brightness-plus', - 'uil:capture', - 'mdi:apps-box', - 'mdi:alert', - 'mdi:airballoon', - 'mdi:airplane-edit', - 'mdi:alpha-f-box-outline', - 'mdi:arm-flex-outline', - 'ic:baseline-10mp', - 'ic:baseline-access-time', - 'ic:baseline-brightness-4', - 'ic:baseline-brightness-5', - 'ic:baseline-credit-card', - 'ic:baseline-filter-1', - 'ic:baseline-filter-2', - 'ic:baseline-filter-3', - 'ic:baseline-filter-4', - 'ic:baseline-filter-5', - 'ic:baseline-filter-6', - 'ic:baseline-filter-7', - 'ic:baseline-filter-8', - 'ic:baseline-filter-9', - 'ic:baseline-filter-9-plus' -]; diff --git a/src/views/plugin/icon/index.vue b/src/views/plugin/icon/index.vue deleted file mode 100644 index b538579e..00000000 --- a/src/views/plugin/icon/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/baidu-map.vue b/src/views/plugin/map/components/baidu-map.vue deleted file mode 100644 index 90e9a5c5..00000000 --- a/src/views/plugin/map/components/baidu-map.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/gaode-map.vue b/src/views/plugin/map/components/gaode-map.vue deleted file mode 100644 index 8f998465..00000000 --- a/src/views/plugin/map/components/gaode-map.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/index.ts b/src/views/plugin/map/components/index.ts deleted file mode 100644 index b4a518f0..00000000 --- a/src/views/plugin/map/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import BaiduMap from './baidu-map.vue'; -import GaodeMap from './gaode-map.vue'; -import TencentMap from './tencent-map.vue'; - -export { BaiduMap, GaodeMap, TencentMap }; diff --git a/src/views/plugin/map/components/tencent-map.vue b/src/views/plugin/map/components/tencent-map.vue deleted file mode 100644 index 83d35894..00000000 --- a/src/views/plugin/map/components/tencent-map.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/index.vue b/src/views/plugin/map/index.vue deleted file mode 100644 index 9217c632..00000000 --- a/src/views/plugin/map/index.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - - - diff --git a/src/views/plugin/print/index.vue b/src/views/plugin/print/index.vue deleted file mode 100644 index bcfcd0c8..00000000 --- a/src/views/plugin/print/index.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - - diff --git a/src/views/plugin/swiper/index.vue b/src/views/plugin/swiper/index.vue deleted file mode 100644 index 86eabf20..00000000 --- a/src/views/plugin/swiper/index.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - diff --git a/src/views/plugin/video/index.vue b/src/views/plugin/video/index.vue deleted file mode 100644 index 1975ef35..00000000 --- a/src/views/plugin/video/index.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - - -