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.
Files changed (45) hide show
  1. package/.github/workflows/ci-test.yml +1 -1
  2. package/db/wperm/grups/data.mdb +0 -0
  3. package/db/wperm/grups/lock.mdb +0 -0
  4. package/db/wperm/pemis/data.mdb +0 -0
  5. package/db/wperm/pemis/lock.mdb +0 -0
  6. package/db/wperm/targets/data.mdb +0 -0
  7. package/db/wperm/targets/lock.mdb +0 -0
  8. package/db/wperm/users/data.mdb +0 -0
  9. package/db/wperm/users/lock.mdb +0 -0
  10. package/dist/css/app.30e81bfe.css +1 -0
  11. package/dist/css/chunk-vendors.f149e124.css +1 -0
  12. package/dist/index.tmp +1 -1
  13. package/dist/js/app-legacy.7a0dda14.js +1 -0
  14. package/dist/js/app.7a0dda14.js +1 -0
  15. package/dist/js/chunk-vendors-legacy.e8703728.js +21 -0
  16. package/dist/js/chunk-vendors.e8703728.js +21 -0
  17. package/dist/w-web-perm.umd.js +2 -2
  18. package/dist/w-web-perm.umd.js.map +1 -1
  19. package/docs/WWebPerm.html +2 -2
  20. package/docs/WWebPerm.mjs.html +9 -5
  21. package/docs/index.html +1 -1
  22. package/g.initialData.mjs +3 -3
  23. package/g.provideUsers.mjs +3 -3
  24. package/package.json +9 -8
  25. package/server/WWebPerm.mjs +8 -4
  26. package/{src/plugins/mLang.mjs → server/procLang.mjs} +837 -754
  27. package/src/components/LayoutContentGrups.vue +26 -62
  28. package/src/components/LayoutContentPemis.vue +26 -62
  29. package/src/components/LayoutContentTargets.vue +16 -45
  30. package/src/components/LayoutContentUsers.vue +30 -90
  31. package/src/components/VeCgrups.vue +15 -46
  32. package/src/components/VeCpemis.vue +15 -46
  33. package/src/components/VeCrules.vue +11 -26
  34. package/src/components/VeGrupBlngUsers.vue +26 -72
  35. package/src/components/VePemiBlngGrups.vue +26 -72
  36. package/src/plugins/mUI.mjs +5 -60
  37. package/src/schema/tables/users.mjs +3 -3
  38. package/tableTags.json +1 -1
  39. package/test/getUserRules.test.mjs +899 -0
  40. package/dist/css/app.5eabcb89.css +0 -1
  41. package/dist/js/app-legacy.d506ca61.js +0 -1
  42. package/dist/js/app.d506ca61.js +0 -1
  43. package/dist/js/chunk-vendors-legacy.18b85e4c.js +0 -14
  44. package/dist/js/chunk-vendors.18b85e4c.js +0 -14
  45. package/test/all.test.mjs +0 -10
@@ -80,7 +80,7 @@
80
80
 
81
81
  <dt class="tag-source">Source:</dt>
82
82
  <dd class="tag-source"><ul class="dummy"><li>
83
- <a href="WWebPerm.mjs.html">WWebPerm.mjs</a>, <a href="WWebPerm.mjs.html#line137">line 137</a>
83
+ <a href="WWebPerm.mjs.html">WWebPerm.mjs</a>, <a href="WWebPerm.mjs.html#line138">line 138</a>
84
84
  </li></ul></dd>
85
85
 
86
86
 
@@ -925,7 +925,7 @@
925
925
  <br class="clear">
926
926
 
927
927
  <footer>
928
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Nov 26 2025 22:41:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
928
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Mar 26 2026 15:32:00 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
929
929
  </footer>
930
930
 
931
931
  <script>prettyPrint();</script>
@@ -78,6 +78,7 @@ import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
78
78
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
79
79
  import ds from '../src/schema/index.mjs'
80
80
  import { getUserRules } from '../src/plugins/mShare.mjs'
81
+ import procLang from './procLang.mjs'
81
82
 
82
83
 
