@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 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": 1651128548739,
10
- "name": "logs/application-2022-04-28-15.log",
11
- "hash": "2274fb9e8783a7d277a7c15f8dc504a2"
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": 1650004853422,
10
- "name": "logs/connections-2022-04-15-15.log",
11
- "hash": "f90e456733d74d179f65771fdb420b7f"
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "5.0.0-alpha.41",
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.5",
40
+ "@hatiolab/things-scene": "^3.0.6",
41
41
  "@material/mwc-checkbox": "^0.25.3",
42
- "@operato/data-grist": "1.0.0-beta.9",
43
- "@operato/ghost-print": "1.0.0-beta.9",
44
- "@operato/graphql": "1.0.0-beta.9",
45
- "@operato/help": "1.0.0-beta.9",
46
- "@operato/i18n": "1.0.0-beta.9",
47
- "@operato/input": "1.0.0-beta.9",
48
- "@operato/layout": "1.0.0-beta.9",
49
- "@operato/ocr": "1.0.0-beta.9",
50
- "@operato/popup": "1.0.0-beta.9",
51
- "@operato/pull-to-refresh": "1.0.0-beta.9",
52
- "@operato/scene-chartjs": "^1.0.0-alpha.13",
53
- "@operato/scene-clock": "^1.0.0-alpha.13",
54
- "@operato/scene-form": "^1.0.0-alpha.13",
55
- "@operato/scene-gauge": "^1.0.0-alpha.13",
56
- "@operato/scene-half-roundrect": "^1.0.0-alpha.13",
57
- "@operato/scene-indoor-map": "^1.0.0-alpha.13",
58
- "@operato/scene-news-ticker": "^1.0.0-alpha.13",
59
- "@operato/scene-progressbar": "^1.0.0-alpha.13",
60
- "@operato/scene-random": "^1.0.0-alpha.13",
61
- "@operato/scene-switch": "^1.0.0-alpha.13",
62
- "@operato/scene-tab": "^1.0.0-alpha.13",
63
- "@operato/shell": "1.0.0-beta.9",
64
- "@operato/utils": "1.0.0-beta.9",
65
- "@things-factory/api": "^5.0.0-alpha.41",
66
- "@things-factory/apptool-ui": "^5.0.0-alpha.41",
67
- "@things-factory/attachment-base": "^5.0.0-alpha.41",
68
- "@things-factory/auth-ui": "^5.0.0-alpha.41",
69
- "@things-factory/board-service": "^5.0.0-alpha.41",
70
- "@things-factory/board-ui": "^5.0.0-alpha.41",
71
- "@things-factory/ccp": "^5.0.0-alpha.41",
72
- "@things-factory/context-ui": "^5.0.0-alpha.41",
73
- "@things-factory/dashboard": "^5.0.0-alpha.41",
74
- "@things-factory/dataset": "^5.0.0-alpha.41",
75
- "@things-factory/export-ui": "^5.0.0-alpha.41",
76
- "@things-factory/export-ui-excel": "^5.0.0-alpha.41",
77
- "@things-factory/grist-ui": "^5.0.0-alpha.41",
78
- "@things-factory/help": "^5.0.0-alpha.41",
79
- "@things-factory/integration-ui": "^5.0.0-alpha.41",
80
- "@things-factory/lite-menu": "^5.0.0-alpha.41",
81
- "@things-factory/more-ui": "^5.0.0-alpha.41",
82
- "@things-factory/notification": "^5.0.0-alpha.41",
83
- "@things-factory/oauth2-client": "^5.0.0-alpha.41",
84
- "@things-factory/print-ui": "^5.0.0-alpha.41",
85
- "@things-factory/qc": "^5.0.0-alpha.41",
86
- "@things-factory/resource-ui": "^5.0.0-alpha.41",
87
- "@things-factory/setting-base": "^5.0.0-alpha.41",
88
- "@things-factory/setting-ui": "^5.0.0-alpha.41",
89
- "@things-factory/shell": "^5.0.0-alpha.41",
90
- "@things-factory/system-ui": "^5.0.0-alpha.41",
91
- "@things-factory/work-shift": "^5.0.0-alpha.41"
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.41"
94
+ "@things-factory/builder": "^5.0.0-alpha.42"
95
95
  },
96
- "gitHead": "f9ba0b3b997862b3d01c5b25338ce221d71f4fd7"
96
+ "gitHead": "ce348ff1299a244b261a9285290597b9be6c8e80"
97
97
  }
@@ -68,10 +68,6 @@ export default {
68
68
  tagname: 'ghost-print-page',
69
69
  page: 'ghost-print-page'
70
70
  },
71
- {
72
- tagname: 'jasper-report-dev-samples-page',
73
- page: 'jasper-report-dev-samples'
74
- }
75
71
  ],
76
72
  bootstrap
77
73
  }
@@ -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