Skip to content

Commit 978761a

Browse files
author
githubnull
committed
feat: 添加HTTP报文编辑器美化功能
- 新增HttpCodeEditor组件,使用CodeMirror 6实现 - 支持行号显示 - 支持HTTP语法高亮(方法、Header、URL、注入点标记等) - 支持搜索过滤功能(常规匹配、正则匹配、大小写敏感、反转) - 支持亮色/暗色主题动态切换 - 添加快捷操作:搜索(Ctrl+F)、复制、清空 - 更新AddTask页面使用新编辑器组件
1 parent ad25e81 commit 978761a

5 files changed

Lines changed: 837 additions & 20 deletions

File tree

src/frontEnd/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"@codemirror/commands": "^6.10.1",
13+
"@codemirror/lang-javascript": "^6.2.4",
14+
"@codemirror/language": "^6.11.3",
15+
"@codemirror/search": "^6.5.11",
16+
"@codemirror/state": "^6.5.2",
17+
"@codemirror/theme-one-dark": "^6.1.3",
18+
"@codemirror/view": "^6.39.4",
19+
"@lezer/highlight": "^1.2.3",
1220
"@primevue/themes": "^4.4.1",
1321
"@scrape-do/curl-parser": "^0.3.0",
1422
"axios": "^1.12.2",
23+
"codemirror": "^6.0.2",
1524
"dayjs": "^1.11.18",
1625
"highlight.js": "^11.11.1",
1726
"lodash-es": "^4.17.21",

src/frontEnd/pnpm-lock.yaml

Lines changed: 178 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontEnd/src/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ declare module 'vue' {
2525
GuidedParamEditor: typeof import('./components/GuidedParamEditor.vue')['default']
2626
GuidedParamEditorDialog: typeof import('./components/GuidedParamEditorDialog.vue')['default']
2727
HelloWorld: typeof import('./components/HelloWorld.vue')['default']
28+
HttpCodeEditor: typeof import('./components/HttpCodeEditor.vue')['default']
2829
IconField: typeof import('primevue/iconfield')['default']
2930
InlineMessage: typeof import('primevue/inlinemessage')['default']
3031
InputIcon: typeof import('primevue/inputicon')['default']

0 commit comments

Comments
 (0)