@operato/board 8.0.0-beta.0 → 8.0.0-beta.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/CHANGELOG.md +18 -0
- package/package.json +14 -14
- package/.storybook/main.js +0 -3
- package/.storybook/server.mjs +0 -8
- package/db.sqlite +0 -0
- package/demo/index-modeller.html +0 -112
- package/demo/index-player.html +0 -112
- package/demo/index-viewer.html +0 -112
- package/demo/index.html +0 -112
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +0 -15
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +0 -15
- package/logs/application-2023-03-12-02.log +0 -14
- package/logs/connections-2023-03-12-02.log +0 -70
- package/src/component/3d.ts +0 -29
- package/src/component/chart-and-gauge.ts +0 -28
- package/src/component/container.ts +0 -63
- package/src/component/data-source.ts +0 -30
- package/src/component/etc.ts +0 -88
- package/src/component/form.ts +0 -42
- package/src/component/index.ts +0 -12
- package/src/component/iot.ts +0 -52
- package/src/component/line.ts +0 -156
- package/src/component/register-default-groups.ts +0 -28
- package/src/component/shape.ts +0 -156
- package/src/component/table.ts +0 -28
- package/src/component/text-and-media.ts +0 -125
- package/src/component/warehouse.ts +0 -26
- package/src/data-storage/data-storage.ts +0 -76
- package/src/graphql/board.ts +0 -144
- package/src/graphql/data-subscription.ts +0 -30
- package/src/graphql/favorite-board.ts +0 -25
- package/src/graphql/group.ts +0 -138
- package/src/graphql/index.ts +0 -4
- package/src/graphql/play-group.ts +0 -225
- package/src/graphql/scenario.ts +0 -79
- package/src/index.ts +0 -10
- package/src/modeller/component-toolbar/component-detail.ts +0 -52
- package/src/modeller/component-toolbar/component-menu.ts +0 -196
- package/src/modeller/component-toolbar/component-toolbar.ts +0 -196
- package/src/modeller/component-toolbar/mode-icons.ts +0 -88
- package/src/modeller/edit-toolbar-style.ts +0 -232
- package/src/modeller/edit-toolbar.ts +0 -587
- package/src/modeller/property-sidebar/abstract-property.ts +0 -69
- package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +0 -475
- package/src/modeller/property-sidebar/data-binding/data-binding-value-map.ts +0 -19
- package/src/modeller/property-sidebar/data-binding/data-binding-value-range.ts +0 -19
- package/src/modeller/property-sidebar/data-binding/data-binding.ts +0 -480
- package/src/modeller/property-sidebar/effects/effects-shared-style.ts +0 -62
- package/src/modeller/property-sidebar/effects/effects.ts +0 -69
- package/src/modeller/property-sidebar/effects/property-animation.ts +0 -146
- package/src/modeller/property-sidebar/effects/property-animations.ts +0 -93
- package/src/modeller/property-sidebar/effects/property-event-hover.ts +0 -200
- package/src/modeller/property-sidebar/effects/property-event-tap.ts +0 -251
- package/src/modeller/property-sidebar/effects/property-event.ts +0 -73
- package/src/modeller/property-sidebar/effects/property-shadow.ts +0 -114
- package/src/modeller/property-sidebar/effects/value-converter.ts +0 -23
- package/src/modeller/property-sidebar/inspector/inspector.ts +0 -404
- package/src/modeller/property-sidebar/property-shared-style.ts +0 -136
- package/src/modeller/property-sidebar/property-sidebar.ts +0 -326
- package/src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts +0 -94
- package/src/modeller/property-sidebar/shapes/shapes.ts +0 -432
- package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +0 -152
- package/src/modeller/property-sidebar/specifics/specifics.ts +0 -81
- package/src/modeller/property-sidebar/styles/styles.ts +0 -577
- package/src/modeller/scene-viewer/confidential-overlay.ts +0 -18
- package/src/modeller/scene-viewer/ox-scene-handler.ts +0 -40
- package/src/modeller/scene-viewer/ox-scene-layer.ts +0 -42
- package/src/modeller/scene-viewer/ox-scene-property.ts +0 -10
- package/src/modeller/scene-viewer/ox-scene-viewer.ts +0 -263
- package/src/ox-board-component-info.ts +0 -236
- package/src/ox-board-list.ts +0 -401
- package/src/ox-board-modeller.ts +0 -408
- package/src/ox-board-player-style.ts +0 -200
- package/src/ox-board-player.ts +0 -333
- package/src/ox-board-template-list.ts +0 -267
- package/src/ox-board-template-viewer.ts +0 -198
- package/src/ox-board-viewer.ts +0 -727
- package/src/ox-editor-board-selector.ts +0 -91
- package/src/ox-property-editor-board-selector.ts +0 -23
- package/src/player/ox-board-player-carousel.ts +0 -197
- package/src/player/ox-board-player-grid.ts +0 -78
- package/src/player/ox-board-wrapper.ts +0 -152
- package/src/selector/board-creation-popup.ts +0 -151
- package/src/selector/board-thumbnail-card.ts +0 -175
- package/src/selector/ox-board-creation-card.ts +0 -98
- package/src/selector/ox-board-selector.ts +0 -382
- package/src/types.ts +0 -63
- package/stories/property-data-binding.stories.ts +0 -34
- package/tsconfig.json +0 -24
- package/web-dev-server.config.mjs +0 -30
- package/web-test-runner.config.mjs +0 -29
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,24 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [8.0.0-beta.2](https://github.com/hatiolab/operato/compare/v8.0.0-beta.1...v8.0.0-beta.2) (2025-01-08)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* typo .npmignore ([d9c0c8c](https://github.com/hatiolab/operato/commit/d9c0c8c79abc688c3c2cfb6c37fcb689483a5977))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## [8.0.0-beta.1](https://github.com/hatiolab/operato/compare/v8.0.0-beta.0...v8.0.0-beta.1) (2025-01-08)
|
16
|
+
|
17
|
+
|
18
|
+
### :bug: Bug Fix
|
19
|
+
|
20
|
+
* missing .npmignore ([be05985](https://github.com/hatiolab/operato/commit/be05985abfae4af53501f718dd52932099f7fbcb))
|
21
|
+
|
22
|
+
|
23
|
+
|
6
24
|
## [8.0.0-beta.0](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.56...v8.0.0-beta.0) (2025-01-07)
|
7
25
|
|
8
26
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@operato/board",
|
3
|
-
"version": "8.0.0-beta.
|
3
|
+
"version": "8.0.0-beta.2",
|
4
4
|
"description": "Webcomponent for board following open-wc recommendations",
|
5
5
|
"author": "heartyoh",
|
6
6
|
"main": "dist/src/index.js",
|
@@ -99,18 +99,18 @@
|
|
99
99
|
"dependencies": {
|
100
100
|
"@material/web": "^2.0.0",
|
101
101
|
"@open-wc/scoped-elements": "^2.1.3",
|
102
|
-
"@operato/app": "^8.0.0-beta.
|
103
|
-
"@operato/data-grist": "^8.0.0-beta.
|
104
|
-
"@operato/font": "^8.0.0-beta.
|
105
|
-
"@operato/graphql": "^8.0.0-beta.
|
106
|
-
"@operato/i18n": "^8.0.0-beta.
|
107
|
-
"@operato/input": "^8.0.0-beta.
|
108
|
-
"@operato/layout": "^8.0.0-beta.
|
109
|
-
"@operato/markdown": "^8.0.0-beta.
|
110
|
-
"@operato/popup": "^8.0.0-beta.
|
111
|
-
"@operato/property-editor": "^8.0.0-beta.
|
112
|
-
"@operato/styles": "^8.0.0-beta.
|
113
|
-
"@operato/utils": "^8.0.0-beta.
|
102
|
+
"@operato/app": "^8.0.0-beta.2",
|
103
|
+
"@operato/data-grist": "^8.0.0-beta.2",
|
104
|
+
"@operato/font": "^8.0.0-beta.2",
|
105
|
+
"@operato/graphql": "^8.0.0-beta.2",
|
106
|
+
"@operato/i18n": "^8.0.0-beta.2",
|
107
|
+
"@operato/input": "^8.0.0-beta.2",
|
108
|
+
"@operato/layout": "^8.0.0-beta.2",
|
109
|
+
"@operato/markdown": "^8.0.0-beta.2",
|
110
|
+
"@operato/popup": "^8.0.0-beta.2",
|
111
|
+
"@operato/property-editor": "^8.0.0-beta.2",
|
112
|
+
"@operato/styles": "^8.0.0-beta.2",
|
113
|
+
"@operato/utils": "^8.0.0-beta.2",
|
114
114
|
"@polymer/paper-dropdown-menu": "^3.2.0",
|
115
115
|
"@types/file-saver": "^2.0.4",
|
116
116
|
"@types/sortablejs": "^1.10.7",
|
@@ -159,5 +159,5 @@
|
|
159
159
|
"prettier --write"
|
160
160
|
]
|
161
161
|
},
|
162
|
-
"gitHead": "
|
162
|
+
"gitHead": "ee1b5124995accb99272d3b5854f3df1d8746dda"
|
163
163
|
}
|
package/.storybook/main.js
DELETED
package/.storybook/server.mjs
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { storybookPlugin } from '@web/dev-server-storybook'
|
2
|
-
import baseConfig from '../web-dev-server.config.mjs'
|
3
|
-
|
4
|
-
export default /** @type {import('@web/dev-server').DevServerConfig} */ ({
|
5
|
-
...baseConfig,
|
6
|
-
open: '/',
|
7
|
-
plugins: [storybookPlugin({ type: 'web-components' }), ...baseConfig.plugins]
|
8
|
-
})
|
package/db.sqlite
DELETED
Binary file
|
package/demo/index-modeller.html
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en-GB">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
|
12
|
-
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
13
|
-
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
14
|
-
line-height: 1.5;
|
15
|
-
-webkit-font-smoothing: antialiased;
|
16
|
-
}
|
17
|
-
|
18
|
-
ox-board-modeller {
|
19
|
-
width: 100vw;
|
20
|
-
height: 100dvh;
|
21
|
-
}
|
22
|
-
</style>
|
23
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
24
|
-
<link
|
25
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
26
|
-
rel="stylesheet"
|
27
|
-
/>
|
28
|
-
<link
|
29
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
30
|
-
rel="stylesheet"
|
31
|
-
/>
|
32
|
-
<link
|
33
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
34
|
-
rel="stylesheet"
|
35
|
-
/>
|
36
|
-
</head>
|
37
|
-
<body>
|
38
|
-
<div id="demo"></div>
|
39
|
-
<script type="module">
|
40
|
-
import { html, render } from 'lit'
|
41
|
-
import '../dist/src/ox-board-modeller.js'
|
42
|
-
import { ReferenceMap, create, error } from '@hatiolab/things-scene'
|
43
|
-
|
44
|
-
const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
|
45
|
-
const boards = colors.map((color, idx) => {
|
46
|
-
var to = colors[(idx + 1) % colors.length]
|
47
|
-
return {
|
48
|
-
id: color,
|
49
|
-
model: {
|
50
|
-
width: 400,
|
51
|
-
height: 300,
|
52
|
-
fillStyle: color,
|
53
|
-
components: [
|
54
|
-
{
|
55
|
-
type: 'text',
|
56
|
-
left: 100,
|
57
|
-
top: 100,
|
58
|
-
width: 200,
|
59
|
-
height: 30,
|
60
|
-
text: `Click to move to ${to}`,
|
61
|
-
event: {
|
62
|
-
tap: {
|
63
|
-
action: 'goto',
|
64
|
-
target: to
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
71
|
-
})
|
72
|
-
|
73
|
-
var provider = new ReferenceMap(
|
74
|
-
async (boardId, resolve, reject) => {
|
75
|
-
try {
|
76
|
-
const board = boards.find(board => {
|
77
|
-
return board.id === boardId
|
78
|
-
})
|
79
|
-
if (!board) {
|
80
|
-
throw `no board named as ${boardId}`
|
81
|
-
}
|
82
|
-
|
83
|
-
var scene
|
84
|
-
|
85
|
-
try {
|
86
|
-
scene = await provider.get(boardId)
|
87
|
-
console.warn('Board fetched more than twice.', boardId)
|
88
|
-
} catch (e) {
|
89
|
-
scene = create({
|
90
|
-
model: JSON.parse(JSON.stringify(board.model)),
|
91
|
-
mode: 0,
|
92
|
-
refProvider: provider
|
93
|
-
})
|
94
|
-
}
|
95
|
-
resolve(scene, board)
|
96
|
-
} catch (e) {
|
97
|
-
error(e)
|
98
|
-
reject(e)
|
99
|
-
}
|
100
|
-
},
|
101
|
-
async (id, ref) => {
|
102
|
-
ref.dispose()
|
103
|
-
}
|
104
|
-
)
|
105
|
-
|
106
|
-
render(
|
107
|
-
html` <ox-board-modeller .board=${boards[0]} .provider=${provider}> </ox-board-modeller> `,
|
108
|
-
document.querySelector('#demo')
|
109
|
-
)
|
110
|
-
</script>
|
111
|
-
</body>
|
112
|
-
</html>
|
package/demo/index-player.html
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en-GB">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
|
12
|
-
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
13
|
-
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
14
|
-
line-height: 1.5;
|
15
|
-
-webkit-font-smoothing: antialiased;
|
16
|
-
}
|
17
|
-
|
18
|
-
ox-board-player {
|
19
|
-
width: 100vw;
|
20
|
-
height: 100dvh;
|
21
|
-
}
|
22
|
-
</style>
|
23
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
24
|
-
<link
|
25
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
26
|
-
rel="stylesheet"
|
27
|
-
/>
|
28
|
-
<link
|
29
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
30
|
-
rel="stylesheet"
|
31
|
-
/>
|
32
|
-
<link
|
33
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
34
|
-
rel="stylesheet"
|
35
|
-
/>
|
36
|
-
</head>
|
37
|
-
<body>
|
38
|
-
<div id="demo"></div>
|
39
|
-
<script type="module">
|
40
|
-
import { html, render } from 'lit'
|
41
|
-
import '../dist/src/index.js'
|
42
|
-
import { ReferenceMap, create, error } from '@hatiolab/things-scene'
|
43
|
-
|
44
|
-
const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
|
45
|
-
const boards = colors.map((color, idx) => {
|
46
|
-
var to = colors[(idx + 1) % colors.length]
|
47
|
-
return {
|
48
|
-
id: color,
|
49
|
-
model: {
|
50
|
-
width: 400,
|
51
|
-
height: 300,
|
52
|
-
fillStyle: color,
|
53
|
-
components: [
|
54
|
-
{
|
55
|
-
type: 'text',
|
56
|
-
left: 100,
|
57
|
-
top: 100,
|
58
|
-
width: 200,
|
59
|
-
height: 30,
|
60
|
-
text: `Click to move to ${to}`,
|
61
|
-
event: {
|
62
|
-
tap: {
|
63
|
-
action: 'goto',
|
64
|
-
target: to
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
71
|
-
})
|
72
|
-
|
73
|
-
var provider = new ReferenceMap(
|
74
|
-
async (boardId, resolve, reject) => {
|
75
|
-
try {
|
76
|
-
const board = boards.find(board => {
|
77
|
-
return board.id === boardId
|
78
|
-
})
|
79
|
-
if (!board) {
|
80
|
-
throw `no board named as ${boardId}`
|
81
|
-
}
|
82
|
-
|
83
|
-
var scene
|
84
|
-
|
85
|
-
try {
|
86
|
-
scene = await provider.get(boardId)
|
87
|
-
console.warn('Board fetched more than twice.', boardId)
|
88
|
-
} catch (e) {
|
89
|
-
scene = create({
|
90
|
-
model: JSON.parse(JSON.stringify(board.model)),
|
91
|
-
mode: 0,
|
92
|
-
refProvider: provider
|
93
|
-
})
|
94
|
-
}
|
95
|
-
resolve(scene, board)
|
96
|
-
} catch (e) {
|
97
|
-
error(e)
|
98
|
-
reject(e)
|
99
|
-
}
|
100
|
-
},
|
101
|
-
async (id, ref) => {
|
102
|
-
ref.dispose()
|
103
|
-
}
|
104
|
-
)
|
105
|
-
|
106
|
-
render(
|
107
|
-
html` <ox-board-player .boards=${boards} .provider=${provider}></ox-board-player> `,
|
108
|
-
document.querySelector('#demo')
|
109
|
-
)
|
110
|
-
</script>
|
111
|
-
</body>
|
112
|
-
</html>
|
package/demo/index-viewer.html
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en-GB">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
|
12
|
-
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
13
|
-
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
14
|
-
line-height: 1.5;
|
15
|
-
-webkit-font-smoothing: antialiased;
|
16
|
-
}
|
17
|
-
|
18
|
-
ox-board-viewer {
|
19
|
-
width: 100vw;
|
20
|
-
height: 100dvh;
|
21
|
-
}
|
22
|
-
</style>
|
23
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
24
|
-
<link
|
25
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
26
|
-
rel="stylesheet"
|
27
|
-
/>
|
28
|
-
<link
|
29
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
30
|
-
rel="stylesheet"
|
31
|
-
/>
|
32
|
-
<link
|
33
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
34
|
-
rel="stylesheet"
|
35
|
-
/>
|
36
|
-
</head>
|
37
|
-
<body>
|
38
|
-
<div id="demo"></div>
|
39
|
-
<script type="module">
|
40
|
-
import { html, render } from 'lit'
|
41
|
-
import '../dist/src/ox-board-viewer.js'
|
42
|
-
import { ReferenceMap, create, error } from '@hatiolab/things-scene'
|
43
|
-
|
44
|
-
const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
|
45
|
-
const boards = colors.map((color, idx) => {
|
46
|
-
var to = colors[(idx + 1) % colors.length]
|
47
|
-
return {
|
48
|
-
id: color,
|
49
|
-
model: {
|
50
|
-
width: 400,
|
51
|
-
height: 300,
|
52
|
-
fillStyle: color,
|
53
|
-
components: [
|
54
|
-
{
|
55
|
-
type: 'text',
|
56
|
-
left: 100,
|
57
|
-
top: 100,
|
58
|
-
width: 200,
|
59
|
-
height: 30,
|
60
|
-
text: `Click to move to ${to}`,
|
61
|
-
event: {
|
62
|
-
tap: {
|
63
|
-
action: 'goto',
|
64
|
-
target: to
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
71
|
-
})
|
72
|
-
|
73
|
-
var provider = new ReferenceMap(
|
74
|
-
async (boardId, resolve, reject) => {
|
75
|
-
try {
|
76
|
-
const board = boards.find(board => {
|
77
|
-
return board.id === boardId
|
78
|
-
})
|
79
|
-
if (!board) {
|
80
|
-
throw `no board named as ${boardId}`
|
81
|
-
}
|
82
|
-
|
83
|
-
var scene
|
84
|
-
|
85
|
-
try {
|
86
|
-
scene = await provider.get(boardId)
|
87
|
-
console.warn('Board fetched more than twice.', boardId)
|
88
|
-
} catch (e) {
|
89
|
-
scene = create({
|
90
|
-
model: JSON.parse(JSON.stringify(board.model)),
|
91
|
-
mode: 0,
|
92
|
-
refProvider: provider
|
93
|
-
})
|
94
|
-
}
|
95
|
-
resolve(scene, board)
|
96
|
-
} catch (e) {
|
97
|
-
error(e)
|
98
|
-
reject(e)
|
99
|
-
}
|
100
|
-
},
|
101
|
-
async (id, ref) => {
|
102
|
-
ref.dispose()
|
103
|
-
}
|
104
|
-
)
|
105
|
-
|
106
|
-
render(
|
107
|
-
html` <ox-board-viewer .board=${boards[0]} .provider=${provider} history></ox-board-viewer> `,
|
108
|
-
document.querySelector('#demo')
|
109
|
-
)
|
110
|
-
</script>
|
111
|
-
</body>
|
112
|
-
</html>
|
package/demo/index.html
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en-GB">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
6
|
-
<style>
|
7
|
-
body {
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
|
12
|
-
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
13
|
-
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
14
|
-
line-height: 1.5;
|
15
|
-
-webkit-font-smoothing: antialiased;
|
16
|
-
}
|
17
|
-
|
18
|
-
ox-board-viewer {
|
19
|
-
width: 100vw;
|
20
|
-
height: 100dvh;
|
21
|
-
}
|
22
|
-
</style>
|
23
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
24
|
-
<link
|
25
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
26
|
-
rel="stylesheet"
|
27
|
-
/>
|
28
|
-
<link
|
29
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
30
|
-
rel="stylesheet"
|
31
|
-
/>
|
32
|
-
<link
|
33
|
-
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
34
|
-
rel="stylesheet"
|
35
|
-
/>
|
36
|
-
</head>
|
37
|
-
<body>
|
38
|
-
<div id="demo"></div>
|
39
|
-
<script type="module">
|
40
|
-
import { html, render } from 'lit'
|
41
|
-
import '../dist/src/ox-board-viewer.js'
|
42
|
-
import { ReferenceMap, create, error } from '@hatiolab/things-scene'
|
43
|
-
|
44
|
-
const colors = ['red', 'blue', 'orange', 'yellow', 'magenta', 'violet', 'navy', 'green', 'cyan', 'lime']
|
45
|
-
const boards = colors.map((color, idx) => {
|
46
|
-
var to = colors[(idx + 1) % colors.length]
|
47
|
-
return {
|
48
|
-
id: color,
|
49
|
-
model: {
|
50
|
-
width: 400,
|
51
|
-
height: 300,
|
52
|
-
fillStyle: color,
|
53
|
-
components: [
|
54
|
-
{
|
55
|
-
type: 'text',
|
56
|
-
left: 100,
|
57
|
-
top: 100,
|
58
|
-
width: 200,
|
59
|
-
height: 30,
|
60
|
-
text: `Click to move to ${to}`,
|
61
|
-
event: {
|
62
|
-
tap: {
|
63
|
-
action: 'goto',
|
64
|
-
target: to
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
]
|
69
|
-
}
|
70
|
-
}
|
71
|
-
})
|
72
|
-
|
73
|
-
var provider = new ReferenceMap(
|
74
|
-
async (boardId, resolve, reject) => {
|
75
|
-
try {
|
76
|
-
const board = boards.find(board => {
|
77
|
-
return board.id === boardId
|
78
|
-
})
|
79
|
-
if (!board) {
|
80
|
-
throw `no board named as ${boardId}`
|
81
|
-
}
|
82
|
-
|
83
|
-
var scene
|
84
|
-
|
85
|
-
try {
|
86
|
-
scene = await provider.get(boardId)
|
87
|
-
console.warn('Board fetched more than twice.', boardId)
|
88
|
-
} catch (e) {
|
89
|
-
scene = create({
|
90
|
-
model: JSON.parse(JSON.stringify(board.model)),
|
91
|
-
mode: 0,
|
92
|
-
refProvider: provider
|
93
|
-
})
|
94
|
-
}
|
95
|
-
resolve(scene, board)
|
96
|
-
} catch (e) {
|
97
|
-
error(e)
|
98
|
-
reject(e)
|
99
|
-
}
|
100
|
-
},
|
101
|
-
async (id, ref) => {
|
102
|
-
ref.dispose()
|
103
|
-
}
|
104
|
-
)
|
105
|
-
|
106
|
-
render(
|
107
|
-
html` <ox-board-viewer .board=${boards[0]} .provider=${provider} history></ox-board-viewer> `,
|
108
|
-
document.querySelector('#demo')
|
109
|
-
)
|
110
|
-
</script>
|
111
|
-
</body>
|
112
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"keep": {
|
3
|
-
"days": true,
|
4
|
-
"amount": 2
|
5
|
-
},
|
6
|
-
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
7
|
-
"files": [
|
8
|
-
{
|
9
|
-
"date": 1678554687533,
|
10
|
-
"name": "logs/application-2023-03-12-02.log",
|
11
|
-
"hash": "18a5f510d18baef83ee3c5cc0c77fc539d9d5c32761143d3b32bb3cf840cf98d"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"hashType": "sha256"
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"keep": {
|
3
|
-
"days": true,
|
4
|
-
"amount": 14
|
5
|
-
},
|
6
|
-
"auditLog": "logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json",
|
7
|
-
"files": [
|
8
|
-
{
|
9
|
-
"date": 1678554689069,
|
10
|
-
"name": "logs/connections-2023-03-12-02.log",
|
11
|
-
"hash": "54653b8db093fea29f7281ec55e91f143d0a4c66fc835d2c238e355b9ba81756"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"hashType": "sha256"
|
15
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
2023-03-12T02:11:28+09:00 info: File Storage is Ready.
|
2
|
-
2023-03-12T02:11:29+09:00 error: oracledb module loading failed
|
3
|
-
2023-03-12T02:11:30+09:00 info: Default DataSource established
|
4
|
-
2023-03-12T02:11:30+09:00 info: Transaction DataSource established
|
5
|
-
2023-03-12T02:11:30+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
6
|
-
2023-03-12T02:11:30+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
7
|
-
2023-03-12T02:13:18+09:00 info: File Storage is Ready.
|
8
|
-
2023-03-12T02:13:18+09:00 error: oracledb module loading failed
|
9
|
-
2023-03-12T02:13:28+09:00 info: File Storage is Ready.
|
10
|
-
2023-03-12T02:13:28+09:00 error: oracledb module loading failed
|
11
|
-
2023-03-12T02:13:29+09:00 info: Default DataSource established
|
12
|
-
2023-03-12T02:13:29+09:00 info: Transaction DataSource established
|
13
|
-
2023-03-12T02:13:29+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
14
|
-
2023-03-12T02:13:29+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
@@ -1,70 +0,0 @@
|
|
1
|
-
2023-03-12T02:11:30+09:00 info: Initializing ConnectionManager...
|
2
|
-
2023-03-12T02:11:30+09:00 info: Connector 'echo-back-server' started to ready
|
3
|
-
2023-03-12T02:11:30+09:00 info: Connector 'echo-back' started to ready
|
4
|
-
2023-03-12T02:11:30+09:00 info: Connector 'http-connector' started to ready
|
5
|
-
2023-03-12T02:11:30+09:00 info: Connector 'graphql-connector' started to ready
|
6
|
-
2023-03-12T02:11:30+09:00 info: Connector 'sqlite-connector' started to ready
|
7
|
-
2023-03-12T02:11:30+09:00 info: Connector 'postgresql-connector' started to ready
|
8
|
-
2023-03-12T02:11:30+09:00 info: Connector 'mqtt-connector' started to ready
|
9
|
-
2023-03-12T02:11:30+09:00 info: Connector 'mssql-connector' started to ready
|
10
|
-
2023-03-12T02:11:30+09:00 info: Connector 'oracle-connector' started to ready
|
11
|
-
2023-03-12T02:11:30+09:00 info: Connector 'mysql-connector' started to ready
|
12
|
-
2023-03-12T02:11:30+09:00 info: Connector 'socket-server' started to ready
|
13
|
-
2023-03-12T02:11:30+09:00 info: echo-back-servers are ready
|
14
|
-
2023-03-12T02:11:30+09:00 info: echo-back connections are ready
|
15
|
-
2023-03-12T02:11:30+09:00 info: http-connector connections are ready
|
16
|
-
2023-03-12T02:11:30+09:00 info: graphql-connector connections are ready
|
17
|
-
2023-03-12T02:11:30+09:00 info: sqlite-connector connections are ready
|
18
|
-
2023-03-12T02:11:30+09:00 info: postgresql-connector connections are ready
|
19
|
-
2023-03-12T02:11:30+09:00 info: mqtt-connector connections are ready
|
20
|
-
2023-03-12T02:11:30+09:00 info: mssql-connector connections are ready
|
21
|
-
2023-03-12T02:11:30+09:00 info: oracle-connector connections are ready
|
22
|
-
2023-03-12T02:11:30+09:00 info: mysql-connector connections are ready
|
23
|
-
2023-03-12T02:11:30+09:00 info: socket servers are ready
|
24
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'echo-back-server' ready
|
25
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'echo-back' ready
|
26
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'http-connector' ready
|
27
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'graphql-connector' ready
|
28
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'sqlite-connector' ready
|
29
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'postgresql-connector' ready
|
30
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'mqtt-connector' ready
|
31
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'mssql-connector' ready
|
32
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'oracle-connector' ready
|
33
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'mysql-connector' ready
|
34
|
-
2023-03-12T02:11:30+09:00 info: All connector for 'socket-server' ready
|
35
|
-
2023-03-12T02:11:30+09:00 info: ConnectionManager initialization done:
|
36
|
-
2023-03-12T02:13:29+09:00 info: Initializing ConnectionManager...
|
37
|
-
2023-03-12T02:13:29+09:00 info: Connector 'echo-back-server' started to ready
|
38
|
-
2023-03-12T02:13:29+09:00 info: Connector 'echo-back' started to ready
|
39
|
-
2023-03-12T02:13:29+09:00 info: Connector 'http-connector' started to ready
|
40
|
-
2023-03-12T02:13:29+09:00 info: Connector 'graphql-connector' started to ready
|
41
|
-
2023-03-12T02:13:29+09:00 info: Connector 'sqlite-connector' started to ready
|
42
|
-
2023-03-12T02:13:29+09:00 info: Connector 'postgresql-connector' started to ready
|
43
|
-
2023-03-12T02:13:29+09:00 info: Connector 'mqtt-connector' started to ready
|
44
|
-
2023-03-12T02:13:29+09:00 info: Connector 'mssql-connector' started to ready
|
45
|
-
2023-03-12T02:13:29+09:00 info: Connector 'oracle-connector' started to ready
|
46
|
-
2023-03-12T02:13:29+09:00 info: Connector 'mysql-connector' started to ready
|
47
|
-
2023-03-12T02:13:29+09:00 info: Connector 'socket-server' started to ready
|
48
|
-
2023-03-12T02:13:29+09:00 info: echo-back-servers are ready
|
49
|
-
2023-03-12T02:13:29+09:00 info: echo-back connections are ready
|
50
|
-
2023-03-12T02:13:29+09:00 info: http-connector connections are ready
|
51
|
-
2023-03-12T02:13:29+09:00 info: graphql-connector connections are ready
|
52
|
-
2023-03-12T02:13:29+09:00 info: sqlite-connector connections are ready
|
53
|
-
2023-03-12T02:13:29+09:00 info: postgresql-connector connections are ready
|
54
|
-
2023-03-12T02:13:29+09:00 info: mqtt-connector connections are ready
|
55
|
-
2023-03-12T02:13:29+09:00 info: mssql-connector connections are ready
|
56
|
-
2023-03-12T02:13:29+09:00 info: oracle-connector connections are ready
|
57
|
-
2023-03-12T02:13:29+09:00 info: mysql-connector connections are ready
|
58
|
-
2023-03-12T02:13:29+09:00 info: socket servers are ready
|
59
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'echo-back-server' ready
|
60
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'echo-back' ready
|
61
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'http-connector' ready
|
62
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'graphql-connector' ready
|
63
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'sqlite-connector' ready
|
64
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'postgresql-connector' ready
|
65
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'mqtt-connector' ready
|
66
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'mssql-connector' ready
|
67
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'oracle-connector' ready
|
68
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'mysql-connector' ready
|
69
|
-
2023-03-12T02:13:29+09:00 info: All connector for 'socket-server' ready
|
70
|
-
2023-03-12T02:13:29+09:00 info: ConnectionManager initialization done:
|