@things-factory/reference-app 5.0.13 → 6.0.0-alpha.1

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "5.0.13",
3
+ "version": "6.0.0-alpha.1",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
7
7
  "license": "MIT",
8
- "author": "heartyoh",
8
+ "author": "heartyoh <heartyoh@hatiolab.com>",
9
9
  "description": "Applications that can be referenced for development",
10
10
  "publishConfig": {
11
11
  "access": "public",
@@ -62,39 +62,39 @@
62
62
  "@operato/scene-tab": "^1.0.0",
63
63
  "@operato/shell": "^1.0.1",
64
64
  "@operato/utils": "^1.0.1",
65
- "@things-factory/api": "^5.0.11",
66
- "@things-factory/apptool-ui": "^5.0.11",
67
- "@things-factory/attachment-base": "^5.0.11",
68
- "@things-factory/auth-ui": "^5.0.11",
69
- "@things-factory/board-service": "^5.0.11",
70
- "@things-factory/board-ui": "^5.0.11",
71
- "@things-factory/ccp": "^5.0.13",
72
- "@things-factory/context-ui": "^5.0.11",
73
- "@things-factory/dashboard": "^5.0.11",
74
- "@things-factory/dataset": "^5.0.13",
75
- "@things-factory/export-ui": "^5.0.11",
76
- "@things-factory/export-ui-excel": "^5.0.11",
77
- "@things-factory/grist-ui": "^5.0.11",
78
- "@things-factory/help": "^5.0.11",
79
- "@things-factory/integration-ui": "^5.0.11",
80
- "@things-factory/lite-menu": "^5.0.11",
81
- "@things-factory/more-ui": "^5.0.11",
82
- "@things-factory/notification": "^5.0.11",
83
- "@things-factory/oauth2-client": "^5.0.11",
84
- "@things-factory/print-ui": "^5.0.11",
85
- "@things-factory/product-base": "^5.0.11",
86
- "@things-factory/qc": "^5.0.13",
87
- "@things-factory/resource-ui": "^5.0.11",
88
- "@things-factory/routing-base": "^5.0.11",
89
- "@things-factory/setting-base": "^5.0.11",
90
- "@things-factory/setting-ui": "^5.0.11",
91
- "@things-factory/shell": "^5.0.11",
92
- "@things-factory/system-ui": "^5.0.11",
93
- "@things-factory/work-shift": "^5.0.11",
65
+ "@things-factory/api": "^6.0.0-alpha.0",
66
+ "@things-factory/apptool-ui": "^6.0.0-alpha.0",
67
+ "@things-factory/attachment-base": "^6.0.0-alpha.0",
68
+ "@things-factory/auth-ui": "^6.0.0-alpha.1",
69
+ "@things-factory/board-service": "^6.0.0-alpha.0",
70
+ "@things-factory/board-ui": "^6.0.0-alpha.0",
71
+ "@things-factory/ccp": "^6.0.0-alpha.0",
72
+ "@things-factory/context-ui": "^6.0.0-alpha.0",
73
+ "@things-factory/dashboard": "^6.0.0-alpha.0",
74
+ "@things-factory/dataset": "^6.0.0-alpha.0",
75
+ "@things-factory/export-ui": "^6.0.0-alpha.0",
76
+ "@things-factory/export-ui-excel": "^6.0.0-alpha.0",
77
+ "@things-factory/grist-ui": "^6.0.0-alpha.0",
78
+ "@things-factory/help": "^6.0.0-alpha.0",
79
+ "@things-factory/integration-ui": "^6.0.0-alpha.0",
80
+ "@things-factory/lite-menu": "^6.0.0-alpha.0",
81
+ "@things-factory/more-ui": "^6.0.0-alpha.0",
82
+ "@things-factory/notification": "^6.0.0-alpha.0",
83
+ "@things-factory/oauth2-client": "^6.0.0-alpha.0",
84
+ "@things-factory/print-ui": "^6.0.0-alpha.0",
85
+ "@things-factory/product-base": "^6.0.0-alpha.0",
86
+ "@things-factory/qc": "^6.0.0-alpha.0",
87
+ "@things-factory/resource-ui": "^6.0.0-alpha.1",
88
+ "@things-factory/routing-base": "^6.0.0-alpha.0",
89
+ "@things-factory/setting-base": "^6.0.0-alpha.0",
90
+ "@things-factory/setting-ui": "^6.0.0-alpha.0",
91
+ "@things-factory/shell": "^6.0.0-alpha.0",
92
+ "@things-factory/system-ui": "^6.0.0-alpha.0",
93
+ "@things-factory/work-shift": "^6.0.0-alpha.0",
94
94
  "random-words": "^1.2.0"
95
95
  },
