@things-factory/reference-app 5.0.0-alpha.41 → 5.0.0-alpha.42
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/route.js +0 -4
- package/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +3 -3
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +3 -23
- package/logs/application-2022-05-13-15.log +4 -0
- package/logs/{connections-2022-04-15-15.log → connections-2022-05-13-15.log} +0 -0
- package/package.json +54 -54
- package/things-factory.config.js +0 -4
- package/client/pages/jasper-report-dev-samples-page.js +0 -112
- package/logs/application-2022-04-28-15.log +0 -4
- package/logs/connections-2022-04-18-12.log +0 -0
- package/logs/connections-2022-04-18-13.log +0 -0
- package/logs/connections-2022-04-26-13.log +0 -0
- package/logs/connections-2022-04-28-15.log +0 -0
package/client/route.js
CHANGED
|
@@ -51,10 +51,6 @@ export default function route(page) {
|
|
|
51
51
|
import('./pages/report-page')
|
|
52
52
|
return page
|
|
53
53
|
|
|
54
|
-
case 'jasper-report-dev-samples':
|
|
55
|
-
import('./pages/jasper-report-dev-samples-page')
|
|
56
|
-
return page
|
|
57
|
-
|
|
58
54
|
case 'ocr-page':
|
|
59
55
|
import('./pages/ocr-page')
|
|
60
56
|
return page
|
package/db.sqlite
CHANGED
|
Binary file
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/application-2022-
|
|
11
|
-
"hash": "
|
|
9
|
+
"date": 1652422147035,
|
|
10
|
+
"name": "logs/application-2022-05-13-15.log",
|
|
11
|
+
"hash": "05fbe85f3480bd0df4d020be2c836583"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"hashType": "md5"
|
|
@@ -6,29 +6,9 @@
|
|
|
6
6
|
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
|
7
7
|
"files": [
|
|
8
8
|
{
|
|
9
|
-
"date":
|
|
10
|
-
"name": "logs/connections-2022-
|
|
11
|
-
"hash": "
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"date": 1650251966326,
|
|
15
|
-
"name": "logs/connections-2022-04-18-12.log",
|
|
16
|
-
"hash": "68917d049545c3ae23ce1285599bbd4a"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"date": 1650254866908,
|
|
20
|
-
"name": "logs/connections-2022-04-18-13.log",
|
|
21
|
-
"hash": "973956f6cf489a42a5b7da99ad360eef"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"date": 1650948897528,
|
|
25
|
-
"name": "logs/connections-2022-04-26-13.log",
|
|
26
|
-
"hash": "bf1fec3c10a40e04dc0d0895492cf993"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"date": 1651128552217,
|
|
30
|
-
"name": "logs/connections-2022-04-28-15.log",
|
|
31
|
-
"hash": "354f8383a19956a0a45bb0f5c0fc849a"
|
|
9
|
+
"date": 1652422150341,
|
|
10
|
+
"name": "logs/connections-2022-05-13-15.log",
|
|
11
|
+
"hash": "9fa64fa86bb5fd2ed84b6c20f9d6413d"
|
|
32
12
|
}
|
|
33
13
|
],
|
|
34
14
|
"hashType": "md5"
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
2022-05-13T15:09:08+09:00 info: File Storage is Ready.
|
|
2
|
+
2022-05-13T15:09:13+09:00 info: Database connection established
|
|
3
|
+
2022-05-13T15:09:14+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
+
2022-05-13T15:09:14+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/reference-app",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.42",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -37,61 +37,61 @@
|
|
|
37
37
|
"docker:run": "docker run -it -p 4000:3000 hatiolab/reference-app:latest"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hatiolab/things-scene": "^3.0.
|
|
40
|
+
"@hatiolab/things-scene": "^3.0.6",
|
|
41
41
|
"@material/mwc-checkbox": "^0.25.3",
|
|
42
|
-
"@operato/data-grist": "1.0.0-beta.
|
|
43
|
-
"@operato/ghost-print": "1.0.0-beta.
|
|
44
|
-
"@operato/graphql": "1.0.0-beta.
|
|
45
|
-
"@operato/help": "1.0.0-beta.
|
|
46
|
-
"@operato/i18n": "1.0.0-beta.
|
|
47
|
-
"@operato/input": "1.0.0-beta.
|
|
48
|
-
"@operato/layout": "1.0.0-beta.
|
|
49
|
-
"@operato/ocr": "1.0.0-beta.
|
|
50
|
-
"@operato/popup": "1.0.0-beta.
|
|
51
|
-
"@operato/pull-to-refresh": "1.0.0-beta.
|
|
52
|
-
"@operato/scene-chartjs": "^1.0.0-alpha.
|
|
53
|
-
"@operato/scene-clock": "^1.0.0-alpha.
|
|
54
|
-
"@operato/scene-form": "^1.0.0-alpha.
|
|
55
|
-
"@operato/scene-gauge": "^1.0.0-alpha.
|
|
56
|
-
"@operato/scene-half-roundrect": "^1.0.0-alpha.
|
|
57
|
-
"@operato/scene-indoor-map": "^1.0.0-alpha.
|
|
58
|
-
"@operato/scene-news-ticker": "^1.0.0-alpha.
|
|
59
|
-
"@operato/scene-progressbar": "^1.0.0-alpha.
|
|
60
|
-
"@operato/scene-random": "^1.0.0-alpha.
|
|
61
|
-
"@operato/scene-switch": "^1.0.0-alpha.
|
|
62
|
-
"@operato/scene-tab": "^1.0.0-alpha.
|
|
63
|
-
"@operato/shell": "1.0.0-beta.
|
|
64
|
-
"@operato/utils": "1.0.0-beta.
|
|
65
|
-
"@things-factory/api": "^5.0.0-alpha.
|
|
66
|
-
"@things-factory/apptool-ui": "^5.0.0-alpha.
|
|
67
|
-
"@things-factory/attachment-base": "^5.0.0-alpha.
|
|
68
|
-
"@things-factory/auth-ui": "^5.0.0-alpha.
|
|
69
|
-
"@things-factory/board-service": "^5.0.0-alpha.
|
|
70
|
-
"@things-factory/board-ui": "^5.0.0-alpha.
|
|
71
|
-
"@things-factory/ccp": "^5.0.0-alpha.
|
|
72
|
-
"@things-factory/context-ui": "^5.0.0-alpha.
|
|
73
|
-
"@things-factory/dashboard": "^5.0.0-alpha.
|
|
74
|
-
"@things-factory/dataset": "^5.0.0-alpha.
|
|
75
|
-
"@things-factory/export-ui": "^5.0.0-alpha.
|
|
76
|
-
"@things-factory/export-ui-excel": "^5.0.0-alpha.
|
|
77
|
-
"@things-factory/grist-ui": "^5.0.0-alpha.
|
|
78
|
-
"@things-factory/help": "^5.0.0-alpha.
|
|
79
|
-
"@things-factory/integration-ui": "^5.0.0-alpha.
|
|
80
|
-
"@things-factory/lite-menu": "^5.0.0-alpha.
|
|
81
|
-
"@things-factory/more-ui": "^5.0.0-alpha.
|
|
82
|
-
"@things-factory/notification": "^5.0.0-alpha.
|
|
83
|
-
"@things-factory/oauth2-client": "^5.0.0-alpha.
|
|
84
|
-
"@things-factory/print-ui": "^5.0.0-alpha.
|
|
85
|
-
"@things-factory/qc": "^5.0.0-alpha.
|
|
86
|
-
"@things-factory/resource-ui": "^5.0.0-alpha.
|
|
87
|
-
"@things-factory/setting-base": "^5.0.0-alpha.
|
|
88
|
-
"@things-factory/setting-ui": "^5.0.0-alpha.
|
|
89
|
-
"@things-factory/shell": "^5.0.0-alpha.
|
|
90
|
-
"@things-factory/system-ui": "^5.0.0-alpha.
|
|
91
|
-
"@things-factory/work-shift": "^5.0.0-alpha.
|
|
42
|
+
"@operato/data-grist": "1.0.0-beta.12",
|
|
43
|
+
"@operato/ghost-print": "1.0.0-beta.12",
|
|
44
|
+
"@operato/graphql": "1.0.0-beta.12",
|
|
45
|
+
"@operato/help": "1.0.0-beta.12",
|
|
46
|
+
"@operato/i18n": "1.0.0-beta.12",
|
|
47
|
+
"@operato/input": "1.0.0-beta.12",
|
|
48
|
+
"@operato/layout": "1.0.0-beta.12",
|
|
49
|
+
"@operato/ocr": "1.0.0-beta.12",
|
|
50
|
+
"@operato/popup": "1.0.0-beta.12",
|
|
51
|
+
"@operato/pull-to-refresh": "1.0.0-beta.12",
|
|
52
|
+
"@operato/scene-chartjs": "^1.0.0-alpha.15",
|
|
53
|
+
"@operato/scene-clock": "^1.0.0-alpha.15",
|
|
54
|
+
"@operato/scene-form": "^1.0.0-alpha.15",
|
|
55
|
+
"@operato/scene-gauge": "^1.0.0-alpha.15",
|
|
56
|
+
"@operato/scene-half-roundrect": "^1.0.0-alpha.15",
|
|
57
|
+
"@operato/scene-indoor-map": "^1.0.0-alpha.15",
|
|
58
|
+
"@operato/scene-news-ticker": "^1.0.0-alpha.15",
|
|
59
|
+
"@operato/scene-progressbar": "^1.0.0-alpha.15",
|
|
60
|
+
"@operato/scene-random": "^1.0.0-alpha.15",
|
|
61
|
+
"@operato/scene-switch": "^1.0.0-alpha.15",
|
|
62
|
+
"@operato/scene-tab": "^1.0.0-alpha.15",
|
|
63
|
+
"@operato/shell": "1.0.0-beta.12",
|
|
64
|
+
"@operato/utils": "1.0.0-beta.12",
|
|
65
|
+
"@things-factory/api": "^5.0.0-alpha.42",
|
|
66
|
+
"@things-factory/apptool-ui": "^5.0.0-alpha.42",
|
|
67
|
+
"@things-factory/attachment-base": "^5.0.0-alpha.42",
|
|
68
|
+
"@things-factory/auth-ui": "^5.0.0-alpha.42",
|
|
69
|
+
"@things-factory/board-service": "^5.0.0-alpha.42",
|
|
70
|
+
"@things-factory/board-ui": "^5.0.0-alpha.42",
|
|
71
|
+
"@things-factory/ccp": "^5.0.0-alpha.42",
|
|
72
|
+
"@things-factory/context-ui": "^5.0.0-alpha.42",
|
|
73
|
+
"@things-factory/dashboard": "^5.0.0-alpha.42",
|
|
74
|
+
"@things-factory/dataset": "^5.0.0-alpha.42",
|
|
75
|
+
"@things-factory/export-ui": "^5.0.0-alpha.42",
|
|
76
|
+
"@things-factory/export-ui-excel": "^5.0.0-alpha.42",
|
|
77
|
+
"@things-factory/grist-ui": "^5.0.0-alpha.42",
|
|
78
|
+
"@things-factory/help": "^5.0.0-alpha.42",
|
|
79
|
+
"@things-factory/integration-ui": "^5.0.0-alpha.42",
|
|
80
|
+
"@things-factory/lite-menu": "^5.0.0-alpha.42",
|
|
81
|
+
"@things-factory/more-ui": "^5.0.0-alpha.42",
|
|
82
|
+
"@things-factory/notification": "^5.0.0-alpha.42",
|
|
83
|
+
"@things-factory/oauth2-client": "^5.0.0-alpha.42",
|
|
84
|
+
"@things-factory/print-ui": "^5.0.0-alpha.42",
|
|
85
|
+
"@things-factory/qc": "^5.0.0-alpha.42",
|
|
86
|
+
"@things-factory/resource-ui": "^5.0.0-alpha.42",
|
|
87
|
+
"@things-factory/setting-base": "^5.0.0-alpha.42",
|
|
88
|
+
"@things-factory/setting-ui": "^5.0.0-alpha.42",
|
|
89
|
+
"@things-factory/shell": "^5.0.0-alpha.42",
|
|
90
|
+
"@things-factory/system-ui": "^5.0.0-alpha.42",
|
|
91
|
+
"@things-factory/work-shift": "^5.0.0-alpha.42"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@things-factory/builder": "^5.0.0-alpha.
|
|
94
|
+
"@things-factory/builder": "^5.0.0-alpha.42"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "ce348ff1299a244b261a9285290597b9be6c8e80"
|
|
97
97
|
}
|
package/things-factory.config.js
CHANGED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { css, html } from 'lit'
|
|
2
|
-
import '@operato/data-grist'
|
|
3
|
-
import '@things-factory/form-ui'
|
|
4
|
-
|
|
5
|
-
import { i18next, localize } from '@operato/i18n'
|
|
6
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
|
7
|
-
import { PageView } from '@things-factory/shell'
|
|
8
|
-
|
|
9
|
-
class JasperReportDevSamplesPage extends localize(i18next)(PageView) {
|
|
10
|
-
static get properties() {
|
|
11
|
-
return {
|
|
12
|
-
_grnNo: String,
|
|
13
|
-
_status: String,
|
|
14
|
-
searchFields: Array,
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
static get styles() {
|
|
19
|
-
return [
|
|
20
|
-
ScrollbarStyles,
|
|
21
|
-
css`
|
|
22
|
-
:host {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
#container {
|
|
29
|
-
flex: 1;
|
|
30
|
-
padding: 0;
|
|
31
|
-
margin: 0;
|
|
32
|
-
border: 0;
|
|
33
|
-
}
|
|
34
|
-
`
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
get context() {
|
|
39
|
-
this.searchFields = [
|
|
40
|
-
{
|
|
41
|
-
label: i18next.t('field.from'),
|
|
42
|
-
name: 'fromDate',
|
|
43
|
-
type: 'date',
|
|
44
|
-
props: {
|
|
45
|
-
searchOper: 'eq'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: i18next.t('field.to'),
|
|
50
|
-
name: 'toDate',
|
|
51
|
-
type: 'date',
|
|
52
|
-
props: {
|
|
53
|
-
searchOper: 'eq'
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
var actions = [
|
|
58
|
-
{
|
|
59
|
-
title: i18next.t('button.print'),
|
|
60
|
-
action: () => {
|
|
61
|
-
this.renderRoot.querySelector('iframe').contentWindow.print()
|
|
62
|
-
},
|
|
63
|
-
...CommonButtonStyles.print
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
return {
|
|
67
|
-
title: 'jasper-report',
|
|
68
|
-
actions
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
render() {
|
|
72
|
-
return html`
|
|
73
|
-
<search-form
|
|
74
|
-
.fields=${this.searchFields}
|
|
75
|
-
@submit=${() => {
|
|
76
|
-
this._reportTemplate()
|
|
77
|
-
}}
|
|
78
|
-
></search-form>
|
|
79
|
-
<iframe id="container"></iframe>
|
|
80
|
-
`
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
get searchForm() {
|
|
84
|
-
return this.renderRoot.querySelector('search-form')
|
|
85
|
-
}
|
|
86
|
-
async pageUpdated(changes, lifecycle) {
|
|
87
|
-
if (this.active) {
|
|
88
|
-
this.updateContext()
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
async _reportTemplate() {
|
|
93
|
-
const params = await this.searchForm.getQueryFilters()
|
|
94
|
-
|
|
95
|
-
/** urlencoded params including test values */
|
|
96
|
-
const urlParams = {
|
|
97
|
-
table: 'samples',
|
|
98
|
-
dataSetId: this.lifecycle.resourceId,
|
|
99
|
-
fromWorkDate: params[0].value,
|
|
100
|
-
toWorkDate: params[1].value,
|
|
101
|
-
workShift: '2교대'
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const encodedUrlParams = Object.keys(urlParams).map(key =>
|
|
105
|
-
`${key}=${encodeURIComponent(urlParams[key])}`
|
|
106
|
-
).join('&')
|
|
107
|
-
|
|
108
|
-
this.shadowRoot.querySelector('#container').src = `/data-report/jasper?${encodedUrlParams}`
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
window.customElements.define('jasper-report-dev-samples-page', JasperReportDevSamplesPage)
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
2022-04-28T15:49:10+09:00 info: File Storage is Ready.
|
|
2
|
-
2022-04-28T15:49:15+09:00 info: Database connection established
|
|
3
|
-
2022-04-28T15:49:16+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
4
|
-
2022-04-28T15:49:16+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/subscriptions
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|