w-web-perm 1.0.44 → 1.0.46
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/.github/workflows/ci-test.yml +1 -1
- package/db/wperm/grups/data.mdb +0 -0
- package/db/wperm/grups/lock.mdb +0 -0
- package/db/wperm/pemis/data.mdb +0 -0
- package/db/wperm/pemis/lock.mdb +0 -0
- package/db/wperm/targets/data.mdb +0 -0
- package/db/wperm/targets/lock.mdb +0 -0
- package/db/wperm/users/data.mdb +0 -0
- package/db/wperm/users/lock.mdb +0 -0
- package/dist/css/app.30e81bfe.css +1 -0
- package/dist/css/chunk-vendors.f149e124.css +1 -0
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.7a0dda14.js +1 -0
- package/dist/js/app.7a0dda14.js +1 -0
- package/dist/js/chunk-vendors-legacy.e8703728.js +21 -0
- package/dist/js/chunk-vendors.e8703728.js +21 -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 +9 -5
- package/docs/index.html +1 -1
- package/g.initialData.mjs +3 -3
- package/g.provideUsers.mjs +3 -3
- package/package.json +9 -8
- package/server/WWebPerm.mjs +8 -4
- package/{src/plugins/mLang.mjs → server/procLang.mjs} +837 -754
- package/src/components/LayoutContentGrups.vue +26 -62
- package/src/components/LayoutContentPemis.vue +26 -62
- package/src/components/LayoutContentTargets.vue +16 -45
- package/src/components/LayoutContentUsers.vue +30 -90
- package/src/components/VeCgrups.vue +15 -46
- package/src/components/VeCpemis.vue +15 -46
- package/src/components/VeCrules.vue +11 -26
- package/src/components/VeGrupBlngUsers.vue +26 -72
- package/src/components/VePemiBlngGrups.vue +26 -72
- package/src/plugins/mUI.mjs +5 -60
- package/src/schema/tables/users.mjs +3 -3
- package/tableTags.json +1 -1
- package/test/getUserRules.test.mjs +899 -0
- package/dist/css/app.5eabcb89.css +0 -1
- package/dist/js/app-legacy.d506ca61.js +0 -1
- package/dist/js/app.d506ca61.js +0 -1
- package/dist/js/chunk-vendors-legacy.18b85e4c.js +0 -14
- package/dist/js/chunk-vendors.18b85e4c.js +0 -14
- package/test/all.test.mjs +0 -10
package/src/plugins/mUI.mjs
CHANGED
|
@@ -22,7 +22,6 @@ import delay from 'wsemi/src/delay.mjs'
|
|
|
22
22
|
import isarr from 'wsemi/src/isarr.mjs'
|
|
23
23
|
import isestr from 'wsemi/src/isestr.mjs'
|
|
24
24
|
import isfun from 'wsemi/src/isfun.mjs'
|
|
25
|
-
import iseobj from 'wsemi/src/iseobj.mjs'
|
|
26
25
|
import isearr from 'wsemi/src/isearr.mjs'
|
|
27
26
|
import isEle from 'wsemi/src/isEle.mjs'
|
|
28
27
|
import strleft from 'wsemi/src/strleft.mjs'
|
|
@@ -42,7 +41,6 @@ import replace from 'wsemi/src/replace.mjs'
|
|
|
42
41
|
import timemsTZ2past from 'wsemi/src/timemsTZ2past.mjs'
|
|
43
42
|
import convertToTree from 'wsemi/src/convertToTree.mjs'
|
|
44
43
|
// import WUiDwload from 'w-ui-dwload/src/WUiDwload.mjs'
|
|
45
|
-
import kpLang from './mLang.mjs'
|
|
46
44
|
|
|
47
45
|
|
|
48
46
|
let vo = Vue.prototype
|
|
@@ -156,73 +154,20 @@ function setLang(lang = null, from = '') {
|
|
|
156
154
|
}
|
|
157
155
|
}
|
|
158
156
|
|
|
159
|
-
//genKpText, 切換lang得調用getKpLang重算kpText
|
|
160
|
-
genKpText(lang)
|
|
161
|
-
|
|
162
|
-
//forceUpdate
|
|
163
|
-
forceUpdate()
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
function genKpText(lang) {
|
|
169
|
-
// console.log('genKpText', lang)
|
|
170
|
-
|
|
171
|
-
//kp
|
|
172
|
-
let kp = {}
|
|
173
|
-
|
|
174
157
|
//kpLang
|
|
175
|
-
|
|
176
|
-
...kp,
|
|
177
|
-
...kpLang,
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
//kpLangExt
|
|
181
|
-
let kpLangExt = get(vo, '$store.state.webInfor.kpLangExt', {})
|
|
182
|
-
// console.log('kpLangExt', kpLangExt)
|
|
183
|
-
if (iseobj(kpLangExt)) {
|
|
184
|
-
kp = {
|
|
185
|
-
...kp,
|
|
186
|
-
...kpLangExt,
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
//webName
|
|
191
|
-
let webName = get(vo, '$store.state.webInfor.webName', {})
|
|
192
|
-
// console.log('webName', webName)
|
|
193
|
-
if (iseobj(webName)) {
|
|
194
|
-
kp = {
|
|
195
|
-
...kp,
|
|
196
|
-
webName: {
|
|
197
|
-
...webName,
|
|
198
|
-
},
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
//webDescription
|
|
203
|
-
let webDescription = get(vo, '$store.state.webInfor.webDescription', {})
|
|
204
|
-
// console.log('webDescription', webDescription)
|
|
205
|
-
if (iseobj(webDescription)) {
|
|
206
|
-
kp = {
|
|
207
|
-
...kp,
|
|
208
|
-
webDescription: {
|
|
209
|
-
...webDescription,
|
|
210
|
-
},
|
|
211
|
-
}
|
|
212
|
-
}
|
|
158
|
+
let kpLang = get(vo, '$store.state.webInfor.kpLang', {})
|
|
213
159
|
|
|
214
160
|
//kpText
|
|
215
|
-
let kpText = {}
|
|
216
|
-
each(kp, (v, k) => {
|
|
217
|
-
kpText[k] = v[lang]
|
|
218
|
-
})
|
|
219
|
-
// console.log('kp', kp)
|
|
161
|
+
let kpText = get(kpLang, lang, {})
|
|
220
162
|
// console.log('kpText', kpText)
|
|
221
163
|
|
|
222
164
|
//commit
|
|
223
165
|
vo.$store.commit(vo.$store.types.UpdateKpText, kpText)
|
|
224
166
|
// console.log('commit kpText', kpText)
|
|
225
167
|
|
|
168
|
+
//forceUpdate
|
|
169
|
+
forceUpdate()
|
|
170
|
+
|
|
226
171
|
}
|
|
227
172
|
|
|
228
173
|
|
|
@@ -127,9 +127,9 @@ let funTest = () => {
|
|
|
127
127
|
isAdmin,
|
|
128
128
|
})
|
|
129
129
|
v.id = `id-for-${name}`
|
|
130
|
-
if (name === 'john') {
|
|
131
|
-
|
|
132
|
-
}
|
|
130
|
+
// if (name === 'john') {
|
|
131
|
+
// v.email = `${v.email};john@test.com`
|
|
132
|
+
// }
|
|
133
133
|
v.isAdmin = isAdmin
|
|
134
134
|
v = dtpick(v, keys(settings))
|
|
135
135
|
return v
|
package/tableTags.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"grups":"
|
|
1
|
+
{"grups":"2026-03-26T15:29:24+08:00|cXr1fm","pemis":"2026-03-26T15:29:24+08:00|cp05vW","targets":"2026-03-26T15:29:24+08:00|kXDsDy","users":"2026-03-26T15:29:24+08:00|tTgZtc"}
|