address-client 1.5.19 → 1.5.20-bjzr

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.
@@ -1,114 +1,153 @@
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/user': {
15
- target: 'http://192.168.50.199:8300'
16
- },
17
- '/rs/search': {
18
- target: 'http://192.168.50.199:8300'
19
- },
20
- '/rs/logic/getLogin': {
21
- target: 'http://192.168.50.199:8300'
22
- },
23
- '/rs/logic/getInitData': {
24
- target: 'http://192.168.50.199:8300'
25
- },
26
- '/rs/vue': {
27
- target: 'http://192.168.50.199:8300'
28
- },*/
29
- '/rs': {
30
- target: 'http://192.168.2.84:7003'
31
- //target: 'http://127.0.0.1:8099/address'
32
- }
33
- }
34
-
35
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
36
- publicPath: config.output.publicPath,
37
- stats: {
38
- colors: true,
39
- chunks: false
40
- }
41
- })
42
-
43
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
44
- // force page reload when html-webpack-plugin template changes
45
- compiler.plugin('compilation', function (compilation) {
46
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
47
- hotMiddleware.publish({ action: 'reload' })
48
- cb()
49
- })
50
- })
51
-
52
- // proxy api requests
53
- Object.keys(proxyTable).forEach(function (context) {
54
- var options = proxyTable[context]
55
- if (typeof options === 'string') {
56
- options = { target: options }
57
- }
58
- app.use(proxyMiddleware(context, options))
59
- })
60
-
61
- // handle fallback for HTML5 history API
62
- app.use(require('connect-history-api-fallback')())
63
-
64
- // serve webpack bundle output
65
- app.use(devMiddleware)
66
-
67
- // enable hot-reload and state-preserving
68
- // compilation error display
69
- app.use(hotMiddleware)
70
-
71
- // serve pure static assets
72
- app.use('/static', express.static('./static'))
73
-
74
- // app.all('/rs/*', function (req, res) {
75
- // proxy.web(req, res, {
76
- // target: 'http://127.0.0.1:8081/reports'
77
- // })
78
- // })
79
-
80
- // app.all('/rs/*', function (req, res) {
81
- // proxy.web(req, res, {
82
- // target: 'http://127.0.0.1:8081/ldap'
83
- // })
84
- // })
85
- // app.all('/excel/*', function (req, res) {
86
- // proxy.web(req, res, {
87
- // target: 'http://127.0.0.1:8081/charge'
88
- // })
89
- // })
90
-
91
- // app.all('/rs/*', function (req, res) {
92
- // proxy.web(req, res, {
93
- // target: 'http://127.0.0.1:82/charge'
94
- // })
95
- // })
96
-
97
- // app.all('/*', function (req, res) {
98
- // proxy.web(req, res, {
99
- // target: 'http://127.0.0.1:82'
100
- // })
101
- // })
102
- // app.all('/rs/user', function (req, res) {
103
- // proxy.web(req, res, {
104
- // target: 'http://127.0.0.1:82'
105
- // })
106
- // })
107
-
108
- module.exports = app.listen(8084, function (err) {
109
- if (err) {
110
- console.log(err)
111
- return
112
- }
113
- console.log('Listening at http://localhost:8084')
114
- })
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 fuwu='http://111.19.162.41:8300',bendi='http://111.19.162.41:8300'
14
+ var proxyTable = {
15
+ '/file': {
16
+ target: fuwu
17
+ },
18
+ // 查找资源服务数据
19
+ '/rs/search': {
20
+ target: fuwu
21
+ },
22
+ // 用户登录服务地址
23
+ '/rs/user': {
24
+ target: fuwu
25
+ },
26
+ '/rs/path/getParams': {
27
+ target: fuwu
28
+ },
29
+ '/rs/logic/getInitData': {
30
+ target: fuwu
31
+ },
32
+ '/rs/data': {
33
+ target: fuwu
34
+ },
35
+ '/rs/license': {
36
+ target: fuwu
37
+ },
38
+ '/rs/db': {
39
+ target: fuwu
40
+ },
41
+ '/excel': {
42
+ target: fuwu
43
+ },
44
+
45
+ '/rs/logic/getSaleInitData': {
46
+ target: fuwu
47
+ },
48
+ '/rs/logic/getLogin': {
49
+ target: fuwu
50
+ },
51
+ '/rs/config': {
52
+ target: bendi
53
+ },
54
+ '/rs/sql/getLicenseById': {
55
+ target: fuwu
56
+ },
57
+ '/rs/Invoice': {
58
+ target: fuwu
59
+ },
60
+ '/rs/report': {
61
+ target: fuwu
62
+ },
63
+ '/rs/vue': {
64
+ target: fuwu
65
+ },
66
+ '/rs/images': {
67
+ target: fuwu
68
+ },
69
+ '/rs': {
70
+ target: bendi
71
+ }
72
+ }
73
+
74
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
75
+ publicPath: config.output.publicPath,
76
+ stats: {
77
+ colors: true,
78
+ chunks: false
79
+ }
80
+ })
81
+
82
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
83
+ // force page reload when html-webpack-plugin template changes
84
+ compiler.plugin('compilation', function (compilation) {
85
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
86
+ hotMiddleware.publish({ action: 'reload' })
87
+ cb()
88
+ })
89
+ })
90
+
91
+ // proxy api requests
92
+ Object.keys(proxyTable).forEach(function (context) {
93
+ var options = proxyTable[context]
94
+ if (typeof options === 'string') {
95
+ options = { target: options }
96
+ }
97
+ app.use(proxyMiddleware(context, options))
98
+ })
99
+
100
+ // handle fallback for HTML5 history API
101
+ app.use(require('connect-history-api-fallback')())
102
+
103
+ // serve webpack bundle output
104
+ app.use(devMiddleware)
105
+
106
+ // enable hot-reload and state-preserving
107
+ // compilation error display
108
+ app.use(hotMiddleware)
109
+
110
+ // serve pure static assets
111
+ app.use('/static', express.static('./static'))
112
+
113
+ // app.all('/rs/*', function (req, res) {
114
+ // proxy.web(req, res, {
115
+ // target: 'http://127.0.0.1:8081/reports'
116
+ // })
117
+ // })
118
+
119
+ // app.all('/rs/*', function (req, res) {
120
+ // proxy.web(req, res, {
121
+ // target: 'http://127.0.0.1:8081/ldap'
122
+ // })
123
+ // })
124
+ // app.all('/excel/*', function (req, res) {
125
+ // proxy.web(req, res, {
126
+ // target: 'http://127.0.0.1:8081/charge'
127
+ // })
128
+ // })
129
+
130
+ // app.all('/rs/*', function (req, res) {
131
+ // proxy.web(req, res, {
132
+ // target: 'http://127.0.0.1:82/charge'
133
+ // })
134
+ // })
135
+
136
+ // app.all('/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:82'
139
+ // })
140
+ // })
141
+ // app.all('/rs/user', function (req, res) {
142
+ // proxy.web(req, res, {
143
+ // target: 'http://127.0.0.1:82'
144
+ // })
145
+ // })
146
+
147
+ module.exports = app.listen(8084, function (err) {
148
+ if (err) {
149
+ console.log(err)
150
+ return
151
+ }
152
+ console.log('Listening at http://localhost:8084')
153
+ })
package/build.gradle CHANGED
@@ -1,14 +1,14 @@
1
- buildscript {
2
- repositories {
3
- mavenCentral()
4
- jcenter()
5
- }
6
- }
7
-
8
- version = '1.5.19'
9
-
10
- apply plugin: 'java'
11
- task release(type:Exec) {
12
- workingDir '.'
13
- commandLine 'cmd', '/c', 'release.bat ' + version
14
- }
1
+ buildscript {
2
+ repositories {
3
+ mavenCentral()
4
+ jcenter()
5
+ }
6
+ }
7
+
8
+ version = '1.5.19'
9
+
10
+ apply plugin: 'java'
11
+ task release(type:Exec) {
12
+ workingDir '.'
13
+ commandLine 'cmd', '/c', 'release.bat ' + version
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "address-client",
3
- "version": "1.5.19",
3
+ "version": "1.5.20-bjzr",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -72,7 +72,7 @@
72
72
  "mocha": "^3.2.0",
73
73
  "ncp": "^2.0.0",
74
74
  "rimraf": "^2.5.0",
75
- "sale-client": "^1.2.5",
75
+ "sale-client": "^1.7.6-0.8",
76
76
  "selenium-server": "2.52.0",
77
77
  "sinon": "^2.1.0",
78
78
  "sinon-chai": "^2.8.0",