diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..59c9c55 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,23 @@ +docs +public +src +.dockerignore +.editorconfig +.eslintignore +.gitattributes +.gitignore +.prettierrc +babel.config.js +Dockerfile +idea.config.js +LICENSE +package.json +package-lock.json +README.md +vue.config.js +yarn +yarn.lock +yarn-error.log +.idea +.svn +node_modules \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3e26fbb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,39 @@ +[*] +charset=utf-8 +end_of_line=crlf +insert_final_newline=false +indent_style=space +indent_size=2 + +[{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}] +indent_style=space +indent_size=2 + +[{*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}] +indent_style=space +indent_size=2 + +[{.babelrc,.stylelintrc,jest.config,.eslintrc,.prettierrc,*.json,*.jsb3,*.jsb2,*.bowerrc}] +indent_style=space +indent_size=2 + +[*.svg] +indent_style=space +indent_size=2 + +[*.js.map] +indent_style=space +indent_size=2 + +[*.less] +indent_style=space +indent_size=2 + +[*.vue] +indent_style=space +indent_size=2 + +[{.analysis_options,*.yml,*.yaml}] +indent_style=space +indent_size=2 + diff --git a/.env b/.env new file mode 100644 index 0000000..820ebe4 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +NODE_ENV=development +VUE_APP_PLATFORM_NAME=JeecgBoot 企业级低代码平台 +VUE_APP_SSO=false \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..200da7b --- /dev/null +++ b/.env.development @@ -0,0 +1,7 @@ +NODE_ENV=development +VUE_APP_API_BASE_URL=https://midea-test.egyun.com.cn/gcs +VUE_APP_API_BASE_SITE=http://localhost:9000 +VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas +VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview +VUE_APP_LOGOUT_URL=https://lsitapi.midea.com/api-auth/ssoLogout +VUE_APP_API_AUTH=https://lsitapi.midea.com/api-auth \ No newline at end of file diff --git a/.env.prod b/.env.prod new file mode 100644 index 0000000..c578e08 --- /dev/null +++ b/.env.prod @@ -0,0 +1,8 @@ +NODE_ENV=prod +VUE_APP_API_BASE_URL=https://lcapi.midea.com/api-iems-cn/gcs +VUE_APP_API_BASE_SITE=https://lcapi.midea.com/api-iems-cn/gcs +VUE_APP_CAS_BASE_URL=https://signin.midea.com/login +VUE_APP_ONLINE_BASE_URL= +VUE_APP_LOGOUT_URL=https://lcapi.midea.com/api-auth/ssoLogout +VUE_APP_SSO=true +VUE_APP_API_AUTH=https://lcapi.midea.com/api-auth \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..390a4e7 --- /dev/null +++ b/.env.production @@ -0,0 +1,8 @@ +NODE_ENV=production +VUE_APP_API_BASE_URL=https://lcapi.midea.com/api-iems-cn/gcs +VUE_APP_API_BASE_SITE=https://lcapi.midea.com/api-iems-cn/gcs +VUE_APP_CAS_BASE_URL=https://signin.midea.com/login +VUE_APP_ONLINE_BASE_URL= +VUE_APP_LOGOUT_URL=https://lcapi.midea.com/api-auth/ssoLogout +VUE_APP_SSO=true +VUE_APP_API_AUTH=https://lcapi.midea.com/api-auth \ No newline at end of file diff --git a/.env.sit b/.env.sit new file mode 100644 index 0000000..57170b4 --- /dev/null +++ b/.env.sit @@ -0,0 +1,8 @@ +NODE_ENV=sit +VUE_APP_API_BASE_URL=https://lsitapi.midea.com/api-iems-cn/gcs +VUE_APP_API_BASE_SITE=http://localhost:9000 +VUE_APP_CAS_BASE_URL=https://signinuat.midea.com/login +VUE_APP_ONLINE_BASE_URL= +VUE_APP_LOGOUT_URL=https://lsitapi.midea.com/api-auth/ssoLogout +VUE_APP_SSO=true +VUE_APP_API_AUTH=https://lsitapi.midea.com/api-auth \ No newline at end of file diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..91394a0 --- /dev/null +++ b/.env.test @@ -0,0 +1,5 @@ +NODE_ENV=production +VUE_APP_API_BASE_URL=https://midea-test.egyun.com.cn/gcs +VUE_APP_API_BASE_SITE=https://midea-test.egyun.com.cn +VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas +VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview \ No newline at end of file diff --git a/.env.uat b/.env.uat new file mode 100644 index 0000000..2075e5a --- /dev/null +++ b/.env.uat @@ -0,0 +1,8 @@ +NODE_ENV=uat +VUE_APP_API_BASE_URL=https://luatapi.midea.com/api-iems-cn/gcs +VUE_APP_API_BASE_SITE=http://localhost:9000 +VUE_APP_CAS_BASE_URL=https://signinuat.midea.com/login +VUE_APP_ONLINE_BASE_URL= +VUE_APP_LOGOUT_URL=https://luatapi.midea.com/api-auth/ssoLogout +VUE_APP_SSO=true +VUE_APP_API_AUTH=https://luatapi.midea.com/api-auth \ No newline at end of file diff --git a/.env.ver b/.env.ver new file mode 100644 index 0000000..df80897 --- /dev/null +++ b/.env.ver @@ -0,0 +1,8 @@ +NODE_ENV=ver +VUE_APP_API_BASE_URL=https://lverapi.midea.com/api-iems-cn/gcs +VUE_APP_API_BASE_SITE=http://localhost:9000 +VUE_APP_CAS_BASE_URL=https://signinuat.midea.com/login +VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview +VUE_APP_LOGOUT_URL=https://lverapi.midea.com/api-auth/ssoLogout +VUE_APP_SSO=true +VUE_APP_API_AUTH=https://lverapi.midea.com/api-auth \ No newline at end of file diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e69de29 diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..ec0e817 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,151 @@ +module.exports = { + "root": true, + "env": { + "browser": true + }, + "parser": "vue-eslint-parser", + "parserOptions": { + "parser": "@babel/eslint-parser", + "ecmaVersion": 2020, + "sourceType": "module" + }, + extends: [ + // "eslint-config-md-js", + // "eslint-config-md-vue2", + // 加入 Vue 推荐的规则配置 + 'plugin:vue/recommended', + ], + rules: { + // 关闭多行属性间必须换行的规则 + 'vue/new-line-between-multi-line-attributes': 'off', + + // 关闭Vue模板缩进检查(关键:解决模板中的缩进提示) + 'vue/html-indent': 'off', + + // 强制使用分号(默认) + 'semi': ['warn', 'always'], + + // 警告但不报错(提醒清理) + 'no-console': 'warn', + + // 单行标签属性个数 + 'vue/max-attributes-per-line': ['warn', { + 'singleline': 10, + 'multiline': { + 'max': 10, + 'allowFirstLine': false + } + }], + + // 关闭v-html的XSS风险提示 + 'vue/no-v-html': 'off', + + // 关闭属性必须使用连字符命名的规则 + 'vue/attribute-hyphenation': 'off', + + // 关闭组件选项顺序校验规则 + 'vue/order-in-components': 'off', + + // 关闭 Vue 属性顺序强制校验规则 + 'vue/attributes-order': 'off', + + // 允许单行里展示标签和文本 + 'vue/singleline-html-element-content-newline': 'off', + + // 要求使用严格相等(!==/===) + eqeqeq: ['error', 'always'], + + // 允许在