96
96
  "devDependencies": {
97
- "@things-factory/builder": "^5.0.8"
97
+ "@things-factory/builder": "^6.0.0-alpha.0"
98
98
  },
99
- "gitHead": "72dfd33e398eab9872600e91d1b13fef0595c174"
99
+ "gitHead": "b978f296de5c8be4a3f3450929821e5554855438"
100
100
  }
@@ -10,6 +10,7 @@ import { getWorkDateAndShift } from '@things-factory/work-shift'
10
10
 
11
11
  import { DataSampleMockupInfo } from '../service/data-sample-mockup/data-sample-mockup-type'
12
12
 
13
+ process.env.TZ = 'UTC'
13
14
  const randomWords = require('random-words')
14
15
 
15
16
  const fillDataKeys = (dataKeySet, data) => {
@@ -10,7 +10,10 @@ export class DataSampleMockupMutation {
10
10
  @Directive('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)')
11
11
  @Directive('@transaction')
12
12
  @Mutation(returns => Boolean, { description: 'To generate data sample one' })
13
- async generateMockupData(@Arg('params') params: DataSampleMockupInfo, @Ctx() context: any): Promise<Boolean> {
13
+ async generateMockupData(
14
+ @Arg('params') params: DataSampleMockupInfo,
15
+ @Ctx() context: ResolverContext
16
+ ): Promise<Boolean> {
14
17
  return await generateMockupData(params, context)
15
18
  }
16
19
  }
@@ -13,7 +13,7 @@ export class ReferenceMutation {
13
13
  @Root() _,
14
14
  @Arg('files', () => [GraphQLUpload])
15
15
  files: FileUpload[],
16
- @Ctx() context: any
16
+ @Ctx() context: ResolverContext
17
17
  ): Promise<string> {
18
18
  const { domain, user, tx } = context.state
19
19
  const all = Promise.all(files)
@@ -34,7 +34,7 @@ export class ReferenceMutation {
34
34
  }
35
35
 
36
36
  @Mutation(returns => String, { description: 'To reference of pending job progress' })
37
- async referencePendingJob(@Root() _, @Arg('tag') tag: string, @Ctx() context: any): Promise<string> {
37
+ async referencePendingJob(@Root() _, @Arg('tag') tag: string, @Ctx() context: ResolverContext): Promise<string> {
38
38
  const { domain } = context.state
39
39
 
40
40
  for (var i = 0; i <= 100; i++) {
@@ -16,7 +16,7 @@ export class ReferenceQuery {
16
16
  @Root() _,
17
17
  @Arg('images', () => [GraphQLUpload])
18
18
  images: FileUpload[],
19
- @Ctx() context: any
19
+ @Ctx() context: ResolverContext
20
20
  ): Promise<GraphQLScalarType[]> {
21
21
  const { domain, user, tx } = context.state
22
22
  const all = Promise.all(images)
@@ -60,7 +60,7 @@ export class ReferenceQuery {
60
60
  }
61
61
 
62
62
  @Query(returns => String, { description: 'To reference of pending job progress' })
63
- async ocrPendingJob(@Root() _, @Arg('tag') tag: string, @Ctx() context: any): Promise<string> {
63
+ async ocrPendingJob(@Root() _, @Arg('tag') tag: string, @Ctx() context: ResolverContext): Promise<string> {
64
64
  const { domain } = context.state
65
65
 
66
66
  for (var i = 0; i <= 100; i++) {
@@ -5,9 +5,16 @@
5
5
  "field.active": "활성화",
6
6
  "field.rate": "비율",
7
7
  "field.color": "색상",
8
- "field.role": "역할",
9
8
  "field.dynamic_type": "변화 타입",
10
9
  "field.dynamic_value": "변화타입 값",
10
+ "field.lot": "LOT",
11
+ "field.lot_id": "lot id",
12
+ "field.lot_no": "lot no",
13
+ "field.operation": "공정",
14
+ "field.operation_id": "공정 ID",
15
+ "field.product": "제품",
16
+ "field.role": "역할",
17
+ "field.work_date": "작업일",
11
18
  "label.maximum value": "최대값",
12
19
  "label.num_samples": "샘플 수",
13
20
  "text.ox-data-report-grand-total": "총합계",