@things-factory/board-test 9.0.0-beta.24 → 9.0.0-beta.27

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.
Files changed (26) hide show
  1. package/package.json +6 -6
  2. package/dist-server/index.d.ts +0 -1
  3. package/dist-server/index.js +0 -5
  4. package/dist-server/index.js.map +0 -1
  5. package/dist-server/migrations/1558006505982-SeedGroup.d.ts +0 -5
  6. package/dist-server/migrations/1558006505982-SeedGroup.js +0 -38
  7. package/dist-server/migrations/1558006505982-SeedGroup.js.map +0 -1
  8. package/dist-server/migrations/1558006512362-SeedBoard.d.ts +0 -5
  9. package/dist-server/migrations/1558006512362-SeedBoard.js +0 -28
  10. package/dist-server/migrations/1558006512362-SeedBoard.js.map +0 -1
  11. package/dist-server/migrations/1558009487900-SeedPlayGroup.d.ts +0 -5
  12. package/dist-server/migrations/1558009487900-SeedPlayGroup.js +0 -29
  13. package/dist-server/migrations/1558009487900-SeedPlayGroup.js.map +0 -1
  14. package/dist-server/migrations/1563869152824-TestLabels.d.ts +0 -5
  15. package/dist-server/migrations/1563869152824-TestLabels.js +0 -50
  16. package/dist-server/migrations/1563869152824-TestLabels.js.map +0 -1
  17. package/dist-server/migrations/1564039750397-SampleBoards.d.ts +0 -5
  18. package/dist-server/migrations/1564039750397-SampleBoards.js +0 -181
  19. package/dist-server/migrations/1564039750397-SampleBoards.js.map +0 -1
  20. package/dist-server/migrations/1564139332891-SampleFonts.d.ts +0 -5
  21. package/dist-server/migrations/1564139332891-SampleFonts.js +0 -91
  22. package/dist-server/migrations/1564139332891-SampleFonts.js.map +0 -1
  23. package/dist-server/migrations/index.d.ts +0 -1
  24. package/dist-server/migrations/index.js +0 -12
  25. package/dist-server/migrations/index.js.map +0 -1
  26. package/dist-server/tsconfig.tsbuildinfo +0 -1