83
84
  /**
@@ -310,6 +311,10 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
310
311
  let kpLangExt = get(opt, 'kpLangExt', null)
311
312
 
312
313
 
314
+ //kpLang
315
+ let kpLang = procLang({ kpLangExt, webName, webDescription })
316
+
317
+
313
318
  //WServOrm
314
319
  let optWServOrm = {
315
320
  useCheckUser,
@@ -330,13 +335,14 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
330
335
  let getWebInfor = (userId) => {
331
336
  return {
332
337
 
333
- webName,
334
- webDescription,
338
+ // webName, //已併入kpLang
339
+ // webDescription, //已併入kpLang
335
340
  webLogo,
336
341
  // urlRedirect, //登入失敗就需要轉址, 故須通過html模板取代提供, 無法用api提供
337
342
 
338
343
  showLanguage,
339
344
  language,
345
+ kpLang,
340
346
 
341
347
  showModeEditTargets,
342
348
  showModeEditPemis,
@@ -357,8 +363,6 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
357
363
  widthUsersEmail,
358
364
  widthUsersDescription,
359
365
 
360
- kpLangExt,
361
-
362
366
  }
363
367
  }
364
368
 
@@ -1272,7 +1276,7 @@ export default WWebPerm
1272
1276
  <br class="clear">
1273
1277
 
1274
1278
  <footer>
1275
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Nov 26 2025 22:41:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1279
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Mar 26 2026 15:32:00 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1276
1280
  </footer>
1277
1281
 
1278
1282
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Wed Nov 26 2025 22:41:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Mar 26 2026 15:32:00 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/g.initialData.mjs CHANGED
@@ -188,9 +188,9 @@ async function initialData() {
188
188
  isAdmin,
189
189
  })
190
190
  v.id = `id-for-${name}`
191
- if (name === 'john') {
192
- v.email = `${v.email};john@test.com`
193
- }
191
+ // if (name === 'john') {
192
+ // v.email = `${v.email};john@test.com`
193
+ // }
194
194
  v.isAdmin = isAdmin //funNew會複寫isAdmin為n, 得另外重置
195
195
  return v
196
196
  })
@@ -57,9 +57,9 @@ async function provide() {
57
57
  isAdmin,
58
58
  })
59
59
  v.id = `id-for-${name}`
60
- if (name === 'john') {
61
- v.email = `${v.email};john@test.com`
62
- }
60
+ // if (name === 'john') {
61
+ // v.email = `${v.email};john@test.com`
62
+ // }
63
63
  v.isAdmin = isAdmin
64
64
  return v
65
65
  })
package/package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "w-web-perm",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "main": "dist/w-web-perm.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^7.4.47",
7
- "axios": "^1.9.0",
7
+ "axios": "^1.13.6",
8
8
  "json5": "^2.2.3",
9
- "lodash": "^4.17.21",
9
+ "lodash": "^4.17.23",
10
10
  "showdown": "^2.1.0",
11
- "w-component-vue": "^2.4.36",
11
+ "w-aggrid-vue": "^2.0.57",
12
+ "w-component-vue": "^2.4.44",
12
13
  "w-data-collector": "^1.0.22",
13
- "w-serv-hapi": "^1.0.71",
14
- "w-serv-orm": "^1.0.37",
14
+ "w-serv-hapi": "^1.0.72",
15
+ "w-serv-orm": "^1.0.38",
15
16
  "w-ui-loginout": "^1.0.10",
16
- "wsemi": "^1.8.34"
17
+ "wsemi": "^1.8.43"
17
18
  },
18
19
  "devDependencies": {
19
20
  "@vue/cli-plugin-babel": "^5.0.8",
@@ -30,7 +31,7 @@
30
31
  "vue": "^2.6.14",
31
32
  "vuex": "^3.6.2",
32
33
  "w-orm-lmdb": "^1.0.3",
33
- "w-package-tools": "^1.1.2"
34
+ "w-package-tools": "^1.1.3"
34
35
  },
35
36
  "scripts": {
36
37
  "serve": "vue-cli-service serve",
@@ -31,6 +31,7 @@ import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
31
31
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
32
32
  import ds from '../src/schema/index.mjs'
33
33
  import { getUserRules } from '../src/plugins/mShare.mjs'
34
+ import procLang from './procLang.mjs'
34
35
 
35
36
 
36
37
  /**
@@ -263,6 +264,10 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
263
264
  let kpLangExt = get(opt, 'kpLangExt', null)
264
265
 
265
266
 
267
+ //kpLang
268
+ let kpLang = procLang({ kpLangExt, webName, webDescription })
269
+
270
+
266
271
  //WServOrm
267
272
  let optWServOrm = {
268
273
  useCheckUser,
@@ -283,13 +288,14 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
283
288
  let getWebInfor = (userId) => {
284
289
  return {
285
290
 
286
- webName,
287
- webDescription,
291
+ // webName, //已併入kpLang
292
+ // webDescription, //已併入kpLang
288
293
  webLogo,
289
294
  // urlRedirect, //登入失敗就需要轉址, 故須通過html模板取代提供, 無法用api提供
290
295
 
291
296
  showLanguage,
292
297
  language,
298
+ kpLang,
293
299
 
294
300
  showModeEditTargets,
295
301
  showModeEditPemis,
@@ -310,8 +316,6 @@ function WWebPerm(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser
310
316
  widthUsersEmail,
311
317
  widthUsersDescription,
312
318
 
313
- kpLangExt,
314
-
315
319
  }
316
320
  }
317
321