@things-factory/board-test 4.3.591 → 4.3.671
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/package.json +6 -6
- package/dist-server/index.js +0 -18
- package/dist-server/index.js.map +0 -1
- package/dist-server/migrations/1558006505982-SeedGroup.js +0 -39
- package/dist-server/migrations/1558006505982-SeedGroup.js.map +0 -1
- package/dist-server/migrations/1558006512362-SeedBoard.js +0 -29
- package/dist-server/migrations/1558006512362-SeedBoard.js.map +0 -1
- package/dist-server/migrations/1558009487900-SeedPlayGroup.js +0 -30
- package/dist-server/migrations/1558009487900-SeedPlayGroup.js.map +0 -1
- package/dist-server/migrations/1563869152824-TestLabels.js +0 -51
- package/dist-server/migrations/1563869152824-TestLabels.js.map +0 -1
- package/dist-server/migrations/1564039750397-SampleBoards.js +0 -182
- package/dist-server/migrations/1564039750397-SampleBoards.js.map +0 -1
- package/dist-server/migrations/1564139332891-SampleFonts.js +0 -92
- package/dist-server/migrations/1564139332891-SampleFonts.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/board-test",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.671",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"things-factory": true,
|
|
6
6
|
"author": "heartyoh",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@things-factory/auth-base": "^4.3.
|
|
26
|
-
"@things-factory/board-service": "^4.3.
|
|
27
|
-
"@things-factory/font-base": "^4.3.
|
|
28
|
-
"@things-factory/shell": "^4.3.
|
|
25
|
+
"@things-factory/auth-base": "^4.3.671",
|
|
26
|
+
"@things-factory/board-service": "^4.3.671",
|
|
27
|
+
"@things-factory/font-base": "^4.3.671",
|
|
28
|
+
"@things-factory/shell": "^4.3.671"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "ef524cb207378186ec71917d9a8546363d4300b2"
|
|
31
31
|
}
|
package/dist-server/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./migrations"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist-server/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedGroup1558006505982 = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const board_service_1 = require("@things-factory/board-service");
|
|
7
|
-
const SEED_GROUP = [
|
|
8
|
-
{
|
|
9
|
-
name: 'LABEL',
|
|
10
|
-
description: 'LABEL'
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: 'WAREHOUSE',
|
|
14
|
-
description: 'WAREHOUSE'
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
name: 'LOGISTICS',
|
|
18
|
-
description: 'LOGISTICS'
|
|
19
|
-
}
|
|
20
|
-
];
|
|
21
|
-
class SeedGroup1558006505982 {
|
|
22
|
-
async up(queryRunner) {
|
|
23
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.Group);
|
|
24
|
-
const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
|
|
25
|
-
const domain = await domainRepository.findOne({ subdomain: 'system' });
|
|
26
|
-
return await Promise.all(SEED_GROUP.map(async (group) => {
|
|
27
|
-
await repository.save(Object.assign(Object.assign({}, group), { domain }));
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
async down(queryRunner) {
|
|
31
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.Group);
|
|
32
|
-
return await Promise.all(SEED_GROUP.reverse().map(async (group) => {
|
|
33
|
-
let record = await repository.findOne({ name: group.name });
|
|
34
|
-
await repository.remove(record);
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.SeedGroup1558006505982 = SeedGroup1558006505982;
|
|
39
|
-
//# sourceMappingURL=1558006505982-SeedGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1558006505982-SeedGroup.js","sourceRoot":"","sources":["../../server/migrations/1558006505982-SeedGroup.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,iDAA8C;AAC9C,iEAAqD;AAErD,MAAM,UAAU,GAAG;IACjB;QACE,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,OAAO;KACrB;IACD;QACE,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,WAAW;KACzB;IACD;QACE,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,WAAW;KACzB;CACF,CAAA;AAED,MAAa,sBAAsB;IAC1B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QACvC,MAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAA;QAEtE,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,UAAU,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YAC3B,MAAM,UAAU,CAAC,IAAI,iCAChB,KAAK,KACR,MAAM,IACN,CAAA;QACJ,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QAEvC,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YACrC,IAAI,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;YAC3D,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA1BD,wDA0BC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Board1558006512362 = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const board_service_1 = require("@things-factory/board-service");
|
|
7
|
-
const SEED_BOARD = [];
|
|
8
|
-
class Board1558006512362 {
|
|
9
|
-
async up(queryRunner) {
|
|
10
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.Board);
|
|
11
|
-
const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
|
|
12
|
-
const domain = await domainRepository.findOne({ subdomain: 'system' });
|
|
13
|
-
const groupRepository = (0, typeorm_1.getRepository)(board_service_1.Group);
|
|
14
|
-
const group = await groupRepository.findOne({ name: 'SAMPLE' });
|
|
15
|
-
return await Promise.all(SEED_BOARD.map(async (board) => {
|
|
16
|
-
await repository.save(Object.assign(Object.assign({}, board), { domain,
|
|
17
|
-
group }));
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
async down(queryRunner) {
|
|
21
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.Board);
|
|
22
|
-
return await Promise.all(SEED_BOARD.reverse().map(async (board) => {
|
|
23
|
-
let record = await repository.findOne({ name: board.name });
|
|
24
|
-
await repository.remove(record);
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.Board1558006512362 = Board1558006512362;
|
|
29
|
-
//# sourceMappingURL=1558006512362-SeedBoard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1558006512362-SeedBoard.js","sourceRoot":"","sources":["../../server/migrations/1558006512362-SeedBoard.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,iDAA8C;AAC9C,iEAA4D;AAE5D,MAAM,UAAU,GAAG,EAAE,CAAA;AAErB,MAAa,kBAAkB;IACtB,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QACvC,MAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAA;QAEtE,MAAM,eAAe,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QAC5C,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;QAE/D,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,UAAU,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YAC3B,MAAM,UAAU,CAAC,IAAI,iCAChB,KAAK,KACR,MAAM;gBACN,KAAK,IACL,CAAA;QACJ,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QAEvC,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,UAAU,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YACrC,IAAI,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;YAC3D,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AA9BD,gDA8BC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeedPlayGroup1558009487900 = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const shell_1 = require("@things-factory/shell");
|
|
6
|
-
const board_service_1 = require("@things-factory/board-service");
|
|
7
|
-
const SEED_PLAY_GROUP = [];
|
|
8
|
-
class SeedPlayGroup1558009487900 {
|
|
9
|
-
async up(queryRunner) {
|
|
10
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.PlayGroup);
|
|
11
|
-
const domainRepository = (0, typeorm_1.getRepository)(shell_1.Domain);
|
|
12
|
-
const domain = await domainRepository.findOne({ subdomain: 'system' });
|
|
13
|
-
const boardRepository = (0, typeorm_1.getRepository)(board_service_1.Board);
|
|
14
|
-
const boards = await boardRepository.find();
|
|
15
|
-
return await Promise.all(SEED_PLAY_GROUP.map(async (group) => {
|
|
16
|
-
await repository.save(Object.assign(Object.assign({}, group), { domain,
|
|
17
|
-
boards }));
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
async down(queryRunner) {
|
|
21
|
-
const repository = (0, typeorm_1.getRepository)(board_service_1.PlayGroup);
|
|
22
|
-
return await Promise.all(SEED_PLAY_GROUP.reverse().map(async (group) => {
|
|
23
|
-
let record = await repository.findOne({ name: group.name });
|
|
24
|
-
// TODO remove cascade
|
|
25
|
-
await repository.remove(record);
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.SeedPlayGroup1558009487900 = SeedPlayGroup1558009487900;
|
|
30
|
-
//# sourceMappingURL=1558009487900-SeedPlayGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1558009487900-SeedPlayGroup.js","sourceRoot":"","sources":["../../server/migrations/1558009487900-SeedPlayGroup.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,iDAA8C;AAC9C,iEAAgE;AAEhE,MAAM,eAAe,GAAG,EAAE,CAAA;AAE1B,MAAa,0BAA0B;IAC9B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACtC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,yBAAS,CAAC,CAAA;QAC3C,MAAM,gBAAgB,GAAG,IAAA,uBAAa,EAAC,cAAM,CAAC,CAAA;QAC9C,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAA;QAEtE,MAAM,eAAe,GAAG,IAAA,uBAAa,EAAC,qBAAK,CAAC,CAAA;QAC5C,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,IAAI,EAAE,CAAA;QAE3C,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,eAAe,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YAChC,MAAM,UAAU,CAAC,IAAI,iCAChB,KAAK,KACR,MAAM;gBACN,MAAM,IACN,CAAA;QACJ,CAAC,CAAC,CACH,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,yBAAS,CAAC,CAAA;QAE3C,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,eAAe,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,EAAC,KAAK,EAAC,EAAE;YAC1C,IAAI,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAA;YAE3D,sBAAsB;YACtB,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AAhCD,gEAgCC"}
|