@things-factory/reference-app 5.0.0-zeta.9 → 5.0.2
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/client/bootstrap.js +10 -10
- package/client/components/ocr-viewpart.js +1 -1
- package/client/editors/id-selector.js +1 -1
- package/client/menu.js +10 -5
- package/client/pages/data-entry/data-entry-form.js +117 -0
- package/client/pages/data-entry/data-entry-generator-popup.js +110 -0
- package/client/pages/data-set/data-item-list.js +277 -0
- package/client/pages/data-set/data-set-importer.js +103 -0
- package/client/pages/data-set/data-set-list-page.js +738 -0
- package/client/pages/ocr-page.js +1 -1
- package/client/pages/operation/operation-api.js +85 -0
- package/client/pages/operation/operation-master.js +432 -0
- package/client/pages/pending-job-page.js +1 -1
- package/client/pages/product/product-api.js +150 -0
- package/client/pages/product/product-master.js +888 -0
- package/client/pages/product-combination-settings-popup.js +395 -0
- package/client/pages/product-combinations-popup.js +372 -0
- package/client/pages/product-details-popup.js +744 -0
- package/client/pages/upload-page.js +1 -1
- package/client/route.js +12 -0
- package/db.sqlite +0 -0
- package/dist-server/constants/index.js +18 -0
- package/dist-server/constants/index.js.map +1 -0
- package/dist-server/constants/type-constants.js +26 -0
- package/dist-server/constants/type-constants.js.map +1 -0
- package/dist-server/controllers/create-data-sample-mockup.js +236 -0
- package/dist-server/controllers/create-data-sample-mockup.js.map +1 -0
- package/dist-server/controllers/index.js +17 -0
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/service/data-sample-mockup/data-sample-mockup-mutation.js +40 -0
- package/dist-server/service/data-sample-mockup/data-sample-mockup-mutation.js.map +1 -0
- package/dist-server/service/data-sample-mockup/data-sample-mockup-type.js +28 -0
- package/dist-server/service/data-sample-mockup/data-sample-mockup-type.js.map +1 -0
- package/dist-server/service/data-sample-mockup/index.js +7 -0
- package/dist-server/service/data-sample-mockup/index.js.map +1 -0
- package/dist-server/service/index.js +5 -2
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/reference/reference-mutation.js +7 -3
- package/dist-server/service/reference/reference-mutation.js.map +1 -1
- package/dist-server/service/reference/reference-query.js +8 -4
- package/dist-server/service/reference/reference-query.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +3 -28
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +18 -48
- package/logs/application-2022-07-22-10.log +26 -0
- package/logs/{connections-2022-06-26-22.log → connections-2022-07-12-00.log} +0 -0
- package/logs/{connections-2022-06-26-23.log → connections-2022-07-14-14.log} +0 -0
- package/logs/{connections-2022-06-27-00.log → connections-2022-07-14-15.log} +0 -0
- package/logs/{connections-2022-06-28-21.log → connections-2022-07-14-16.log} +0 -0
- package/logs/{connections-2022-06-28-22.log → connections-2022-07-14-17.log} +0 -0
- package/logs/{connections-2022-06-29-08.log → connections-2022-07-22-10.log} +0 -0
- package/package.json +58 -56
- package/server/constants/index.ts +1 -0
- package/server/constants/type-constants.ts +24 -0
- package/server/controllers/create-data-sample-mockup.ts +268 -0
- package/server/controllers/index.ts +1 -0
- package/server/service/data-sample-mockup/data-sample-mockup-mutation.ts +18 -0
- package/server/service/data-sample-mockup/data-sample-mockup-type.ts +10 -0
- package/server/service/data-sample-mockup/index.ts +4 -0
- package/server/service/index.ts +5 -2
- package/server/service/reference/reference-mutation.ts +6 -3
- package/server/service/reference/reference-query.ts +9 -7
- package/things-factory.config.js +8 -0
- package/translations/en.json +6 -1
- package/translations/ko.json +7 -1
- package/logs/application-2022-06-28-21.log +0 -30
- package/logs/application-2022-06-28-22.log +0 -15
- package/logs/application-2022-06-29-08.log +0 -12
- package/logs/application-2022-06-29-09.log +0 -12
- package/logs/application-2022-06-29-10.log +0 -4
- package/logs/application-2022-06-29-12.log +0 -4
- package/logs/connections-2022-06-29-09.log +0 -0
- package/logs/connections-2022-06-29-10.log +0 -0
- package/logs/connections-2022-06-29-12.log +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FileUpload
|
|
1
|
+
import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'
|
|
2
|
+
import GraphQLUpload from 'graphql-upload/GraphQLUpload.js'
|
|
2
3
|
import { Arg, Ctx, Query, Resolver, Root } from 'type-graphql'
|
|
3
4
|
|
|
4
5
|
import { Attachment, createAttachments } from '@things-factory/attachment-base'
|
|
@@ -25,6 +26,7 @@ export class ReferenceQuery {
|
|
|
25
26
|
const attachments: Attachment[] = images.map(attachment => {
|
|
26
27
|
return {
|
|
27
28
|
file: attachment,
|
|
29
|
+
refType: 'Reference',
|
|
28
30
|
refBy: 100,
|
|
29
31
|
category: 'Reference'
|
|
30
32
|
}
|
|
@@ -41,7 +43,7 @@ export class ReferenceQuery {
|
|
|
41
43
|
return { data: image, name: filename, format: formatArr[formatArr.length - 1] }
|
|
42
44
|
})
|
|
43
45
|
)
|
|
44
|
-
const res = await extractInfos(files)
|
|
46
|
+
const res: any = await extractInfos(files)
|
|
45
47
|
console.log('interpretImages response', JSON.stringify(res, null, ' '))
|
|
46
48
|
return res.data?.extractInfos
|
|
47
49
|
}
|
|
@@ -49,12 +51,12 @@ export class ReferenceQuery {
|
|
|
49
51
|
return []
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
streamToString
|
|
53
|
-
const chunks = []
|
|
54
|
+
streamToString(stream) {
|
|
55
|
+
const chunks = []
|
|
54
56
|
return new Promise((resolve, reject) => {
|
|
55
|
-
stream.on('data',
|
|
56
|
-
stream.on('error',
|
|
57
|
-
stream.on('end', () => resolve(Buffer.concat(chunks).toString('base64')))
|
|
57
|
+
stream.on('data', chunk => chunks.push(Buffer.from(chunk)))
|
|
58
|
+
stream.on('error', err => reject(err))
|
|
59
|
+
stream.on('end', () => resolve(Buffer.concat(chunks).toString('base64')))
|
|
58
60
|
})
|
|
59
61
|
}
|
|
60
62
|
|
package/things-factory.config.js
CHANGED
|
@@ -12,6 +12,14 @@ export default {
|
|
|
12
12
|
tagname: 'reference-app-main',
|
|
13
13
|
page: 'reference-app-main'
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
tagname: 'operation-master',
|
|
17
|
+
page: 'operation_master'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
tagname: 'product-master',
|
|
21
|
+
page: 'product_master'
|
|
22
|
+
},
|
|
15
23
|
{
|
|
16
24
|
tagname: 'upload-page',
|
|
17
25
|
page: 'upload-page'
|
package/translations/en.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"button.generate_mockup": "Generate Mockup Data",
|
|
2
3
|
"field.company": "company",
|
|
3
4
|
"field.barcode": "barcode",
|
|
4
5
|
"field.active": "active",
|
|
@@ -7,5 +8,9 @@
|
|
|
7
8
|
"field.role": "role",
|
|
8
9
|
"field.dynamic_type": "dynamic type",
|
|
9
10
|
"field.dynamic_value": "dynamic value",
|
|
10
|
-
"
|
|
11
|
+
"label.num_samples": "Number of Samples",
|
|
12
|
+
"text.mockup data created successfully": "mockup data created successfully",
|
|
13
|
+
"text.ox-data-report-grand-total": "grand total",
|
|
14
|
+
"title.edit code": "edit code",
|
|
15
|
+
"title.generate_mockup": "Generate Mockup Data"
|
|
11
16
|
}
|
package/translations/ko.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"button.generate_mockup": "테스트 데이타 생성",
|
|
2
3
|
"field.company": "회사",
|
|
3
4
|
"field.barcode": "바코드",
|
|
4
5
|
"field.active": "활성화",
|
|
@@ -7,5 +8,10 @@
|
|
|
7
8
|
"field.role": "역할",
|
|
8
9
|
"field.dynamic_type": "변화 타입",
|
|
9
10
|
"field.dynamic_value": "변화타입 값",
|
|
10
|
-
"
|
|
11
|
+
"label.maximum value": "최대값",
|
|
12
|
+
"label.num_samples": "샘플 수",
|
|
13
|
+
"text.ox-data-report-grand-total": "총합계",
|
|
14
|
+
"text.mockup data created successfully": "테스트 데이타가 성공적으로 생성되었습니다",
|
|
15
|
+
"title.edit code": "코드 편집",
|
|
16
|
+
"title.generate_mockup": "테스트 데이타 생성"
|
|
11
17
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
2022-06-28T21:22:45+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-06-28T21:22:50+09:00 info: Database connection established
|
|
3
|
-
2022-06-28T21:22:50+09:00 error: SQLITE_ERROR: near "AUTOINCREMENT": syntax error
|
|
4
|
-
2022-06-28T21:22:51+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
5
|
-
2022-06-28T21:22:51+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
6
|
-
2022-06-28T21:32:20+09:00 info: File Storage is Ready.
|
|
7
|
-
2022-06-28T21:32:26+09:00 info: Database connection established
|
|
8
|
-
2022-06-28T21:32:26+09:00 error: SQLITE_CONSTRAINT: NOT NULL constraint failed: temporary_data_sets.version
|
|
9
|
-
2022-06-28T21:32:27+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
10
|
-
2022-06-28T21:32:27+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
11
|
-
2022-06-28T21:33:59+09:00 error: SQLITE_ERROR: no such column: dataset.version
|
|
12
|
-
2022-06-28T21:36:49+09:00 info: File Storage is Ready.
|
|
13
|
-
2022-06-28T21:37:06+09:00 info: File Storage is Ready.
|
|
14
|
-
2022-06-28T21:37:11+09:00 info: Database connection established
|
|
15
|
-
2022-06-28T21:37:13+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
16
|
-
2022-06-28T21:37:13+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
17
|
-
2022-06-28T21:42:44+09:00 error: Variable "$ids" got invalid value null at "ids[0]"; Expected non-nullable type "String!" not to be null.
|
|
18
|
-
2022-06-28T21:50:41+09:00 info: File Storage is Ready.
|
|
19
|
-
2022-06-28T21:50:46+09:00 info: Database connection established
|
|
20
|
-
2022-06-28T21:50:47+09:00 error: SQLITE_CONSTRAINT: NOT NULL constraint failed: temporary_data_sets.version
|
|
21
|
-
2022-06-28T21:50:48+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
22
|
-
2022-06-28T21:50:48+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
23
|
-
2022-06-28T21:51:59+09:00 error: SQLITE_ERROR: no such column: DataSample.data_set_version
|
|
24
|
-
2022-06-28T21:52:14+09:00 error: SQLITE_ERROR: no such column: DataSample.data_set_version
|
|
25
|
-
2022-06-28T21:52:45+09:00 info: File Storage is Ready.
|
|
26
|
-
2022-06-28T21:52:59+09:00 info: File Storage is Ready.
|
|
27
|
-
2022-06-28T21:53:03+09:00 info: Database connection established
|
|
28
|
-
2022-06-28T21:53:03+09:00 error: SQLITE_CONSTRAINT: NOT NULL constraint failed: temporary_data_sets.version
|
|
29
|
-
2022-06-28T21:53:04+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
30
|
-
2022-06-28T21:53:04+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
2022-06-28T22:00:22+09:00 error: SQLITE_ERROR: no such column: DataSample.data_set_version
|
|
2
|
-
2022-06-28T22:01:17+09:00 info: File Storage is Ready.
|
|
3
|
-
2022-06-28T22:01:22+09:00 info: Database connection established
|
|
4
|
-
2022-06-28T22:01:23+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
5
|
-
2022-06-28T22:01:23+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
6
|
-
2022-06-28T22:12:19+09:00 info: File Storage is Ready.
|
|
7
|
-
2022-06-28T22:12:37+09:00 info: File Storage is Ready.
|
|
8
|
-
2022-06-28T22:12:42+09:00 info: Database connection established
|
|
9
|
-
2022-06-28T22:12:43+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
10
|
-
2022-06-28T22:12:43+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
11
|
-
2022-06-28T22:15:58+09:00 info: File Storage is Ready.
|
|
12
|
-
2022-06-28T22:16:02+09:00 info: Database connection established
|
|
13
|
-
2022-06-28T22:16:03+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
14
|
-
2022-06-28T22:16:03+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
15
|
-
2022-06-28T22:19:02+09:00 error: stream is not readable
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
2022-06-29T08:38:46+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-06-29T08:38:51+09:00 info: Database connection established
|
|
3
|
-
2022-06-29T08:38:52+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
-
2022-06-29T08:38:52+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
5
|
-
2022-06-29T08:52:31+09:00 info: File Storage is Ready.
|
|
6
|
-
2022-06-29T08:52:36+09:00 info: Database connection established
|
|
7
|
-
2022-06-29T08:52:38+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
8
|
-
2022-06-29T08:52:38+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
9
|
-
2022-06-29T08:58:29+09:00 info: File Storage is Ready.
|
|
10
|
-
2022-06-29T08:58:34+09:00 error: column "version" contains null values
|
|
11
|
-
2022-06-29T08:58:35+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
12
|
-
2022-06-29T08:58:35+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
2022-06-29T09:00:47+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-06-29T09:00:52+09:00 info: Database connection established
|
|
3
|
-
2022-06-29T09:00:53+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
-
2022-06-29T09:00:53+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
5
|
-
2022-06-29T09:19:39+09:00 info: File Storage is Ready.
|
|
6
|
-
2022-06-29T09:19:45+09:00 info: Database connection established
|
|
7
|
-
2022-06-29T09:19:46+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
8
|
-
2022-06-29T09:19:46+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
9
|
-
2022-06-29T09:23:46+09:00 info: File Storage is Ready.
|
|
10
|
-
2022-06-29T09:23:51+09:00 info: Database connection established
|
|
11
|
-
2022-06-29T09:23:51+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
12
|
-
2022-06-29T09:23:51+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
2022-06-29T10:11:38+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-06-29T10:11:53+09:00 info: Database connection established
|
|
3
|
-
2022-06-29T10:11:56+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
-
2022-06-29T10:11:56+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
2022-06-29T12:05:23+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-06-29T12:05:28+09:00 info: Database connection established
|
|
3
|
-
2022-06-29T12:05:29+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
-
2022-06-29T12:05:29+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
File without changes
|
|
File without changes
|
|
File without changes
|