w-web-perm 1.0.12 → 1.0.13
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/.vscode/launch.json +0 -1
- package/README.md +0 -1
- package/dist/css/app.f22995d1.css +1 -0
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.82274c39.js +2 -0
- package/dist/js/app-legacy.82274c39.js.map +1 -0
- package/dist/js/app.82274c39.js +2 -0
- package/dist/js/app.82274c39.js.map +1 -0
- package/dist/js/chunk-vendors-legacy.d89048a8.js +13 -0
- package/dist/js/chunk-vendors-legacy.d89048a8.js.map +1 -0
- package/dist/js/chunk-vendors.d89048a8.js +13 -0
- package/dist/js/chunk-vendors.d89048a8.js.map +1 -0
- package/dist/w-web-perm.umd.js +2 -2
- package/dist/w-web-perm.umd.js.map +1 -1
- package/docs/WWebPerm.html +2 -2
- package/docs/WWebPerm.mjs.html +212 -64
- package/docs/index.html +1 -1
- package/g.backupDb.mjs +1 -1
- package/g.initialData.mjs +211 -111
- package/g.initialTestData.mjs +2 -1
- package/g.mjs +0 -0
- package/g.provideGrups.mjs +87 -0
- package/g.providePemis.mjs +43 -0
- package/g.provideTargets.mjs +20 -13
- package/g.provideUsers.mjs +45 -13
- package/package.json +8 -8
- package/script.txt +5 -5
- package/server/WWebPerm.mjs +211 -63
- package/server/provideGrups.mjs +64 -0
- package/server/{provideRuleGroups.mjs → providePemis.mjs} +14 -15
- package/server/provideTargets.mjs +8 -5
- package/server/provideUsers.mjs +9 -9
- package/src/App.vue +16 -3
- package/src/components/Layout.vue +13 -5
- package/src/components/LayoutContent.vue +31 -16
- package/src/components/LayoutContentGrups.vue +793 -0
- package/src/components/LayoutContentPemis.vue +793 -0
- package/src/components/LayoutContentTargets.vue +481 -307
- package/src/components/LayoutContentUsers.vue +796 -291
- package/src/components/VeCgrups.vue +926 -0
- package/src/components/VeCpemis.vue +926 -0
- package/src/components/VeCrules.vue +820 -0
- package/src/main.js +2 -2
- package/src/perm.mjs +5 -5
- package/src/plugins/mShare.mjs +444 -153
- package/src/plugins/mUI.mjs +37 -19
- package/src/schema/gi.mjs +1 -1
- package/src/schema/index.mjs +4 -2
- package/src/schema/tables/grups.mjs +154 -0
- package/src/schema/tables/{ruleGroups.mjs → pemis.mjs} +27 -16
- package/src/schema/tables/targets.mjs +49 -16
- package/src/schema/tables/users.mjs +55 -27
- package/src/store/mutations.mjs +375 -150
- package/srv.mjs +2 -2
- package/tableTags-web-perm.json +1 -1
- package/dist/css/app.f6c50bec.css +0 -1
- package/dist/js/app-legacy.767522f1.js +0 -2
- package/dist/js/app-legacy.767522f1.js.map +0 -1
- package/dist/js/app.767522f1.js +0 -2
- package/dist/js/app.767522f1.js.map +0 -1
- package/dist/js/chunk-vendors-legacy.b0d63e17.js +0 -13
- package/dist/js/chunk-vendors-legacy.b0d63e17.js.map +0 -1
- package/dist/js/chunk-vendors.b0d63e17.js +0 -13
- package/dist/js/chunk-vendors.b0d63e17.js.map +0 -1
- package/g.provideRuleGroups.mjs +0 -56
- package/src/components/LayoutContentGroups.vue +0 -671
- package/src/components/VeUser.vue +0 -446
- package/src/components/ruleGroup.vue +0 -645
package/src/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
|
-
import get from 'lodash-es/get'
|
|
2
|
+
import get from 'lodash-es/get.js'
|
|
3
3
|
import WServHapiClient from 'w-serv-hapi/src/WServHapiClient.mjs'
|
|
4
4
|
import WAlert from 'w-component-vue/src/components/WAlert.mjs'
|
|
5
5
|
import domMutation from 'w-component-vue/src/js/domMutation.mjs'
|
|
@@ -39,7 +39,7 @@ Vue.prototype.$t = ui.getKpText
|
|
|
39
39
|
Vue.prototype.$s = s
|
|
40
40
|
Vue.prototype.$dssm = dssm
|
|
41
41
|
// Vue.prototype.$dspt = dspt
|
|
42
|
-
|
|
42
|
+
Vue.prototype.$ds = ds
|
|
43
43
|
Vue.prototype.$dg = {}
|
|
44
44
|
|
|
45
45
|
//directive
|
package/src/perm.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios'
|
|
2
|
-
import get from 'lodash-es/get.js'
|
|
2
|
+
import get from 'lodash-es/get.js'
|
|
3
3
|
import isestr from 'wsemi/src/isestr.mjs'
|
|
4
4
|
import isbol from 'wsemi/src/isbol.mjs'
|
|
5
5
|
import isfun from 'wsemi/src/isfun.mjs'
|
|
@@ -84,16 +84,16 @@ function perm() {
|
|
|
84
84
|
return u
|
|
85
85
|
},
|
|
86
86
|
getRules: () => {
|
|
87
|
-
return get(pmd, `
|
|
87
|
+
return get(pmd, `pemis`, {})
|
|
88
88
|
},
|
|
89
89
|
rule: (key) => {
|
|
90
|
-
return get(pmd, `
|
|
90
|
+
return get(pmd, `pemis.${key}`, {})
|
|
91
91
|
},
|
|
92
92
|
show: (key) => {
|
|
93
|
-
return get(pmd, `
|
|
93
|
+
return get(pmd, `pemis.${key}.show`, 'n')
|
|
94
94
|
},
|
|
95
95
|
active: (key) => {
|
|
96
|
-
return get(pmd, `
|
|
96
|
+
return get(pmd, `pemis.${key}.active`, 'n')
|
|
97
97
|
},
|
|
98
98
|
}
|
|
99
99
|
|