w-web-sso 1.0.38 → 1.0.39

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 (98) hide show
  1. package/.github/workflows/ci-test.yml +2 -2
  2. package/_gh-pages-deploy/.nojekyll +0 -0
  3. package/_gh-pages-deploy/WWebSso.html +400 -0
  4. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  5. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  6. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  7. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  8. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  9. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  10. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  11. package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  12. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  13. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  14. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  15. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  16. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  17. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  18. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  19. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  20. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  21. package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  22. package/_gh-pages-deploy/index.html +84 -0
  23. package/_gh-pages-deploy/scripts/collapse.js +39 -0
  24. package/_gh-pages-deploy/scripts/commonNav.js +28 -0
  25. package/_gh-pages-deploy/scripts/linenumber.js +25 -0
  26. package/_gh-pages-deploy/scripts/nav.js +12 -0
  27. package/_gh-pages-deploy/scripts/polyfill.js +4 -0
  28. package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +202 -0
  29. package/_gh-pages-deploy/scripts/prettify/lang-css.js +2 -0
  30. package/_gh-pages-deploy/scripts/prettify/prettify.js +28 -0
  31. package/_gh-pages-deploy/scripts/search.js +99 -0
  32. package/{docs/WWebSso.mjs.html → _gh-pages-deploy/server_WWebSso.mjs.html} +1333 -1149
  33. package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +195 -0
  34. package/_gh-pages-deploy/styles/jsdoc.css +776 -0
  35. package/_gh-pages-deploy/styles/prettify.css +80 -0
  36. package/dist/css/app.5f246189.css +1 -0
  37. package/dist/css/{chunk-vendors.7b9a50ef.css → chunk-vendors.f831c81d.css} +1 -1
  38. package/dist/index.tmp +2 -6
  39. package/dist/js/app-legacy.73f3eae0.js +1 -0
  40. package/dist/js/app.73f3eae0.js +1 -0
  41. package/dist/js/{chunk-vendors-legacy.d71138ee.js → chunk-vendors-legacy.7c56bceb.js} +6 -6
  42. package/dist/js/{chunk-vendors.d71138ee.js → chunk-vendors.7c56bceb.js} +6 -6
  43. package/dist/w-web-sso.umd.js +5 -3
  44. package/dist/w-web-sso.umd.js.map +1 -1
  45. package/docs/WWebSso.html +2 -2
  46. package/docs/index.html +1 -1
  47. package/docs/server_WWebSso.mjs.html +1402 -0
  48. package/docs/src_components_Common_CheckYesNo.vue.html +195 -0
  49. package/g.getSettings.mjs +49 -3
  50. package/g.initialData.mjs +103 -78
  51. package/package.json +12 -9
  52. package/public/index.html +3 -16
  53. package/server/WWebSso.mjs +1330 -1146
  54. package/server/genRandomPassword.mjs +120 -0
  55. package/server/procCore.mjs +700 -176
  56. package/server/procLang.mjs +1231 -1047
  57. package/server/procProtect.mjs +40 -12
  58. package/server/procStaInfor.mjs +46 -26
  59. package/server/template/changePasswordEmail-cht.html +1 -0
  60. package/server/template/changePasswordEmail-eng.html +1 -0
  61. package/server/template/regVerifyEmail-cht.html +1 -0
  62. package/server/template/regVerifyEmail-eng.html +1 -0
  63. package/server/template/resetPasswordEmail-cht.html +1 -0
  64. package/server/template/resetPasswordEmail-eng.html +1 -0
  65. package/server/template/verifyEmailResult.html +26 -0
  66. package/settings.json +48 -11
  67. package/src/App.vue +24 -3
  68. package/src/components/Common/CheckYes.vue +18 -1
  69. package/src/components/Common/CheckYesNo.vue +32 -0
  70. package/src/components/Layout.vue +12 -7
  71. package/src/components/LayoutContent.vue +23 -0
  72. package/src/components/LayoutContentIps.vue +96 -77
  73. package/src/components/LayoutContentStaInfor.vue +146 -43
  74. package/src/components/LayoutContentTokens.vue +139 -103
  75. package/src/components/LayoutContentUserInfor.vue +518 -1017
  76. package/src/components/LayoutContentUsers.vue +276 -189
  77. package/src/components/PageLogin.vue +460 -20
  78. package/src/components/PageUser.vue +109 -37
  79. package/src/main.js +1 -5
  80. package/src/plugins/mShare.mjs +0 -215
  81. package/src/plugins/mUI.mjs +119 -45
  82. package/src/schema/tables/users.mjs +12 -1
  83. package/srv.mjs +2 -2
  84. package/db/wsso/ips/data.mdb +0 -0
  85. package/db/wsso/ips/lock.mdb +0 -0
  86. package/db/wsso/tokens/data.mdb +0 -0
  87. package/db/wsso/tokens/lock.mdb +0 -0
  88. package/db/wsso/users/data.mdb +0 -0
  89. package/db/wsso/users/lock.mdb +0 -0
  90. package/dist/css/app.d7bc51ed.css +0 -1
  91. package/dist/js/app-legacy.ca0d1dfd.js +0 -1
  92. package/dist/js/app.ca0d1dfd.js +0 -1
  93. package/g.provideUsers.mjs +0 -45
  94. package/server/provideTabs.mjs +0 -71
  95. package/src/components/Common/LabelItem.vue +0 -106
  96. package/src/components/ruleGroup.vue.txt +0 -644
  97. package/src/plugins/mDataSupport.mjs +0 -23
  98. package/test/all.test.mjs +0 -10
@@ -9,12 +9,12 @@ jobs:
9
9
 
10
10
  strategy:
11
11
  matrix:
12
- node-version: [22.x]
12
+ node-version: [24.x]
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v4
16
16
  - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v1
