- 替换订单总结接口响应类型为object,支持事件流格式 - 采用EventSource实现订单总结的SSE连接,支持服务器推送数据 - 实现打字机效果,实时显示总结文本的追加内容 - 使用marked解析Markdown格式摘要内容,支持GFM和换行 - 使用DOMPurify清理生成HTML,保障内容安全,仅允许部分标签 - 增加实时生成中状态提示和闪烁的输入光标动画 - 添加超时机制和连接错误处理,保证用户提示友好 - 组件卸载时自动关闭SSE连接,防止资源泄漏 - 更新依赖,新增dompurify和marked及相关类型定义 - 调整ESLint和构建配置支持新增脚本模式
144 lines
4.9 KiB
JSON
144 lines
4.9 KiB
JSON
{
|
|
"name": "arco-design-pro-vue",
|
|
"description": "Arco Design Pro for Vue",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"author": "ArcoDesign Team",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"dev": "vite --config ./config/vite.config.dev.mts",
|
|
"build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.mts",
|
|
"type:check": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
|
|
"eslint": "eslint --max-warnings 0 \"{src,mock,config}/**/*.{vue,js,ts,tsx}\"",
|
|
"eslint:fix": "eslint --max-warnings 0 \"{src,mock,config}/**/*.{vue,js,ts,tsx}\" --fix",
|
|
"stylelint": "stylelint \"**/*.{html,vue,css,less}\"",
|
|
"stylelint:fix": "stylelint \"**/*.{html,vue,css,less}\" --fix",
|
|
"prettier": "prettier --check \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
|
|
"prettier:fix": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
|
|
"lint": "pnpm eslint && pnpm stylelint && pnpm prettier",
|
|
"lint:fix": "pnpm eslint:fix && pnpm stylelint:fix && pnpm prettier:fix",
|
|
"lint-staged": "lint-staged",
|
|
"clean:cache": "rimraf .eslintcache && rimraf node_modules && pnpm install",
|
|
"prepare": "husky && husky install",
|
|
"release": "bumpp",
|
|
"generate:api": "openapi-generator-cli generate -i http://127.0.0.1:12401/api.json -g typescript-axios -o ./src/api/generated -p withSeparateModelsAndApi=true,modelPackage=models,apiPackage=apis,useTagAsApiPackage=true,sortParamsByRequiredFlag=true,useSquareBracketsInArrayNames=true,withInterfaces=false,useSingleRequestParameter=true,stringEnums=true"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,jsx,tsx}": [
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.vue": [
|
|
"stylelint --fix",
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.{less,css}": [
|
|
"stylelint --fix",
|
|
"prettier --write"
|
|
],
|
|
"*.{md,json}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@arco-design/web-vue": "^2.57.0",
|
|
"@codemirror/commands": "^6.10.0",
|
|
"@codemirror/lang-css": "^6.3.1",
|
|
"@codemirror/lang-javascript": "^6.2.3",
|
|
"@codemirror/language": "^6.11.3",
|
|
"@codemirror/language-data": "^6.5.2",
|
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
"@codemirror/view": "^6.38.6",
|
|
"@milkdown/kit": "^7.7.0",
|
|
"@milkdown/theme-nord": "^7.7.0",
|
|
"@milkdown/vue": "^7.7.0",
|
|
"@openapitools/openapi-generator-cli": "^2.24.0",
|
|
"@tanstack/vue-query": "^5.74.7",
|
|
"@vueuse/core": "^10.11.1",
|
|
"axios": "^1.8.4",
|
|
"codemirror": "^6.0.2",
|
|
"crypto-js": "^4.2.0",
|
|
"dayjs": "^1.11.19",
|
|
"dompurify": "^3.3.0",
|
|
"echarts": "^5.6.0",
|
|
"lodash": "^4.17.21",
|
|
"marked": "^17.0.1",
|
|
"mitt": "^3.0.1",
|
|
"nprogress": "^0.2.0",
|
|
"pinia": "^2.3.1",
|
|
"query-string": "^9.1.1",
|
|
"rollup": "^4.40.0",
|
|
"sortablejs": "^1.15.6",
|
|
"vue": "^3.5.22",
|
|
"vue-echarts": "^6.7.3",
|
|
"vue-router": "^4.5.0",
|
|
"yaml": "^2.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@arco-plugins/vite-vue": "^1.4.6",
|
|
"@commitlint/cli": "^19.8.0",
|
|
"@commitlint/config-conventional": "^19.8.0",
|
|
"@commitlint/types": "^19.8.0",
|
|
"@eslint/js": "^9.25.1",
|
|
"@openapi-codegen/cli": "^3.1.0",
|
|
"@openapi-codegen/typescript": "^11.0.1",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@types/dompurify": "^3.2.0",
|
|
"@types/lodash": "^4.17.20",
|
|
"@types/marked": "^6.0.0",
|
|
"@types/mockjs": "^1.0.10",
|
|
"@types/node": "^22.14.1",
|
|
"@types/nprogress": "^0.2.3",
|
|
"@types/sortablejs": "^1.15.9",
|
|
"@typescript-eslint/eslint-plugin": "^8.31.0",
|
|
"@typescript-eslint/parser": "^8.31.0",
|
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
"autoprefixer": "^10.4.21",
|
|
"consola": "^3.4.2",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^9.25.1",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-prettier": "^5.2.6",
|
|
"eslint-plugin-vue": "^9.33.0",
|
|
"husky": "^8.0.0",
|
|
"less": "^4.3.0",
|
|
"lint-staged": "^15.5.1",
|
|
"mockjs": "^1.1.0",
|
|
"postcss-html": "^1.8.0",
|
|
"postcss-less": "^6.0.0",
|
|
"prettier": "^3.5.3",
|
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
"stylelint": "^16.19.0",
|
|
"stylelint-config-recess-order": "^5.1.1",
|
|
"stylelint-config-recommended-vue": "^1.6.0",
|
|
"stylelint-config-standard": "^37.0.0",
|
|
"stylelint-config-standard-less": "^3.0.1",
|
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
"stylelint-less": "^3.0.1",
|
|
"stylelint-order": "^6.0.4",
|
|
"stylelint-prettier": "^5.0.3",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.19.4",
|
|
"typescript": "^5.8.3",
|
|
"unplugin-vue-components": "^0.27.5",
|
|
"vite": "^5.4.15",
|
|
"vite-plugin-compression": "^0.5.1",
|
|
"vite-plugin-imagemin": "^0.6.1",
|
|
"vite-svg-loader": "^5.1.0",
|
|
"vue-eslint-parser": "^9.4.3",
|
|
"vue-tsc": "^2.2.10"
|
|
},
|
|
"engines": {
|
|
"node": "^18.0.0 || >=20.0.0",
|
|
"pnpm": ">=8.11.0"
|
|
},
|
|
"resolutions": {
|
|
"bin-wrapper": "npm:bin-wrapper-china",
|
|
"gifsicle": "5.2.0"
|
|
},
|
|
"packageManager": "pnpm@10.23.0"
|
|
}
|