Compare commits

..

7 Commits

Author SHA1 Message Date
时启龙 65917f0130 chore: 去掉不需要的命令 2024-04-29 09:29:26 +08:00
时启龙 1b22b584af chore: 修改开发环境协议 2024-04-01 12:19:39 +08:00
时启龙 693cf8cc96 chore: 修改开发环境 2024-04-01 11:00:24 +08:00
时启龙 d40c66571b fix: 添加codemirror依赖 2024-03-14 14:27:03 +08:00
时启龙 3f74ac2bbf fix: 增加url-loader依赖 2024-03-14 14:23:09 +08:00
时启龙 20d1e2d7f0 fix: 修改 jenkins 配置 2024-03-14 14:19:13 +08:00
时启龙 8402a11818 fix: 修改代理接口 2024-03-14 14:05:41 +08:00
4 changed files with 1049 additions and 215 deletions

10
Jenkinsfile vendored
View File

@ -1,10 +1,8 @@
@Library('jgpl') _
webPipeline([
onBuildInstallShell:{->
return """
npm install url-loader --userconfig ${env.NPM_CONFIG_USERCONFIG} --no-package-lock
pnpm install -no-frozen-lockfile
pnpm run build || echo 'Ignore build error !!!'
"""
},
return """
pnpm install --no-prefer-frozen-lockfile
pnpm run build || echo 'Ignore build error !!!'
"""}
])

View File

@ -1,103 +1,98 @@
{
"name": "cop-web",
"version": "5.6.0",
"private": true,
"author": "Haijun Zhang <zhanghaijun@beyondcent.com>",
"scripts": {
"dev": "vite",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"fix": "vue-cli-service lint --fix",
"fix-memory-limit": "cross-env LIMIT=4096 increase-memory-limit",
"precommit": "lint-staged",
"upload": "node upload.js",
"deploy": "yarn build && yarn upload"
},
"dependencies": {
"@vue/composition-api": "^1.0.0-rc.2",
"axios": "^0.21.1",
"clipboard": "^2.0.6",
"cmp-echarts": "2.0.0-5.6-release",
"cmp-element": "1.0.0-5.6-release",
"cmp-graph-editor": "1.0.0-5.6-release",
"cmp-socket": "1.0.0",
"core-js": "^3.3.2",
"crypto-js": "^3.1.9-1",
"dayjs": "^1.10.4",
"element-ui": "2.13.0",
"jquery": "^3.6.0",
"js-cookie": "^2.2.0",
"lodash-es": "^4.17.21",
"mergely": "4.0.15",
"nprogress": "^0.2.0",
"qs": "^6.7.0",
"sortablejs": "^1.8.4",
"vue": "2.6.14",
"vue-class-component": "^7.0.2",
"vue-code-diff": "^0.0.4",
"vue-i18n": "^8.15.0",
"vue-property-decorator": "^8.3.0",
"vue-router": "^3.3.4",
"vue2-animate": "^1.0.4",
"vuex": "^3.0.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/js-cookie": "^2.2.4",
"@types/lodash-es": "^4.17.5",
"@types/nprogress": "^0.2.0",
"@types/qs": "^6.5.3",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@vue/cli-plugin-babel": "~4.4.1",
"@vue/cli-plugin-eslint": "~4.4.1",
"@vue/cli-plugin-router": "~4.4.1",
"@vue/cli-plugin-typescript": "~4.4.1",
"@vue/cli-plugin-vuex": "~4.4.1",
"@vue/cli-service": "~4.4.1",
"@vue/eslint-config-standard": "^5.1.0",
"@vue/eslint-config-typescript": "^5.0.1",
"autoprefixer": "9.8.6",
"babel-plugin-transform-vite-meta-glob": "^1.0.3",
"chalk": "^4.1.1",
"compress-webpack-plugin": "^1.0.6",
"cross-env": "^5.2.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"husky": "^1.3.1",
"increase-memory-limit": "^1.0.6",
"lint-staged": "^8.1.5",
"ora": "^5.4.0",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"svg-sprite-loader": "^6.0.2",
"typescript": "^4.4.4",
"unplugin-auto-import": "^0.6.1",
"unplugin-vue-components": "^0.17.21",
"vue-template-compiler": "2.6.14",
"webpack-cli": "^4.9.2"
},
"eslintConfig": {
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
},
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
"name": "cop-web",
"version": "5.6.0",
"private": true,
"author": "Haijun Zhang <zhanghaijun@beyondcent.com>",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"@vue/composition-api": "^1.0.0-rc.2",
"axios": "^0.21.1",
"clipboard": "^2.0.6",
"cmp-echarts": "2.0.0-5.6-release",
"cmp-element": "1.0.0-5.6-release",
"cmp-graph-editor": "1.0.0-5.6-release",
"cmp-socket": "1.0.0",
"codemirror": "5.60",
"core-js": "^3.3.2",
"crypto-js": "^3.1.9-1",
"dayjs": "^1.10.4",
"element-ui": "2.13.0",
"jquery": "^3.6.0",
"js-cookie": "^2.2.0",
"lodash-es": "^4.17.21",
"mergely": "4.0.15",
"nprogress": "^0.2.0",
"qs": "^6.7.0",
"sortablejs": "^1.8.4",
"url-loader": "^4.1.1",
"vue": "2.6.14",
"vue-class-component": "^7.0.2",
"vue-code-diff": "^0.0.4",
"vue-i18n": "^8.15.0",
"vue-property-decorator": "^8.3.0",
"vue-router": "^3.3.4",
"vue2-animate": "^1.0.4",
"vuex": "^3.0.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/js-cookie": "^2.2.4",
"@types/lodash-es": "^4.17.5",
"@types/nprogress": "^0.2.0",
"@types/qs": "^6.5.3",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@vue/cli-plugin-babel": "~4.4.1",
"@vue/cli-plugin-eslint": "~4.4.1",
"@vue/cli-plugin-router": "~4.4.1",
"@vue/cli-plugin-typescript": "~4.4.1",
"@vue/cli-plugin-vuex": "~4.4.1",
"@vue/cli-service": "~4.4.1",
"@vue/eslint-config-standard": "^5.1.0",
"@vue/eslint-config-typescript": "^5.0.1",
"autoprefixer": "9.8.6",
"babel-plugin-transform-vite-meta-glob": "^1.0.3",
"chalk": "^4.1.1",
"compress-webpack-plugin": "^1.0.6",
"cross-env": "^5.2.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.1.2",
"husky": "^1.3.1",
"increase-memory-limit": "^1.0.6",
"lint-staged": "^8.1.5",
"ora": "^5.4.0",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"svg-sprite-loader": "^6.0.2",
"typescript": "^4.4.4",
"unplugin-auto-import": "^0.6.1",
"unplugin-vue-components": "^0.17.21",
"vue-template-compiler": "2.6.14",
"webpack-cli": "^4.9.2"
},
"eslintConfig": {
"parserOptions": {
"parser": "@typescript-eslint/parser"
}
}
},
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ function resolve(dir) {
}
const httpType = 'https://'
// const proxyUrl = 'develop.cmp56.com:60006/' // 代理地址设置
const proxyUrl = '10.20.12.56:60006/' // 代理地址设置
const proxyUrl = '23.33.3.22:60006/' // 代理地址设置
// const publicPath = process.env.NODE_ENV === 'production' ? '/cop-web/' : '/cop-web/';
const publicPath = '/cop-web/'
module.exports = {