From d3b2bc8a3bfce7cb61fc416bea1e3f7dd99a3970 Mon Sep 17 00:00:00 2001 From: CracKerMe <1160948478@qq.com> Date: Mon, 8 Aug 2022 23:22:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20=E5=88=A0=E9=99=A4plugins?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81=20&&=20?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=B7=A5=E4=BD=9C=E8=A1=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=86=85=E5=AE=B9=20=E4=BE=BF=E4=BA=8E=E5=81=9A=E7=AE=80?= =?UTF-8?q?=E7=BA=A6=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mock/model/route.ts | 268 ------ package.json | 14 +- src/composables/echarts.ts | 163 ---- src/composables/index.ts | 1 - src/plugins/assets.ts | 3 - src/router/modules/plugin.ts | 136 --- src/typings/route.d.ts | 13 - .../analysis/components/BottomPart/index.vue | 140 ---- .../analysis/components/TopChart/index.vue | 183 ---- .../dashboard/analysis/components/index.ts | 4 +- src/views/dashboard/analysis/index.vue | 4 +- .../components/WorkbenchHeader/index.vue | 50 -- .../components/ShortcutsCard.vue | 27 - .../components/TechnologyCard.vue | 44 - .../WorkbenchMain/components/index.ts | 4 - .../components/WorkbenchMain/index.vue | 147 ---- .../dashboard/workbench/components/index.ts | 4 - src/views/dashboard/workbench/index.vue | 7 +- src/views/plugin/charts/antv/index.vue | 482 ----------- src/views/plugin/charts/echarts/index.vue | 782 ------------------ src/views/plugin/copy/index.vue | 33 - src/views/plugin/editor/markdown/index.vue | 50 -- src/views/plugin/editor/quill/index.vue | 45 - src/views/plugin/icon/icons.ts | 32 - src/views/plugin/icon/index.vue | 51 -- src/views/plugin/map/components/BaiduMap.vue | 30 - src/views/plugin/map/components/GaodeMap.vue | 32 - .../plugin/map/components/TencentMap.vue | 32 - src/views/plugin/map/components/index.ts | 5 - src/views/plugin/map/index.vue | 30 - src/views/plugin/print/index.vue | 39 - src/views/plugin/swiper/index.vue | 117 --- src/views/plugin/video/index.vue | 38 - vite.config.ts | 12 +- 34 files changed, 8 insertions(+), 3014 deletions(-) delete mode 100644 src/composables/echarts.ts delete mode 100644 src/router/modules/plugin.ts delete mode 100644 src/views/dashboard/analysis/components/BottomPart/index.vue delete mode 100644 src/views/dashboard/analysis/components/TopChart/index.vue delete mode 100644 src/views/dashboard/workbench/components/WorkbenchHeader/index.vue delete mode 100644 src/views/dashboard/workbench/components/WorkbenchMain/components/ShortcutsCard.vue delete mode 100644 src/views/dashboard/workbench/components/WorkbenchMain/components/TechnologyCard.vue delete mode 100644 src/views/dashboard/workbench/components/WorkbenchMain/components/index.ts delete mode 100644 src/views/dashboard/workbench/components/WorkbenchMain/index.vue delete mode 100644 src/views/dashboard/workbench/components/index.ts delete mode 100644 src/views/plugin/charts/antv/index.vue delete mode 100644 src/views/plugin/charts/echarts/index.vue delete mode 100644 src/views/plugin/copy/index.vue delete mode 100644 src/views/plugin/editor/markdown/index.vue delete mode 100644 src/views/plugin/editor/quill/index.vue delete mode 100644 src/views/plugin/icon/icons.ts delete mode 100644 src/views/plugin/icon/index.vue delete mode 100644 src/views/plugin/map/components/BaiduMap.vue delete mode 100644 src/views/plugin/map/components/GaodeMap.vue delete mode 100644 src/views/plugin/map/components/TencentMap.vue delete mode 100644 src/views/plugin/map/components/index.ts delete mode 100644 src/views/plugin/map/index.vue delete mode 100644 src/views/plugin/print/index.vue delete mode 100644 src/views/plugin/swiper/index.vue delete mode 100644 src/views/plugin/video/index.vue diff --git a/mock/model/route.ts b/mock/model/route.ts index 3df0d50a..17ae84ff 100644 --- a/mock/model/route.ts +++ b/mock/model/route.ts @@ -126,140 +126,6 @@ export const routeModel: Record = { 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', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - requiresAuth: true, - icon: 'ant-design:bar-chart-outlined' - } - } - ], - meta: { - title: '图表', - icon: 'material-symbols:bar-chart-rounded' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - 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: '富文本编辑器', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - requiresAuth: true, - customIcon: 'custom-icon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - requiresAuth: true, - icon: 'ic:baseline-local-printshop' - } - } - ], - meta: { - title: '插件示例', - icon: 'clarity:plugin-line', - order: 4 - } - }, { name: 'auth-demo', path: '/auth-demo', @@ -627,140 +493,6 @@ export const routeModel: Record = { 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', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - requiresAuth: true, - icon: 'ant-design:bar-chart-outlined' - } - } - ], - meta: { - title: '图表', - icon: 'material-symbols:bar-chart-rounded' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - 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: '富文本编辑器', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - requiresAuth: true, - customIcon: 'custom-icon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - requiresAuth: true, - icon: 'ic:baseline-local-printshop' - } - } - ], - meta: { - title: '插件示例', - icon: 'clarity:plugin-line', - order: 4 - } - }, { name: 'auth-demo', path: '/auth-demo', diff --git a/package.json b/package.json index 536ca027..51edf647 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "soybean-admin", - "version": "0.9.6", + "version": "0.9.7", "author": { "name": "Soybean", "email": "honghuangdc@gmail.com", @@ -31,8 +31,6 @@ } }, "dependencies": { - "@antv/data-set": "^0.11.8", - "@antv/g2": "^4.2.5", "@better-scroll/core": "^2.4.2", "@soybeanjs/vue-admin-layout": "^1.1.1", "@soybeanjs/vue-admin-tab": "^1.0.5", @@ -42,26 +40,20 @@ "colord": "^2.9.2", "crypto-js": "^4.1.1", "dayjs": "^1.11.4", - "echarts": "^5.3.3", "form-data": "^4.0.0", "lodash-es": "^4.17.21", "naive-ui": "^2.32.1", "pinia": "^2.0.17", - "print-js": "^1.6.0", "qs": "^6.11.0", - "swiper": "^8.3.2", "ua-parser-js": "^1.0.2", - "vditor": "^3.8.17", "vue": "3.2.37", - "vue-router": "^4.1.3", - "wangeditor": "^4.7.15", - "xgplayer": "^2.31.7" + "vue-router": "^4.1.3" }, "devDependencies": { "@amap/amap-jsapi-types": "^0.0.8", "@commitlint/cli": "^17.0.3", "@commitlint/config-conventional": "^17.0.3", - "@iconify/json": "^2.1.87", + "@iconify/json": "^2.1.88", "@iconify/vue": "^3.2.1", "@milahu/patch-package": "^6.4.14", "@types/bmapgl": "^0.0.5", diff --git a/src/composables/echarts.ts b/src/composables/echarts.ts deleted file mode 100644 index 57ff9ca3..00000000 --- a/src/composables/echarts.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { ref, watch, nextTick, onUnmounted } from 'vue'; -import type { Ref, ComputedRef } from 'vue'; -import * as echarts from 'echarts/core'; -import { BarChart, LineChart, PieChart, ScatterChart, PictorialBarChart, RadarChart, GaugeChart } from 'echarts/charts'; -import type { - BarSeriesOption, - LineSeriesOption, - PieSeriesOption, - ScatterSeriesOption, - PictorialBarSeriesOption, - RadarSeriesOption, - GaugeSeriesOption -} from 'echarts/charts'; -import { - TitleComponent, - LegendComponent, - TooltipComponent, - GridComponent, - DatasetComponent, - TransformComponent, - ToolboxComponent -} from 'echarts/components'; -import type { - TitleComponentOption, - LegendComponentOption, - TooltipComponentOption, - GridComponentOption, - ToolboxComponentOption, - DatasetComponentOption -} 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(null); - - 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!.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 stopSizeWatch = watch([width, height], ([newWidth, newHeight]) => { - initialSize.width = newWidth; - initialSize.height = newHeight; - if (canRender()) { - if (!isRendered()) { - render(); - } else { - resize(); - } - } - }); - - const stopOptionWatch = watch(options, newValue => { - update(newValue); - }); - - const stopDarkModeWatch = watch( - () => theme.darkMode, - () => { - updateTheme(); - } - ); - - onUnmounted(() => { - destroy(); - stopSizeWatch(); - stopOptionWatch(); - stopDarkModeWatch(); - }); - - return { - domRef - }; -} diff --git a/src/composables/index.ts b/src/composables/index.ts index 274f90e7..75614a2d 100644 --- a/src/composables/index.ts +++ b/src/composables/index.ts @@ -2,4 +2,3 @@ export * from './system'; export * from './router'; export * from './layout'; export * from './events'; -export * from './echarts'; diff --git a/src/plugins/assets.ts b/src/plugins/assets.ts index ff6617dc..197229ea 100644 --- a/src/plugins/assets.ts +++ b/src/plugins/assets.ts @@ -1,7 +1,4 @@ import 'uno.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/plugin.ts b/src/router/modules/plugin.ts deleted file mode 100644 index 7d52a4c4..00000000 --- a/src/router/modules/plugin.ts +++ /dev/null @@ -1,136 +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', - requiresAuth: true, - icon: 'simple-icons:apacheecharts' - } - }, - { - name: 'plugin_charts_antv', - path: '/plugin/charts/antv', - component: 'self', - meta: { - title: 'AntV', - requiresAuth: true, - icon: 'ant-design:bar-chart-outlined' - } - } - ], - meta: { - title: '图表', - icon: 'material-symbols:bar-chart-rounded' - } - }, - { - name: 'plugin_map', - path: '/plugin/map', - component: 'self', - meta: { - title: '地图', - requiresAuth: true, - icon: 'mdi:map' - } - }, - { - name: 'plugin_video', - path: '/plugin/video', - component: 'self', - meta: { - title: '视频', - 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: '富文本编辑器', - requiresAuth: true, - icon: 'mdi:file-document-edit-outline' - } - }, - { - name: 'plugin_editor_markdown', - path: '/plugin/editor/markdown', - component: 'self', - meta: { - title: 'markdown编辑器', - requiresAuth: true, - icon: 'ri:markdown-line' - } - } - ], - meta: { - title: '编辑器', - icon: 'icon-park-outline:editor' - } - }, - { - name: 'plugin_swiper', - path: '/plugin/swiper', - component: 'self', - meta: { - title: 'Swiper插件', - requiresAuth: true, - icon: 'simple-icons:swiper' - } - }, - { - name: 'plugin_copy', - path: '/plugin/copy', - component: 'self', - meta: { - title: '剪贴板', - requiresAuth: true, - icon: 'mdi:clipboard-outline' - } - }, - { - name: 'plugin_icon', - path: '/plugin/icon', - component: 'self', - meta: { - title: '图标', - requiresAuth: true, - icon: 'ic:baseline-insert-emoticon' - } - }, - { - name: 'plugin_print', - path: '/plugin/print', - component: 'self', - meta: { - title: '打印', - requiresAuth: true, - icon: 'ic:baseline-local-printshop' - } - } - ], - meta: { - title: '插件示例', - icon: 'clarity:plugin-line', - order: 4 - } -}; - -export default plugin; diff --git a/src/typings/route.d.ts b/src/typings/route.d.ts index c1436ed0..b7a01f07 100644 --- a/src/typings/route.d.ts +++ b/src/typings/route.d.ts @@ -26,19 +26,6 @@ declare namespace AuthRoute { | 'component_button' | 'component_card' | 'component_table' - | 'plugin' - | 'plugin_map' - | 'plugin_video' - | 'plugin_editor' - | 'plugin_editor_quill' - | 'plugin_editor_markdown' - | 'plugin_copy' - | 'plugin_icon' - | 'plugin_print' - | 'plugin_swiper' - | 'plugin_charts' - | 'plugin_charts_echarts' - | 'plugin_charts_antv' | 'auth-demo' | 'auth-demo_permission' | 'auth-demo_super' diff --git a/src/views/dashboard/analysis/components/BottomPart/index.vue b/src/views/dashboard/analysis/components/BottomPart/index.vue deleted file mode 100644 index 8b8ad90c..00000000 --- a/src/views/dashboard/analysis/components/BottomPart/index.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/TopChart/index.vue b/src/views/dashboard/analysis/components/TopChart/index.vue deleted file mode 100644 index 9bd613c8..00000000 --- a/src/views/dashboard/analysis/components/TopChart/index.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/src/views/dashboard/analysis/components/index.ts b/src/views/dashboard/analysis/components/index.ts index 8e940b19..b53a6e9d 100644 --- a/src/views/dashboard/analysis/components/index.ts +++ b/src/views/dashboard/analysis/components/index.ts @@ -1,5 +1,3 @@ -import TopChart from './TopChart/index.vue'; import DataCard from './DataCard/index.vue'; -import BottomPart from './BottomPart/index.vue'; -export { TopChart, DataCard, BottomPart }; +export { DataCard }; diff --git a/src/views/dashboard/analysis/index.vue b/src/views/dashboard/analysis/index.vue index 935b16cc..3855f2ef 100644 --- a/src/views/dashboard/analysis/index.vue +++ b/src/views/dashboard/analysis/index.vue @@ -1,13 +1,11 @@ diff --git a/src/views/dashboard/workbench/components/WorkbenchHeader/index.vue b/src/views/dashboard/workbench/components/WorkbenchHeader/index.vue deleted file mode 100644 index 836ce079..00000000 --- a/src/views/dashboard/workbench/components/WorkbenchHeader/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/WorkbenchMain/components/ShortcutsCard.vue b/src/views/dashboard/workbench/components/WorkbenchMain/components/ShortcutsCard.vue deleted file mode 100644 index 3414ffc9..00000000 --- a/src/views/dashboard/workbench/components/WorkbenchMain/components/ShortcutsCard.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/WorkbenchMain/components/TechnologyCard.vue b/src/views/dashboard/workbench/components/WorkbenchMain/components/TechnologyCard.vue deleted file mode 100644 index eba9b2b8..00000000 --- a/src/views/dashboard/workbench/components/WorkbenchMain/components/TechnologyCard.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/WorkbenchMain/components/index.ts b/src/views/dashboard/workbench/components/WorkbenchMain/components/index.ts deleted file mode 100644 index e84b2621..00000000 --- a/src/views/dashboard/workbench/components/WorkbenchMain/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import TechnologyCard from './TechnologyCard.vue'; -import ShortcutsCard from './ShortcutsCard.vue'; - -export { TechnologyCard, ShortcutsCard }; diff --git a/src/views/dashboard/workbench/components/WorkbenchMain/index.vue b/src/views/dashboard/workbench/components/WorkbenchMain/index.vue deleted file mode 100644 index b7cff010..00000000 --- a/src/views/dashboard/workbench/components/WorkbenchMain/index.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - - diff --git a/src/views/dashboard/workbench/components/index.ts b/src/views/dashboard/workbench/components/index.ts deleted file mode 100644 index 208c51c4..00000000 --- a/src/views/dashboard/workbench/components/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import WorkbenchHeader from './WorkbenchHeader/index.vue'; -import WorkbenchMain from './WorkbenchMain/index.vue'; - -export { WorkbenchHeader, WorkbenchMain }; diff --git a/src/views/dashboard/workbench/index.vue b/src/views/dashboard/workbench/index.vue index 0998f27e..bdc9208c 100644 --- a/src/views/dashboard/workbench/index.vue +++ b/src/views/dashboard/workbench/index.vue @@ -1,12 +1,9 @@ - + diff --git a/src/views/plugin/charts/antv/index.vue b/src/views/plugin/charts/antv/index.vue deleted file mode 100644 index 4d6d24c8..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 0adfb928..00000000 --- a/src/views/plugin/charts/echarts/index.vue +++ /dev/null @@ -1,782 +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 25336b99..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 453e9f08..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 1a91ecae..00000000 --- a/src/views/plugin/icon/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/BaiduMap.vue b/src/views/plugin/map/components/BaiduMap.vue deleted file mode 100644 index 8ca4bdbe..00000000 --- a/src/views/plugin/map/components/BaiduMap.vue +++ /dev/null @@ -1,30 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/GaodeMap.vue b/src/views/plugin/map/components/GaodeMap.vue deleted file mode 100644 index 6a3554d4..00000000 --- a/src/views/plugin/map/components/GaodeMap.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/src/views/plugin/map/components/TencentMap.vue b/src/views/plugin/map/components/TencentMap.vue deleted file mode 100644 index eca7ccbc..00000000 --- a/src/views/plugin/map/components/TencentMap.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 b0d67a79..00000000 --- a/src/views/plugin/map/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import BaiduMap from './BaiduMap.vue'; -import GaodeMap from './GaodeMap.vue'; -import TencentMap from './TencentMap.vue'; - -export { BaiduMap, GaodeMap, TencentMap }; diff --git a/src/views/plugin/map/index.vue b/src/views/plugin/map/index.vue deleted file mode 100644 index b9506727..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 4784b94c..00000000 --- a/src/views/plugin/swiper/index.vue +++ /dev/null @@ -1,117 +0,0 @@ - - - - - diff --git a/src/views/plugin/video/index.vue b/src/views/plugin/video/index.vue deleted file mode 100644 index c2abfa38..00000000 --- a/src/views/plugin/video/index.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/vite.config.ts b/vite.config.ts index 39da360c..d497d626 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,17 +38,7 @@ export default defineConfig(configEnv => { port: 5050 }, optimizeDeps: { - include: [ - '@antv/data-set', - '@antv/g2', - '@better-scroll/core', - 'echarts', - 'swiper', - 'swiper/vue', - 'vditor', - 'wangeditor', - 'xgplayer' - ] + include: ['@better-scroll/core'] }, build: { reportCompressedSize: false,