@k3000/s1 0.1.5 → 0.1.7
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/admin/base.mjs +1 -1
- package/admin/index.mjs +1 -1
- package/admin/monitor/server.mjs +1 -1
- package/admin/service.mjs +2 -2
- package/admin/tool/gen.mjs +1 -1
- package/app/index.mjs +2 -2
- package/bin.mjs +3 -0
- package/build.mjs +2 -2
- package/common/tools.mjs +1 -1
- package/files/package.json +26 -0
- package/jwt/index.mjs +2 -2
- package/package.json +1 -1
- package/proxy/index.mjs +1 -1
- package/store1/index.mjs +2 -2
- package/store1/tool.mjs +1 -1
package/admin/base.mjs
CHANGED
package/admin/index.mjs
CHANGED
package/admin/monitor/server.mjs
CHANGED
package/admin/service.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import createServer from '
|
1
|
+
import createServer from '@k3000/server'
|
2
2
|
import {adminUdpPort as port} from "../common/config.mjs";
|
3
3
|
import {service as pools} from '../common/service.mjs'
|
4
4
|
|
5
|
-
/*const service = */createServer({
|
5
|
+
/*const service = */createServer({port, type: "udp"}, pools)
|
6
6
|
|
7
7
|
console.log('running on ' + port)
|
8
8
|
|
package/admin/tool/gen.mjs
CHANGED
package/app/index.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {Express} from "
|
1
|
+
import {Express} from "@k3000/express";
|
2
2
|
import bodyParser from "body-parser";
|
3
3
|
import {appServicePort} from "../common/config.mjs";
|
4
4
|
|
@@ -6,4 +6,4 @@ const app = new Express({
|
|
6
6
|
port: appServicePort,
|
7
7
|
callback: () => console.log('running on ' + appServicePort),
|
8
8
|
})
|
9
|
-
app.use(bodyParser.urlencoded({extended: true}));
|
9
|
+
app.use(bodyParser.urlencoded({extended: true}));
|
package/bin.mjs
CHANGED
@@ -65,6 +65,7 @@ function init(override) {
|
|
65
65
|
myCopyFn('谨慎打开', '谨慎打开', override)
|
66
66
|
myCopyFn('build.mjs', 'build.mjs', override)
|
67
67
|
myCopyFn('index.mjs', 'index.mjs', override)
|
68
|
+
myCopyFn('package.json', 'package.json', override)
|
68
69
|
|
69
70
|
// pm2.del(uiService)
|
70
71
|
// pm2.add(uiService, './backstage/index.mjs')
|
@@ -79,6 +80,8 @@ function init(override) {
|
|
79
80
|
pm2.exec('npm i @k3000/server').log()
|
80
81
|
pm2.exec('npm i @k3000/store').log()
|
81
82
|
pm2.exec('npm i @k3000/tools').log()
|
83
|
+
pm2.exec('npm i @k3000/info').log()
|
84
|
+
pm2.exec('npm i @k3000/build').log()
|
82
85
|
pm2.exec('npm i svg-captcha').log()
|
83
86
|
pm2.exec('npm i mysql2').log()
|
84
87
|
pm2.exec('npm i ssh2').log()
|
package/build.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*import {build} from '
|
1
|
+
/*import {build} from '@k3000/build'
|
2
2
|
|
3
3
|
// build('admin', 'index', 'admin') // 打包
|
4
4
|
// build('jwt', 'index', 'jwt') // 打包
|
@@ -11,7 +11,7 @@ build('test', {
|
|
11
11
|
// import './test/index.mjs'
|
12
12
|
import './index2.mjs'
|
13
13
|
|
14
|
-
/*import {build} from '
|
14
|
+
/*import {build} from '@k3000/build'
|
15
15
|
|
16
16
|
// build('admin', 'index', 'admin') // 打包
|
17
17
|
// build('jwt', 'index', 'jwt') // 打包
|
package/common/tools.mjs
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"scripts": {
|
3
|
+
"admin": "node admin/index.mjs",
|
4
|
+
"store1": "node store1/index.mjs",
|
5
|
+
"proxy": "node proxy/index.mjs",
|
6
|
+
"jwt": "node jwt/index.mjs",
|
7
|
+
"app": "node app/index.mjs"
|
8
|
+
},
|
9
|
+
"dependencies": {
|
10
|
+
"@k3000/build": "^0.1.1",
|
11
|
+
"@k3000/express": "^0.1.1",
|
12
|
+
"@k3000/info": "^0.1.0",
|
13
|
+
"@k3000/mysql": "^0.1.0",
|
14
|
+
"@k3000/proxy": "^0.2.0",
|
15
|
+
"@k3000/server": "^1.0.5",
|
16
|
+
"@k3000/store": "^0.1.0",
|
17
|
+
"@k3000/tools": "^0.1.1",
|
18
|
+
"archiver": "^7.0.1",
|
19
|
+
"body-parser": "^1.20.3",
|
20
|
+
"exceljs": "^4.4.0",
|
21
|
+
"express-fileupload": "^1.5.1",
|
22
|
+
"mysql2": "^3.11.4",
|
23
|
+
"ssh2": "^1.16.0",
|
24
|
+
"svg-captcha": "^1.4.0"
|
25
|
+
}
|
26
|
+
}
|
package/jwt/index.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import createServer from '
|
1
|
+
import createServer from '@k3000/server'
|
2
2
|
import {jwtPort as port} from "../common/config.mjs";
|
3
3
|
import {service as pools} from "../common/service.mjs";
|
4
4
|
import {fromJWT, toJWT} from "../common/tools.mjs";
|
5
5
|
|
6
6
|
const map = new Map
|
7
7
|
|
8
|
-
const service = createServer({
|
8
|
+
const service = createServer({port, map, type: "udp"}, pools)
|
9
9
|
|
10
10
|
console.log('running on ' + port)
|
11
11
|
|
package/package.json
CHANGED
package/proxy/index.mjs
CHANGED
package/store1/index.mjs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import createServer from '
|
1
|
+
import createServer from '@k3000/server'
|
2
2
|
import {store1Port as port} from "../common/config.mjs";
|
3
3
|
import store from "./store/index.mjs";
|
4
4
|
import {Pools} from "../common/tools.mjs";
|
5
5
|
|
6
6
|
const map = new Pools()
|
7
7
|
|
8
|
-
createServer({port, map})
|
8
|
+
createServer({port, map, type: "udp"})
|
9
9
|
|
10
10
|
map.set('/getSetList', data => Object.keys(store).join(','))
|
11
11
|
|
package/store1/tool.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {colIncludes, page, Pools, rowSlice, update} from "../common/tools.mjs";
|
2
2
|
import store, {getStruct, remark} from "./store/index.mjs";
|
3
|
-
import Query from "
|
3
|
+
import Query from "@k3000/mysql";
|
4
4
|
import {mysql, serverDir} from "../common/config.mjs";
|
5
5
|
import {
|
6
6
|
columnNameNotEdit,
|