@things-factory/operato-retail 7.0.1-alpha.78 → 7.0.1-alpha.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/bootstrap.js +13 -10
- package/package.json +14 -14
package/client/bootstrap.js
CHANGED
|
@@ -3,17 +3,18 @@ import './viewparts/user-circle'
|
|
|
3
3
|
|
|
4
4
|
import { html } from 'lit'
|
|
5
5
|
|
|
6
|
+
import { store } from '@operato/shell'
|
|
7
|
+
import { TOOL_POSITION } from '@operato/layout'
|
|
6
8
|
import { registerDefaultGroups } from '@operato/board/register-default-groups.js'
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import {
|
|
9
|
+
import { isMobileDevice } from '@operato/utils'
|
|
10
|
+
|
|
11
|
+
import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'
|
|
12
|
+
import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'
|
|
13
|
+
import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'
|
|
10
14
|
import { hasPrivilege } from '@things-factory/auth-base/dist-client'
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { ADD_SETTING } from '@things-factory/setting-base'
|
|
15
|
-
import { store } from '@things-factory/shell'
|
|
16
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
15
|
+
import { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu/dist-client'
|
|
16
|
+
import { setupContextUIPart } from '@things-factory/context-ui/dist-client'
|
|
17
|
+
import { ADD_SETTING } from '@things-factory/setting-base/dist-client'
|
|
17
18
|
|
|
18
19
|
import { getMenuTemplate } from './menu'
|
|
19
20
|
|
|
@@ -71,7 +72,9 @@ export default async function bootstrap() {
|
|
|
71
72
|
})
|
|
72
73
|
|
|
73
74
|
/* add addon-menu management page morenda */
|
|
74
|
-
if (
|
|
75
|
+
if (
|
|
76
|
+
await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })
|
|
77
|
+
) {
|
|
75
78
|
store.dispatch({
|
|
76
79
|
type: ADD_MORENDA,
|
|
77
80
|
morenda: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-retail",
|
|
3
|
-
"version": "7.0.1-alpha.
|
|
3
|
+
"version": "7.0.1-alpha.79",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -40,28 +40,28 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@material/web": "^1.4.1",
|
|
42
42
|
"@operato/data-grist": "^2.0.0-alpha.0",
|
|
43
|
-
"@things-factory/apptool-ui": "^7.0.1-alpha.
|
|
43
|
+
"@things-factory/apptool-ui": "^7.0.1-alpha.79",
|
|
44
44
|
"@things-factory/attachment-base": "^7.0.1-alpha.78",
|
|
45
45
|
"@things-factory/auth-base": "^7.0.1-alpha.78",
|
|
46
|
-
"@things-factory/auth-ui": "^7.0.1-alpha.
|
|
46
|
+
"@things-factory/auth-ui": "^7.0.1-alpha.79",
|
|
47
47
|
"@things-factory/biz-base": "^7.0.1-alpha.78",
|
|
48
|
-
"@things-factory/board-service": "^7.0.1-alpha.
|
|
49
|
-
"@things-factory/board-ui": "^7.0.1-alpha.
|
|
50
|
-
"@things-factory/code-ui": "^7.0.1-alpha.
|
|
51
|
-
"@things-factory/context-ui": "^7.0.1-alpha.
|
|
52
|
-
"@things-factory/export-ui": "^7.0.1-alpha.
|
|
48
|
+
"@things-factory/board-service": "^7.0.1-alpha.79",
|
|
49
|
+
"@things-factory/board-ui": "^7.0.1-alpha.79",
|
|
50
|
+
"@things-factory/code-ui": "^7.0.1-alpha.79",
|
|
51
|
+
"@things-factory/context-ui": "^7.0.1-alpha.79",
|
|
52
|
+
"@things-factory/export-ui": "^7.0.1-alpha.79",
|
|
53
53
|
"@things-factory/help": "^7.0.1-alpha.71",
|
|
54
54
|
"@things-factory/i18n-base": "^7.0.1-alpha.77",
|
|
55
|
-
"@things-factory/lite-menu": "^7.0.1-alpha.
|
|
56
|
-
"@things-factory/more-ui": "^7.0.1-alpha.
|
|
55
|
+
"@things-factory/lite-menu": "^7.0.1-alpha.79",
|
|
56
|
+
"@things-factory/more-ui": "^7.0.1-alpha.79",
|
|
57
57
|
"@things-factory/pdf": "^7.0.1-alpha.71",
|
|
58
|
-
"@things-factory/resource-ui": "^7.0.1-alpha.
|
|
59
|
-
"@things-factory/setting-ui": "^7.0.1-alpha.
|
|
58
|
+
"@things-factory/resource-ui": "^7.0.1-alpha.79",
|
|
59
|
+
"@things-factory/setting-ui": "^7.0.1-alpha.79",
|
|
60
60
|
"@things-factory/shell": "^7.0.1-alpha.71",
|
|
61
|
-
"@things-factory/system": "^7.0.1-alpha.
|
|
61
|
+
"@things-factory/system": "^7.0.1-alpha.79"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@things-factory/builder": "^7.0.1-alpha.71"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "b5b88ed7abdb33839beecf802f85976bc39dfaa1"
|
|
67
67
|
}
|