@things-factory/operato-ecs 6.2.50 → 6.2.52
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 +6 -6
- package/package.json +26 -26
- package/schema.graphql +3 -7
package/client/bootstrap.js
CHANGED
@@ -47,7 +47,7 @@ export default async function bootstrap() {
|
|
47
47
|
registerDefaultGroups()
|
48
48
|
|
49
49
|
/* add addon-menu management page morenda */
|
50
|
-
if (await hasPrivilege({
|
50
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'menu' })) {
|
51
51
|
store.dispatch({
|
52
52
|
type: ADD_MORENDA,
|
53
53
|
morenda: {
|
@@ -75,7 +75,7 @@ export default async function bootstrap() {
|
|
75
75
|
/* set auth management menus into more-panel */
|
76
76
|
setAuthManagementMenus()
|
77
77
|
|
78
|
-
if (await hasPrivilege({
|
78
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'user' })) {
|
79
79
|
store.dispatch({
|
80
80
|
type: ADD_MORENDA,
|
81
81
|
morenda: {
|
@@ -88,7 +88,7 @@ export default async function bootstrap() {
|
|
88
88
|
})
|
89
89
|
}
|
90
90
|
|
91
|
-
if (await hasPrivilege({
|
91
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'board' })) {
|
92
92
|
store.dispatch({
|
93
93
|
type: ADD_MORENDA,
|
94
94
|
morenda: {
|
@@ -134,7 +134,7 @@ export default async function bootstrap() {
|
|
134
134
|
})
|
135
135
|
}
|
136
136
|
|
137
|
-
if (await hasPrivilege({
|
137
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'scenario' })) {
|
138
138
|
store.dispatch({
|
139
139
|
type: ADD_MORENDA,
|
140
140
|
morenda: {
|
@@ -169,7 +169,7 @@ export default async function bootstrap() {
|
|
169
169
|
})
|
170
170
|
}
|
171
171
|
|
172
|
-
if (await hasPrivilege({
|
172
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register' })) {
|
173
173
|
store.dispatch({
|
174
174
|
type: ADD_MORENDA,
|
175
175
|
morenda: {
|
@@ -257,7 +257,7 @@ export default async function bootstrap() {
|
|
257
257
|
}
|
258
258
|
})
|
259
259
|
|
260
|
-
if (await hasPrivilege({
|
260
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'security' })) {
|
261
261
|
store.dispatch({
|
262
262
|
type: ADD_SETTING,
|
263
263
|
setting: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/operato-ecs",
|
3
|
-
"version": "6.2.
|
3
|
+
"version": "6.2.52",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -54,33 +54,33 @@
|
|
54
54
|
"@operato/scene-switch": "^1.0.0",
|
55
55
|
"@operato/scene-table": "^1.0.0",
|
56
56
|
"@operato/scene-timer": "^1.0.0",
|
57
|
-
"@things-factory/api": "^6.2.
|
58
|
-
"@things-factory/apptool-ui": "^6.2.
|
59
|
-
"@things-factory/auth-ui": "^6.2.
|
60
|
-
"@things-factory/board-service": "^6.2.
|
61
|
-
"@things-factory/board-ui": "^6.2.
|
62
|
-
"@things-factory/context-ui": "^6.2.
|
63
|
-
"@things-factory/dashboard": "^6.2.
|
64
|
-
"@things-factory/export-ui": "^6.2.
|
65
|
-
"@things-factory/help": "^6.2.
|
66
|
-
"@things-factory/i18n-base": "^6.2.
|
67
|
-
"@things-factory/integration-melsec": "^6.2.
|
68
|
-
"@things-factory/integration-modbus": "^6.2.
|
69
|
-
"@things-factory/integration-opc": "^6.2.
|
70
|
-
"@things-factory/integration-ui": "^6.2.
|
71
|
-
"@things-factory/lite-menu": "^6.2.
|
72
|
-
"@things-factory/more-ui": "^6.2.
|
73
|
-
"@things-factory/notification": "^6.2.
|
74
|
-
"@things-factory/oauth2-client": "^6.2.
|
75
|
-
"@things-factory/print-ui": "^6.2.
|
76
|
-
"@things-factory/resource-ui": "^6.2.
|
77
|
-
"@things-factory/setting-base": "^6.2.
|
78
|
-
"@things-factory/setting-ui": "^6.2.
|
79
|
-
"@things-factory/shell": "^6.2.
|
80
|
-
"@things-factory/system": "^6.2.
|
57
|
+
"@things-factory/api": "^6.2.52",
|
58
|
+
"@things-factory/apptool-ui": "^6.2.52",
|
59
|
+
"@things-factory/auth-ui": "^6.2.52",
|
60
|
+
"@things-factory/board-service": "^6.2.52",
|
61
|
+
"@things-factory/board-ui": "^6.2.52",
|
62
|
+
"@things-factory/context-ui": "^6.2.52",
|
63
|
+
"@things-factory/dashboard": "^6.2.52",
|
64
|
+
"@things-factory/export-ui": "^6.2.52",
|
65
|
+
"@things-factory/help": "^6.2.52",
|
66
|
+
"@things-factory/i18n-base": "^6.2.52",
|
67
|
+
"@things-factory/integration-melsec": "^6.2.52",
|
68
|
+
"@things-factory/integration-modbus": "^6.2.52",
|
69
|
+
"@things-factory/integration-opc": "^6.2.52",
|
70
|
+
"@things-factory/integration-ui": "^6.2.52",
|
71
|
+
"@things-factory/lite-menu": "^6.2.52",
|
72
|
+
"@things-factory/more-ui": "^6.2.52",
|
73
|
+
"@things-factory/notification": "^6.2.52",
|
74
|
+
"@things-factory/oauth2-client": "^6.2.52",
|
75
|
+
"@things-factory/print-ui": "^6.2.52",
|
76
|
+
"@things-factory/resource-ui": "^6.2.52",
|
77
|
+
"@things-factory/setting-base": "^6.2.52",
|
78
|
+
"@things-factory/setting-ui": "^6.2.52",
|
79
|
+
"@things-factory/shell": "^6.2.52",
|
80
|
+
"@things-factory/system": "^6.2.52"
|
81
81
|
},
|
82
82
|
"devDependencies": {
|
83
83
|
"@things-factory/builder": "^6.2.33"
|
84
84
|
},
|
85
|
-
"gitHead": "
|
85
|
+
"gitHead": "234f95b63937521f1791a9e2141024ee7816d26d"
|
86
86
|
}
|
package/schema.graphql
CHANGED
@@ -3167,6 +3167,7 @@ type Privilege {
|
|
3167
3167
|
description: String
|
3168
3168
|
id: ID!
|
3169
3169
|
name: String!
|
3170
|
+
privilege: String!
|
3170
3171
|
roles: [Role!]
|
3171
3172
|
updatedAt: DateTimeISO
|
3172
3173
|
updater: User
|
@@ -3176,7 +3177,6 @@ input PrivilegeInput {
|
|
3176
3177
|
category: String
|
3177
3178
|
owner: Boolean
|
3178
3179
|
privilege: String
|
3179
|
-
protected: Boolean
|
3180
3180
|
super: Boolean
|
3181
3181
|
}
|
3182
3182
|
|
@@ -3189,7 +3189,6 @@ type PrivilegeObject {
|
|
3189
3189
|
category: String
|
3190
3190
|
owner: Boolean
|
3191
3191
|
privilege: String
|
3192
|
-
protected: Boolean
|
3193
3192
|
super: Boolean
|
3194
3193
|
}
|
3195
3194
|
|
@@ -3373,7 +3372,7 @@ type Query {
|
|
3373
3372
|
domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
|
3374
3373
|
|
3375
3374
|
"""To fetch domains with given privilege for user"""
|
3376
|
-
domainsWithPrivilege(category: String!,
|
3375
|
+
domainsWithPrivilege(category: String!, privilege: String!): [Domain!]!
|
3377
3376
|
|
3378
3377
|
"""To fetch a Employee"""
|
3379
3378
|
employee(id: String!): Employee
|
@@ -3423,7 +3422,7 @@ type Query {
|
|
3423
3422
|
groups(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): GroupList!
|
3424
3423
|
|
3425
3424
|
"""To query whether I have the given permission"""
|
3426
|
-
hasPrivilege(category: String!,
|
3425
|
+
hasPrivilege(category: String!, privilege: String!): Boolean!
|
3427
3426
|
i18nCompletion(input: i18nCompletionInput!): i18nCompletionOutput!
|
3428
3427
|
imageCompletion(input: ImageCompletionInput!): ImageCompletionOutput!
|
3429
3428
|
|
@@ -3548,9 +3547,6 @@ type Query {
|
|
3548
3547
|
"""To fetch multiple PrinterDevices"""
|
3549
3548
|
printerDevices(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrinterDeviceList!
|
3550
3549
|
|
3551
|
-
"""To fetch privilege"""
|
3552
|
-
privilege(category: String!, name: String!): Privilege!
|
3553
|
-
|
3554
3550
|
"""To fetch multiple privileges"""
|
3555
3551
|
privileges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrivilegeList!
|
3556
3552
|
|