Skip to content

Commit

Permalink
refactor: 使用 vue-office 重构文件预览(移除KKFileView)
Browse files Browse the repository at this point in the history
移除 KKFileView
使用 vue-office 重构文件预览
移除依赖  editor,md-editor-v3,editor-for-vue
  • Loading branch information
KAI authored and Charles7c committed Oct 14, 2024
1 parent 2e15cf2 commit 51aceac
Show file tree
Hide file tree
Showing 13 changed files with 298 additions and 992 deletions.
8 changes: 1 addition & 7 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@ VITE_API_WS_URL = 'ws://localhost:8000'
VITE_BASE = '/'

# 是否开启开发者工具
VITE_OPEN_DEVTOOLS = false

# 是否开启KKFileView
FILE_OPEN_PREVIEW = true

# KKFileView服务器地址
FILE_VIEW_SERVER_URL = 'http://192.168.122.209:8012'
VITE_OPEN_DEVTOOLS = false
8 changes: 1 addition & 7 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@ VITE_API_BASE_URL = 'https://api.continew.top'
VITE_API_WS_URL = 'wss://api.continew.top'

# 地址前缀
VITE_BASE = '/'

# 是否开启KKFileView
FILE_OPEN_PREVIEW = false

# KKFileView服务器地址
FILE_VIEW_SERVER_URL = 'http://localhost:8012'
VITE_BASE = '/'
8 changes: 1 addition & 7 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ VITE_API_BASE_URL = 'http://localhost:8000'
VITE_BASE = '/test'

# 是否开启开发者工具
VITE_OPEN_DEVTOOLS = true

# 是否开启KKFileView
FILE_OPEN_PREVIEW = false

# KKFileView服务器地址
FILE_VIEW_SERVER_URL = 'http://localhost:8012'
VITE_OPEN_DEVTOOLS = true
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"@ddietr/codemirror-themes": "^1.4.2",
"@vueuse/components": "^10.5.0",
"@vueuse/core": "^10.5.0",
"@wangeditor/editor": "^5.1.1",
"@wangeditor/editor-for-vue": "^5.1.12",
"aieditor": "^1.0.13",
"animate.css": "^4.1.1",
"axios": "^0.27.2",
Expand All @@ -34,7 +32,6 @@
"echarts": "^5.4.2",
"jsencrypt": "^3.3.2",
"lodash-es": "^4.17.21",
"md-editor-v3": "^4.13.4",
"mitt": "^3.0.0",
"mockjs": "^1.1.0",
"nprogress": "^0.2.0",
Expand All @@ -49,12 +46,16 @@
"vue-codemirror6": "^1.1.27",
"vue-color-kit": "^1.0.5",
"vue-cropper": "^1.1.1",
"vue-demi": "^0.14.10",
"vue-draggable-plus": "^0.3.5",
"vue-echarts": "^6.5.5",
"vue-json-pretty": "^2.4.0",
"vue-router": "^4.3.3",
"xe-utils": "^3.5.7",
"xgplayer": "^2.31.6"
"xgplayer": "^2.31.6",
"@vue-office/docx": "1.6.0",
"@vue-office/excel": "1.7.1",
"@vue-office/pdf": "1.6.4"
},
"devDependencies": {
"@antfu/eslint-config": "^2.16.3",
Expand Down
Loading

0 comments on commit 51aceac

Please sign in to comment.