diff --git a/.gitmodules b/.gitmodules index dc5c3e3..16ab012 100644 --- a/.gitmodules +++ b/.gitmodules @@ -43,3 +43,6 @@ [submodule "a_th_web"] path = a_th_web url = http://th.local.t-aaron.com:13000/THENG/a_th_web.git +[submodule "wvpjar"] + path = wvpjar + url = http://th.local.t-aaron.com:13000/THENG/a-wvp-java.git diff --git a/wvpjar b/wvpjar new file mode 160000 index 0000000..3fdfd28 --- /dev/null +++ b/wvpjar @@ -0,0 +1 @@ +Subproject commit 3fdfd28dcd21ec24fb59d0f11ce9f7ccf7db520e diff --git a/wvpweb/.editorconfig b/wvpweb/.editorconfig new file mode 100644 index 0000000..ea6e20f --- /dev/null +++ b/wvpweb/.editorconfig @@ -0,0 +1,14 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/wvpweb/.env.development b/wvpweb/.env.development new file mode 100644 index 0000000..de583d0 --- /dev/null +++ b/wvpweb/.env.development @@ -0,0 +1,5 @@ +# just a flag +ENV = 'development' + +# base api +VUE_APP_BASE_API = '/dev-api' diff --git a/wvpweb/.env.production b/wvpweb/.env.production new file mode 100644 index 0000000..8994f69 --- /dev/null +++ b/wvpweb/.env.production @@ -0,0 +1,6 @@ +# just a flag +ENV = 'production' + +# base api +VUE_APP_BASE_API = '' + diff --git a/wvpweb/.env.staging b/wvpweb/.env.staging new file mode 100644 index 0000000..a8793a0 --- /dev/null +++ b/wvpweb/.env.staging @@ -0,0 +1,8 @@ +NODE_ENV = production + +# just a flag +ENV = 'staging' + +# base api +VUE_APP_BASE_API = '/stage-api' + diff --git a/wvpweb/.eslintignore b/wvpweb/.eslintignore new file mode 100644 index 0000000..e6529fc --- /dev/null +++ b/wvpweb/.eslintignore @@ -0,0 +1,4 @@ +build/*.js +src/assets +public +dist diff --git a/wvpweb/.eslintrc.js b/wvpweb/.eslintrc.js new file mode 100644 index 0000000..303d049 --- /dev/null +++ b/wvpweb/.eslintrc.js @@ -0,0 +1,48 @@ +module.exports = { + root: true, + env: { + node: true, + browser: true, + }, + extends: ["plugin:vue/essential", "eslint:recommended"], + parserOptions: { + parser: "babel-eslint", + }, + rules: { + // Disable or downgrade problematic rules + "vue/require-prop-types": "off", + "vue/require-default-prop": "off", + "vue/no-unused-vars": "warn", + "no-unused-vars": "warn", + "no-undef": "warn", + eqeqeq: "warn", + "no-return-assign": "warn", + "new-cap": "warn", + "vue/html-self-closing": "off", + "vue/html-closing-bracket-spacing": "off", + "vue/this-in-template": "off", + "vue/require-v-for-key": "warn", + "vue/valid-v-model": "warn", + "vue/attributes-order": "off", + "no-multiple-empty-lines": "warn", + + // Style rules - make them warnings instead of errors + quotes: ["warn", "single"], + "comma-dangle": ["warn", "never"], + "space-in-parens": "warn", + "comma-spacing": "warn", + "object-curly-spacing": ["warn", "always"], + "arrow-spacing": "warn", + semi: ["warn", "never"], + "no-multi-spaces": "warn", + + // Turn off console warnings for development + "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", + }, + globals: { + // Define global variables to prevent 'undefined' errors + ZLMRTCClient: "readonly", + jessibuca: "readonly", + }, +} diff --git a/wvpweb/.gitignore b/wvpweb/.gitignore new file mode 100644 index 0000000..9ad28d2 --- /dev/null +++ b/wvpweb/.gitignore @@ -0,0 +1,16 @@ +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +package-lock.json +tests/**/coverage/ + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln diff --git a/wvpweb/.travis.yml b/wvpweb/.travis.yml new file mode 100644 index 0000000..f4be7a0 --- /dev/null +++ b/wvpweb/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: 10 +script: npm run test +notifications: + email: false diff --git a/wvpweb/LICENSE b/wvpweb/LICENSE new file mode 100644 index 0000000..6151575 --- /dev/null +++ b/wvpweb/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-present PanJiaChen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/wvpweb/README-zh.md b/wvpweb/README-zh.md new file mode 100644 index 0000000..1beec9b --- /dev/null +++ b/wvpweb/README-zh.md @@ -0,0 +1,111 @@ +# vue-admin-template + +> 这是一个极简的 vue admin 管理后台。它只包含了 Element UI & axios & iconfont & permission control & lint,这些搭建后台必要的东西。 + +[线上地址](http://panjiachen.github.io/vue-admin-template) + +[国内访问](https://panjiachen.gitee.io/vue-admin-template) + +目前版本为 `v4.0+` 基于 `vue-cli` 进行构建,若你想使用旧版本,可以切换分支到[tag/3.11.0](https://github.com/PanJiaChen/vue-admin-template/tree/tag/3.11.0),它不依赖 `vue-cli`。 + +
+ SPONSORED BY +
+
+
+
+
+
](http://godban.github.io/browsers-support-badges/)IE / Edge | [
](http://godban.github.io/browsers-support-badges/)Firefox | [
](http://godban.github.io/browsers-support-badges/)Chrome | [
](http://godban.github.io/browsers-support-badges/)Safari |
+| --------- | --------- | --------- | --------- |
+| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
+
+## License
+
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
+
+Copyright (c) 2017-present PanJiaChen
diff --git a/wvpweb/README.md b/wvpweb/README.md
new file mode 100644
index 0000000..fa54b78
--- /dev/null
+++ b/wvpweb/README.md
@@ -0,0 +1,99 @@
+# vue-admin-template
+
+English | [简体中文](./README-zh.md)
+
+> A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
+
+**Live demo:** http://panjiachen.github.io/vue-admin-template
+
+
+**The current version is `v4.0+` build on `vue-cli`. If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-admin-template/tree/tag/3.11.0), it does not rely on `vue-cli`**
+
++ SPONSORED BY +
+
+
+
+
+
](http://godban.github.io/browsers-support-badges/)IE / Edge | [
](http://godban.github.io/browsers-support-badges/)Firefox | [
](http://godban.github.io/browsers-support-badges/)Chrome | [
](http://godban.github.io/browsers-support-badges/)Safari |
+| --------- | --------- | --------- | --------- |
+| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
+
+## License
+
+[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
+
+Copyright (c) 2017-present PanJiaChen
diff --git a/wvpweb/babel.config.js b/wvpweb/babel.config.js
new file mode 100644
index 0000000..fb82b27
--- /dev/null
+++ b/wvpweb/babel.config.js
@@ -0,0 +1,14 @@
+module.exports = {
+ presets: [
+ // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
+ '@vue/cli-plugin-babel/preset'
+ ],
+ 'env': {
+ 'development': {
+ // babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
+ // This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
+ // https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
+ 'plugins': ['dynamic-import-node']
+ }
+ }
+}
diff --git a/wvpweb/jest.config.js b/wvpweb/jest.config.js
new file mode 100644
index 0000000..143cdc8
--- /dev/null
+++ b/wvpweb/jest.config.js
@@ -0,0 +1,24 @@
+module.exports = {
+ moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
+ transform: {
+ '^.+\\.vue$': 'vue-jest',
+ '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
+ 'jest-transform-stub',
+ '^.+\\.jsx?$': 'babel-jest'
+ },
+ moduleNameMapper: {
+ '^@/(.*)$': '