chore(dependency): vite及依赖包升级
This commit is contained in:
parent
3cd5432c18
commit
93cce0a4cc
|
@ -72,7 +72,7 @@ export default defineConfig({
|
||||||
replacement: '@halo-dev/richtext-editor',
|
replacement: '@halo-dev/richtext-editor',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
extensions: ['.ts', '.js'],
|
extensions: ['.ts', '.js', '.jsx', '.tsx', '.json', '.vue'],
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
'process.env': {},
|
'process.env': {},
|
||||||
|
|
|
@ -38,104 +38,103 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@7polo/kity": "2.0.8",
|
"@7polo/kity": "2.0.8",
|
||||||
"@7polo/kityminder-core": "1.4.53",
|
"@7polo/kityminder-core": "1.4.53",
|
||||||
"@arco-design/web-vue": "^2.55.1",
|
"@arco-design/web-vue": "^2.55.3",
|
||||||
"@arco-themes/vue-metersphere-v3": "^0.0.1",
|
"@arco-themes/vue-metersphere-v3": "^0.0.1",
|
||||||
"@form-create/arco-design": "^3.1.23",
|
"@form-create/arco-design": "^3.1.29",
|
||||||
"@halo-dev/richtext-editor": "0.0.0-alpha.33",
|
"@halo-dev/richtext-editor": "0.0.0-alpha.33",
|
||||||
"@tanstack/vue-query": "^5.17.15",
|
"@tanstack/vue-query": "^5.49.1",
|
||||||
"@tiptap/extension-character-count": "^2.4.0",
|
"@tiptap/extension-character-count": "^2.4.0",
|
||||||
"@tiptap/extension-image": "^2.1.15",
|
"@tiptap/extension-image": "^2.4.0",
|
||||||
"@tiptap/extension-mention": "^2.1.13",
|
"@tiptap/extension-mention": "^2.4.0",
|
||||||
"@tiptap/suggestion": "^2.1.13",
|
"@tiptap/suggestion": "^2.4.0",
|
||||||
"@tiptap/vue-3": "^2.1.13",
|
"@tiptap/vue-3": "^2.4.0",
|
||||||
"@types/color": "^3.0.4",
|
"@types/color": "^3.0.6",
|
||||||
"@types/node": "^20.11.19",
|
"@types/node": "^20.14.9",
|
||||||
"@vueuse/core": "^10.9.0",
|
"@vueuse/core": "^10.11.0",
|
||||||
"@wecom/jssdk": "^1.4.5",
|
"@wecom/jssdk": "^1.4.5",
|
||||||
"@xmldom/xmldom": "^0.8.10",
|
"@xmldom/xmldom": "^0.8.10",
|
||||||
"ace-builds": "^1.24.2",
|
"ace-builds": "^1.35.2",
|
||||||
"ahooks-vue": "^0.15.1",
|
"ahooks-vue": "^0.15.1",
|
||||||
"axios": "^1.6.5",
|
"axios": "^1.7.2",
|
||||||
"dayjs": "^1.11.9",
|
"dayjs": "^1.11.11",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.5",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.5.1",
|
||||||
"fastq": "^1.15.0",
|
"fastq": "^1.17.1",
|
||||||
"github-markdown-css": "^5.5.1",
|
"github-markdown-css": "^5.6.1",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"jsonpath-plus": "^8.0.0",
|
"json-schema-traverse": "^1.0.0",
|
||||||
|
"jsonpath-plus": "^8.1.0",
|
||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"lossless-json": "^4.0.1",
|
"lossless-json": "^4.0.1",
|
||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"monaco-editor": "^0.39.0",
|
"monaco-editor": "^0.39.0",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"pinia": "^2.1.6",
|
"pinia": "^2.1.7",
|
||||||
"pinia-plugin-persistedstate": "^3.2.0",
|
"pinia-plugin-persistedstate": "^3.2.1",
|
||||||
"pm": "link:@/tiptap/pm",
|
"pm": "link:@/tiptap/pm",
|
||||||
"pretty": "^2.0.0",
|
"pretty": "^2.0.0",
|
||||||
"query-string": "^8.1.0",
|
"query-string": "^8.2.0",
|
||||||
"resize-observer-polyfill": "^1.5.1",
|
"resize-observer-polyfill": "^1.5.1",
|
||||||
"sortablejs": "^1.15.0",
|
"sortablejs": "^1.15.2",
|
||||||
"tippy.js": "^6.3.7",
|
"tippy.js": "^6.3.7",
|
||||||
"vue": "^3.4.20",
|
"vue": "^3.4.31",
|
||||||
"vue-dompurify-html": "^4.1.4",
|
"vue-dompurify-html": "^4.1.4",
|
||||||
"vue-draggable-plus": "^0.3.5",
|
"vue-draggable-plus": "^0.3.5",
|
||||||
"vue-echarts": "^6.6.1",
|
"vue-echarts": "^6.7.3",
|
||||||
"vue-i18n": "^9.3.0",
|
"vue-i18n": "^9.13.1",
|
||||||
"vue-router": "^4.2.4",
|
"vue-router": "^4.4.0",
|
||||||
"vue3-ace-editor": "^2.2.3",
|
"vue3-ace-editor": "^2.2.4",
|
||||||
"vue3-colorpicker": "^2.2.2",
|
"vue3-colorpicker": "^2.3.0",
|
||||||
"xml-beautify": "^1.2.3",
|
"xml-beautify": "^1.2.3",
|
||||||
"xpath": "^0.0.34"
|
"xpath": "^0.0.34"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@arco-plugins/vite-vue": "^1.4.5",
|
"@arco-plugins/vite-vue": "^1.4.5",
|
||||||
"@commitlint/cli": "^17.7.1",
|
"@commitlint/cli": "^17.8.1",
|
||||||
"@commitlint/config-conventional": "^17.7.0",
|
"@commitlint/config-conventional": "^17.8.1",
|
||||||
"@types/lodash": "^4.14.198",
|
"@types/lodash": "^4.17.6",
|
||||||
"@types/lodash-es": "^4.17.9",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/nprogress": "^0.2.0",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@types/pretty": "^2.0.3",
|
"@types/pretty": "^2.0.3",
|
||||||
"@types/react": "^18.2.79",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.2.25",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@types/sortablejs": "^1.15.2",
|
"@types/sortablejs": "^1.15.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
||||||
"@typescript-eslint/parser": "^7.1.1",
|
"@typescript-eslint/parser": "^7.15.0",
|
||||||
"@vitejs/plugin-vue": "^3.2.0",
|
"@vitejs/plugin-vue": "^4.6.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^2.1.1",
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||||
"@vitest/coverage-c8": "^0.31.4",
|
"@vitest/coverage-c8": "^0.31.4",
|
||||||
"@vue/babel-plugin-jsx": "^1.1.5",
|
"@vue/babel-plugin-jsx": "^1.2.2",
|
||||||
"@vue/test-utils": "^2.4.1",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"@zougt/some-loader-utils": "^1.4.3",
|
"autoprefixer": "^10.4.19",
|
||||||
"@zougt/vite-plugin-theme-preprocessor": "^1.4.8",
|
|
||||||
"autoprefixer": "^10.4.15",
|
|
||||||
"axios-mock-adapter": "^1.22.0",
|
"axios-mock-adapter": "^1.22.0",
|
||||||
"color": "^4.2.3",
|
"color": "^4.2.3",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-airbnb-base": "^15.0.0",
|
"eslint-config-airbnb-base": "^15.0.0",
|
||||||
"eslint-config-prettier": "^8.10.0",
|
"eslint-config-prettier": "^8.10.0",
|
||||||
"eslint-import-resolver-typescript": "^3.6.0",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-plugin-import": "^2.28.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||||
"eslint-plugin-vue": "^9.17.0",
|
"eslint-plugin-vue": "^9.27.0",
|
||||||
"fast-glob": "^3.3.1",
|
"fast-glob": "^3.3.2",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"less-loader": "^11.1.3",
|
"less-loader": "^11.1.4",
|
||||||
"lint-staged": "^13.3.0",
|
"lint-staged": "^13.3.0",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.39",
|
||||||
"postcss-html": "^1.5.0",
|
"postcss-html": "^1.7.0",
|
||||||
"postcss-import": "^15.1.0",
|
"postcss-import": "^15.1.0",
|
||||||
"postcss-less": "^6.0.0",
|
"postcss-less": "^6.0.0",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||||
"rollup": "^2.79.1",
|
"rollup": "^2.79.1",
|
||||||
"rollup-plugin-visualizer": "^5.9.2",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"sass": "^1.66.1",
|
"sass": "^1.77.6",
|
||||||
"stylelint": "^14.16.1",
|
"stylelint": "^14.16.1",
|
||||||
"stylelint-config-html": "^1.1.0",
|
"stylelint-config-html": "^1.1.0",
|
||||||
"stylelint-config-prettier": "^9.0.5",
|
"stylelint-config-prettier": "^9.0.5",
|
||||||
|
@ -148,11 +147,11 @@
|
||||||
"stylelint-config-standard-scss": "^4.0.0",
|
"stylelint-config-standard-scss": "^4.0.0",
|
||||||
"stylelint-less": "^1.0.8",
|
"stylelint-less": "^1.0.8",
|
||||||
"stylelint-order": "^5.0.0",
|
"stylelint-order": "^5.0.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.4.4",
|
||||||
"typescript": "5.4.5",
|
"typescript": "5.4.5",
|
||||||
"unplugin-auto-import": "^0.16.7",
|
"unplugin-auto-import": "^0.16.7",
|
||||||
"unplugin-vue-components": "^0.24.1",
|
"unplugin-vue-components": "^0.24.1",
|
||||||
"vite": "^3.2.7",
|
"vite": "^4.3.9",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-eslint": "^1.8.1",
|
"vite-plugin-eslint": "^1.8.1",
|
||||||
"vite-plugin-imagemin": "^0.6.1",
|
"vite-plugin-imagemin": "^0.6.1",
|
||||||
|
@ -161,10 +160,10 @@
|
||||||
"vite-plugin-vue-setup-extend": "^0.4.0",
|
"vite-plugin-vue-setup-extend": "^0.4.0",
|
||||||
"vite-svg-loader": "^3.6.0",
|
"vite-svg-loader": "^3.6.0",
|
||||||
"vitest": "^0.31.4",
|
"vitest": "^0.31.4",
|
||||||
"vue-tsc": "^1.8.10"
|
"vue-tsc": "^1.8.27"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"bin-wrapper": "npm:bin-wrapper-china",
|
"bin-wrapper": "npm:bin-wrapper-china",
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { Language, LanguageEnum } from '@/components/pure/ms-code-editor/types';
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import { hasAnyPermission } from '@/utils/permission';
|
import { hasAnyPermission } from '@/utils/permission';
|
||||||
|
|
||||||
import type { CommonScriptMenu } from '@/models/projectManagement/commonScript';
|
|
||||||
import { RequestConditionScriptLanguage } from '@/enums/apiEnum';
|
import { RequestConditionScriptLanguage } from '@/enums/apiEnum';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
@ -233,7 +232,7 @@ function getHeaders(requestHeaders: Record<string, any>) {
|
||||||
}
|
}
|
||||||
// 获取pythonCode 模板
|
// 获取pythonCode 模板
|
||||||
function _pythonCodeTemplate(obj: Record<string, any>) {
|
function _pythonCodeTemplate(obj: Record<string, any>) {
|
||||||
const { requestBody, requestBodyKvs, bodyType, requestPath, requestMethod, connType, domain, port } = obj;
|
const { requestBodyKvs, requestPath, requestMethod, connType, domain, port } = obj;
|
||||||
let { headers } = obj;
|
let { headers } = obj;
|
||||||
let reqBody = obj.requestBody;
|
let reqBody = obj.requestBody;
|
||||||
if (requestMethod.toLowerCase() === 'post' && obj.bodyType === 'kvs' && obj.requestBodyKvs) {
|
if (requestMethod.toLowerCase() === 'post' && obj.bodyType === 'kvs' && obj.requestBodyKvs) {
|
||||||
|
|
|
@ -980,7 +980,7 @@
|
||||||
try {
|
try {
|
||||||
// 再将 json schema 转换为 json 格式
|
// 再将 json schema 转换为 json 格式
|
||||||
const res = await convertJsonSchemaToJson(schema as JsonSchema);
|
const res = await convertJsonSchemaToJson(schema as JsonSchema);
|
||||||
activePreviewJsonValue.value = JSON.stringify(res);
|
activePreviewJsonValue.value = res;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
Loading…
Reference in New Issue