@dssp/dssp 0.0.9 → 0.0.10
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/.dockerignore +13 -0
- package/_index.html +1 -23
- package/dist-client/bootstrap.js +137 -8
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/themes/dark.css +22 -22
- package/dist-client/themes/light.css +22 -22
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +54 -54
- package/schema.graphql +980 -142
- package/views/auth-page.html +0 -13
- package/views/public/home.html +0 -15
package/.dockerignore
ADDED
package/_index.html
CHANGED
|
@@ -54,29 +54,7 @@
|
|
|
54
54
|
<link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
|
|
55
55
|
<link rel="stylesheet" href="/theme.css" />
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
<style>
|
|
59
|
-
body {
|
|
60
|
-
margin: 0;
|
|
61
|
-
padding: 0;
|
|
62
|
-
overflow: hidden;
|
|
63
|
-
|
|
64
|
-
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
|
65
|
-
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
66
|
-
line-height: 1.5;
|
|
67
|
-
-webkit-font-smoothing: antialiased;
|
|
68
|
-
|
|
69
|
-
accent-color: var(--primary-color);
|
|
70
|
-
}
|
|
71
|
-
</style>
|
|
72
|
-
|
|
73
|
-
<script>
|
|
74
|
-
if ('serviceWorker' in navigator) {
|
|
75
|
-
navigator.serviceWorker.register('/service-worker.js', {
|
|
76
|
-
scope: '/'
|
|
77
|
-
})
|
|
78
|
-
}
|
|
79
|
-
</script>
|
|
57
|
+
<script src="/static/index.js" defer></script>
|
|
80
58
|
</head>
|
|
81
59
|
|
|
82
60
|
<body class="light">
|
package/dist-client/bootstrap.js
CHANGED
|
@@ -11,6 +11,7 @@ import { navigate, store } from '@operato/shell';
|
|
|
11
11
|
import { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout';
|
|
12
12
|
import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client';
|
|
13
13
|
import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client';
|
|
14
|
+
import { setupContextUIPart } from '@things-factory/context-ui/dist-client';
|
|
14
15
|
import { hasPrivilege } from '@things-factory/auth-base/dist-client';
|
|
15
16
|
import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client';
|
|
16
17
|
import { ADD_MORENDA } from '@things-factory/more-base/client';
|
|
@@ -31,6 +32,10 @@ export default async function bootstrap() {
|
|
|
31
32
|
busybar: true,
|
|
32
33
|
mdibar: false
|
|
33
34
|
});
|
|
35
|
+
await setupContextUIPart({
|
|
36
|
+
titlebar: 'header',
|
|
37
|
+
contextToolbar: 'page-footer'
|
|
38
|
+
});
|
|
34
39
|
/* append top-menu to layout */
|
|
35
40
|
var state = store.getState();
|
|
36
41
|
var width = ((_a = state.layout) === null || _a === void 0 ? void 0 : _a.width) || 'WIDE';
|
|
@@ -62,6 +67,14 @@ export default async function bootstrap() {
|
|
|
62
67
|
position: TOOL_POSITION.FRONT
|
|
63
68
|
}
|
|
64
69
|
});
|
|
70
|
+
// store.dispatch({
|
|
71
|
+
// type: APPEND_APP_TOOL,
|
|
72
|
+
// tool: {
|
|
73
|
+
// name: 'user-circle',
|
|
74
|
+
// template: html` <user-circle> </user-circle> `,
|
|
75
|
+
// position: TOOL_POSITION.REAR
|
|
76
|
+
// }
|
|
77
|
+
// })
|
|
65
78
|
store.dispatch({
|
|
66
79
|
type: APPEND_APP_TOOL,
|
|
67
80
|
tool: {
|
|
@@ -88,14 +101,6 @@ export default async function bootstrap() {
|
|
|
88
101
|
},
|
|
89
102
|
position: VIEWPART_POSITION.ASIDEBAR
|
|
90
103
|
});
|
|
91
|
-
store.dispatch({
|
|
92
|
-
type: APPEND_APP_TOOL,
|
|
93
|
-
tool: {
|
|
94
|
-
name: 'user-circle',
|
|
95
|
-
template: html ` <user-circle> </user-circle> `,
|
|
96
|
-
position: TOOL_POSITION.REAR
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
104
|
/* add setting morenda */
|
|
100
105
|
store.dispatch({
|
|
101
106
|
type: ADD_MORENDA,
|
|
@@ -137,6 +142,36 @@ export default async function bootstrap() {
|
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
144
|
});
|
|
145
|
+
store.dispatch({
|
|
146
|
+
type: ADD_MORENDA,
|
|
147
|
+
morenda: {
|
|
148
|
+
icon: html ` <md-icon>view_timeline</md-icon> `,
|
|
149
|
+
name: html ` <ox-i18n msgid="도면 타입 및 검측 부위 관리"></ox-i18n> `,
|
|
150
|
+
action: () => {
|
|
151
|
+
navigate('inspection-drawing-type-management');
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
store.dispatch({
|
|
156
|
+
type: ADD_MORENDA,
|
|
157
|
+
morenda: {
|
|
158
|
+
icon: html ` <md-icon>view_timeline</md-icon> `,
|
|
159
|
+
name: html ` <ox-i18n msgid="체크리스트 구분 관리"></ox-i18n> `,
|
|
160
|
+
action: () => {
|
|
161
|
+
navigate('checklist-type-management');
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
store.dispatch({
|
|
166
|
+
type: ADD_MORENDA,
|
|
167
|
+
morenda: {
|
|
168
|
+
icon: html ` <md-icon>fact_check</md-icon> `,
|
|
169
|
+
name: html ` <ox-i18n msgid="체크리스트 템플릿 관리"></ox-i18n> `,
|
|
170
|
+
action: () => {
|
|
171
|
+
navigate('checklist-template-list');
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
140
175
|
/* set auth management menus into more-panel */
|
|
141
176
|
setAuthManagementMenus();
|
|
142
177
|
if (await hasPrivilege({
|
|
@@ -212,6 +247,100 @@ export default async function bootstrap() {
|
|
|
212
247
|
}
|
|
213
248
|
});
|
|
214
249
|
}
|
|
250
|
+
if (await hasPrivilege({
|
|
251
|
+
domainOwnerGranted: true,
|
|
252
|
+
superUserGranted: true
|
|
253
|
+
})) {
|
|
254
|
+
store.dispatch({
|
|
255
|
+
type: ADD_MORENDA,
|
|
256
|
+
morenda: {
|
|
257
|
+
icon: html ` <md-icon>code</md-icon> `,
|
|
258
|
+
name: html ` <ox-i18n msgid="title.code-management"></ox-i18n> `,
|
|
259
|
+
action: () => {
|
|
260
|
+
navigate('codes');
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
store.dispatch({
|
|
265
|
+
type: ADD_MORENDA,
|
|
266
|
+
morenda: {
|
|
267
|
+
icon: html ` <md-icon>contacts</md-icon> `,
|
|
268
|
+
name: html ` <ox-i18n msgid="title.contact list"></ox-i18n> `,
|
|
269
|
+
action: () => {
|
|
270
|
+
navigate('contact-list');
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
store.dispatch({
|
|
275
|
+
type: ADD_MORENDA,
|
|
276
|
+
morenda: {
|
|
277
|
+
icon: html ` <md-icon>account_tree</md-icon> `,
|
|
278
|
+
name: html ` <ox-i18n msgid="title.department list"></ox-i18n> `,
|
|
279
|
+
action: () => {
|
|
280
|
+
navigate('department-list');
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
store.dispatch({
|
|
285
|
+
type: ADD_MORENDA,
|
|
286
|
+
morenda: {
|
|
287
|
+
icon: html ` <md-icon>badge</md-icon> `,
|
|
288
|
+
name: html ` <ox-i18n msgid="title.employee list"></ox-i18n> `,
|
|
289
|
+
action: () => {
|
|
290
|
+
navigate('employee-list');
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'terminology', domainOwnerGranted: true })) {
|
|
296
|
+
store.dispatch({
|
|
297
|
+
type: ADD_MORENDA,
|
|
298
|
+
morenda: {
|
|
299
|
+
icon: html ` <md-icon>translate</md-icon> `,
|
|
300
|
+
name: html ` <ox-i18n msgid="title.terminology"></ox-i18n> `,
|
|
301
|
+
action: () => {
|
|
302
|
+
navigate('terminology-page');
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
if (await hasPrivilege({
|
|
308
|
+
privilege: 'mutation',
|
|
309
|
+
category: 'scenario',
|
|
310
|
+
domainOwnerGranted: true,
|
|
311
|
+
superUserGranted: true
|
|
312
|
+
})) {
|
|
313
|
+
store.dispatch({
|
|
314
|
+
type: ADD_MORENDA,
|
|
315
|
+
morenda: {
|
|
316
|
+
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
317
|
+
name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
318
|
+
action: () => {
|
|
319
|
+
navigate('connection');
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
store.dispatch({
|
|
324
|
+
type: ADD_MORENDA,
|
|
325
|
+
morenda: {
|
|
326
|
+
icon: html ` <md-icon>format_list_numbered</md-icon> `,
|
|
327
|
+
name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
328
|
+
action: () => {
|
|
329
|
+
navigate('scenario');
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
store.dispatch({
|
|
334
|
+
type: ADD_MORENDA,
|
|
335
|
+
morenda: {
|
|
336
|
+
icon: html ` <md-icon>hub</md-icon> `,
|
|
337
|
+
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
338
|
+
action: () => {
|
|
339
|
+
navigate('integration-analysis');
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
}
|
|
215
344
|
store.dispatch({
|
|
216
345
|
type: ADD_SETTING,
|
|
217
346
|
setting: {
|
|
@@ -1 +1 @@
|
|
|
1
|
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E,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/notification/dist-client' /* for notification-setting-let */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\n\nimport '@material/web/icon/icon.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification'\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\n\nimport { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\n\nconsole.log(\n `%c\n▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ \n▓ ▓ ▓ ▀ ▓ ▀ ▓ ▓ \n▓ ▓ ▀▀▄▄ ▀▀▄▄ ▓▀▀ \n▓ ▓ ▄ ▓ ▄ ▓ ▓ \n▀▀▀ ▀▀▀ ▀▀▀ ▀ \n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* set board-modeller group and default templates */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: false\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: 'dssp-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('dssp-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">AIM</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\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: APPEND_APP_TOOL,\n tool: {\n name: 'user-circle',\n template: html` <user-circle> </user-circle> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>engineering</md-icon> `,\n name: html` <ox-i18n msgid=\"담당자 정보 관리\"></ox-i18n> `,\n action: () => {\n navigate('manager-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>group</md-icon> `,\n name: html` <ox-i18n msgid=\"인력 관리\"></ox-i18n> `,\n action: () => {\n navigate('worker-type-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>construction</md-icon> `,\n name: html` <ox-i18n msgid=\"공종 관리\"></ox-i18n> `,\n action: () => {\n navigate('construction-type-management')\n }\n }\n })\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'user',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'board',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-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` <md-icon>dvr</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-list\"></ox-i18n> `,\n action: () => {\n navigate('board-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'query',\n category: 'attachment',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>attachment</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.attachments\"></ox-i18n> `,\n action: () => {\n navigate('attachment-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'scenario', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dashboard</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n action: () => {\n navigate('board-template-list')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\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"]}
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAA,CAAC,kCAAkC;AACpF,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAEhF,OAAO,4BAA4B,CAAA;AACnC,OAAO,0BAA0B,CAAA;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAEhD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjI,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAA;AAEtE,OAAO,CAAC,GAAG,CACT;;;;;;CAMD,EACC,kCAAkC,CACnC,CAAA;AAED,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,SAAS;;IACrC,oDAAoD;IACpD,qBAAqB,EAAE,CAAA;IAEvB,MAAM,gBAAgB,CAAC;QACrB,OAAO,EAAE,IAAI;QACb,OA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AM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,YAAY,CAAC,CAAA;gBACxB,CAAC;aACF;SACF,CAAC,CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,2CAA2C;gBACrD,IAAI,EAAE,IAAI,CAAA,6CAA6C;gBACvD,MAAM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,UAAU,CAAC,CAAA;gBACtB,CAAC;aACF;SACF,CAAC,CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,0BAA0B;gBACpC,IAAI,EAAE,IAAI,CAAA,oEAAoE;gBAC9E,MAAM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,sBAAsB,CAAC,CAAA;gBAClC,CAAC;aACF;SACF,CAAC,CAAA;KACH;IAED,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,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/notification/dist-client' /* for notification-setting-let */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\n\nimport '@material/web/icon/icon.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification'\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\n\nimport { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\n\nconsole.log(\n `%c\n▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ \n▓ ▓ ▓ ▀ ▓ ▀ ▓ ▓ \n▓ ▓ ▀▀▄▄ ▀▀▄▄ ▓▀▀ \n▓ ▓ ▄ ▓ ▄ ▓ ▓ \n▀▀▀ ▀▀▀ ▀▀▀ ▀ \n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* set board-modeller group and default templates */\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 /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'dssp-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('dssp-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">AIM</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n // store.dispatch({\n // type: APPEND_APP_TOOL,\n // tool: {\n // name: 'user-circle',\n // template: html` <user-circle> </user-circle> `,\n // position: TOOL_POSITION.REAR\n // }\n // })\n\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 /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>engineering</md-icon> `,\n name: html` <ox-i18n msgid=\"담당자 정보 관리\"></ox-i18n> `,\n action: () => {\n navigate('manager-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>group</md-icon> `,\n name: html` <ox-i18n msgid=\"인력 관리\"></ox-i18n> `,\n action: () => {\n navigate('worker-type-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>construction</md-icon> `,\n name: html` <ox-i18n msgid=\"공종 관리\"></ox-i18n> `,\n action: () => {\n navigate('construction-type-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>view_timeline</md-icon> `,\n name: html` <ox-i18n msgid=\"도면 타입 및 검측 부위 관리\"></ox-i18n> `,\n action: () => {\n navigate('inspection-drawing-type-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>view_timeline</md-icon> `,\n name: html` <ox-i18n msgid=\"체크리스트 구분 관리\"></ox-i18n> `,\n action: () => {\n navigate('checklist-type-management')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>fact_check</md-icon> `,\n name: html` <ox-i18n msgid=\"체크리스트 템플릿 관리\"></ox-i18n> `,\n action: () => {\n navigate('checklist-template-list')\n }\n }\n })\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'user',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'board',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-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` <md-icon>dvr</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-list\"></ox-i18n> `,\n action: () => {\n navigate('board-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'query',\n category: 'attachment',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>attachment</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.attachments\"></ox-i18n> `,\n action: () => {\n navigate('attachment-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'scenario', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dashboard</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n action: () => {\n navigate('board-template-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>code</md-icon> `,\n name: html` <ox-i18n msgid=\"title.code-management\"></ox-i18n> `,\n action: () => {\n navigate('codes')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>contacts</md-icon> `,\n name: html` <ox-i18n msgid=\"title.contact list\"></ox-i18n> `,\n action: () => {\n navigate('contact-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>account_tree</md-icon> `,\n name: html` <ox-i18n msgid=\"title.department list\"></ox-i18n> `,\n action: () => {\n navigate('department-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>badge</md-icon> `,\n name: html` <ox-i18n msgid=\"title.employee list\"></ox-i18n> `,\n action: () => {\n navigate('employee-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'terminology', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>translate</md-icon> `,\n name: html` <ox-i18n msgid=\"title.terminology\"></ox-i18n> `,\n action: () => {\n navigate('terminology-page')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'scenario',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>device_hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.connection\"></ox-i18n> `,\n action: () => {\n navigate('connection')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>format_list_numbered</md-icon> `,\n name: html` <ox-i18n msgid=\"text.scenario\"></ox-i18n> `,\n action: () => {\n navigate('scenario')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n> (beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\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"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.dark {
|
|
2
|
-
--md-sys-color-primary: rgb(
|
|
3
|
-
--md-sys-color-surface-tint: rgb(
|
|
4
|
-
--md-sys-color-on-primary: rgb(47
|
|
5
|
-
--md-sys-color-primary-container: rgb(
|
|
6
|
-
--md-sys-color-on-primary-container: rgb(
|
|
2
|
+
--md-sys-color-primary: rgb(198 198 199);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(198 198 199);
|
|
4
|
+
--md-sys-color-on-primary: rgb(47 49 50);
|
|
5
|
+
--md-sys-color-primary-container: rgb(17 19 20);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(159 160 161);
|
|
7
7
|
--md-sys-color-secondary: rgb(199 197 210);
|
|
8
|
-
--md-sys-color-on-secondary: rgb(47 48
|
|
9
|
-
--md-sys-color-secondary-container: rgb(
|
|
10
|
-
--md-sys-color-on-secondary-container: rgb(
|
|
11
|
-
--md-sys-color-tertiary: rgb(
|
|
8
|
+
--md-sys-color-on-secondary: rgb(47 48 57);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(42 42 52);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(183 182 194);
|
|
11
|
+
--md-sys-color-tertiary: rgb(135 208 245);
|
|
12
12
|
--md-sys-color-on-tertiary: rgb(0 53 72);
|
|
13
|
-
--md-sys-color-tertiary-container: rgb(
|
|
14
|
-
--md-sys-color-on-tertiary-container: rgb(
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(0 91 121);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(241 249 255);
|
|
15
15
|
--md-sys-color-error: rgb(255 180 171);
|
|
16
16
|
--md-sys-color-on-error: rgb(105 0 5);
|
|
17
17
|
--md-sys-color-error-container: rgb(147 0 10);
|
|
@@ -20,26 +20,26 @@
|
|
|
20
20
|
--md-sys-color-on-background: rgb(229 226 225);
|
|
21
21
|
--md-sys-color-surface: rgb(20 19 19);
|
|
22
22
|
--md-sys-color-on-surface: rgb(229 226 225);
|
|
23
|
-
--md-sys-color-surface-variant: rgb(
|
|
24
|
-
--md-sys-color-on-surface-variant: rgb(
|
|
25
|
-
--md-sys-color-outline: rgb(
|
|
26
|
-
--md-sys-color-outline-variant: rgb(
|
|
23
|
+
--md-sys-color-surface-variant: rgb(68 71 73);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(196 199 201);
|
|
25
|
+
--md-sys-color-outline: rgb(142 145 147);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(68 71 73);
|
|
27
27
|
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
28
|
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
29
|
--md-sys-color-inverse-surface: rgb(229 226 225);
|
|
30
30
|
--md-sys-color-inverse-on-surface: rgb(49 48 48);
|
|
31
|
-
--md-sys-color-inverse-primary: rgb(
|
|
32
|
-
--md-sys-color-primary-fixed: rgb(
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(93 94 96);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(226 226 227);
|
|
33
33
|
--md-sys-color-on-primary-fixed: rgb(26 28 29);
|
|
34
|
-
--md-sys-color-primary-fixed-dim: rgb(
|
|
35
|
-
--md-sys-color-on-primary-fixed-variant: rgb(
|
|
36
|
-
--md-sys-color-secondary-fixed: rgb(227 225
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(198 198 199);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(69 71 72);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(227 225 238);
|
|
37
37
|
--md-sys-color-on-secondary-fixed: rgb(26 27 36);
|
|
38
38
|
--md-sys-color-secondary-fixed-dim: rgb(199 197 210);
|
|
39
|
-
--md-sys-color-on-secondary-fixed-variant: rgb(70 70
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 70 80);
|
|
40
40
|
--md-sys-color-tertiary-fixed: rgb(193 232 255);
|
|
41
41
|
--md-sys-color-on-tertiary-fixed: rgb(0 30 43);
|
|
42
|
-
--md-sys-color-tertiary-fixed-dim: rgb(
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(135 208 245);
|
|
43
43
|
--md-sys-color-on-tertiary-fixed-variant: rgb(0 77 102);
|
|
44
44
|
--md-sys-color-surface-dim: rgb(20 19 19);
|
|
45
45
|
--md-sys-color-surface-bright: rgb(58 57 57);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.light {
|
|
2
|
-
--md-sys-color-primary: rgb(
|
|
3
|
-
--md-sys-color-surface-tint: rgb(
|
|
2
|
+
--md-sys-color-primary: rgb(1 2 2);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(93 94 96);
|
|
4
4
|
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
-
--md-sys-color-primary-container: rgb(
|
|
6
|
-
--md-sys-color-on-primary-container: rgb(
|
|
7
|
-
--md-sys-color-secondary: rgb(
|
|
5
|
+
--md-sys-color-primary-container: rgb(37 39 40);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(177 178 179);
|
|
7
|
+
--md-sys-color-secondary: rgb(33 34 43);
|
|
8
8
|
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
-
--md-sys-color-secondary-container: rgb(
|
|
10
|
-
--md-sys-color-on-secondary-container: rgb(
|
|
11
|
-
--md-sys-color-tertiary: rgb(0
|
|
9
|
+
--md-sys-color-secondary-container: rgb(66 66 77);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(219 216 230);
|
|
11
|
+
--md-sys-color-tertiary: rgb(0 80 106);
|
|
12
12
|
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
-
--md-sys-color-tertiary-container: rgb(
|
|
14
|
-
--md-sys-color-on-tertiary-container: rgb(
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(34 117 151);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
15
|
--md-sys-color-error: rgb(186 26 26);
|
|
16
16
|
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
17
|
--md-sys-color-error-container: rgb(255 218 214);
|
|
@@ -20,31 +20,31 @@
|
|
|
20
20
|
--md-sys-color-on-background: rgb(28 27 27);
|
|
21
21
|
--md-sys-color-surface: rgb(252 248 248);
|
|
22
22
|
--md-sys-color-on-surface: rgb(28 27 27);
|
|
23
|
-
--md-sys-color-surface-variant: rgb(
|
|
24
|
-
--md-sys-color-on-surface-variant: rgb(
|
|
25
|
-
--md-sys-color-outline: rgb(
|
|
26
|
-
--md-sys-color-outline-variant: rgb(
|
|
23
|
+
--md-sys-color-surface-variant: rgb(224 227 229);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(68 71 73);
|
|
25
|
+
--md-sys-color-outline: rgb(116 119 121);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(196 199 201);
|
|
27
27
|
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
28
|
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
29
|
--md-sys-color-inverse-surface: rgb(49 48 48);
|
|
30
30
|
--md-sys-color-inverse-on-surface: rgb(244 240 239);
|
|
31
|
-
--md-sys-color-inverse-primary: rgb(
|
|
32
|
-
--md-sys-color-primary-fixed: rgb(
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(198 198 199);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(226 226 227);
|
|
33
33
|
--md-sys-color-on-primary-fixed: rgb(26 28 29);
|
|
34
|
-
--md-sys-color-primary-fixed-dim: rgb(
|
|
35
|
-
--md-sys-color-on-primary-fixed-variant: rgb(
|
|
36
|
-
--md-sys-color-secondary-fixed: rgb(227 225
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(198 198 199);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(69 71 72);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(227 225 238);
|
|
37
37
|
--md-sys-color-on-secondary-fixed: rgb(26 27 36);
|
|
38
38
|
--md-sys-color-secondary-fixed-dim: rgb(199 197 210);
|
|
39
|
-
--md-sys-color-on-secondary-fixed-variant: rgb(70 70
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(70 70 80);
|
|
40
40
|
--md-sys-color-tertiary-fixed: rgb(193 232 255);
|
|
41
41
|
--md-sys-color-on-tertiary-fixed: rgb(0 30 43);
|
|
42
|
-
--md-sys-color-tertiary-fixed-dim: rgb(
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(135 208 245);
|
|
43
43
|
--md-sys-color-on-tertiary-fixed-variant: rgb(0 77 102);
|
|
44
44
|
--md-sys-color-surface-dim: rgb(221 217 217);
|
|
45
45
|
--md-sys-color-surface-bright: rgb(252 248 248);
|
|
46
46
|
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
-
--md-sys-color-surface-container-low: rgb(
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(246 243 242);
|
|
48
48
|
--md-sys-color-surface-container: rgb(241 237 236);
|
|
49
49
|
--md-sys-color-surface-container-high: rgb(235 231 231);
|
|
50
50
|
--md-sys-color-surface-container-highest: rgb(229 226 225);
|