@@ -1,5 +0,0 @@
1
- import { MigrationInterface, QueryRunner } from 'typeorm';
2
- export declare class SampleFonts1564139332891 implements MigrationInterface {
3
- up(queryRunner: QueryRunner): Promise<any>;
4
- down(queryRunner: QueryRunner): Promise<any>;
5
- }
@@ -1,91 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SampleFonts1564139332891 = void 0;
4
- const font_base_1 = require("@things-factory/font-base");
5
- const shell_1 = require("@things-factory/shell");
6
- const FONTS = [
7
- {
8
- id: '5fdac0a1-e264-4c68-a133-df119a13f948',
9
- name: 'Nanum Gothic',
10
- provider: 'google',
11
- uri: 'https://fonts.googleapis.com/css?family=Nanum+Gothic&display=swap',
12
- active: true
13
- },
14
- {
15
- id: '5c8c413e-c964-499d-92c1-e6c13677a4d8',
16
- name: 'Noto Sans KR',
17
- provider: 'google',
18
- uri: 'https://fonts.google.com/specimen/Noto+Sans+KR',
19
- active: true
20
- },
21
- {
22
- id: '1eda5e13-347f-4d6a-91d4-f483f855d8ef',
23
- name: 'Nanum Myeongjo',
24
- provider: 'google',
25
- uri: 'https://fonts.google.com/specimen/Nanum+Myeongjo',
26
- active: true
27
- },
28
- {
29
- id: 'a262ac64-77f0-4e1e-a150-d8421584b804',
30
- name: 'Nanum Gothic Coding',
31
- provider: 'google',
32
- uri: 'https://fonts.google.com/specimen/Nanum+Gothic+Coding',
33
- active: true
34
- },
35
- {
36
- id: '8eb5a086-5efc-4fcc-ad14-c6cda353689c',
37
- name: 'Darker Grotesque',
38
- provider: 'google',
39
- uri: 'https://fonts.google.com/specimen/Darker+Grotesque',
40
- active: true
41
- },
42
- {
43
- id: '3905968d-28fe-496f-8834-4c2ca3cc947d',
44
- name: 'Shadows Into Light',
45
- provider: 'google',
46
- uri: 'https://fonts.google.com/specimen/Shadows+Into+Light',
47
- active: true
48
- },
49
- {
50
- id: 'd1759d48-8c5b-4567-8a4e-bcfa6e0d7bb6',
51
- name: 'Ubuntu Condensed',
52
- provider: 'google',
53
- uri: 'https://fonts.google.com/specimen/Ubuntu+Condensed',
54
- active: true
55
- },
56
- {
57
- id: '21848dcd-dcc5-4614-be4c-cf79e1a693c2',
58
- name: 'Gugi',
59
- provider: 'google',
60
- uri: 'https://fonts.google.com/specimen/Gugi',
61
- active: true
62
- },
63
- {
64
- id: 'd385d921-8d95-468e-a66a-99d3674e1bc8',
65
- name: 'Dokdo',
66
- provider: 'google',
67
- uri: 'https://fonts.google.com/specimen/Dokdo',
68
- active: true
69
- }
70
- ];
71
- class SampleFonts1564139332891 {
72
- async up(queryRunner) {
73
- const repository = (0, shell_1.getRepository)(font_base_1.Font);
74
- const domainRepository = (0, shell_1.getRepository)(shell_1.Domain);
75
- const domain = await domainRepository.findOneBy({ subdomain: 'system' });
76
- FONTS.forEach(async (font) => {
77
- Object.defineProperty(font, 'domain', { value: domain });
78
- });
79
- await repository.save(FONTS);
80
- }
81
- async down(queryRunner) {
82
- const repository = (0, shell_1.getRepository)(font_base_1.Font);
83
- return await Promise.all(FONTS.reverse().map(async (font) => {
84
- let record = await repository.findOneBy({ name: font.name });
85
- // TODO remove cascade
86
- await repository.remove(record);
87
- }));
88
- }
89
- }
90
- exports.SampleFonts1564139332891 = SampleFonts1564139332891;
91
- //# sourceMappingURL=1564139332891-SampleFonts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"1564139332891-SampleFonts.js","sourceRoot":"","sources":["../../server/migrations/1564139332891-SampleFonts.ts"],"names":[],"mappings":";;;AAEA,yDAAgD;AAChD,iDAA6D;AAE7D,MAAM,KAAK,GAAG;IACZ;QACE,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,QAAQ;QAClB,GAAG,EAAE,mEAAmE;QACxE,MAAM,EAAE,IAAI;KACb;IACD;QACE,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,QAAQ;QAClB,GAAG,EAAE,gDAAgD;QACrD,MAAM,EAAE,IAAI;KACb;IACD;QACE,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,QAAQ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C,IAAI,EAAC,EAAE;YACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;QAC1D,CAAC,CAAC,CAAA;QAEF,MAAM,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACxC,MAAM,UAAU,GAAG,IAAA,qBAAa,EAAC,gBAAI,CAAC,CAAA;QAEtC,OAAO,MAAM,OAAO,CAAC,GAAG,CACtB,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,EAAC,IAAI,EAAC,EAAE;YAC/B,IAAI,MAAM,GAAG,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;YAE5D,sBAAsB;YACtB,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QACjC,CAAC,CAAC,CACH,CAAA;IACH,CAAC;CACF;AAzBD,4DAyBC","sourcesContent":["import { MigrationInterface, QueryRunner } from 'typeorm'\n\nimport { Font } from '@things-factory/font-base'\nimport { Domain, getRepository } from '@things-factory/shell'\n\nconst FONTS = [\n {\n id: '5fdac0a1-e264-4c68-a133-df119a13f948',\n name: 'Nanum Gothic',\n provider: 'google',\n uri: 'https://fonts.googleapis.com/css?family=Nanum+Gothic&display=swap',\n active: true\n },\n {\n id: '5c8c413e-c964-499d-92c1-e6c13677a4d8',\n name: 'Noto Sans KR',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Noto+Sans+KR',\n active: true\n },\n {\n id: '1eda5e13-347f-4d6a-91d4-f483f855d8ef',\n name: 'Nanum Myeongjo',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Nanum+Myeongjo',\n active: true\n },\n {\n id: 'a262ac64-77f0-4e1e-a150-d8421584b804',\n name: 'Nanum Gothic Coding',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Nanum+Gothic+Coding',\n active: true\n },\n {\n id: '8eb5a086-5efc-4fcc-ad14-c6cda353689c',\n name: 'Darker Grotesque',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Darker+Grotesque',\n active: true\n },\n {\n id: '3905968d-28fe-496f-8834-4c2ca3cc947d',\n name: 'Shadows Into Light',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Shadows+Into+Light',\n active: true\n },\n {\n id: 'd1759d48-8c5b-4567-8a4e-bcfa6e0d7bb6',\n name: 'Ubuntu Condensed',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Ubuntu+Condensed',\n active: true\n },\n {\n id: '21848dcd-dcc5-4614-be4c-cf79e1a693c2',\n name: 'Gugi',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Gugi',\n active: true\n },\n {\n id: 'd385d921-8d95-468e-a66a-99d3674e1bc8',\n name: 'Dokdo',\n provider: 'google',\n uri: 'https://fonts.google.com/specimen/Dokdo',\n active: true\n }\n]\n\nexport class SampleFonts1564139332891 implements MigrationInterface {\n public async up(queryRunner: QueryRunner): Promise<any> {\n const repository = getRepository(Font)\n const domainRepository = getRepository(Domain)\n const domain = await domainRepository.findOneBy({ subdomain: 'system' })\n\n FONTS.forEach(async font => {\n Object.defineProperty(font, 'domain', { value: domain })\n })\n\n await repository.save(FONTS)\n }\n\n public async down(queryRunner: QueryRunner): Promise<any> {\n const repository = getRepository(Font)\n\n return await Promise.all(\n FONTS.reverse().map(async font => {\n let record = await repository.findOneBy({ name: font.name })\n\n // TODO remove cascade\n await repository.remove(record)\n })\n )\n }\n}\n"]}
@@ -1 +0,0 @@
1
- export declare var migrations: any[];
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.migrations = void 0;
4
- const glob = require('glob');
5
- const path = require('path');
6
- exports.migrations = [];
7
- glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function (file) {
8
- if (file.indexOf('index.js') !== -1)
9
- return;
10
- exports.migrations = exports.migrations.concat(Object.values(require(path.resolve(file))) || []);
11
- });
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/migrations/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAA;AAE1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,UAAS,IAAI;IACzE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAAE,OAAM;IAC3C,kBAAU,GAAG,kBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;AAClF,CAAC,CAAC,CAAA","sourcesContent":["const glob = require('glob')\nconst path = require('path')\n\nexport var migrations = []\n\nglob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {\n if (file.indexOf('index.js') !== -1) return\n migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])\n})\n"]}