@things-factory/operato-codelingua 9.0.0-beta.32 → 9.0.0-beta.34
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.js
CHANGED
|
@@ -193,6 +193,18 @@ export default async function bootstrap() {
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
+
if (await hasPrivilege({ superUserGranted: true })) {
|
|
197
|
+
store.dispatch({
|
|
198
|
+
type: ADD_MORENDA,
|
|
199
|
+
morenda: {
|
|
200
|
+
icon: html ` <md-icon>linked_services</md-icon> `,
|
|
201
|
+
name: html ` <ox-i18n msgid="title.domain-link management"></ox-i18n> `,
|
|
202
|
+
action: () => {
|
|
203
|
+
navigate('domain-links');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
196
208
|
/* setting app-tools */
|
|
197
209
|
store.dispatch({
|
|
198
210
|
type: APPEND_APP_TOOL,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAA;AAC7C,OAAO,0CAA0C,CAAA,CAAC,4BAA4B;AAC9E,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAChF,OAAO,0BAA0B,CAAA;AACjC,OAAO,yEAAyE,CAAA,CAAC,0CAA0C;AAE3H,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACjH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,E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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;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yEAAyE;SACxF;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/board-ui/dist-client'\nimport '@things-factory/notification/dist-client' /* for notification-badge */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/context-ui/dist-client/title-on-page-header-setting-let' /* for title-on-page-header-setting-let */\n\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit'\n\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL, REMOVE_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { auth, hasPrivilege } from '@things-factory/auth-base/dist-client'\n\nimport { navigate, store } from '@operato/shell'\n\nconsole.log(\n `%c\n ____ _ _ _ \n/ __\\\\ ___ __| | __ | | (_)_ __ __ _ _ _ __ _ \n| | / _ \\\\ / _\\` |/ _ \\\\ | | | | '_ \\\\ / _\\` | | | |/ _\\` |\n| |__| (_) | (_| | __/ | |___| | | | | (_| | |_| | (_| |\n\\\\____/\\\\___/ \\\\__,_|\\\\___| |_____|_|_| |_|\\\\__, |\\\\__,_|\\\\__,_|\n |___/ \n`,\n 'background: #222; color: #bada55'\n)\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: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\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 /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>help</md-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\n }\n }\n })\n\n /* append viewpart anchor to asidebar */\n appendViewpart({\n name: 'asidebar-anchor',\n viewpart: {\n show: false,\n hovering: 'edge',\n backdrop: true\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n if (width == 'WIDE') {\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n }\n\n appendViewpart({\n name: 'codelingua-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 store.dispatch({\n type: width == 'WIDE' ? APPEND_APP_TOOL : REMOVE_APP_TOOL,\n name: 'app-brand',\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n updateViewpart('codelingua-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\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` <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 store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>airplay</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.play-groups\"></ox-i18n> `,\n action: () => {\n navigate('play-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'query', category: 'attachment', domainOwnerGranted: true })) {\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 (\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 /* 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: 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 /* for settings */\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` <infowindow-setting-let></infowindow-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 store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 22,\n template: html` <title-on-page-header-setting-let></title-on-page-header-setting-let> `\n }\n })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAA;AAC7C,OAAO,0CAA0C,CAAA,CAAC,4BAA4B;AAC9E,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAChF,OAAO,0BAA0B,CAAA;AACjC,OAAO,yEAAyE,CAAA,CAAC,0CAA0C;AAE3H,OA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,EAAE,cAAc;QACpB,QAAQ,EAAE;YACR,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,IAAI,CAAA,qEAAqE;SACpF;QACD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;KACrC,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE;YACJ,IAAI,EAAE,aAAa;YACnB,QAAQ,EAAE,IAAI,CAAA,gCAAgC;YAC9C,QAAQ,EAAE,aAAa,CAAC,IAAI;SAC7B;KACF,CAAC,CAAA;IAEF,kBAAkB;IAClB,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,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;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yEAAyE;SACxF;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/board-ui/dist-client'\nimport '@things-factory/notification/dist-client' /* for notification-badge */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/context-ui/dist-client/title-on-page-header-setting-let' /* for title-on-page-header-setting-let */\n\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit'\n\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_POSITION } from '@operato/layout'\nimport { APPEND_APP_TOOL, REMOVE_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { auth, hasPrivilege } from '@things-factory/auth-base/dist-client'\n\nimport { navigate, store } from '@operato/shell'\n\nconsole.log(\n `%c\n ____ _ _ _ \n/ __\\\\ ___ __| | __ | | (_)_ __ __ _ _ _ __ _ \n| | / _ \\\\ / _\\` |/ _ \\\\ | | | | '_ \\\\ / _\\` | | | |/ _\\` |\n| |__| (_) | (_| | __/ | |___| | | | | (_| | |_| | (_| |\n\\\\____/\\\\___/ \\\\__,_|\\\\___| |_____|_|_| |_|\\\\__, |\\\\__,_|\\\\__,_|\n |___/ \n`,\n 'background: #222; color: #bada55'\n)\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: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\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 /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>help</md-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\n }\n }\n })\n\n /* append viewpart anchor to asidebar */\n appendViewpart({\n name: 'asidebar-anchor',\n viewpart: {\n show: false,\n hovering: 'edge',\n backdrop: true\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n if (width == 'WIDE') {\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n }\n\n appendViewpart({\n name: 'codelingua-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 store.dispatch({\n type: width == 'WIDE' ? APPEND_APP_TOOL : REMOVE_APP_TOOL,\n name: 'app-brand',\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">Code Lingua</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n updateViewpart('codelingua-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\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` <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 store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>airplay</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.play-groups\"></ox-i18n> `,\n action: () => {\n navigate('play-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'query', category: 'attachment', domainOwnerGranted: true })) {\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 (\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 if (await hasPrivilege({ superUserGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>linked_services</md-icon> `,\n name: html` <ox-i18n msgid=\"title.domain-link management\"></ox-i18n> `,\n action: () => {\n navigate('domain-links')\n }\n }\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: 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 /* for settings */\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` <infowindow-setting-let></infowindow-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 store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 22,\n template: html` <title-on-page-header-setting-let></title-on-page-header-setting-let> `\n }\n })\n}\n"]}
|