@things-factory/operato-board 6.2.102 → 6.2.103
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/dist-client/bootstrap.d.ts +8 -0
- package/dist-client/bootstrap.js +227 -0
- package/dist-client/bootstrap.js.map +1 -0
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +2 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/pages/app-board-player-page.d.ts +6 -0
- package/dist-client/pages/app-board-player-page.js +11 -0
- package/dist-client/pages/app-board-player-page.js.map +1 -0
- package/dist-client/pages/app-board-viewer-page.d.ts +5 -0
- package/dist-client/pages/app-board-viewer-page.js +26 -0
- package/dist-client/pages/app-board-viewer-page.js.map +1 -0
- package/dist-client/pages/connection-list-page.d.ts +30 -0
- package/dist-client/pages/connection-list-page.js +13 -0
- package/dist-client/pages/connection-list-page.js.map +1 -0
- package/dist-client/pages/scenario-list-page.d.ts +30 -0
- package/dist-client/pages/scenario-list-page.js +8 -0
- package/dist-client/pages/scenario-list-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -0
- package/dist-client/route.js +22 -0
- package/dist-client/route.js.map +1 -0
- package/dist-client/themes/app-theme.css +145 -0
- package/dist-client/themes/board-app-menu-tools-theme.css +6 -0
- package/dist-client/themes/grist-theme.css +217 -0
- package/dist-client/themes/layout-theme.css +92 -0
- package/dist-client/themes/oops-theme.css +26 -0
- package/dist-client/themes/report-theme.css +47 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-client/viewparts/menu-tools.d.ts +19 -0
- package/dist-client/viewparts/menu-tools.js +140 -0
- package/dist-client/viewparts/menu-tools.js.map +1 -0
- package/dist-server/index.js +7 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +6 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/1610516350460-SeedRole.js +195 -0
- package/dist-server/migrations/1610516350460-SeedRole.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.js +2 -0
- package/dist-server/routes.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +34 -34
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@things-factory/notification';
|
|
2
|
+
import '@things-factory/board-ui';
|
|
3
|
+
import '@operato/help/ox-help-panel.js';
|
|
4
|
+
import '@operato/i18n/ox-i18n.js';
|
|
5
|
+
import '@things-factory/auth-ui/dist-client';
|
|
6
|
+
import './viewparts/menu-tools';
|
|
7
|
+
import '@things-factory/setting-ui';
|
|
8
|
+
export default function bootstrap(): Promise<void>;
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import '@things-factory/notification';
|
|
2
|
+
import '@things-factory/board-ui';
|
|
3
|
+
import '@operato/help/ox-help-panel.js';
|
|
4
|
+
import '@operato/i18n/ox-i18n.js';
|
|
5
|
+
import '@things-factory/auth-ui/dist-client'; /* for domain-switch */
|
|
6
|
+
import './viewparts/menu-tools';
|
|
7
|
+
import '@things-factory/setting-ui'; /* secure-iplist-setting-let */
|
|
8
|
+
import { html } from 'lit-html';
|
|
9
|
+
import { registerDefaultGroups } from '@operato/board/register-default-groups.js';
|
|
10
|
+
import { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout';
|
|
11
|
+
import { hasPrivilege } from '@things-factory/auth-base/dist-client';
|
|
12
|
+
import { APPEND_APP_TOOL } from '@things-factory/apptool-base';
|
|
13
|
+
import { setupAppToolPart } from '@things-factory/apptool-ui';
|
|
14
|
+
import { setAuthManagementMenus } from '@things-factory/auth-ui';
|
|
15
|
+
import { setupContextUIPart } from '@things-factory/context-ui';
|
|
16
|
+
import { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base';
|
|
17
|
+
import { ADD_SETTING } from '@things-factory/setting-base';
|
|
18
|
+
import { navigate, store, UPDATE_BASE_URL } from '@operato/shell';
|
|
19
|
+
export default async function bootstrap() {
|
|
20
|
+
var _a;
|
|
21
|
+
/*
|
|
22
|
+
set board-modeller group and default templates - should be called befor BoardModeller open
|
|
23
|
+
*/
|
|
24
|
+
registerDefaultGroups();
|
|
25
|
+
await setupAppToolPart({
|
|
26
|
+
toolbar: true,
|
|
27
|
+
busybar: true,
|
|
28
|
+
mdibar: false
|
|
29
|
+
});
|
|
30
|
+
await setupContextUIPart({
|
|
31
|
+
titlebar: 'header',
|
|
32
|
+
contextToolbar: 'page-footer'
|
|
33
|
+
});
|
|
34
|
+
store.dispatch({
|
|
35
|
+
type: UPDATE_BASE_URL
|
|
36
|
+
});
|
|
37
|
+
/* append top-menu to layout */
|
|
38
|
+
var state = store.getState();
|
|
39
|
+
var width = ((_a = state.layout) === null || _a === void 0 ? void 0 : _a.width) || 'WIDE';
|
|
40
|
+
appendViewpart({
|
|
41
|
+
name: 'board-topmenu',
|
|
42
|
+
viewpart: {
|
|
43
|
+
show: true,
|
|
44
|
+
template: html ` <menu-tools></menu-tools> `
|
|
45
|
+
},
|
|
46
|
+
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
|
|
47
|
+
});
|
|
48
|
+
store.subscribe(async () => {
|
|
49
|
+
var state = store.getState();
|
|
50
|
+
if (state.layout.width == width) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
width = state.layout.width;
|
|
54
|
+
updateViewpart('board-topmenu', {
|
|
55
|
+
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
|
|
56
|
+
level: VIEWPART_LEVEL.TOPMOST
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
/* add setting morenda */
|
|
60
|
+
store.dispatch({
|
|
61
|
+
type: ADD_MORENDA,
|
|
62
|
+
morenda: {
|
|
63
|
+
icon: html ` <mwc-icon>settings</mwc-icon> `,
|
|
64
|
+
name: html ` <ox-i18n msgid="label.setting"></ox-i18n> `,
|
|
65
|
+
action: () => {
|
|
66
|
+
navigate('setting');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
setAuthManagementMenus();
|
|
71
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })) {
|
|
72
|
+
store.dispatch({
|
|
73
|
+
type: ADD_MORENDA,
|
|
74
|
+
morenda: {
|
|
75
|
+
icon: html ` <mwc-icon>vpn_key</mwc-icon> `,
|
|
76
|
+
name: html ` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
|
|
77
|
+
action: () => {
|
|
78
|
+
navigate('oauth2-clients');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
store.dispatch({
|
|
84
|
+
type: ADD_MORENDA,
|
|
85
|
+
morenda: {
|
|
86
|
+
icon: html ` <mwc-icon>extension</mwc-icon> `,
|
|
87
|
+
name: html ` <ox-i18n msgid="text.api-sandbox"></ox-i18n> `,
|
|
88
|
+
action: () => {
|
|
89
|
+
navigate('api-swagger');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
store.dispatch({
|
|
94
|
+
type: ADD_MORENDA,
|
|
95
|
+
morenda: {
|
|
96
|
+
icon: html ` <mwc-icon>hub</mwc-icon> `,
|
|
97
|
+
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
98
|
+
action: () => {
|
|
99
|
+
navigate('integration-analysis');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
store.dispatch({
|
|
104
|
+
type: ADD_MORENDA,
|
|
105
|
+
morenda: {
|
|
106
|
+
icon: html ` <mwc-icon>help</mwc-icon> `,
|
|
107
|
+
name: html ` <ox-i18n msgid="text.help"></ox-i18n> `,
|
|
108
|
+
action: () => {
|
|
109
|
+
navigate('help');
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {
|
|
114
|
+
store.dispatch({
|
|
115
|
+
type: ADD_MORENDA,
|
|
116
|
+
morenda: {
|
|
117
|
+
icon: html ` <mwc-icon>app_registration</mwc-icon> `,
|
|
118
|
+
name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
|
|
119
|
+
action: () => {
|
|
120
|
+
navigate('state-register-page');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {
|
|
126
|
+
store.dispatch({
|
|
127
|
+
type: ADD_MORENDA,
|
|
128
|
+
morenda: {
|
|
129
|
+
icon: html ` <mwc-icon>font_download</mwc-icon> `,
|
|
130
|
+
name: html ` <ox-i18n msgid="menu.fonts"></ox-i18n> `,
|
|
131
|
+
action: () => {
|
|
132
|
+
navigate('font-list');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
// store.dispatch({
|
|
137
|
+
// type: ADD_MORENDA,
|
|
138
|
+
// morenda: {
|
|
139
|
+
// icon: html` <mwc-icon>draw</mwc-icon> `,
|
|
140
|
+
// name: html` <ox-i18n msgid="text.theme"></ox-i18n> `,
|
|
141
|
+
// action: () => {
|
|
142
|
+
// navigate('theme-list')
|
|
143
|
+
// }
|
|
144
|
+
// }
|
|
145
|
+
// })
|
|
146
|
+
}
|
|
147
|
+
// store.dispatch({
|
|
148
|
+
// type: ADD_MORENDA,
|
|
149
|
+
// morenda: {
|
|
150
|
+
// icon: html` <mwc-icon>dashboard</mwc-icon> `,
|
|
151
|
+
// name: html` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
|
|
152
|
+
// action: () => {
|
|
153
|
+
// navigate('board-template-list')
|
|
154
|
+
// }
|
|
155
|
+
// }
|
|
156
|
+
// })
|
|
157
|
+
store.dispatch({
|
|
158
|
+
type: ADD_MORENDA_TAIL,
|
|
159
|
+
template: html ` <domain-switch slot="tail"></domain-switch> `
|
|
160
|
+
});
|
|
161
|
+
/* append favorite tool to app-tools */
|
|
162
|
+
var acceptedPages = ['board-viewer'];
|
|
163
|
+
store.dispatch({
|
|
164
|
+
type: APPEND_APP_TOOL,
|
|
165
|
+
tool: {
|
|
166
|
+
name: 'favorite-tool',
|
|
167
|
+
template: html ` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,
|
|
168
|
+
position: TOOL_POSITION.REAR
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
/* setting app-tools */
|
|
172
|
+
store.dispatch({
|
|
173
|
+
type: APPEND_APP_TOOL,
|
|
174
|
+
tool: {
|
|
175
|
+
name: 'notification-badge',
|
|
176
|
+
template: html `
|
|
177
|
+
<notification-badge
|
|
178
|
+
@click=${e => {
|
|
179
|
+
toggleOverlay('notification', {
|
|
180
|
+
backdrop: true
|
|
181
|
+
});
|
|
182
|
+
}}
|
|
183
|
+
>
|
|
184
|
+
</notification-badge>
|
|
185
|
+
`,
|
|
186
|
+
position: TOOL_POSITION.REAR
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
appendViewpart({
|
|
190
|
+
name: 'notification',
|
|
191
|
+
viewpart: {
|
|
192
|
+
show: false,
|
|
193
|
+
hovering: 'edge',
|
|
194
|
+
template: html ` <notification-list style="min-width: 300px;"></notification-list> `
|
|
195
|
+
},
|
|
196
|
+
position: VIEWPART_POSITION.ASIDEBAR
|
|
197
|
+
});
|
|
198
|
+
store.dispatch({
|
|
199
|
+
type: ADD_SETTING,
|
|
200
|
+
setting: {
|
|
201
|
+
seq: 20,
|
|
202
|
+
template: html ` <notification-setting-let></notification-setting-let> `
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
store.dispatch({
|
|
206
|
+
type: ADD_SETTING,
|
|
207
|
+
setting: {
|
|
208
|
+
seq: 21,
|
|
209
|
+
template: html ` <board-view-setting-let></board-view-setting-let> `
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
if (await hasPrivilege({
|
|
213
|
+
privilege: 'mutation',
|
|
214
|
+
category: 'security',
|
|
215
|
+
domainOwnerGranted: true,
|
|
216
|
+
superUserGranted: true
|
|
217
|
+
})) {
|
|
218
|
+
store.dispatch({
|
|
219
|
+
type: ADD_SETTING,
|
|
220
|
+
setting: {
|
|
221
|
+
seq: 31,
|
|
222
|
+
template: html ` <secure-iplist-setting-let></secure-iplist-setting-let> `
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,0BAA0B,CAAA;AACjC,OAAO,gCAAgC,CAAA;AACvC,OAAO,0BAA0B,CAAA;AACjC,OAAO,qCAAqC,CAAA,CAAC,uBAAuB;AACpE,OAAO,wBAAwB,CAAA;AAC/B,OAAO,4BAA4B,CAAA,CAAC,+BAA+B;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAA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,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,IACE,MAAM,YAAY,CAAC;QACjB,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,UAAU;QACpB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE,IAAI;KACvB,CAAC,EACF;QACA,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,2DAA2D;aAC1E;SACF,CAAC,CAAA;KACH;AACH,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@operato/help/ox-help-panel.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/auth-ui/dist-client' /* for domain-switch */\nimport './viewparts/menu-tools'\nimport '@things-factory/setting-ui' /* secure-iplist-setting-let */\n\nimport { html } from 'lit-html'\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport {\n appendViewpart,\n toggleOverlay,\n TOOL_POSITION,\n updateViewpart,\n VIEWPART_LEVEL,\n VIEWPART_POSITION\n} from '@operato/layout'\n\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base'\nimport { setupAppToolPart } from '@things-factory/apptool-ui'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui'\nimport { setupContextUIPart } from '@things-factory/context-ui'\nimport { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base'\nimport { ADD_SETTING } from '@things-factory/setting-base'\nimport { navigate, store, UPDATE_BASE_URL } from '@operato/shell'\n\nexport default async function bootstrap() {\n /* \n set board-modeller group and default templates - should be called befor BoardModeller open \n */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: false\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n store.dispatch({\n type: UPDATE_BASE_URL\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'board-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('board-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>settings</mwc-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>vpn_key</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>extension</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.api-sandbox\"></ox-i18n> `,\n action: () => {\n navigate('api-swagger')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>hub</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n> (beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>help</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\n }\n }\n })\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>app_registration</mwc-icon> `,\n name: html` <ox-i18n msgid=\"title.state-register\"></ox-i18n> `,\n action: () => {\n navigate('state-register-page')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>font_download</mwc-icon> `,\n name: html` <ox-i18n msgid=\"menu.fonts\"></ox-i18n> `,\n action: () => {\n navigate('font-list')\n }\n }\n })\n\n // store.dispatch({\n // type: ADD_MORENDA,\n // morenda: {\n // icon: html` <mwc-icon>draw</mwc-icon> `,\n // name: html` <ox-i18n msgid=\"text.theme\"></ox-i18n> `,\n // action: () => {\n // navigate('theme-list')\n // }\n // }\n // })\n }\n\n // store.dispatch({\n // type: ADD_MORENDA,\n // morenda: {\n // icon: html` <mwc-icon>dashboard</mwc-icon> `,\n // name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n // action: () => {\n // navigate('board-template-list')\n // }\n // }\n // })\n\n store.dispatch({\n type: ADD_MORENDA_TAIL,\n template: html` <domain-switch slot=\"tail\"></domain-switch> `\n })\n\n /* append favorite tool to app-tools */\n var acceptedPages = ['board-viewer']\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'favorite-tool',\n template: html` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <board-view-setting-let></board-view-setting-let> `\n }\n })\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'security',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 31,\n template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `\n }\n })\n }\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BoardPlayerPage } from '@things-factory/board-ui';
|
|
2
|
+
export class AppBoardPlayerPage extends BoardPlayerPage {
|
|
3
|
+
get context() {
|
|
4
|
+
return {
|
|
5
|
+
title: super.context.title,
|
|
6
|
+
screencastable: true
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
customElements.define('app-board-player-page', AppBoardPlayerPage);
|
|
11
|
+
//# sourceMappingURL=app-board-player-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-board-player-page.js","sourceRoot":"","sources":["../../client/pages/app-board-player-page.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IACrD,IAAI,OAAO;QACT,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YAC1B,cAAc,EAAE,IAAI;SACrB,CAAA;IACH,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAAA","sourcesContent":["import { BoardPlayerPage } from '@things-factory/board-ui'\n\nexport class AppBoardPlayerPage extends BoardPlayerPage {\n get context() {\n return {\n title: super.context.title,\n screencastable: true\n }\n }\n}\n\ncustomElements.define('app-board-player-page', AppBoardPlayerPage)\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BoardViewerPage } from '@things-factory/board-ui';
|
|
2
|
+
export class AppBoardViewerPage extends BoardViewerPage {
|
|
3
|
+
get context() {
|
|
4
|
+
return {
|
|
5
|
+
title: super.context.title
|
|
6
|
+
// printable: {
|
|
7
|
+
// accept: ['label', 'usb', 'zebra-browser-print'],
|
|
8
|
+
// name: this._board && this._board.name,
|
|
9
|
+
// content: () => {
|
|
10
|
+
// return this.getGrf()
|
|
11
|
+
// },
|
|
12
|
+
// options: {}
|
|
13
|
+
// },
|
|
14
|
+
// screencastable: true,
|
|
15
|
+
// exportable: {
|
|
16
|
+
// accept: ['json'],
|
|
17
|
+
// name: this._board && this._board.name,
|
|
18
|
+
// data: () => {
|
|
19
|
+
// return this._board.model
|
|
20
|
+
// }
|
|
21
|
+
// }
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
customElements.define('app-board-viewer-page', AppBoardViewerPage);
|
|
26
|
+
//# sourceMappingURL=app-board-viewer-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-board-viewer-page.js","sourceRoot":"","sources":["../../client/pages/app-board-viewer-page.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IACrD,IAAI,OAAO;QACT,OAAO;YACL,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK;YAC1B,eAAe;YACf,qDAAqD;YACrD,2CAA2C;YAC3C,qBAAqB;YACrB,2BAA2B;YAC3B,OAAO;YACP,gBAAgB;YAChB,KAAK;YACL,wBAAwB;YACxB,gBAAgB;YAChB,sBAAsB;YACtB,2CAA2C;YAC3C,kBAAkB;YAClB,+BAA+B;YAC/B,MAAM;YACN,IAAI;SACL,CAAA;IACH,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAAA","sourcesContent":["import { BoardViewerPage } from '@things-factory/board-ui'\n\nexport class AppBoardViewerPage extends BoardViewerPage {\n get context() {\n return {\n title: super.context.title\n // printable: {\n // accept: ['label', 'usb', 'zebra-browser-print'],\n // name: this._board && this._board.name,\n // content: () => {\n // return this.getGrf()\n // },\n // options: {}\n // },\n // screencastable: true,\n // exportable: {\n // accept: ['json'],\n // name: this._board && this._board.name,\n // data: () => {\n // return this._board.model\n // }\n // }\n }\n }\n}\n\ncustomElements.define('app-board-viewer-page', AppBoardViewerPage)\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Connection } from '@things-factory/integration-ui/dist-client/pages/connection';
|
|
2
|
+
export declare class ConnectionListPage extends Connection {
|
|
3
|
+
get context(): {
|
|
4
|
+
board_topmenu: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
search: {
|
|
7
|
+
handler: (search: any) => void;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
help: string;
|
|
11
|
+
actions: {
|
|
12
|
+
icon: string;
|
|
13
|
+
emphasis: {
|
|
14
|
+
raised: boolean;
|
|
15
|
+
outlined: boolean;
|
|
16
|
+
dense: boolean;
|
|
17
|
+
danger: boolean;
|
|
18
|
+
};
|
|
19
|
+
title: string;
|
|
20
|
+
action: (name: any) => Promise<void>;
|
|
21
|
+
}[];
|
|
22
|
+
exportable: {
|
|
23
|
+
name: string;
|
|
24
|
+
data: () => Promise<{}[]>;
|
|
25
|
+
};
|
|
26
|
+
importable: {
|
|
27
|
+
handler: (records: any) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement } from 'lit/decorators.js';
|
|
3
|
+
import { Connection } from '@things-factory/integration-ui/dist-client/pages/connection';
|
|
4
|
+
let ConnectionListPage = class ConnectionListPage extends Connection {
|
|
5
|
+
get context() {
|
|
6
|
+
return Object.assign(Object.assign({}, super.context), { board_topmenu: true });
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
ConnectionListPage = __decorate([
|
|
10
|
+
customElement('connection-list-page')
|
|
11
|
+
], ConnectionListPage);
|
|
12
|
+
export { ConnectionListPage };
|
|
13
|
+
//# sourceMappingURL=connection-list-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-list-page.js","sourceRoot":"","sources":["../../client/pages/connection-list-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAGjF,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAChD,IAAI,OAAO;QACT,uCACK,KAAK,CAAC,OAAO,KAChB,aAAa,EAAE,IAAI,IACpB;IACH,CAAC;CACF,CAAA;AAPY,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAO9B;SAPY,kBAAkB","sourcesContent":["import { customElement } from 'lit/decorators.js'\nimport { Connection } from '@things-factory/integration-ui/dist-client/pages/connection'\n\n@customElement('connection-list-page')\nexport class ConnectionListPage extends Connection {\n get context() {\n return {\n ...super.context,\n board_topmenu: true\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export class ScenarioListPage extends Scenario {
|
|
2
|
+
get context(): {
|
|
3
|
+
board_topmenu: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
search: {
|
|
6
|
+
handler: (search: any) => void;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
help: string;
|
|
10
|
+
actions: {
|
|
11
|
+
icon: string;
|
|
12
|
+
emphasis: {
|
|
13
|
+
raised: boolean;
|
|
14
|
+
outlined: boolean;
|
|
15
|
+
dense: boolean;
|
|
16
|
+
danger: boolean;
|
|
17
|
+
};
|
|
18
|
+
title: string;
|
|
19
|
+
action: () => void;
|
|
20
|
+
}[];
|
|
21
|
+
exportable: {
|
|
22
|
+
name: string;
|
|
23
|
+
data: () => Promise<{}[]>;
|
|
24
|
+
};
|
|
25
|
+
importable: {
|
|
26
|
+
handler: (records: any) => Promise<void>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
import { Scenario } from "@things-factory/integration-ui/dist-client/pages/scenario.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Scenario } from '@things-factory/integration-ui/dist-client/pages/scenario.js';
|
|
2
|
+
export class ScenarioListPage extends Scenario {
|
|
3
|
+
get context() {
|
|
4
|
+
return Object.assign(Object.assign({}, super.context), { board_topmenu: true });
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
customElements.define('scenario-list-page', ScenarioListPage);
|
|
8
|
+
//# sourceMappingURL=scenario-list-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-list-page.js","sourceRoot":"","sources":["../../client/pages/scenario-list-page.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8DAA8D,CAAA;AAEvF,MAAM,OAAO,gBAAiB,SAAQ,QAAQ;IAC5C,IAAI,OAAO;QACT,uCACK,KAAK,CAAC,OAAO,KAChB,aAAa,EAAE,IAAI,IACpB;IACH,CAAC;CACF;AAED,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA","sourcesContent":["import { Scenario } from '@things-factory/integration-ui/dist-client/pages/scenario.js'\n\nexport class ScenarioListPage extends Scenario {\n get context() {\n return {\n ...super.context,\n board_topmenu: true\n }\n }\n}\n\ncustomElements.define('scenario-list-page', ScenarioListPage)\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function route(page: any): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default function route(page) {
|
|
2
|
+
switch (page) {
|
|
3
|
+
case '':
|
|
4
|
+
/* board-list 페이지를 default page로 한다. */
|
|
5
|
+
return '/board-list';
|
|
6
|
+
case 'board-viewer':
|
|
7
|
+
/* overide board-viewer */
|
|
8
|
+
import('./pages/app-board-viewer-page');
|
|
9
|
+
return page;
|
|
10
|
+
case 'board-player':
|
|
11
|
+
/* overide board-player */
|
|
12
|
+
import('./pages/app-board-player-page');
|
|
13
|
+
return page;
|
|
14
|
+
case 'connection-list':
|
|
15
|
+
import('./pages/connection-list-page');
|
|
16
|
+
return page;
|
|
17
|
+
case 'scenario-list':
|
|
18
|
+
import('./pages/scenario-list-page');
|
|
19
|
+
return page;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE;QACZ,KAAK,EAAE;YACL,uCAAuC;YACvC,OAAO,aAAa,CAAA;QAEtB,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,iBAAiB;YACpB,MAAM,CAAC,8BAA8B,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QAEb,KAAK,eAAe;YAClB,MAAM,CAAC,4BAA4B,CAAC,CAAA;YACpC,OAAO,IAAI,CAAA;KACd;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case '':\n /* board-list 페이지를 default page로 한다. */\n return '/board-list'\n\n case 'board-viewer':\n /* overide board-viewer */\n import('./pages/app-board-viewer-page')\n return page\n\n case 'board-player':\n /* overide board-player */\n import('./pages/app-board-player-page')\n return page\n\n case 'connection-list':\n import('./pages/connection-list-page')\n return page\n\n case 'scenario-list':\n import('./pages/scenario-list-page')\n return page\n }\n}\n"]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
body {
|
|
2
|
+
/* theme color */
|
|
3
|
+
--primary-color-rgb: 130, 105, 96;
|
|
4
|
+
--primary-color: rgb(var(--primary-color-rgb));
|
|
5
|
+
--secondary-color-rgb: 78, 78, 90;
|
|
6
|
+
--secondary-color: rgb(var(--secondary-color-rgb));
|
|
7
|
+
--focus-color: var(--theme-white-color);
|
|
8
|
+
--primary-background-color: var(--secondary-color);
|
|
9
|
+
--secondary-background-color: #283644;
|
|
10
|
+
--main-section-background-color: #f5f2ee;
|
|
11
|
+
--theme-white-color: #fff;
|
|
12
|
+
--theme-black-color: rgba(0, 0, 0, 0.9);
|
|
13
|
+
|
|
14
|
+
--focus-background-color: var(--primary-color);
|
|
15
|
+
--primary-text-color: #3c3938;
|
|
16
|
+
--secondary-text-color: var(--primary-color);
|
|
17
|
+
|
|
18
|
+
--opacity-dark-color: rgba(0, 0, 0, 0.4);
|
|
19
|
+
--opacity-light-color: rgba(255, 255, 255, 0.8);
|
|
20
|
+
|
|
21
|
+
/* status color */
|
|
22
|
+
--status-success-color: #35a24a;
|
|
23
|
+
--status-warning-color: #ee8d03;
|
|
24
|
+
--status-danger-color: #d14946;
|
|
25
|
+
--status-info-color: #398ace;
|
|
26
|
+
|
|
27
|
+
/* common style */
|
|
28
|
+
--border-radius: 4px;
|
|
29
|
+
--border-dark-color: 1px solid rgba(0, 0, 0, 0.15);
|
|
30
|
+
--border-light-color: 1px solid rgba(255, 255, 255, 0.3);
|
|
31
|
+
|
|
32
|
+
--box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);
|
|
33
|
+
|
|
34
|
+
--theme-font: 'Noto', Helvetica;
|
|
35
|
+
|
|
36
|
+
--margin-default: 9px;
|
|
37
|
+
--margin-narrow: 4px;
|
|
38
|
+
--margin-wide: 15px;
|
|
39
|
+
--padding-default: var(--margin-default);
|
|
40
|
+
--padding-narrow: var(--margin-narrow);
|
|
41
|
+
--padding-wide: var(--margin-wide);
|
|
42
|
+
|
|
43
|
+
--scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
|
|
44
|
+
--scrollbar-thumb-hover-color: var(--primary-color);
|
|
45
|
+
|
|
46
|
+
--fontsize-default: 14px;
|
|
47
|
+
--fontsize-small: 13px;
|
|
48
|
+
--fontsize-large: 16px;
|
|
49
|
+
|
|
50
|
+
/* app layout style */
|
|
51
|
+
--app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';
|
|
52
|
+
|
|
53
|
+
/* title & description style */
|
|
54
|
+
--title-margin: var(--margin-narrow) 0;
|
|
55
|
+
--title-font: bold 24px var(--theme-font);
|
|
56
|
+
--title-text-color: var(--secondary-color);
|
|
57
|
+
--title-font-mobile: bold 20px var(--theme-font);
|
|
58
|
+
|
|
59
|
+
--page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;
|
|
60
|
+
--page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);
|
|
61
|
+
--page-description-color: var(--secondary-text-color);
|
|
62
|
+
|
|
63
|
+
--subtitle-padding: 12px 5px 3px 5px;
|
|
64
|
+
--subtitle-font: bold 18px var(--theme-font);
|
|
65
|
+
--subtitle-text-color: var(--primary-color);
|
|
66
|
+
--subtitle-border-bottom: 1px solid var(--primary-color);
|
|
67
|
+
|
|
68
|
+
/* icon style */
|
|
69
|
+
--icon-tiny-size: 24px;
|
|
70
|
+
--icon-default-size: 36px;
|
|
71
|
+
--icon-big-size: 48px;
|
|
72
|
+
--icon-default-color: var(--theme-white-color);
|
|
73
|
+
|
|
74
|
+
/* material design component themes */
|
|
75
|
+
--mdc-theme-on-primary: var(--theme-white-color);
|
|
76
|
+
--mdc-theme-primary: var(--secondary-text-color);
|
|
77
|
+
--mdc-theme-on-secondary: var(--theme-white-color);
|
|
78
|
+
--mdc-theme-secondary: var(--primary-color);
|
|
79
|
+
--mdc-button-outline-color: var(--primary-color);
|
|
80
|
+
--mdc-danger-button-primary-color: var(--status-danger-color);
|
|
81
|
+
--mdc-danger-button-outline-color: var(--status-danger-color);
|
|
82
|
+
--mdc-button-outline-width: 1px;
|
|
83
|
+
--mdc-button-horizontal-padding: 16px;
|
|
84
|
+
|
|
85
|
+
/* button style */
|
|
86
|
+
--button-background-color: #fafbfc;
|
|
87
|
+
--button-background-focus-color: var(--primary-color);
|
|
88
|
+
--button-border: var(--border-dark-color);
|
|
89
|
+
--button-border-radius: var(--border-radius);
|
|
90
|
+
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
91
|
+
--button-padding: var(--padding-default);
|
|
92
|
+
--button-color: var(--secondary-color);
|
|
93
|
+
--button-font: normal 15px var(--theme-font);
|
|
94
|
+
--button-text-transform: capitalize;
|
|
95
|
+
--button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
|
|
96
|
+
--button-activ-border: 1px solid var(--primary-color);
|
|
97
|
+
|
|
98
|
+
--button-primary-background-color: var(--primary-color);
|
|
99
|
+
--button-primary-active-background-color: var(--status-success-color);
|
|
100
|
+
--button-primary-padding: var(--margin-default) var(--margin-wide);
|
|
101
|
+
--button-primary-color: var(--theme-white-color);
|
|
102
|
+
--button-primary-font: bold 16px var(--theme-font);
|
|
103
|
+
|
|
104
|
+
/* table style */
|
|
105
|
+
--th-padding: var(--padding-default);
|
|
106
|
+
--th-border-top: 2px solid var(--secondary-color);
|
|
107
|
+
--th-text-transform: capitalize;
|
|
108
|
+
--th-font: bold var(--fontsize-small) var(--theme-font);
|
|
109
|
+
--th-color: rgba(var(--secondary-color-rgb), 0.8);
|
|
110
|
+
|
|
111
|
+
--tr-background-color: var(--theme-white-color);
|
|
112
|
+
--tr-background-odd-color: rgba(255, 255, 255, 0.4);
|
|
113
|
+
--tr-background-hover-color: #e1f5fe;
|
|
114
|
+
--td-border-line: 1px solid rgba(0, 0, 0, 0.05);
|
|
115
|
+
--td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);
|
|
116
|
+
--td-padding: var(--padding-default);
|
|
117
|
+
--td-font: normal 13px var(--theme-font);
|
|
118
|
+
--td-color: var(--secondary-color);
|
|
119
|
+
|
|
120
|
+
--label-cell-background-color: #f6f6f6; /* th or td common background color */
|
|
121
|
+
|
|
122
|
+
/* form style */
|
|
123
|
+
--label-font: normal var(--fontsize-default) var(--theme-font);
|
|
124
|
+
--label-color: var(--secondary-color);
|
|
125
|
+
--label-text-transform: capitalize;
|
|
126
|
+
--input-margin: var(--margin-narrow) 0;
|
|
127
|
+
--input-padding: var(--padding-default);
|
|
128
|
+
--input-min-width: 200px;
|
|
129
|
+
--input-font: normal var(--fontsize-default) var(--theme-font);
|
|
130
|
+
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
|
131
|
+
--input-hint-color: #666;
|
|
132
|
+
--input-container-max-width: 900px;
|
|
133
|
+
--fieldset-margin: var(--padding-wide) 0;
|
|
134
|
+
--fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);
|
|
135
|
+
--legend-padding: var(--padding-default) 0;
|
|
136
|
+
--legend-color: var(--secondary-text-color);
|
|
137
|
+
--legend-font: bold 16px var(--theme-font);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media only screen and (max-width: 460px) {
|
|
141
|
+
body {
|
|
142
|
+
/* subtitle style */
|
|
143
|
+
--subtitle-margin: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|