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.
- package/.github/workflows/ci-test.yml +2 -2
- package/_gh-pages-deploy/.nojekyll +0 -0
- package/_gh-pages-deploy/WWebSso.html +400 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/_gh-pages-deploy/index.html +84 -0
- package/_gh-pages-deploy/scripts/collapse.js +39 -0
- package/_gh-pages-deploy/scripts/commonNav.js +28 -0
- package/_gh-pages-deploy/scripts/linenumber.js +25 -0
- package/_gh-pages-deploy/scripts/nav.js +12 -0
- package/_gh-pages-deploy/scripts/polyfill.js +4 -0
- package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/_gh-pages-deploy/scripts/prettify/lang-css.js +2 -0
- package/_gh-pages-deploy/scripts/prettify/prettify.js +28 -0
- package/_gh-pages-deploy/scripts/search.js +99 -0
- package/{docs/WWebSso.mjs.html → _gh-pages-deploy/server_WWebSso.mjs.html} +1333 -1149
- package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +195 -0
- package/_gh-pages-deploy/styles/jsdoc.css +776 -0
- package/_gh-pages-deploy/styles/prettify.css +80 -0
- package/dist/css/app.5f246189.css +1 -0
- package/dist/css/{chunk-vendors.7b9a50ef.css → chunk-vendors.f831c81d.css} +1 -1
- package/dist/index.tmp +2 -6
- package/dist/js/app-legacy.73f3eae0.js +1 -0
- package/dist/js/app.73f3eae0.js +1 -0
- package/dist/js/{chunk-vendors-legacy.d71138ee.js → chunk-vendors-legacy.7c56bceb.js} +6 -6
- package/dist/js/{chunk-vendors.d71138ee.js → chunk-vendors.7c56bceb.js} +6 -6
- package/dist/w-web-sso.umd.js +5 -3
- package/dist/w-web-sso.umd.js.map +1 -1
- package/docs/WWebSso.html +2 -2
- package/docs/index.html +1 -1
- package/docs/server_WWebSso.mjs.html +1402 -0
- package/docs/src_components_Common_CheckYesNo.vue.html +195 -0
- package/g.getSettings.mjs +49 -3
- package/g.initialData.mjs +103 -78
- package/package.json +12 -9
- package/public/index.html +3 -16
- package/server/WWebSso.mjs +1330 -1146
- package/server/genRandomPassword.mjs +120 -0
- package/server/procCore.mjs +700 -176
- package/server/procLang.mjs +1231 -1047
- package/server/procProtect.mjs +40 -12
- package/server/procStaInfor.mjs +46 -26
- package/server/template/changePasswordEmail-cht.html +1 -0
- package/server/template/changePasswordEmail-eng.html +1 -0
- package/server/template/regVerifyEmail-cht.html +1 -0
- package/server/template/regVerifyEmail-eng.html +1 -0
- package/server/template/resetPasswordEmail-cht.html +1 -0
- package/server/template/resetPasswordEmail-eng.html +1 -0
- package/server/template/verifyEmailResult.html +26 -0
- package/settings.json +48 -11
- package/src/App.vue +24 -3
- package/src/components/Common/CheckYes.vue +18 -1
- package/src/components/Common/CheckYesNo.vue +32 -0
- package/src/components/Layout.vue +12 -7
- package/src/components/LayoutContent.vue +23 -0
- package/src/components/LayoutContentIps.vue +96 -77
- package/src/components/LayoutContentStaInfor.vue +146 -43
- package/src/components/LayoutContentTokens.vue +139 -103
- package/src/components/LayoutContentUserInfor.vue +518 -1017
- package/src/components/LayoutContentUsers.vue +276 -189
- package/src/components/PageLogin.vue +460 -20
- package/src/components/PageUser.vue +109 -37
- package/src/main.js +1 -5
- package/src/plugins/mShare.mjs +0 -215
- package/src/plugins/mUI.mjs +119 -45
- package/src/schema/tables/users.mjs +12 -1
- package/srv.mjs +2 -2
- package/db/wsso/ips/data.mdb +0 -0
- package/db/wsso/ips/lock.mdb +0 -0
- package/db/wsso/tokens/data.mdb +0 -0
- package/db/wsso/tokens/lock.mdb +0 -0
- package/db/wsso/users/data.mdb +0 -0
- package/db/wsso/users/lock.mdb +0 -0
- package/dist/css/app.d7bc51ed.css +0 -1
- package/dist/js/app-legacy.ca0d1dfd.js +0 -1
- package/dist/js/app.ca0d1dfd.js +0 -1
- package/g.provideUsers.mjs +0 -45
- package/server/provideTabs.mjs +0 -71
- package/src/components/Common/LabelItem.vue +0 -106
- package/src/components/ruleGroup.vue.txt +0 -644
- package/src/plugins/mDataSupport.mjs +0 -23
- package/test/all.test.mjs +0 -10
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
node-version: [
|
|
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@
|
|
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"> → {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
|
+
<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>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|