address-client 1.3.57 → 1.3.58-8

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,134 +1,124 @@
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
- '/images': {
15
- // target: 'http://localhost:8086'
16
- target: 'http://127.0.0.1:8090/ldap'
17
- },
18
- // 查找资源服务数据
19
- '/rs/search': {
20
- // target: 'http://192.168.50.202:8099'
21
- // target: 'http://192.168.20.2:8081'
22
- target: 'http://127.0.0.1:8090/ldap'
23
- // target: 'http://192.168.20.191:8011'
24
- },
25
- // 用户登录服务地址
26
- '/rs/user': {
27
- // target: 'http://192.168.50.202:8099'
28
- // target: 'http://192.168.2.77:8081'
29
- target: 'http://127.0.0.1:8090/ldap'
30
- // target: 'http://192.168.20.191:8011'
31
- },
32
- '/rs/data': {
33
- target: 'http://127.0.0.1:8090/ldap'
34
- },
35
- '/rs/license': {
36
- target: 'http://127.0.0.1:8090/ldap'
37
- },
38
- '/rs/db': {
39
- target: 'http://127.0.0.1:8090/ldap'
40
- // target: 'http://127.0.0.1:8012'
41
- // target: 'http://192.168.20.191:s8011'
42
- },
43
- '/excel': {
44
- // target: 'http://127.0.0.1:9090/product'
45
- target: 'http://192.168.50.222:8300'
46
- },
47
- '/rs/file': {
48
- target: 'http://192.168.50.222:8300'
49
- },
50
- '/rs': {
51
- target: 'http://127.0.0.1:8080/address'
52
- }
53
- }
54
-
55
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
56
- publicPath: config.output.publicPath,
57
- stats: {
58
- colors: true,
59
- chunks: false
60
- }
61
- })
62
-
63
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
64
- // force page reload when html-webpack-plugin template changes
65
- compiler.plugin('compilation', function (compilation) {
66
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
67
- hotMiddleware.publish({ action: 'reload' })
68
- cb()
69
- })
70
- })
71
-
72
- // proxy api requests
73
- Object.keys(proxyTable).forEach(function (context) {
74
- var options = proxyTable[context]
75
- if (typeof options === 'string') {
76
- options = { target: options }
77
- }
78
- app.use(proxyMiddleware(context, options))
79
- })
80
-
81
- // handle fallback for HTML5 history API
82
- app.use(require('connect-history-api-fallback')())
83
-
84
- // serve webpack bundle output
85
- app.use(devMiddleware)
86
-
87
- // enable hot-reload and state-preserving
88
- // compilation error display
89
- app.use(hotMiddleware)
90
-
91
- // serve pure static assets
92
- app.use('/static', express.static('./static'))
93
-
94
- // app.all('/rs/*', function (req, res) {
95
- // proxy.web(req, res, {
96
- // target: 'http://127.0.0.1:8081/reports'
97
- // })
98
- // })
99
-
100
- // app.all('/rs/*', function (req, res) {
101
- // proxy.web(req, res, {
102
- // target: 'http://127.0.0.1:8081/ldap'
103
- // })
104
- // })
105
- // app.all('/excel/*', function (req, res) {
106
- // proxy.web(req, res, {
107
- // target: 'http://127.0.0.1:8081/charge'
108
- // })
109
- // })
110
-
111
- // app.all('/rs/*', function (req, res) {
112
- // proxy.web(req, res, {
113
- // target: 'http://127.0.0.1:82/charge'
114
- // })
115
- // })
116
-
117
- // app.all('/*', function (req, res) {
118
- // proxy.web(req, res, {
119
- // target: 'http://127.0.0.1:82'
120
- // })
121
- // })
122
- // app.all('/rs/user', function (req, res) {
123
- // proxy.web(req, res, {
124
- // target: 'http://127.0.0.1:82'
125
- // })
126
- // })
127
-
128
- module.exports = app.listen(8084, function (err) {
129
- if (err) {
130
- console.log(err)
131
- return
132
- }
133
- console.log('Listening at http://localhost:8084')
134
- })
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
+ '/images': {
15
+ target: 'http://192.168.50.32:9001'
16
+ },
17
+ // 查找资源服务数据
18
+ '/rs/search': {
19
+ target: 'http://192.168.50.32:9001'
20
+ },
21
+ // 用户登录服务地址
22
+ '/rs/user': {
23
+ target: 'http://192.168.50.32:9001'
24
+ },
25
+ '/rs/data': {
26
+ target: 'http://192.168.50.32:9001'
27
+ },
28
+ '/rs/license': {
29
+ target: 'http://192.168.50.32:9001'
30
+ },
31
+ '/rs/db': {
32
+ target: 'http://192.168.50.32:9001'
33
+ },
34
+ '/excel': {
35
+ target: 'http://192.168.50.32:9001'
36
+ },
37
+ '/rs/file': {
38
+ target: 'http://192.168.50.32:9001'
39
+ },
40
+ '/rs': {
41
+ target: 'http://192.168.50.32:9001'
42
+ }
43
+ }
44
+
45
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
46
+ publicPath: config.output.publicPath,
47
+ stats: {
48
+ colors: true,
49
+ chunks: false
50
+ }
51
+ })
52
+
53
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
54
+ // force page reload when html-webpack-plugin template changes
55
+ compiler.plugin('compilation', function (compilation) {
56
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
57
+ hotMiddleware.publish({ action: 'reload' })
58
+ cb()
59
+ })
60
+ })
61
+
62
+ // proxy api requests
63
+ Object.keys(proxyTable).forEach(function (context) {
64
+ var options = proxyTable[context]
65
+ if (typeof options === 'string') {
66
+ options = { target: options }
67
+ }
68
+ app.use(proxyMiddleware(context, options))
69
+ })
70
+
71
+ // handle fallback for HTML5 history API
72
+ app.use(require('connect-history-api-fallback')())
73
+
74
+ // serve webpack bundle output
75
+ app.use(devMiddleware)
76
+
77
+ // enable hot-reload and state-preserving
78
+ // compilation error display
79
+ app.use(hotMiddleware)
80
+
81
+ // serve pure static assets
82
+ app.use('/static', express.static('./static'))
83
+
84
+ // app.all('/rs/*', function (req, res) {
85
+ // proxy.web(req, res, {
86
+ // target: 'http://127.0.0.1:8081/reports'
87
+ // })
88
+ // })
89
+
90
+ // app.all('/rs/*', function (req, res) {
91
+ // proxy.web(req, res, {
92
+ // target: 'http://127.0.0.1:8081/ldap'
93
+ // })
94
+ // })
95
+ // app.all('/excel/*', function (req, res) {
96
+ // proxy.web(req, res, {
97
+ // target: 'http://127.0.0.1:8081/charge'
98
+ // })
99
+ // })
100
+
101
+ // app.all('/rs/*', function (req, res) {
102
+ // proxy.web(req, res, {
103
+ // target: 'http://127.0.0.1:82/charge'
104
+ // })
105
+ // })
106
+
107
+ // app.all('/*', function (req, res) {
108
+ // proxy.web(req, res, {
109
+ // target: 'http://127.0.0.1:82'
110
+ // })
111
+ // })
112
+ // app.all('/rs/user', function (req, res) {
113
+ // proxy.web(req, res, {
114
+ // target: 'http://127.0.0.1:82'
115
+ // })
116
+ // })
117
+
118
+ module.exports = app.listen(8084, function (err) {
119
+ if (err) {
120
+ console.log(err)
121
+ return
122
+ }
123
+ console.log('Listening at http://localhost:8084')
124
+ })
package/build.gradle CHANGED
@@ -1,14 +1,14 @@
1
- buildscript {
2
- repositories {
3
- mavenCentral()
4
- jcenter()
5
- }
6
- }
7
-
8
- version = '1.3.57'
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.3.57-1'
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.3.57",
3
+ "version": "1.3.58-8",
4
4
  "description": "地址管理前台组件",
5
5
  "author": "wanbochao",
6
6
  "license": "ISC",
@@ -78,10 +78,11 @@
78
78
  "sinon-chai": "^2.8.0",
79
79
  "style": "0.0.3",
80
80
  "style-loader": "^0.20.3",
81
- "system-clients": "1.4.16",
81
+ "system-clients": "1.5.24-5",
82
82
  "ldap-clients": "0.4.4",
83
83
  "url-loader": "^0.5.7",
84
- "vue-client": "1.18.2",
84
+ "vue-client": "1.19.228-1",
85
+ "crypto-js": "4.0.0",
85
86
  "vue-hot-reload-api": "^1.2.0",
86
87
  "vue-html-loader": "^1.0.0",
87
88
  "vue-loader": "^8.2.1",