w-web-perm 1.0.69 → 1.0.71

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/css/{chunk-vendors.f6e4c9e1.css → chunk-vendors.695187ec.css} +1 -1
  3. package/dist/index.tmp +1 -1
  4. package/dist/js/{app-legacy.6c9b2364.js → app-legacy.a8a679a7.js} +1 -1
  5. package/dist/js/{app.6c9b2364.js → app.a8a679a7.js} +1 -1
  6. package/dist/js/{chunk-vendors.d018402b.js → chunk-vendors-legacy.644eda7c.js} +2 -2
  7. package/dist/js/{chunk-vendors-legacy.d018402b.js → chunk-vendors.644eda7c.js} +2 -2
  8. package/dist/w-web-perm.umd.js +1 -1
  9. package/docs/WWebPerm.html +2 -2
  10. package/docs/WWebPerm.mjs.html +2 -2
  11. package/docs/index.html +1 -1
  12. package/{g.backupDb.mjs → g_backupDb.mjs} +2 -2
  13. package/{g.initialData.mjs → g_initialData.mjs} +2 -2
  14. package/{g.initialTestData.mjs → g_initialTestData.mjs} +2 -2
  15. package/{g.mOrm.mjs → g_mOrm.mjs} +1 -1
  16. package/{g.provideGrups.mjs → g_provideGrups.mjs} +1 -1
  17. package/{g.providePemis.mjs → g_providePemis.mjs} +1 -1
  18. package/{g.provideTargets.mjs → g_provideTargets.mjs} +1 -1
  19. package/{g.provideUsers.mjs → g_provideUsers.mjs} +1 -1
  20. package/logs/2026-08-25T19.log +4704 -0
  21. package/logs/2026-08-25T20.log +5144 -0
  22. package/logs/2026-08-25T21.log +2116 -0
  23. package/logs/2026-08-26T05.log +1678 -0
  24. package/logs/2026-08-26T06.log +4561 -0
  25. package/logs/2026-08-26T07.log +4916 -0
  26. package/logs/2026-08-26T08.log +260 -0
  27. package/logs/2026-08-26T09.log +1543 -0
  28. package/logs/2026-08-26T13.log +2559 -0
  29. package/logs/2026-08-26T14.log +5526 -0
  30. package/logs/2026-08-26T15.log +2271 -0
  31. package/package.json +12 -12
  32. package/server/WWebPerm.mjs +1 -1
  33. package/src/components/LayoutContent.vue +6 -6
  34. package/srv.mjs +1 -1
  35. package/tableTags.json +1 -1
  36. package/z/344/277/256/346/255/243/350/246/217/345/212/203/346/233/270.md +2 -2
  37. /package/{g.getSettings.mjs → g_getSettings.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-web-perm v1.0.69
2
+ * w-web-perm v1.0.71
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -127,7 +127,7 @@
127
127
 
128
128
  <h5 class="h5-examples">Example</h5>
129
129
 
130
- <pre class="prettyprint"><code>import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
131
130
  useCheckUser: false,
132
131
  getUserById: null,
133
132
  useExcludeWhenNotAdmin: false,
134
133
  serverPort: 11006,
135
134
  subfolder: '', //mperm
136
135
  urlRedirect: 'https://www.google.com/', //本機測試時得先編譯, 再瀏覽: http://localhost:11006/
137
136
  webName: {
138
137
  'eng': 'Permission Service',
139
138
  'cht': '權限管理系統',
140
139
  },
141
140
  webDescription: {
142
141
  'eng': 'A web service package for user permissions and management targets.',
143
142
  'cht': 'A web service package for user permissions and management targets.',
144
143
  },
145
144
  webLogo: 'data:image/svg+xml;base64,...',
146
145
  // return {} //測試無法登入
147
146
  if (token === '{token-for-application}') { //提供外部應用系統作為存取使用者
148
147
  return {
149
148
  id: 'id-for-application',
150
149
  name: 'application',
151
150
  email: 'application@example.com',
152
151
  isAdmin: 'y',
153
152
  }
154
153
  }
155
154
  if (token === 'sys') { //開發階段w-ui-loginout自動給予browser使用者(且位於localhost)的token為sys
156
155
  return {
157
156
  id: 'id-for-admin',
158
157
  name: 'tester',
159
158
  email: 'admin@example.com', //mappingBy為email, 開發階段時會使用email找到所建置之使用者資料
160
159
  isAdmin: 'y',
161
160
  }
162
161
  }
163
162
  console.log('invalid token', token)
164
163
  console.log('於生產環境時得加入SSO等驗證token機制')
165
164
  return {}
166
165
  console.log('verifyClientUser/user', user)
167
166
  // return false //測試無法登入
168
167
  console.log('於生產環境時得加入限制瀏覽器使用者身份機制')
169
168
  return user.isAdmin === 'y' //測試僅系統管理者使用
170
169
  console.log('verifyAppUser/user', user)
171
170
  // return false //測試無法登入
172
171
  console.log('於生產環境時得加入限制應用程式使用者身份機制')
173
172
  return user.isAdmin === 'y' //測試僅系統管理者使用
174
173
  console.log(err)
174
+ <pre class="prettyprint"><code>import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
175
175
  useCheckUser: false,
176
176
  getUserById: null,
177
177
  useExcludeWhenNotAdmin: false,
178
178
  serverPort: 11006,
179
179
  subfolder: '', //mperm
180
180
  urlRedirect: 'https://www.google.com/', //本機測試時得先編譯, 再瀏覽: http://localhost:11006/
181
181
  webName: {
182
182
  'eng': 'Permission Service',
183
183
  'cht': '權限管理系統',
184
184
  },
185
185
  webDescription: {
186
186
  'eng': 'A web service package for user permissions and management targets.',
187
187
  'cht': 'A web service package for user permissions and management targets.',
188
188
  },
189
189
  webLogo: 'data:image/svg+xml;base64,...',
190
190
  // return {} //測試無法登入
191
191
  if (token === '{token-for-application}') { //提供外部應用系統作為存取使用者
192
192
  return {
193
193
  id: 'id-for-application',
194
194
  name: 'application',
195
195
  email: 'application@example.com',
196
196
  isAdmin: 'y',
197
197
  }
198
198
  }
199
199
  if (token === 'sys') { //開發階段w-ui-loginout自動給予browser使用者(且位於localhost)的token為sys
200
200
  return {
201
201
  id: 'id-for-admin',
202
202
  name: 'tester',
203
203
  email: 'admin@example.com', //mappingBy為email, 開發階段時會使用email找到所建置之使用者資料
204
204
  isAdmin: 'y',
205
205
  }
206
206
  }
207
207
  console.log('invalid token', token)
208
208
  console.log('於生產環境時得加入SSO等驗證token機制')
209
209
  return {}
210
210
  console.log('verifyClientUser/user', user)
211
211
  // return false //測試無法登入
212
212
  console.log('於生產環境時得加入限制瀏覽器使用者身份機制')
213
213
  return user.isAdmin === 'y' //測試僅系統管理者使用
214
214
  console.log('verifyAppUser/user', user)
215
215
  // return false //測試無法登入
216
216
  console.log('於生產環境時得加入限制應用程式使用者身份機制')
217
217
  return user.isAdmin === 'y' //測試僅系統管理者使用
218
218
  console.log(err)
219
219
 
220
220
 
221
221
 
@@ -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.5</a> on Tue Aug 25 2026 16:52:32 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.5</a> on Mon Aug 31 2026 17:10:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
929
929
  </footer>
930
930
 
931
931
  <script>prettyPrint();</script>
@@ -106,7 +106,7 @@ import procStaInfor from './procStaInfor.mjs'
106
106
  *
107
107
  * import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
108
108
  * import WWebPerm from './server/WWebPerm.mjs'
109
- * import getSettings from './g.getSettings.mjs'
109
+ * import getSettings from './g_getSettings.mjs'
110
110
  *
111
111
  *
112
112
  * //st
@@ -1228,7 +1228,7 @@ export default WWebPerm
1228
1228
  <br class="clear">
1229
1229
 
1230
1230
  <footer>
1231
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Tue Aug 25 2026 16:52:32 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1231
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Aug 31 2026 17:10:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1232
1232
  </footer>
1233
1233
 
1234
1234
  <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.5</a> on Tue Aug 25 2026 16:52:32 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.5</a> on Mon Aug 31 2026 17:10:51 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
@@ -1,4 +1,4 @@
1
- import { woItems } from './g.mOrm.mjs'
1
+ import { woItems } from './g_mOrm.mjs'
2
2
  import getDb from 'w-serv-orm/src/getDb.mjs'
3
3
 
4
4
 
@@ -7,4 +7,4 @@ getDb.backup(woItems)
7
7
 
8
8
 
9
9
  //備份資料重與由備份資料重建資料庫
10
- //node g.backupDb.mjs
10
+ //node g_backupDb.mjs
@@ -1,6 +1,6 @@
1
1
  import map from 'lodash-es/map.js'
2
2
  import ds from './src/schema/index.mjs'
3
- import { woItems } from './g.mOrm.mjs'
3
+ import { woItems } from './g_mOrm.mjs'
4
4
 
5
5
 
6
6
  async function initialData() {
@@ -208,4 +208,4 @@ initialData()
208
208
 
209
209
 
210
210
  //重建資料庫
211
- //node g.initialData.mjs
211
+ //node g_initialData.mjs
@@ -1,5 +1,5 @@
1
1
  import ds from './src/schema/index.mjs'
2
- import { woItems } from './g.mOrm.mjs'
2
+ import { woItems } from './g_mOrm.mjs'
3
3
  import genTestData from 'w-serv-orm/src/genTestData.mjs'
4
4
 
5
5
 
@@ -18,4 +18,4 @@ initialTestData()
18
18
 
19
19
 
20
20
  //刪除舊檔與重建測試資料庫
21
- //node g.initialTestData.mjs
21
+ //node g_initialTestData.mjs
@@ -1,7 +1,7 @@
1
1
  import WOrm from 'w-orm-lmdb/src/WOrmLmdb.mjs'
2
2
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
3
3
  import ds from './src/schema/index.mjs'
4
- import getSettings from './g.getSettings.mjs'
4
+ import getSettings from './g_getSettings.mjs'
5
5
 
6
6
 
7
7
  //getSettings
@@ -86,4 +86,4 @@ provide()
86
86
  })
87
87
 
88
88
 
89
- //node g.provideGrups.mjs
89
+ //node g_provideGrups.mjs
@@ -42,4 +42,4 @@ provide()
42
42
  })
43
43
 
44
44
 
45
- //node g.providePemis.mjs
45
+ //node g_providePemis.mjs
@@ -63,4 +63,4 @@ provide()
63
63
  })
64
64
 
65
65
 
66
- //node g.provideTargets.mjs
66
+ //node g_provideTargets.mjs
@@ -76,4 +76,4 @@ provide()
76
76
  })
77
77
 
78
78
 
79
- //node g.provideUsers.mjs
79
+ //node g_provideUsers.mjs