manage-client 3.3.131 → 3.3.132-hl

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/.npmignore ADDED
@@ -0,0 +1,10 @@
1
+ src/bootstrap
2
+ .idea/
3
+ .DS_Store
4
+ node_modules/
5
+ dist/static/*.map
6
+ npm-debug.log
7
+ selenium-debug.log
8
+ test/unit/coverage
9
+ test/e2e/reports
10
+ yarn.lock
@@ -0,0 +1 @@
1
+
@@ -1,189 +1,189 @@
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 bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan = 'http://119.146.1.106:8300/'
15
- var qtx= 'http://36.103.222.144:6300/'
16
- // var bendi = 'http://220.194.141.253:8600/'
17
- // var bendi = 'http://203.57.101.233:9001'
18
- // var bendi = 'http://172.168.1.11:9001/'
19
- // var bendi = 'http://203.57.101.233:8400/'
20
- // var bendi = 'http://121.36.106.17:8400/'
21
- // var fuwu = 'http://203.57.101.233:9001'
22
- var bendi = 'http://192.168.50.67:31785'
23
- // var bendi = 'http://119.187.112.234:8400/'
24
- var wode = 'http://192.168.50.67:31785'
25
- // 192.168.
26
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
27
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
28
- var proxyTable = {
29
- '/rs/logic/exportfile': {
30
- target: bendi
31
- },
32
- '/rs/sql/chargeQuery_by_gasproperties': {
33
- target: 'http://localhost:8084/'
34
- },
35
- '/rs/logic/chargeQuery_by_gasproperties_line': {
36
- target: 'http://localhost:8084/'
37
- },
38
- '/files': {
39
- target: bendi
40
- },
41
- // 查找资源服务数据
42
- '/rs/search': {
43
- target: bendi
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getLogin': {
47
- target: bendi
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getInitData': {
51
- target: bendi
52
- },
53
- '/rs/logic/getSaleInitData': {
54
- target: bendi
55
- },
56
- // 用户登录服务地址
57
- '/rs/user': {
58
- target: bendi
59
- },
60
- '/rs/path/getParams': {
61
- target: bendi
62
- },
63
- '/rs/data': {
64
- target: bendi
65
- },
66
- '/rs/license': {
67
- target: bendi
68
- },
69
- '/rs/db': {
70
- target: bendi
71
- },
72
- '/excel': {
73
- target: bendi
74
- },
75
- '/rs/config': {
76
- target: bendi
77
- },
78
- '/rs/sql/getLicenseById': {
79
- target: bendi
80
- },
81
- '/rs/report': {
82
- target: bendi
83
- },
84
- '/rs/vue': {
85
- target: bendi
86
- },
87
- '/rs/file': {
88
- target: bendi
89
- },
90
- '/rs/sql/singleTable': {
91
- target: bendi
92
- },
93
- '/rs/sql': {
94
- target: 'http://localhost:8084/'
95
- },
96
- '/rs': {
97
- target: wode
98
- }
99
- }
100
-
101
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
102
- publicPath: config.output.publicPath,
103
- stats: {
104
- colors: true,
105
- chunks: false
106
- }
107
- })
108
-
109
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
110
- // force page reload when html-webpack-plugin template changes
111
- compiler.plugin('compilation', function (compilation) {
112
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
113
- hotMiddleware.publish({action: 'reload'})
114
- cb()
115
- })
116
- })
117
-
118
- // proxy api requests
119
- Object.keys(proxyTable).forEach(function (context) {
120
- var options = proxyTable[context]
121
- if (typeof options === 'string') {
122
- options = {target: options}
123
- }
124
- app.use(proxyMiddleware(context, options))
125
- })
126
-
127
- // handle fallback for HTML5 history API
128
- app.use(require('connect-history-api-fallback')())
129
- // app.use(function (req, res, next) {
130
- // res.header('Access-Control-Allow-Origin', '*')
131
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
132
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
133
- // res.header('X-Powered-By', '3,2,1')
134
- // res.header('Access-Control-Allow-Credentials', 'true')
135
- // res.header('Content-Type', 'application/json;charset=utf-8')
136
- // next()
137
- // })
138
-
139
- // serve webpack bundle output
140
- app.use(devMiddleware)
141
-
142
- // enable hot-reload and state-preserving
143
- // compilation error display
144
- app.use(hotMiddleware)
145
-
146
- // serve pure static assets
147
- app.use('/static', express.static('./static'))
148
-
149
- // app.all('/rs/*', function (req, res) {
150
- // proxy.web(req, res, {
151
- // target: 'http://127.0.0.1:8081/reports'
152
- // })
153
- // })
154
-
155
- // app.all('/rs/*', function (req, res) {
156
- // proxy.web(req, res, {
157
- // target: 'http://127.0.0.1:8081/ldap'
158
- // })
159
- // })
160
- // app.all('/excel/*', function (req, res) {
161
- // proxy.web(req, res, {
162
- // target: 'http://127.0.0.1:8081/charge'
163
- // })
164
- // })
165
-
166
- // app.all('/rs/*', function (req, res) {
167
- // proxy.web(req, res, {
168
- // target: 'http://127.0.0.1:82/charge'
169
- // })
170
- // })
171
-
172
- // app.all('/*', function (req, res) {
173
- // proxy.web(req, res, {
174
- // target: 'http://127.0.0.1:82'
175
- // })
176
- // })
177
- // app.all('/rs/user', function (req, res) {
178
- // proxy.web(req, res, {
179
- // target: 'http://127.0.0.1:82'
180
- // })
181
- // })
182
-
183
- module.exports = app.listen(8015, function (err) {
184
- if (err) {
185
- console.log(err)
186
- return
187
- }
188
- console.log('Listening at http://localhost:8015')
189
- })
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 bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
+ var shaoguan = 'http://119.146.1.106:8300/'
15
+ var qtx= 'http://36.103.222.144:6300/'
16
+ // var bendi = 'http://220.194.141.253:8600/'
17
+ // var bendi = 'http://203.57.101.233:9001'
18
+ // var bendi = 'http://172.168.1.11:9001/'
19
+ // var bendi = 'http://203.57.101.233:8400/'
20
+ // var bendi = 'http://121.36.106.17:8400/'
21
+ // var fuwu = 'http://203.57.101.233:9001'
22
+ var bendi = 'http://121.40.52.133:9001/#'
23
+ // var bendi = 'http://119.187.112.234:8400/'
24
+ var wode = 'http://127.0.0.1:8488/'
25
+ // 192.168.
26
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
27
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
28
+ var proxyTable = {
29
+ '/rs/logic/exportfile': {
30
+ target: bendi
31
+ },
32
+ '/rs/sql/chargeQuery_by_gasproperties': {
33
+ target: 'http://localhost:8084/'
34
+ },
35
+ '/rs/logic/chargeQuery_by_gasproperties_line': {
36
+ target: 'http://localhost:8084/'
37
+ },
38
+ '/files': {
39
+ target: bendi
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/search': {
43
+ target: bendi
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getLogin': {
47
+ target: bendi
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getInitData': {
51
+ target: bendi
52
+ },
53
+ '/rs/logic/getSaleInitData': {
54
+ target: bendi
55
+ },
56
+ // 用户登录服务地址
57
+ '/rs/user': {
58
+ target: bendi
59
+ },
60
+ '/rs/path/getParams': {
61
+ target: bendi
62
+ },
63
+ '/rs/data': {
64
+ target: bendi
65
+ },
66
+ '/rs/license': {
67
+ target: bendi
68
+ },
69
+ '/rs/db': {
70
+ target: bendi
71
+ },
72
+ '/excel': {
73
+ target: bendi
74
+ },
75
+ '/rs/config': {
76
+ target: bendi
77
+ },
78
+ '/rs/sql/getLicenseById': {
79
+ target: bendi
80
+ },
81
+ '/rs/report': {
82
+ target: bendi
83
+ },
84
+ '/rs/vue': {
85
+ target: bendi
86
+ },
87
+ '/rs/file': {
88
+ target: bendi
89
+ },
90
+ '/rs/sql/singleTable': {
91
+ target: bendi
92
+ },
93
+ '/rs/sql': {
94
+ target: bendi
95
+ },
96
+ '/rs': {
97
+ target: bendi
98
+ }
99
+ }
100
+
101
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
102
+ publicPath: config.output.publicPath,
103
+ stats: {
104
+ colors: true,
105
+ chunks: false
106
+ }
107
+ })
108
+
109
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
110
+ // force page reload when html-webpack-plugin template changes
111
+ compiler.plugin('compilation', function (compilation) {
112
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
113
+ hotMiddleware.publish({action: 'reload'})
114
+ cb()
115
+ })
116
+ })
117
+
118
+ // proxy api requests
119
+ Object.keys(proxyTable).forEach(function (context) {
120
+ var options = proxyTable[context]
121
+ if (typeof options === 'string') {
122
+ options = {target: options}
123
+ }
124
+ app.use(proxyMiddleware(context, options))
125
+ })
126
+
127
+ // handle fallback for HTML5 history API
128
+ app.use(require('connect-history-api-fallback')())
129
+ // app.use(function (req, res, next) {
130
+ // res.header('Access-Control-Allow-Origin', '*')
131
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
132
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
133
+ // res.header('X-Powered-By', '3,2,1')
134
+ // res.header('Access-Control-Allow-Credentials', 'true')
135
+ // res.header('Content-Type', 'application/json;charset=utf-8')
136
+ // next()
137
+ // })
138
+
139
+ // serve webpack bundle output
140
+ app.use(devMiddleware)
141
+
142
+ // enable hot-reload and state-preserving
143
+ // compilation error display
144
+ app.use(hotMiddleware)
145
+
146
+ // serve pure static assets
147
+ app.use('/static', express.static('./static'))
148
+
149
+ // app.all('/rs/*', function (req, res) {
150
+ // proxy.web(req, res, {
151
+ // target: 'http://127.0.0.1:8081/reports'
152
+ // })
153
+ // })
154
+
155
+ // app.all('/rs/*', function (req, res) {
156
+ // proxy.web(req, res, {
157
+ // target: 'http://127.0.0.1:8081/ldap'
158
+ // })
159
+ // })
160
+ // app.all('/excel/*', function (req, res) {
161
+ // proxy.web(req, res, {
162
+ // target: 'http://127.0.0.1:8081/charge'
163
+ // })
164
+ // })
165
+
166
+ // app.all('/rs/*', function (req, res) {
167
+ // proxy.web(req, res, {
168
+ // target: 'http://127.0.0.1:82/charge'
169
+ // })
170
+ // })
171
+
172
+ // app.all('/*', function (req, res) {
173
+ // proxy.web(req, res, {
174
+ // target: 'http://127.0.0.1:82'
175
+ // })
176
+ // })
177
+ // app.all('/rs/user', function (req, res) {
178
+ // proxy.web(req, res, {
179
+ // target: 'http://127.0.0.1:82'
180
+ // })
181
+ // })
182
+
183
+ module.exports = app.listen(8015, function (err) {
184
+ if (err) {
185
+ console.log(err)
186
+ return
187
+ }
188
+ console.log('Listening at http://localhost:8015')
189
+ })