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.
Files changed (68) hide show
  1. package/.vscode/launch.json +0 -1
  2. package/README.md +0 -1
  3. package/dist/css/app.f22995d1.css +1 -0
  4. package/dist/index.tmp +1 -1
  5. package/dist/js/app-legacy.82274c39.js +2 -0
  6. package/dist/js/app-legacy.82274c39.js.map +1 -0
  7. package/dist/js/app.82274c39.js +2 -0
  8. package/dist/js/app.82274c39.js.map +1 -0
  9. package/dist/js/chunk-vendors-legacy.d89048a8.js +13 -0
  10. package/dist/js/chunk-vendors-legacy.d89048a8.js.map +1 -0
  11. package/dist/js/chunk-vendors.d89048a8.js +13 -0
  12. package/dist/js/chunk-vendors.d89048a8.js.map +1 -0
  13. package/dist/w-web-perm.umd.js +2 -2
  14. package/dist/w-web-perm.umd.js.map +1 -1
  15. package/docs/WWebPerm.html +2 -2
  16. package/docs/WWebPerm.mjs.html +212 -64
  17. package/docs/index.html +1 -1
  18. package/g.backupDb.mjs +1 -1
  19. package/g.initialData.mjs +211 -111
  20. package/g.initialTestData.mjs +2 -1
  21. package/g.mjs +0 -0
  22. package/g.provideGrups.mjs +87 -0
  23. package/g.providePemis.mjs +43 -0
  24. package/g.provideTargets.mjs +20 -13
  25. package/g.provideUsers.mjs +45 -13
  26. package/package.json +8 -8
  27. package/script.txt +5 -5
  28. package/server/WWebPerm.mjs +211 -63
  29. package/server/provideGrups.mjs +64 -0
  30. package/server/{provideRuleGroups.mjs → providePemis.mjs} +14 -15
  31. package/server/provideTargets.mjs +8 -5
  32. package/server/provideUsers.mjs +9 -9
  33. package/src/App.vue +16 -3
  34. package/src/components/Layout.vue +13 -5
  35. package/src/components/LayoutContent.vue +31 -16
  36. package/src/components/LayoutContentGrups.vue +793 -0
  37. package/src/components/LayoutContentPemis.vue +793 -0
  38. package/src/components/LayoutContentTargets.vue +481 -307
  39. package/src/components/LayoutContentUsers.vue +796 -291
  40. package/src/components/VeCgrups.vue +926 -0
  41. package/src/components/VeCpemis.vue +926 -0
  42. package/src/components/VeCrules.vue +820 -0
  43. package/src/main.js +2 -2
  44. package/src/perm.mjs +5 -5
  45. package/src/plugins/mShare.mjs +444 -153
  46. package/src/plugins/mUI.mjs +37 -19
  47. package/src/schema/gi.mjs +1 -1
  48. package/src/schema/index.mjs +4 -2
  49. package/src/schema/tables/grups.mjs +154 -0
  50. package/src/schema/tables/{ruleGroups.mjs → pemis.mjs} +27 -16
  51. package/src/schema/tables/targets.mjs +49 -16
  52. package/src/schema/tables/users.mjs +55 -27
  53. package/src/store/mutations.mjs +375 -150
  54. package/srv.mjs +2 -2
  55. package/tableTags-web-perm.json +1 -1
  56. package/dist/css/app.f6c50bec.css +0 -1
  57. package/dist/js/app-legacy.767522f1.js +0 -2
  58. package/dist/js/app-legacy.767522f1.js.map +0 -1
  59. package/dist/js/app.767522f1.js +0 -2
  60. package/dist/js/app.767522f1.js.map +0 -1
  61. package/dist/js/chunk-vendors-legacy.b0d63e17.js +0 -13
  62. package/dist/js/chunk-vendors-legacy.b0d63e17.js.map +0 -1
  63. package/dist/js/chunk-vendors.b0d63e17.js +0 -13
  64. package/dist/js/chunk-vendors.b0d63e17.js.map +0 -1
  65. package/g.provideRuleGroups.mjs +0 -56
  66. package/src/components/LayoutContentGroups.vue +0 -671
  67. package/src/components/VeUser.vue +0 -446
  68. 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
- // Vue.prototype.$ds = ds
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, `rules`, {})
87
+ return get(pmd, `pemis`, {})
88
88
  },
89
89
  rule: (key) => {
90
- return get(pmd, `rules.${key}`, {})
90
+ return get(pmd, `pemis.${key}`, {})
91
91
  },
92
92
  show: (key) => {
93
- return get(pmd, `rules.${key}.show`, 'n')
93
+ return get(pmd, `pemis.${key}.show`, 'n')
94
94
  },
95
95
  active: (key) => {
96
- return get(pmd, `rules.${key}.active`, 'n')
96
+ return get(pmd, `pemis.${key}.active`, 'n')
97
97
  },
98
98
  }
99
99