system-phone 3.1.0 → 3.1.2
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/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/SystemPhone.iml +8 -8
- package/build/dev-server.js +141 -141
- package/build/webpack.base.conf.js +82 -82
- package/build.gradle +27 -27
- package/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/gradlew +183 -183
- package/gradlew.bat +100 -100
- package/index.html +21 -21
- package/package.json +1 -1
- package/src/App.vue +25 -25
- package/src/Util.js +415 -415
- package/src/assets//346/215/242/350/241/250/347/273/264/344/277/256.png +0 -0
- package/src/assets//351/200/232/347/224/250/350/203/214/346/231/257/345/233/276.png +0 -0
- package/src/components/AloneLoadParams.vue +26 -26
- package/src/components/AlreadyService.vue +193 -193
- package/src/components/AttendManage.vue +534 -534
- package/src/components/LoadAppdata.vue +38 -38
- package/src/components/LoginApp.vue +732 -732
- package/src/components/LoginAppNew.vue +587 -587
- package/src/components/LoginAppV4.vue +716 -732
- package/src/components/ModifyPassWord.vue +216 -216
- package/src/components/NavBottom.vue +117 -117
- package/src/components/NavBottomV.vue +141 -141
- package/src/components/NavBottomVVV.vue +185 -185
- package/src/components/OnlineManage.vue +256 -256
- package/src/components/PhoneAllInfo.vue +68 -68
- package/src/components/PhoneChangemeterInfo.vue +116 -116
- package/src/components/PhoneImageInfo.vue +102 -102
- package/src/components/PhoneInfoTable.vue +39 -39
- package/src/components/PhoneMeterInfo.vue +132 -132
- package/src/components/PhoneRepairInfo.vue +146 -146
- package/src/components/PhoneSafeInfo.vue +101 -101
- package/src/components/PhoneSellInfo.vue +148 -148
- package/src/components/PhoneSellInfoLite.vue +112 -112
- package/src/components/PhoneUser.vue +202 -202
- package/src/components/PhoneUserDetil.vue +70 -70
- package/src/components/PhoneUserFind.vue +138 -138
- package/src/components/RightTree.vue +217 -217
- package/src/components/SystemSetUp.vue +332 -332
- package/src/components/TabBarPhone.vue +81 -81
- package/src/components/Test.vue +14 -14
- package/src/components/ToolsPage.vue +199 -199
- package/src/components/UploadManage.vue +194 -194
- package/src/components/gaomi/NavBottomV.vue +223 -223
- package/src/components/gaomi/NavBottomVVVV.vue +210 -210
- package/src/components/gaomi/Scroller.vue +63 -63
- package/src/components/gaomi/SystemSetUp.vue +186 -186
- package/src/components/gaomi/ToolsPage.vue +168 -168
- package/src/components/idea/feedBack.vue +150 -150
- package/src/components/idea/feedbackAdd.vue +366 -366
- package/src/components/info/ConfigInfo.vue +122 -122
- package/src/components/info/FindUserInfo.vue +157 -157
- package/src/components/info/InfoTable.vue +37 -37
- package/src/components/iot/InstructMessage.vue +313 -313
- package/src/components/iot/IotBaseInfo.vue +97 -97
- package/src/components/iot/IotMeterInfo.vue +77 -77
- package/src/components/iot/iotMonitoringMain.vue +501 -501
- package/src/components/online/ApplyOnline.vue +581 -581
- package/src/components/online/BJZhongRan/ApplyOnline.vue +600 -600
- package/src/components/screen/ChargeContentPage.vue +656 -656
- package/src/components/screen/ContentPage.vue +611 -611
- package/src/components/screen/GongdanContentPage.vue +149 -149
- package/src/components/screen/ListCountItem.vue +93 -93
- package/src/components/screen/ModuleTitle.vue +48 -48
- package/src/components/screen/SafeOrderContentPage.vue +440 -440
- package/src/components/screen/SecurityCheckItem.vue +50 -50
- package/src/components/screen/TotalItem.vue +76 -76
- package/src/components/screen/TotalUserNumber.vue +77 -77
- package/src/components/screen/WorkOrderItem.vue +51 -51
- package/src/components/screen/WorkOrderRightDownItem.vue +103 -103
- package/src/components/screen/WorkOrderRightItem.vue +115 -115
- package/src/components/userinfo/paymentQuery.vue +189 -189
- package/src/components/userinfo/queryFile.vue +190 -190
- package/src/components/wasm.vue +18 -18
- package/src/expandcssAndroid.less +521 -521
- package/src/filiale/yulinyuchuan/AlreadyService.vue +194 -194
- package/src/filiale/yulinyuchuan/AttendManage.vue +537 -537
- package/src/filiale/yulinyuchuan/LoginApp.vue +741 -741
- package/src/filiale/yulinyuchuan/OnlineManage.vue +256 -256
- package/src/filiale/yulinyuchuan/SystemSetUp.vue +332 -332
- package/src/filiale/yulinyuchuan/UploadManage.vue +195 -195
- package/src/filiale/yulinyuchuan/systemphonegrid.js +9 -9
- package/src/filiale/yulinyuchuanTY/AlreadyService.vue +194 -0
- package/src/filiale/yulinyuchuanTY/AttendManage.vue +537 -0
- package/src/filiale/yulinyuchuanTY/LoginApp.vue +741 -0
- package/src/filiale/yulinyuchuanTY/OnlineManage.vue +256 -0
- package/src/filiale/yulinyuchuanTY/SystemSetUp.vue +332 -0
- package/src/filiale/yulinyuchuanTY/UploadManage.vue +195 -0
- package/src/filiale/yulinyuchuanTY/systemphonegrid.js +9 -0
- package/src/index.js +9 -9
- package/src/main.js +38 -38
- package/src/plugins/const.js +404 -404
- package/src/plugins/vue-py.js +37 -37
- package/src/stores/AppData.js +79 -91
- package/src/systemphone-gaomi.js +105 -105
- package/src/systemphone.js +60 -60
- package/src/systemphonegrid.js +185 -185
- package/src/util/LdapHelper.js +75 -75
- package/static/const.js +404 -404
- package/static/layui/font/iconfont.svg +554 -554
- package/static/vue-py.js +37 -37
- package/static/wasm_exec.js +465 -465
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Tue Oct 27 14:57:49 CST 2020
|
|
2
|
-
gradle.version=6.1
|
|
1
|
+
#Tue Oct 27 14:57:49 CST 2020
|
|
2
|
+
gradle.version=6.1
|
package/SystemPhone.iml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module external.linked.project.id="SystemPhone" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module external.linked.project.id="SystemPhone" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
9
|
</module>
|
package/build/dev-server.js
CHANGED
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.dev.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
|
-
// '/rs/weixin': {
|
|
15
|
-
// target: 'http://121.36.106.17:8400/'
|
|
16
|
-
// },
|
|
17
|
-
'/phone/rs/vue': {
|
|
18
|
-
target: 'http://121.36.106.17:8400/'
|
|
19
|
-
},
|
|
20
|
-
// '/materials': {
|
|
21
|
-
// target: 'http://121.36.106.17:8400/'
|
|
22
|
-
// // target: 'http://192.168.2.77:8081'
|
|
23
|
-
// },
|
|
24
|
-
// '/umaterials': {
|
|
25
|
-
// // target: 'http://192.168.50.202:8081'
|
|
26
|
-
// target: 'http://121.36.106.17:8400/'
|
|
27
|
-
// },
|
|
28
|
-
// // 取图片的地址
|
|
29
|
-
// '/images': {
|
|
30
|
-
// target: 'http://121.36.106.17:8400/'
|
|
31
|
-
// // target: 'http://192.168.20.249:8081'
|
|
32
|
-
// },
|
|
33
|
-
// 'phone/rs/dir2': {
|
|
34
|
-
// target: 'http://121.36.106.17:8400/'
|
|
35
|
-
// // target: 'http://192.168.20.249:8081'
|
|
36
|
-
// },
|
|
37
|
-
// '/excel': {
|
|
38
|
-
// // target: 'http://127.0.0.1:8082'
|
|
39
|
-
// target: 'http://121.36.106.17:8400/'
|
|
40
|
-
// },
|
|
41
|
-
'/rs/sql/getUserByMeter': {
|
|
42
|
-
// target: 'http://127.0.0.1:8081'
|
|
43
|
-
target: 'http://121.36.106.17:8400'
|
|
44
|
-
},
|
|
45
|
-
'/rs/logic/againOpenAccount': {
|
|
46
|
-
// target: 'http://127.0.0.1:8081'
|
|
47
|
-
target: 'http://121.36.106.17:8400'
|
|
48
|
-
},
|
|
49
|
-
'/rs/logic/againSendInstruct': {
|
|
50
|
-
// target: 'http://127.0.0.1:8081'
|
|
51
|
-
target: 'http://121.36.106.17:8400'
|
|
52
|
-
},
|
|
53
|
-
'/rs/logic/cancelSendInstruct': {
|
|
54
|
-
// target: 'http://127.0.0.1:8081'
|
|
55
|
-
target: 'http://121.36.106.17:8400'
|
|
56
|
-
},
|
|
57
|
-
'/rs/logic/TipConfig': {
|
|
58
|
-
// target: 'http://127.0.0.1:8081'
|
|
59
|
-
target: 'http://127.0.0.1:8089'
|
|
60
|
-
},
|
|
61
|
-
'/rs/sql/iot_singleTable_OrderBy': {
|
|
62
|
-
// target: 'http://127.0.0.1:8081'
|
|
63
|
-
target: 'http://121.36.106.17:8400'
|
|
64
|
-
},
|
|
65
|
-
// 呼叫系统主数据服务
|
|
66
|
-
'/rs': {
|
|
67
|
-
// target: 'http://127.0.0.1:8082'
|
|
68
|
-
target: 'http://121.36.106.17:8400'
|
|
69
|
-
},
|
|
70
|
-
// 文字客服
|
|
71
|
-
// '/Dual': {
|
|
72
|
-
// 'target': 'http://127.0.0.1:8081/RestWork/rs'
|
|
73
|
-
// },
|
|
74
|
-
// // 安卓测试转发地址
|
|
75
|
-
// '/AndroidRest/rs': {
|
|
76
|
-
// 'target': 'http://192.168.50.199:8300'
|
|
77
|
-
// }
|
|
78
|
-
}
|
|
79
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
80
|
-
publicPath: config.output.publicPath,
|
|
81
|
-
stats: {
|
|
82
|
-
colors: true,
|
|
83
|
-
chunks: false
|
|
84
|
-
}
|
|
85
|
-
})
|
|
86
|
-
|
|
87
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
88
|
-
// force page reload when html-webpack-plugin template changes
|
|
89
|
-
compiler.plugin('compilation', function (compilation) {
|
|
90
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
91
|
-
hotMiddleware.publish({ action: 'reload' })
|
|
92
|
-
cb()
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
// proxy api requests
|
|
97
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
98
|
-
var options = proxyTable[context]
|
|
99
|
-
if (typeof options === 'string') {
|
|
100
|
-
options = { target: options }
|
|
101
|
-
}
|
|
102
|
-
// 改变源实现跨域
|
|
103
|
-
// options.changeOrigin = true
|
|
104
|
-
Object.assign(options, {
|
|
105
|
-
onProxyRes (proxyRes, req, res) {
|
|
106
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
107
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
app.use(proxyMiddleware(context, options))
|
|
111
|
-
})
|
|
112
|
-
|
|
113
|
-
// handle fallback for HTML5 history API
|
|
114
|
-
app.use(require('connect-history-api-fallback')())
|
|
115
|
-
// app.use(function (req, res, next) {
|
|
116
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
117
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
118
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
119
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
120
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
121
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
122
|
-
// next()
|
|
123
|
-
// })
|
|
124
|
-
|
|
125
|
-
// serve webpack bundle output
|
|
126
|
-
app.use(devMiddleware)
|
|
127
|
-
|
|
128
|
-
// enable hot-reload and state-preserving
|
|
129
|
-
// compilation error display
|
|
130
|
-
app.use(hotMiddleware)
|
|
131
|
-
|
|
132
|
-
// serve pure static assets
|
|
133
|
-
app.use('/static', express.static('./static'))
|
|
134
|
-
|
|
135
|
-
module.exports = app.listen(8083, function (err) {
|
|
136
|
-
if (err) {
|
|
137
|
-
console.log(err)
|
|
138
|
-
return
|
|
139
|
-
}
|
|
140
|
-
console.log('Listening at http://localhost:8083')
|
|
141
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.dev.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
|
+
// '/rs/weixin': {
|
|
15
|
+
// target: 'http://121.36.106.17:8400/'
|
|
16
|
+
// },
|
|
17
|
+
'/phone/rs/vue': {
|
|
18
|
+
target: 'http://121.36.106.17:8400/'
|
|
19
|
+
},
|
|
20
|
+
// '/materials': {
|
|
21
|
+
// target: 'http://121.36.106.17:8400/'
|
|
22
|
+
// // target: 'http://192.168.2.77:8081'
|
|
23
|
+
// },
|
|
24
|
+
// '/umaterials': {
|
|
25
|
+
// // target: 'http://192.168.50.202:8081'
|
|
26
|
+
// target: 'http://121.36.106.17:8400/'
|
|
27
|
+
// },
|
|
28
|
+
// // 取图片的地址
|
|
29
|
+
// '/images': {
|
|
30
|
+
// target: 'http://121.36.106.17:8400/'
|
|
31
|
+
// // target: 'http://192.168.20.249:8081'
|
|
32
|
+
// },
|
|
33
|
+
// 'phone/rs/dir2': {
|
|
34
|
+
// target: 'http://121.36.106.17:8400/'
|
|
35
|
+
// // target: 'http://192.168.20.249:8081'
|
|
36
|
+
// },
|
|
37
|
+
// '/excel': {
|
|
38
|
+
// // target: 'http://127.0.0.1:8082'
|
|
39
|
+
// target: 'http://121.36.106.17:8400/'
|
|
40
|
+
// },
|
|
41
|
+
'/rs/sql/getUserByMeter': {
|
|
42
|
+
// target: 'http://127.0.0.1:8081'
|
|
43
|
+
target: 'http://121.36.106.17:8400'
|
|
44
|
+
},
|
|
45
|
+
'/rs/logic/againOpenAccount': {
|
|
46
|
+
// target: 'http://127.0.0.1:8081'
|
|
47
|
+
target: 'http://121.36.106.17:8400'
|
|
48
|
+
},
|
|
49
|
+
'/rs/logic/againSendInstruct': {
|
|
50
|
+
// target: 'http://127.0.0.1:8081'
|
|
51
|
+
target: 'http://121.36.106.17:8400'
|
|
52
|
+
},
|
|
53
|
+
'/rs/logic/cancelSendInstruct': {
|
|
54
|
+
// target: 'http://127.0.0.1:8081'
|
|
55
|
+
target: 'http://121.36.106.17:8400'
|
|
56
|
+
},
|
|
57
|
+
'/rs/logic/TipConfig': {
|
|
58
|
+
// target: 'http://127.0.0.1:8081'
|
|
59
|
+
target: 'http://127.0.0.1:8089'
|
|
60
|
+
},
|
|
61
|
+
'/rs/sql/iot_singleTable_OrderBy': {
|
|
62
|
+
// target: 'http://127.0.0.1:8081'
|
|
63
|
+
target: 'http://121.36.106.17:8400'
|
|
64
|
+
},
|
|
65
|
+
// 呼叫系统主数据服务
|
|
66
|
+
'/rs': {
|
|
67
|
+
// target: 'http://127.0.0.1:8082'
|
|
68
|
+
target: 'http://121.36.106.17:8400'
|
|
69
|
+
},
|
|
70
|
+
// 文字客服
|
|
71
|
+
// '/Dual': {
|
|
72
|
+
// 'target': 'http://127.0.0.1:8081/RestWork/rs'
|
|
73
|
+
// },
|
|
74
|
+
// // 安卓测试转发地址
|
|
75
|
+
// '/AndroidRest/rs': {
|
|
76
|
+
// 'target': 'http://192.168.50.199:8300'
|
|
77
|
+
// }
|
|
78
|
+
}
|
|
79
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
80
|
+
publicPath: config.output.publicPath,
|
|
81
|
+
stats: {
|
|
82
|
+
colors: true,
|
|
83
|
+
chunks: false
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
88
|
+
// force page reload when html-webpack-plugin template changes
|
|
89
|
+
compiler.plugin('compilation', function (compilation) {
|
|
90
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
91
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
92
|
+
cb()
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
// proxy api requests
|
|
97
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
98
|
+
var options = proxyTable[context]
|
|
99
|
+
if (typeof options === 'string') {
|
|
100
|
+
options = { target: options }
|
|
101
|
+
}
|
|
102
|
+
// 改变源实现跨域
|
|
103
|
+
// options.changeOrigin = true
|
|
104
|
+
Object.assign(options, {
|
|
105
|
+
onProxyRes (proxyRes, req, res) {
|
|
106
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
107
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
app.use(proxyMiddleware(context, options))
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
// handle fallback for HTML5 history API
|
|
114
|
+
app.use(require('connect-history-api-fallback')())
|
|
115
|
+
// app.use(function (req, res, next) {
|
|
116
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
117
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
118
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
119
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
120
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
121
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
122
|
+
// next()
|
|
123
|
+
// })
|
|
124
|
+
|
|
125
|
+
// serve webpack bundle output
|
|
126
|
+
app.use(devMiddleware)
|
|
127
|
+
|
|
128
|
+
// enable hot-reload and state-preserving
|
|
129
|
+
// compilation error display
|
|
130
|
+
app.use(hotMiddleware)
|
|
131
|
+
|
|
132
|
+
// serve pure static assets
|
|
133
|
+
app.use('/static', express.static('./static'))
|
|
134
|
+
|
|
135
|
+
module.exports = app.listen(8083, function (err) {
|
|
136
|
+
if (err) {
|
|
137
|
+
console.log(err)
|
|
138
|
+
return
|
|
139
|
+
}
|
|
140
|
+
console.log('Listening at http://localhost:8083')
|
|
141
|
+
})
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
var cssLoaders = require('./css-loaders')
|
|
3
|
-
var projectRoot = path.resolve(__dirname, '../')
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
entry: {
|
|
7
|
-
app: 'src/main.js'
|
|
8
|
-
},
|
|
9
|
-
output: {
|
|
10
|
-
path: path.resolve(__dirname, '../dist/static'),
|
|
11
|
-
publicPath: 'static/',
|
|
12
|
-
filename: '[name].js'
|
|
13
|
-
},
|
|
14
|
-
resolve: {
|
|
15
|
-
extensions: ['', '.js', '.vue'],
|
|
16
|
-
fallback: [path.join(__dirname, '../node_modules')],
|
|
17
|
-
alias: {
|
|
18
|
-
'src': path.resolve(__dirname, '../src'),
|
|
19
|
-
'test': path.resolve(__dirname, '../test')
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
resolveLoader: {
|
|
23
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
-
},
|
|
25
|
-
module: {
|
|
26
|
-
loaders: [
|
|
27
|
-
{
|
|
28
|
-
test: /\.vue$/,
|
|
29
|
-
loader: 'vue-loader'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
test: /\.js$/,
|
|
33
|
-
loader: 'babel',
|
|
34
|
-
include: [
|
|
35
|
-
/src/,
|
|
36
|
-
/build/,
|
|
37
|
-
/examples/,
|
|
38
|
-
/test/,
|
|
39
|
-
/node_modules\/vue-client\/src/,
|
|
40
|
-
/node_modules\/vue-strap\/src/,
|
|
41
|
-
/node_modules\/safecheck-client\/src/,
|
|
42
|
-
/node_modules\/telephone-clients\/src/,
|
|
43
|
-
/node_modules\/readmeter-client\/src/
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
test: /\.json$/,
|
|
48
|
-
loader: 'json'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
test: /\.html$/,
|
|
52
|
-
loader: 'vue-html'
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
test: /\.css$/,
|
|
56
|
-
loader: 'style!css'
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
test: /\.less$/,
|
|
60
|
-
loader: 'style!css!less'
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
64
|
-
loader: 'url',
|
|
65
|
-
query: {
|
|
66
|
-
limit: 10000,
|
|
67
|
-
name: '[name].[ext]?[hash:7]'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
vue: {
|
|
73
|
-
loaders: cssLoaders({
|
|
74
|
-
sourceMap: false,
|
|
75
|
-
extract: false
|
|
76
|
-
})
|
|
77
|
-
},
|
|
78
|
-
plugins: [],
|
|
79
|
-
eslint: {
|
|
80
|
-
formatter: require('eslint-friendly-formatter')
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
var path = require('path')
|
|
2
|
+
var cssLoaders = require('./css-loaders')
|
|
3
|
+
var projectRoot = path.resolve(__dirname, '../')
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
entry: {
|
|
7
|
+
app: 'src/main.js'
|
|
8
|
+
},
|
|
9
|
+
output: {
|
|
10
|
+
path: path.resolve(__dirname, '../dist/static'),
|
|
11
|
+
publicPath: 'static/',
|
|
12
|
+
filename: '[name].js'
|
|
13
|
+
},
|
|
14
|
+
resolve: {
|
|
15
|
+
extensions: ['', '.js', '.vue'],
|
|
16
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
17
|
+
alias: {
|
|
18
|
+
'src': path.resolve(__dirname, '../src'),
|
|
19
|
+
'test': path.resolve(__dirname, '../test')
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
resolveLoader: {
|
|
23
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
24
|
+
},
|
|
25
|
+
module: {
|
|
26
|
+
loaders: [
|
|
27
|
+
{
|
|
28
|
+
test: /\.vue$/,
|
|
29
|
+
loader: 'vue-loader'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
test: /\.js$/,
|
|
33
|
+
loader: 'babel',
|
|
34
|
+
include: [
|
|
35
|
+
/src/,
|
|
36
|
+
/build/,
|
|
37
|
+
/examples/,
|
|
38
|
+
/test/,
|
|
39
|
+
/node_modules\/vue-client\/src/,
|
|
40
|
+
/node_modules\/vue-strap\/src/,
|
|
41
|
+
/node_modules\/safecheck-client\/src/,
|
|
42
|
+
/node_modules\/telephone-clients\/src/,
|
|
43
|
+
/node_modules\/readmeter-client\/src/
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
test: /\.json$/,
|
|
48
|
+
loader: 'json'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
test: /\.html$/,
|
|
52
|
+
loader: 'vue-html'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
test: /\.css$/,
|
|
56
|
+
loader: 'style!css'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
test: /\.less$/,
|
|
60
|
+
loader: 'style!css!less'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
64
|
+
loader: 'url',
|
|
65
|
+
query: {
|
|
66
|
+
limit: 10000,
|
|
67
|
+
name: '[name].[ext]?[hash:7]'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
vue: {
|
|
73
|
+
loaders: cssLoaders({
|
|
74
|
+
sourceMap: false,
|
|
75
|
+
extract: false
|
|
76
|
+
})
|
|
77
|
+
},
|
|
78
|
+
plugins: [],
|
|
79
|
+
eslint: {
|
|
80
|
+
formatter: require('eslint-friendly-formatter')
|
|
81
|
+
}
|
|
82
|
+
}
|
package/build.gradle
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
repositories {
|
|
3
|
-
mavenCentral()
|
|
4
|
-
jcenter()
|
|
5
|
-
}
|
|
6
|
-
//使用Docker插件来构建Docker镜像,这样就可以直接在Gradle的脚本里配置Dockefile文件,
|
|
7
|
-
//之后就可以直接构建镜像了
|
|
8
|
-
dependencies {
|
|
9
|
-
classpath("se.transmode.gradle:gradle-docker:1.2")
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
version = '1.2.56'
|
|
14
|
-
|
|
15
|
-
apply plugin: 'java'
|
|
16
|
-
apply plugin: 'docker'
|
|
17
|
-
|
|
18
|
-
// 以命令行方式做镜像
|
|
19
|
-
task buildDocker(type:Exec) {
|
|
20
|
-
workingDir '.'
|
|
21
|
-
commandLine 'docker', 'build', '-t', jar.baseName + ':' + version, '.'
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
task release(type:Exec) {
|
|
25
|
-
workingDir '.'
|
|
26
|
-
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
27
|
-
}
|
|
1
|
+
buildscript {
|
|
2
|
+
repositories {
|
|
3
|
+
mavenCentral()
|
|
4
|
+
jcenter()
|
|
5
|
+
}
|
|
6
|
+
//使用Docker插件来构建Docker镜像,这样就可以直接在Gradle的脚本里配置Dockefile文件,
|
|
7
|
+
//之后就可以直接构建镜像了
|
|
8
|
+
dependencies {
|
|
9
|
+
classpath("se.transmode.gradle:gradle-docker:1.2")
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
version = '1.2.56'
|
|
14
|
+
|
|
15
|
+
apply plugin: 'java'
|
|
16
|
+
apply plugin: 'docker'
|
|
17
|
+
|
|
18
|
+
// 以命令行方式做镜像
|
|
19
|
+
task buildDocker(type:Exec) {
|
|
20
|
+
workingDir '.'
|
|
21
|
+
commandLine 'docker', 'build', '-t', jar.baseName + ':' + version, '.'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
task release(type:Exec) {
|
|
25
|
+
workingDir '.'
|
|
26
|
+
commandLine 'cmd', '/c', 'release.bat ' + version
|
|
27
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
distributionBase=GRADLE_USER_HOME
|
|
2
|
-
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip
|
|
4
|
-
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
-
zipStorePath=wrapper/dists
|
|
1
|
+
distributionBase=GRADLE_USER_HOME
|
|
2
|
+
distributionPath=wrapper/dists
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip
|
|
4
|
+
zipStoreBase=GRADLE_USER_HOME
|
|
5
|
+
zipStorePath=wrapper/dists
|