system-clients 3.0.46 → 3.0.47-fanxian
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/.eslintrc.js +16 -16
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/README.md +36 -36
- package/SystemClient.iml +11 -11
- package/build/css-loaders.js +34 -34
- package/build/dev-client.js +8 -8
- package/build/example-server.js +80 -80
- package/build/release.sh +28 -28
- package/build/utils.js +71 -71
- package/build/webpack.base.conf.js +75 -75
- package/build/webpack.dev.conf.js +31 -31
- package/build/webpack.example.conf.js +49 -49
- package/build/webpack.prod.conf.js +60 -60
- package/build/webpack.test.conf.js +31 -31
- package/build.gradle +6 -6
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/doc/Login.md +7 -7
- package/examples/ReadCard/App.vue +23 -23
- package/examples/ReadCard/index.html +11 -11
- package/examples/ReadCard/main.js +12 -12
- package/index.html +21 -21
- package/package.json +1 -1
- package/release.bat +5 -5
- package/src/App.vue +24 -24
- package/src/LodopFuncs.js +123 -123
- package/src/assets/binding.svg +1 -1
- package/src/assets/unbind.svg +1 -1
- package/src/assets//345/205/254/345/221/212.svg +1 -1
- package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
- package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
- package/src/components/List.vue +51 -51
- package/src/components/Main.vue +632 -533
- package/src/components/Table.js +74 -74
- package/src/components/Util.js +343 -343
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +94 -94
- package/src/components/equipment/PhoneList.vue +102 -102
- package/src/components/equipment/PhoneManage.vue +60 -60
- package/src/components/equipment/PosAdd.vue +137 -137
- package/src/components/equipment/PosList.vue +156 -156
- package/src/components/equipment/PosManage.vue +67 -67
- package/src/components/materialManage/materialData.vue +44 -44
- package/src/components/materialManage/materialList.vue +255 -255
- package/src/components/parammanage/AlarmInformation.vue +122 -0
- package/src/components/parammanage/ParamManage.vue +42 -42
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +314 -314
- package/src/components/parammanage/ParamPages.vue +214 -222
- package/src/components/parammanage/SinglePage.vue +237 -235
- package/src/components/parammanage/SinglePages.vue +161 -167
- package/src/components/server/AddChangeMsg.vue +66 -66
- package/src/components/server/ChangeDeclare.vue +45 -45
- package/src/components/server/IconTree.vue +26 -26
- package/src/components/server/LeftTree.vue +111 -111
- package/src/components/server/LoadData.vue +36 -36
- package/src/components/server/Login.vue +625 -624
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +125 -106
- package/src/components/server/ResSelect.vue +150 -150
- package/src/components/server/ResSelectGroup.vue +140 -140
- package/src/components/server/RightTree.vue +263 -263
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/components/server/TestResSelect.vue +1 -1
- package/src/components/server/TestResSelectGroup.vue +388 -388
- package/src/components/server/TestRightTree.vue +42 -42
- package/src/index.js +7 -7
- package/src/plugins/GetLoginInfoService.js +509 -513
- package/src/plugins/validation.js +7 -7
- package/src/project/ProjectPage.vue +24 -24
- package/src/project/State.js +17 -17
- package/src/stores/AppData.js +38 -38
- package/src/system.js +78 -76
- package/src/systemphone.js +11 -11
- package/src/util/LdapHelper.js +75 -75
- package/static/newStyle/alarm.mp3 +0 -0
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +14 -14
- package/test/unit/.eslintrc +5 -5
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +10 -10
- package/test/unit/specs/base64.spec.js +5 -5
- package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
- package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
- package/test/unit/specs/components/server/LoadData.spec.js +24 -24
- package/test/unit/specs/components/server/Login.spec.js +61 -61
- package/test/unit/specs/components/server/RightTree.spec.js +50 -50
- package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
- package/test/unit/test.html +76 -76
- package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
- package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
package/.babelrc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
{
|
2
|
-
"presets": ["es2015", "stage-2"],
|
3
|
-
"plugins": ["transform-runtime"],
|
4
|
-
"comments": false
|
5
|
-
}
|
1
|
+
{
|
2
|
+
"presets": ["es2015", "stage-2"],
|
3
|
+
"plugins": ["transform-runtime"],
|
4
|
+
"comments": false
|
5
|
+
}
|
package/.editorconfig
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
root = true
|
2
|
-
|
3
|
-
[*]
|
4
|
-
charset = utf-8
|
5
|
-
indent_style = space
|
6
|
-
indent_size = 2
|
7
|
-
end_of_line = lf
|
8
|
-
insert_final_newline = true
|
9
|
-
trim_trailing_whitespace = true
|
1
|
+
root = true
|
2
|
+
|
3
|
+
[*]
|
4
|
+
charset = utf-8
|
5
|
+
indent_style = space
|
6
|
+
indent_size = 2
|
7
|
+
end_of_line = lf
|
8
|
+
insert_final_newline = true
|
9
|
+
trim_trailing_whitespace = true
|
package/.eslintrc.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
module.exports = {
|
2
|
-
root: true,
|
3
|
-
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
4
|
-
extends: 'standard',
|
5
|
-
// required to lint *.vue files
|
6
|
-
plugins: [
|
7
|
-
'eslint-plugin-html'
|
8
|
-
],
|
9
|
-
// add your custom rules here
|
10
|
-
'rules': {
|
11
|
-
// allow paren-less arrow functions
|
12
|
-
'arrow-parens': 0,
|
13
|
-
// allow debugger during development
|
14
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
15
|
-
}
|
16
|
-
}
|
1
|
+
module.exports = {
|
2
|
+
root: true,
|
3
|
+
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
4
|
+
extends: 'standard',
|
5
|
+
// required to lint *.vue files
|
6
|
+
plugins: [
|
7
|
+
'eslint-plugin-html'
|
8
|
+
],
|
9
|
+
// add your custom rules here
|
10
|
+
'rules': {
|
11
|
+
// allow paren-less arrow functions
|
12
|
+
'arrow-parens': 0,
|
13
|
+
// allow debugger during development
|
14
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
15
|
+
}
|
16
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
#Fri Mar 13 10:30:51 GMT+08:00 2020
|
2
|
-
gradle.version=3.5
|
1
|
+
#Fri Mar 13 10:30:51 GMT+08:00 2020
|
2
|
+
gradle.version=3.5
|
package/README.md
CHANGED
@@ -1,37 +1,37 @@
|
|
1
|
-
# SystemClient
|
2
|
-
|
3
|
-
#### 项目介绍
|
4
|
-
system前端模块
|
5
|
-
|
6
|
-
#### 软件架构
|
7
|
-
软件架构说明
|
8
|
-
|
9
|
-
|
10
|
-
#### 安装教程
|
11
|
-
|
12
|
-
1. xxxx
|
13
|
-
2. xxxx
|
14
|
-
3. xxxx
|
15
|
-
|
16
|
-
#### 使用说明
|
17
|
-
|
18
|
-
1. xxxx
|
19
|
-
2. xxxx
|
20
|
-
3. xxxx
|
21
|
-
|
22
|
-
#### 参与贡献
|
23
|
-
|
24
|
-
1. Fork 本项目
|
25
|
-
2. 新建 Feat_xxx 分支
|
26
|
-
3. 提交代码
|
27
|
-
4. 新建 Pull Request
|
28
|
-
|
29
|
-
|
30
|
-
#### 码云特技
|
31
|
-
|
32
|
-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
33
|
-
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
34
|
-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
35
|
-
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
36
|
-
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
1
|
+
# SystemClient
|
2
|
+
|
3
|
+
#### 项目介绍
|
4
|
+
system前端模块
|
5
|
+
|
6
|
+
#### 软件架构
|
7
|
+
软件架构说明
|
8
|
+
|
9
|
+
|
10
|
+
#### 安装教程
|
11
|
+
|
12
|
+
1. xxxx
|
13
|
+
2. xxxx
|
14
|
+
3. xxxx
|
15
|
+
|
16
|
+
#### 使用说明
|
17
|
+
|
18
|
+
1. xxxx
|
19
|
+
2. xxxx
|
20
|
+
3. xxxx
|
21
|
+
|
22
|
+
#### 参与贡献
|
23
|
+
|
24
|
+
1. Fork 本项目
|
25
|
+
2. 新建 Feat_xxx 分支
|
26
|
+
3. 提交代码
|
27
|
+
4. 新建 Pull Request
|
28
|
+
|
29
|
+
|
30
|
+
#### 码云特技
|
31
|
+
|
32
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
33
|
+
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
34
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
35
|
+
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
36
|
+
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
37
37
|
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/SystemClient.iml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
-
<exclude-output />
|
5
|
-
<content url="file://$MODULE_DIR$">
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/build" />
|
8
|
-
</content>
|
9
|
-
<orderEntry type="inheritedJdk" />
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
-
</component>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="1.6.18" type="JAVA_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$">
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/build" />
|
8
|
+
</content>
|
9
|
+
<orderEntry type="inheritedJdk" />
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
11
|
+
</component>
|
12
12
|
</module>
|
package/build/css-loaders.js
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
2
|
-
|
3
|
-
module.exports = function (options) {
|
4
|
-
// generate loader string to be used with extract text plugin
|
5
|
-
function generateLoaders (loaders) {
|
6
|
-
var sourceLoader = loaders.map(function (loader) {
|
7
|
-
var extraParamChar
|
8
|
-
if (/\?/.test(loader)) {
|
9
|
-
loader = loader.replace(/\?/, '-loader?')
|
10
|
-
extraParamChar = '&'
|
11
|
-
} else {
|
12
|
-
loader = loader + '-loader'
|
13
|
-
extraParamChar = '?'
|
14
|
-
}
|
15
|
-
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
|
16
|
-
}).join('!')
|
17
|
-
|
18
|
-
if (options.extract) {
|
19
|
-
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
|
20
|
-
} else {
|
21
|
-
return ['vue-style-loader', sourceLoader].join('!')
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
// http://vuejs.github.io/vue-loader/configurations/extract-css.html
|
26
|
-
return {
|
27
|
-
css: generateLoaders(['css']),
|
28
|
-
less: generateLoaders(['css', 'less']),
|
29
|
-
sass: generateLoaders(['css', 'sass?indentedSyntax']),
|
30
|
-
scss: generateLoaders(['css', 'sass']),
|
31
|
-
stylus: generateLoaders(['css', 'stylus']),
|
32
|
-
styl: generateLoaders(['css', 'stylus'])
|
33
|
-
}
|
34
|
-
}
|
1
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
2
|
+
|
3
|
+
module.exports = function (options) {
|
4
|
+
// generate loader string to be used with extract text plugin
|
5
|
+
function generateLoaders (loaders) {
|
6
|
+
var sourceLoader = loaders.map(function (loader) {
|
7
|
+
var extraParamChar
|
8
|
+
if (/\?/.test(loader)) {
|
9
|
+
loader = loader.replace(/\?/, '-loader?')
|
10
|
+
extraParamChar = '&'
|
11
|
+
} else {
|
12
|
+
loader = loader + '-loader'
|
13
|
+
extraParamChar = '?'
|
14
|
+
}
|
15
|
+
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
|
16
|
+
}).join('!')
|
17
|
+
|
18
|
+
if (options.extract) {
|
19
|
+
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
|
20
|
+
} else {
|
21
|
+
return ['vue-style-loader', sourceLoader].join('!')
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// http://vuejs.github.io/vue-loader/configurations/extract-css.html
|
26
|
+
return {
|
27
|
+
css: generateLoaders(['css']),
|
28
|
+
less: generateLoaders(['css', 'less']),
|
29
|
+
sass: generateLoaders(['css', 'sass?indentedSyntax']),
|
30
|
+
scss: generateLoaders(['css', 'sass']),
|
31
|
+
stylus: generateLoaders(['css', 'stylus']),
|
32
|
+
styl: generateLoaders(['css', 'stylus'])
|
33
|
+
}
|
34
|
+
}
|
package/build/dev-client.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require('eventsource-polyfill')
|
2
|
-
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
|
3
|
-
|
4
|
-
hotClient.subscribe(function (event) {
|
5
|
-
if (event.action === 'reload') {
|
6
|
-
window.location.reload()
|
7
|
-
}
|
8
|
-
})
|
1
|
+
require('eventsource-polyfill')
|
2
|
+
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
|
3
|
+
|
4
|
+
hotClient.subscribe(function (event) {
|
5
|
+
if (event.action === 'reload') {
|
6
|
+
window.location.reload()
|
7
|
+
}
|
8
|
+
})
|
package/build/example-server.js
CHANGED
@@ -1,80 +1,80 @@
|
|
1
|
-
var express = require('express')
|
2
|
-
var webpack = require('webpack')
|
3
|
-
var config = require('./webpack.example.conf')
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
5
|
-
var httpProxy = require('http-proxy')
|
6
|
-
|
7
|
-
var app = express()
|
8
|
-
var compiler = webpack(config)
|
9
|
-
var proxy = httpProxy.createProxyServer()
|
10
|
-
|
11
|
-
// Define HTTP proxies to your custom API backend
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
13
|
-
var proxyTable = {
|
14
|
-
// '/api': {
|
15
|
-
// target: 'http://jsonplaceholder.typicode.com',
|
16
|
-
// changeOrigin: true,
|
17
|
-
// pathRewrite: {
|
18
|
-
// '^/api': ''
|
19
|
-
// }
|
20
|
-
// }
|
21
|
-
}
|
22
|
-
|
23
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
24
|
-
publicPath: config.output.publicPath,
|
25
|
-
stats: {
|
26
|
-
colors: true,
|
27
|
-
chunks: false
|
28
|
-
}
|
29
|
-
})
|
30
|
-
|
31
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
32
|
-
// force page reload when html-webpack-plugin template changes
|
33
|
-
compiler.plugin('compilation', function (compilation) {
|
34
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
35
|
-
hotMiddleware.publish({ action: 'reload' })
|
36
|
-
cb()
|
37
|
-
})
|
38
|
-
})
|
39
|
-
|
40
|
-
// proxy api requests
|
41
|
-
Object.keys(proxyTable).forEach(function (context) {
|
42
|
-
var options = proxyTable[context]
|
43
|
-
if (typeof options === 'string') {
|
44
|
-
options = { target: options }
|
45
|
-
}
|
46
|
-
app.use(proxyMiddleware(context, options))
|
47
|
-
})
|
48
|
-
|
49
|
-
// handle fallback for HTML5 history API
|
50
|
-
app.use(require('connect-history-api-fallback')())
|
51
|
-
|
52
|
-
// serve webpack bundle output
|
53
|
-
app.use(devMiddleware)
|
54
|
-
|
55
|
-
// enable hot-reload and state-preserving
|
56
|
-
// compilation error display
|
57
|
-
app.use(hotMiddleware)
|
58
|
-
|
59
|
-
// serve pure static assets
|
60
|
-
app.use('/static', express.static('./static'))
|
61
|
-
|
62
|
-
// app.all('/images/*', function (req, res) {
|
63
|
-
// proxy.web(req, res, {
|
64
|
-
// target: 'http://127.0.0.1:82'
|
65
|
-
// })
|
66
|
-
// })
|
67
|
-
//
|
68
|
-
// app.all('/*', function (req, res) {
|
69
|
-
// proxy.web(req, res, {
|
70
|
-
// target: 'http://127.0.0.1:8082'
|
71
|
-
// })
|
72
|
-
// })
|
73
|
-
|
74
|
-
module.exports = app.listen(8081, function (err) {
|
75
|
-
if (err) {
|
76
|
-
console.log(err)
|
77
|
-
return
|
78
|
-
}
|
79
|
-
console.log('Listening at http://localhost:8081')
|
80
|
-
})
|
1
|
+
var express = require('express')
|
2
|
+
var webpack = require('webpack')
|
3
|
+
var config = require('./webpack.example.conf')
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
5
|
+
var httpProxy = require('http-proxy')
|
6
|
+
|
7
|
+
var app = express()
|
8
|
+
var compiler = webpack(config)
|
9
|
+
var proxy = httpProxy.createProxyServer()
|
10
|
+
|
11
|
+
// Define HTTP proxies to your custom API backend
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
13
|
+
var proxyTable = {
|
14
|
+
// '/api': {
|
15
|
+
// target: 'http://jsonplaceholder.typicode.com',
|
16
|
+
// changeOrigin: true,
|
17
|
+
// pathRewrite: {
|
18
|
+
// '^/api': ''
|
19
|
+
// }
|
20
|
+
// }
|
21
|
+
}
|
22
|
+
|
23
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
24
|
+
publicPath: config.output.publicPath,
|
25
|
+
stats: {
|
26
|
+
colors: true,
|
27
|
+
chunks: false
|
28
|
+
}
|
29
|
+
})
|
30
|
+
|
31
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
32
|
+
// force page reload when html-webpack-plugin template changes
|
33
|
+
compiler.plugin('compilation', function (compilation) {
|
34
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
35
|
+
hotMiddleware.publish({ action: 'reload' })
|
36
|
+
cb()
|
37
|
+
})
|
38
|
+
})
|
39
|
+
|
40
|
+
// proxy api requests
|
41
|
+
Object.keys(proxyTable).forEach(function (context) {
|
42
|
+
var options = proxyTable[context]
|
43
|
+
if (typeof options === 'string') {
|
44
|
+
options = { target: options }
|
45
|
+
}
|
46
|
+
app.use(proxyMiddleware(context, options))
|
47
|
+
})
|
48
|
+
|
49
|
+
// handle fallback for HTML5 history API
|
50
|
+
app.use(require('connect-history-api-fallback')())
|
51
|
+
|
52
|
+
// serve webpack bundle output
|
53
|
+
app.use(devMiddleware)
|
54
|
+
|
55
|
+
// enable hot-reload and state-preserving
|
56
|
+
// compilation error display
|
57
|
+
app.use(hotMiddleware)
|
58
|
+
|
59
|
+
// serve pure static assets
|
60
|
+
app.use('/static', express.static('./static'))
|
61
|
+
|
62
|
+
// app.all('/images/*', function (req, res) {
|
63
|
+
// proxy.web(req, res, {
|
64
|
+
// target: 'http://127.0.0.1:82'
|
65
|
+
// })
|
66
|
+
// })
|
67
|
+
//
|
68
|
+
// app.all('/*', function (req, res) {
|
69
|
+
// proxy.web(req, res, {
|
70
|
+
// target: 'http://127.0.0.1:8082'
|
71
|
+
// })
|
72
|
+
// })
|
73
|
+
|
74
|
+
module.exports = app.listen(8081, function (err) {
|
75
|
+
if (err) {
|
76
|
+
console.log(err)
|
77
|
+
return
|
78
|
+
}
|
79
|
+
console.log('Listening at http://localhost:8081')
|
80
|
+
})
|
package/build/release.sh
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
set -e
|
2
|
-
echo "Enter release version: "
|
3
|
-
read VERSION
|
4
|
-
|
5
|
-
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
|
6
|
-
echo # (optional) move to a new line
|
7
|
-
if [[ $REPLY =~ ^[Yy]$ ]]
|
8
|
-
then
|
9
|
-
echo "Releasing $VERSION ..."
|
10
|
-
|
11
|
-
# lint
|
12
|
-
npm run lint 2>/dev/null
|
13
|
-
|
14
|
-
# e2e
|
15
|
-
npm run e2e 2>/dev/null
|
16
|
-
|
17
|
-
#build
|
18
|
-
npm run build
|
19
|
-
|
20
|
-
# commit
|
21
|
-
git add -A
|
22
|
-
git commit -m "[build] $VERSION"
|
23
|
-
npm version $VERSION --message "[release] $VERSION"
|
24
|
-
|
25
|
-
# publish
|
26
|
-
git push origin refs/tags/v$VERSION
|
27
|
-
git push
|
28
|
-
fi
|
1
|
+
set -e
|
2
|
+
echo "Enter release version: "
|
3
|
+
read VERSION
|
4
|
+
|
5
|
+
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
|
6
|
+
echo # (optional) move to a new line
|
7
|
+
if [[ $REPLY =~ ^[Yy]$ ]]
|
8
|
+
then
|
9
|
+
echo "Releasing $VERSION ..."
|
10
|
+
|
11
|
+
# lint
|
12
|
+
npm run lint 2>/dev/null
|
13
|
+
|
14
|
+
# e2e
|
15
|
+
npm run e2e 2>/dev/null
|
16
|
+
|
17
|
+
#build
|
18
|
+
npm run build
|
19
|
+
|
20
|
+
# commit
|
21
|
+
git add -A
|
22
|
+
git commit -m "[build] $VERSION"
|
23
|
+
npm version $VERSION --message "[release] $VERSION"
|
24
|
+
|
25
|
+
# publish
|
26
|
+
git push origin refs/tags/v$VERSION
|
27
|
+
git push
|
28
|
+
fi
|
package/build/utils.js
CHANGED
@@ -1,71 +1,71 @@
|
|
1
|
-
var path = require('path')
|
2
|
-
var config = require('../config')
|
3
|
-
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
4
|
-
|
5
|
-
exports.assetsPath = function (_path) {
|
6
|
-
var assetsSubDirectory = process.env.NODE_ENV === 'production'
|
7
|
-
? config.build.assetsSubDirectory
|
8
|
-
: config.dev.assetsSubDirectory
|
9
|
-
return path.posix.join(assetsSubDirectory, _path)
|
10
|
-
}
|
11
|
-
|
12
|
-
exports.cssLoaders = function (options) {
|
13
|
-
options = options || {}
|
14
|
-
|
15
|
-
var cssLoader = {
|
16
|
-
loader: 'css-loader',
|
17
|
-
options: {
|
18
|
-
minimize: process.env.NODE_ENV === 'production',
|
19
|
-
sourceMap: options.sourceMap
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
// generate loader string to be used with extract text plugin
|
24
|
-
function generateLoaders (loader, loaderOptions) {
|
25
|
-
var loaders = [cssLoader]
|
26
|
-
if (loader) {
|
27
|
-
loaders.push({
|
28
|
-
loader: loader + '-loader',
|
29
|
-
options: Object.assign({}, loaderOptions, {
|
30
|
-
sourceMap: options.sourceMap
|
31
|
-
})
|
32
|
-
})
|
33
|
-
}
|
34
|
-
|
35
|
-
// Extract CSS when that option is specified
|
36
|
-
// (which is the case during production build)
|
37
|
-
if (options.extract) {
|
38
|
-
return ExtractTextPlugin.extract({
|
39
|
-
use: loaders,
|
40
|
-
fallback: 'vue-style-loader'
|
41
|
-
})
|
42
|
-
} else {
|
43
|
-
return ['vue-style-loader'].concat(loaders)
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
48
|
-
return {
|
49
|
-
css: generateLoaders(),
|
50
|
-
postcss: generateLoaders(),
|
51
|
-
less: generateLoaders('less'),
|
52
|
-
sass: generateLoaders('sass', { indentedSyntax: true }),
|
53
|
-
scss: generateLoaders('sass'),
|
54
|
-
stylus: generateLoaders('stylus'),
|
55
|
-
styl: generateLoaders('stylus')
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
// Generate loaders for standalone style files (outside of .vue)
|
60
|
-
exports.styleLoaders = function (options) {
|
61
|
-
var output = []
|
62
|
-
var loaders = exports.cssLoaders(options)
|
63
|
-
for (var extension in loaders) {
|
64
|
-
var loader = loaders[extension]
|
65
|
-
output.push({
|
66
|
-
test: new RegExp('\\.' + extension + '$'),
|
67
|
-
use: loader
|
68
|
-
})
|
69
|
-
}
|
70
|
-
return output
|
71
|
-
}
|
1
|
+
var path = require('path')
|
2
|
+
var config = require('../config')
|
3
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
4
|
+
|
5
|
+
exports.assetsPath = function (_path) {
|
6
|
+
var assetsSubDirectory = process.env.NODE_ENV === 'production'
|
7
|
+
? config.build.assetsSubDirectory
|
8
|
+
: config.dev.assetsSubDirectory
|
9
|
+
return path.posix.join(assetsSubDirectory, _path)
|
10
|
+
}
|
11
|
+
|
12
|
+
exports.cssLoaders = function (options) {
|
13
|
+
options = options || {}
|
14
|
+
|
15
|
+
var cssLoader = {
|
16
|
+
loader: 'css-loader',
|
17
|
+
options: {
|
18
|
+
minimize: process.env.NODE_ENV === 'production',
|
19
|
+
sourceMap: options.sourceMap
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// generate loader string to be used with extract text plugin
|
24
|
+
function generateLoaders (loader, loaderOptions) {
|
25
|
+
var loaders = [cssLoader]
|
26
|
+
if (loader) {
|
27
|
+
loaders.push({
|
28
|
+
loader: loader + '-loader',
|
29
|
+
options: Object.assign({}, loaderOptions, {
|
30
|
+
sourceMap: options.sourceMap
|
31
|
+
})
|
32
|
+
})
|
33
|
+
}
|
34
|
+
|
35
|
+
// Extract CSS when that option is specified
|
36
|
+
// (which is the case during production build)
|
37
|
+
if (options.extract) {
|
38
|
+
return ExtractTextPlugin.extract({
|
39
|
+
use: loaders,
|
40
|
+
fallback: 'vue-style-loader'
|
41
|
+
})
|
42
|
+
} else {
|
43
|
+
return ['vue-style-loader'].concat(loaders)
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
48
|
+
return {
|
49
|
+
css: generateLoaders(),
|
50
|
+
postcss: generateLoaders(),
|
51
|
+
less: generateLoaders('less'),
|
52
|
+
sass: generateLoaders('sass', { indentedSyntax: true }),
|
53
|
+
scss: generateLoaders('sass'),
|
54
|
+
stylus: generateLoaders('stylus'),
|
55
|
+
styl: generateLoaders('stylus')
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
// Generate loaders for standalone style files (outside of .vue)
|
60
|
+
exports.styleLoaders = function (options) {
|
61
|
+
var output = []
|
62
|
+
var loaders = exports.cssLoaders(options)
|
63
|
+
for (var extension in loaders) {
|
64
|
+
var loader = loaders[extension]
|
65
|
+
output.push({
|
66
|
+
test: new RegExp('\\.' + extension + '$'),
|
67
|
+
use: loader
|
68
|
+
})
|
69
|
+
}
|
70
|
+
return output
|
71
|
+
}
|