17
+ uses: actions/setup-node@v4
18
18
  with:
19
19
  node-version: ${{ matrix.node-version }}
20
20
  - run: npm cache clean -f
File without changes
@@ -0,0 +1,400 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>WWebSso - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WWebSso.html">WWebSso</a></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">WWebSso</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+ WWebSso
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+
66
+
67
+ <h4 class="name" id="WWebSso"><span class="type-signature"></span>new WWebSso<span class="signature">(WOrm, url, db, pathSettings<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dl class="details">
75
+
76
+ <dt class="tag-description">Description:</dt>
77
+ <dd class="tag-description"><ul class="dummy"><li><p>權限伺服器</p></li></ul></dd>
78
+
79
+
80
+
81
+ <dt class="tag-source">Source:</dt>
82
+ <dd class="tag-source"><ul class="dummy"><li>
83
+ <a href="server_WWebSso.mjs.html">server/WWebSso.mjs</a>, <a href="server_WWebSso.mjs.html#line51">line 51</a>
84
+ </li></ul></dd>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ </dl>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+ <h5 class="h5-examples">Example</h5>
129
+
130
+ <pre class="prettyprint"><code></code></pre>
131
+
132
+
133
+
134
+
135
+ <h5 class="h5-parameters">Parameters:</h5>
136
+
137
+
138
+ <table class="params">
139
+ <thead>
140
+ <tr>
141
+
142
+ <th>Name</th>
143
+
144
+
145
+ <th>Type</th>
146
+
147
+
148
+ <th>Attributes</th>
149
+
150
+
151
+
152
+ <th>Default</th>
153
+
154
+
155
+ <th class="last">Description</th>
156
+ </tr>
157
+ </thead>
158
+
159
+ <tbody>
160
+
161
+
162
+ <tr>
163
+
164
+ <td class="name"><code>WOrm</code></td>
165
+
166
+
167
+ <td class="type">
168
+
169
+
170
+ <span class="param-type">function</span>
171
+
172
+
173
+
174
+
175
+ </td>
176
+
177
+
178
+ <td class="attributes">
179
+
180
+
181
+
182
+
183
+
184
+ </td>
185
+
186
+
187
+
188
+ <td class="default">
189
+
190
+ </td>
191
+
192
+
193
+ <td class="description last"><p>輸入資料庫ORM函數</p></td>
194
+ </tr>
195
+
196
+
197
+
198
+ <tr>
199
+
200
+ <td class="name"><code>url</code></td>
201
+
202
+
203
+ <td class="type">
204
+
205
+
206
+ <span class="param-type">String</span>
207
+
208
+
209
+
210
+
211
+ </td>
212
+
213
+
214
+ <td class="attributes">
215
+
216
+
217
+
218
+
219
+
220
+ </td>
221
+
222
+
223
+
224
+ <td class="default">
225
+
226
+ </td>
227
+
228
+
229
+ <td class="description last"><p>輸入資料庫連線字串,例如w-orm-lmdb為'./db',或w-orm-mongodb為'mongodb://username:password@$127.0.0.1:27017'</p></td>
230
+ </tr>
231
+
232
+
233
+
234
+ <tr>
235
+
236
+ <td class="name"><code>db</code></td>
237
+
238
+
239
+ <td class="type">
240
+
241
+
242
+ <span class="param-type">String</span>
243
+
244
+
245
+
246
+
247
+ </td>
248
+
249
+
250
+ <td class="attributes">
251
+
252
+
253
+
254
+
255
+
256
+ </td>
257
+
258
+
259
+
260
+ <td class="default">
261
+
262
+ </td>
263
+
264
+
265
+ <td class="description last"><p>輸入資料庫名稱字串</p></td>
266
+ </tr>
267
+
268
+
269
+
270
+ <tr>
271
+
272
+ <td class="name"><code>pathSettings</code></td>
273
+
274
+
275
+ <td class="type">
276
+
277
+
278
+ <span class="param-type">String</span>
279
+
280
+
281
+
282
+
283
+ </td>
284
+
285
+
286
+ <td class="attributes">
287
+
288
+ &lt;optional><br>
289
+
290
+
291
+
292
+
293
+
294
+ </td>
295
+
296
+
297
+
298
+ <td class="default">
299
+
300
+ <code>'./settings'</code>
301
+
302
+ </td>
303
+
304
+
305
+ <td class="description last"><p>輸入設定檔案路徑字串,預設'./settings'</p></td>
306
+ </tr>
307
+
308
+
309
+ </tbody>
310
+ </table>
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+ <h5 class="h5-returns">Returns:</h5>
328
+
329
+
330
+ <div class="param-desc">
331
+ <p>回傳物件,其內server為hapi伺服器實體,wsrv為w-converhp的伺服器事件物件,wsds為w-serv-webdata的伺服器事件物件,可監聽error事件</p>
332
+ </div>
333
+
334
+
335
+
336
+ <dl class="param-type">
337
+ <dt>
338
+ Type
339
+ </dt>
340
+ <dd>
341
+
342
+ <span class="param-type">Object</span>
343
+
344
+
345
+
346
+ </dd>
347
+ </dl>
348
+
349
+
350
+
351
+
352
+
353
+
354
+ </div>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+ </article>
377
+
378
+ </section>
379
+
380
+
381
+
382
+
383
+
384
+
385
+ </div>
386
+
387
+ <br class="clear">
388
+
389
+ <footer>
390
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Jun 22 2026 15:43:55 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
391
+ </footer>
392
+
393
+ <script>prettyPrint();</script>
394
+ <script src="scripts/polyfill.js"></script>
395
+ <script src="scripts/linenumber.js"></script>
396
+
397
+
398
+
399
+ </body>
400
+ </html>