Skip to content

Commit

Permalink
refactor: editor dependencies (#52)
Browse files Browse the repository at this point in the history
在 Halo 2.11.0 中已经全局注册了默认编辑器,所以此 PR 排除了默认编辑器的依赖,以及以下改动:

1. 功能尽可能和文章编辑器一致。
2. 优化代码高亮依赖,与编辑器可支持的一致,减小包体积。

before:

<img width="603" alt="图片" src="https://github.com/halo-sigs/plugin-moments/assets/21301288/581ad3d5-3237-4e80-a7f2-dba94ad411ec">

after:

<img width="730" alt="图片" src="https://github.com/halo-sigs/plugin-moments/assets/21301288/a62d7672-0d4e-4422-9542-e287c7e4d72d">

/kind improvement
Fixes #49 

```release-note
优化编辑器依赖,减小包体积。
```
  • Loading branch information
ruibaby authored Dec 5, 2023
1 parent 6950501 commit 55a70a0
Show file tree
Hide file tree
Showing 11 changed files with 805 additions and 1,310 deletions.
1 change: 1 addition & 0 deletions console/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="unplugin-icons/types/vue" />

declare module "*.vue" {
import Vue from "vue";
Expand Down
16 changes: 7 additions & 9 deletions console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@halo-dev/api-client": "^2.4.0",
"@halo-dev/components": "^1.3.0",
"@halo-dev/console-shared": "^2.7.0",
"@halo-dev/richtext-editor": "0.0.0-alpha.19",
"@halo-dev/api-client": "^2.11.0",
"@halo-dev/components": "^1.10.0",
"@halo-dev/console-shared": "^2.11.0",
"@halo-dev/richtext-editor": "0.0.0-alpha.33",
"@tanstack/vue-query": "^4.26.1",
"@tiptap/pm": "2.0.0-beta.220",
"@tiptap/suggestion": "2.0.0-beta.220",
"@tiptap/suggestion": "^2.1.13",
"@types/lodash.clonedeep": "^4.5.7",
"@types/lodash.debounce": "^4.0.7",
"@vueuse/core": "^9.13.0",
Expand All @@ -36,8 +35,7 @@
"@tailwindcss/aspect-ratio": "^0.4.2",
"@types/jsdom": "^16.2.15",
"@types/node": "^16.18.14",
"@vitejs/plugin-vue": "^2.3.4",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@vitejs/plugin-vue": "^4.5.1",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/test-utils": "^2.3.0",
Expand All @@ -52,7 +50,7 @@
"tailwindcss": "^3.2.7",
"typescript": "~4.7.4",
"unplugin-icons": "^0.15.3",
"vite": "^2.9.15",
"vite": "^4.5.0",
"vitest": "^0.13.1",
"vue-tsc": "^0.35.2"
}
Expand Down
Loading

0 comments on commit 55a70a0

Please sign in to comment.