@things-factory/reference-app 5.0.0-zeta.8 → 5.0.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/client/bootstrap.js +21 -11
- package/client/components/ocr-viewpart.js +1 -1
- package/client/editors/id-editor.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/config/config.development.js +1 -1
- package/config.development.js +21 -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 +6 -3
- package/dist-server/service/reference/reference-mutation.js.map +1 -1
- package/dist-server/service/reference/reference-query.js +7 -4
- package/dist-server/service/reference/reference-query.js.map +1 -1
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +4 -14
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +19 -69
- package/logs/application-2022-07-22-10.log +26 -0
- package/logs/connections-2022-07-12-00.log +0 -0
- package/logs/connections-2022-07-14-14.log +0 -0
- package/logs/connections-2022-07-14-15.log +0 -0
- package/logs/connections-2022-07-14-16.log +0 -0
- package/logs/connections-2022-07-14-17.log +0 -0
- package/logs/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 +5 -3
- package/server/service/reference/reference-query.ts +8 -7
- package/things-factory.config.js +8 -0
- package/translations/en.json +6 -1
- package/translations/ko.json +7 -1
|
@@ -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'
|
|
@@ -41,7 +42,7 @@ export class ReferenceQuery {
|
|
|
41
42
|
return { data: image, name: filename, format: formatArr[formatArr.length - 1] }
|
|
42
43
|
})
|
|
43
44
|
)
|
|
44
|
-
const res = await extractInfos(files)
|
|
45
|
+
const res: any = await extractInfos(files)
|
|
45
46
|
console.log('interpretImages response', JSON.stringify(res, null, ' '))
|
|
46
47
|
return res.data?.extractInfos
|
|
47
48
|
}
|
|
@@ -49,12 +50,12 @@ export class ReferenceQuery {
|
|
|
49
50
|
return []
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
streamToString
|
|
53
|
-
const chunks = []
|
|
53
|
+
streamToString(stream) {
|
|
54
|
+
const chunks = []
|
|
54
55
|
return new Promise((resolve, reject) => {
|
|
55
|
-
stream.on('data',
|
|
56
|
-
stream.on('error',
|
|
57
|
-
stream.on('end', () => resolve(Buffer.concat(chunks).toString('base64')))
|
|
56
|
+
stream.on('data', chunk => chunks.push(Buffer.from(chunk)))
|
|
57
|
+
stream.on('error', err => reject(err))
|
|
58
|
+
stream.on('end', () => resolve(Buffer.concat(chunks).toString('base64')))
|
|
58
59
|
})
|
|
59
60
|
}
|
|
60
61
|
|
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
|
}
|