w-web-sso 1.0.19 → 1.0.21
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/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.e4367a2b.css → app.cc95448e.css} +1 -1
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.1ef4eafd.js +2 -0
- package/dist/js/app-legacy.1ef4eafd.js.map +1 -0
- package/dist/js/app.1ef4eafd.js +2 -0
- package/dist/js/app.1ef4eafd.js.map +1 -0
- package/dist/js/{chunk-vendors-legacy.7380957a.js → chunk-vendors-legacy.c67d66a8.js} +5 -5
- package/dist/js/chunk-vendors-legacy.c67d66a8.js.map +1 -0
- package/dist/js/{chunk-vendors.7380957a.js → chunk-vendors.c67d66a8.js} +5 -5
- package/dist/js/chunk-vendors.c67d66a8.js.map +1 -0
- package/dist/w-web-sso.umd.js +2 -2
- package/dist/w-web-sso.umd.js.map +1 -1
- package/docs/WWebSso.html +1 -1
- package/docs/WWebSso.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +3 -3
- package/script.txt +0 -1
- package/src/components/LayoutContentUserInfor.vue +1 -1
- package/src/components/LayoutContentUsers.vue +0 -36
- package/src/components/PageLogin.vue +31 -3
- package/src/plugins/mLang.mjs +3 -3
- package/src/schema/tables/ips.mjs +2 -2
- package/src/schema/tables/tokens.mjs +3 -3
- package/src/schema/tables/users.mjs +2 -2
- package/dist/js/app-legacy.16284891.js +0 -2
- package/dist/js/app-legacy.16284891.js.map +0 -1
- package/dist/js/app.16284891.js +0 -2
- package/dist/js/app.16284891.js.map +0 -1
- package/dist/js/chunk-vendors-legacy.7380957a.js.map +0 -1
- package/dist/js/chunk-vendors.7380957a.js.map +0 -1
package/docs/WWebSso.html
CHANGED
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
<br class="clear">
|
|
388
388
|
|
|
389
389
|
<footer>
|
|
390
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on
|
|
390
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Jul 14 2025 15:01:15 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
391
391
|
</footer>
|
|
392
392
|
|
|
393
393
|
<script>prettyPrint();</script>
|
package/docs/WWebSso.mjs.html
CHANGED
|
@@ -1177,7 +1177,7 @@ export default WWebSso
|
|
|
1177
1177
|
<br class="clear">
|
|
1178
1178
|
|
|
1179
1179
|
<footer>
|
|
1180
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on
|
|
1180
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Jul 14 2025 15:01:15 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
1181
1181
|
</footer>
|
|
1182
1182
|
|
|
1183
1183
|
<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
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Mon Jul 14 2025 15:01:15 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-web-sso",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"main": "dist/w-web-sso.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@mdi/js": "^7.4.47",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"w-serv-orm": "^1.0.29",
|
|
14
14
|
"w-syslog": "^1.0.6",
|
|
15
15
|
"w-ui-loginout": "^1.0.9",
|
|
16
|
-
"wsemi": "^1.8.
|
|
16
|
+
"wsemi": "^1.8.15"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"eslint-plugin-vue": "^9.10.0",
|
|
30
30
|
"vue": "^2.6.14",
|
|
31
31
|
"vuex": "^3.6.2",
|
|
32
|
-
"w-orm-lmdb": "^1.0.
|
|
32
|
+
"w-orm-lmdb": "^1.0.2",
|
|
33
33
|
"w-package-tools": "^1.1.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
package/script.txt
CHANGED
|
@@ -284,7 +284,6 @@ export default {
|
|
|
284
284
|
'from',
|
|
285
285
|
'redir',
|
|
286
286
|
'isAdmin',
|
|
287
|
-
// 'isVerified',
|
|
288
287
|
'timeVerified',
|
|
289
288
|
'timeExpired',
|
|
290
289
|
'timeBlocked',
|
|
@@ -303,7 +302,6 @@ export default {
|
|
|
303
302
|
'from',
|
|
304
303
|
'redir',
|
|
305
304
|
'isAdmin',
|
|
306
|
-
// 'isVerified',
|
|
307
305
|
'timeVerified',
|
|
308
306
|
'timeExpired',
|
|
309
307
|
'timeBlocked',
|
|
@@ -322,7 +320,6 @@ export default {
|
|
|
322
320
|
'from',
|
|
323
321
|
'redir',
|
|
324
322
|
'isAdmin',
|
|
325
|
-
// 'isVerified',
|
|
326
323
|
'timeVerified',
|
|
327
324
|
'timeExpired',
|
|
328
325
|
'timeBlocked',
|
|
@@ -611,7 +608,6 @@ export default {
|
|
|
611
608
|
'from': vo.$t('from'),
|
|
612
609
|
'redir': vo.$t('redir'),
|
|
613
610
|
'isAdmin': vo.$t('isAdmin'),
|
|
614
|
-
// 'isVerified': vo.$t('isVerified'),
|
|
615
611
|
'timeVerified': vo.$t('userTimeVerified'),
|
|
616
612
|
'timeExpired': vo.$t('userTimeExpired'),
|
|
617
613
|
'timeBlocked': vo.$t('userTimeBlocked'),
|
|
@@ -727,17 +723,9 @@ export default {
|
|
|
727
723
|
},
|
|
728
724
|
defHeadMinWidth: 150,
|
|
729
725
|
kpHeadWidth: {
|
|
730
|
-
// 'name': isnum(vo.widthUsersName) ? cdbl(vo.widthUsersName) : 200,
|
|
731
|
-
// 'email': isnum(vo.widthUsersEmail) ? cdbl(vo.widthUsersEmail) : 300,
|
|
732
|
-
// 'description': isnum(vo.widthUsersDescription) ? cdbl(vo.widthUsersDescription) : 300,
|
|
733
|
-
// 'cgrups': 300,
|
|
734
726
|
'timeVerified': 250,
|
|
735
727
|
'timeExpired': 250,
|
|
736
728
|
'timeBlocked': 250,
|
|
737
|
-
// 'isAdmin': 100,
|
|
738
|
-
// 'isActive': 100,
|
|
739
|
-
// 'timeCreate': 220,
|
|
740
|
-
// 'timeUpdate': 220,
|
|
741
729
|
},
|
|
742
730
|
kpHeadFilterType: {
|
|
743
731
|
'id': 'text',
|
|
@@ -750,7 +738,6 @@ export default {
|
|
|
750
738
|
'from': 'text',
|
|
751
739
|
'redir': 'text',
|
|
752
740
|
'isAdmin': 'text',
|
|
753
|
-
// 'isVerified': 'text',
|
|
754
741
|
'timeVerified': 'text',
|
|
755
742
|
'timeExpired': 'text',
|
|
756
743
|
'timeBlocked': 'text',
|
|
@@ -862,19 +849,6 @@ export default {
|
|
|
862
849
|
|
|
863
850
|
return t
|
|
864
851
|
},
|
|
865
|
-
// 'isVerified': (v, k, r) => {
|
|
866
|
-
// // console.log('kpCellRender isAdmin', v, k, r)
|
|
867
|
-
|
|
868
|
-
// //id
|
|
869
|
-
// let id = get(r, 'id', '')
|
|
870
|
-
// // console.log('id', id, k, r)
|
|
871
|
-
|
|
872
|
-
// let t = `
|
|
873
|
-
// <input type="checkbox" ${v === 'y' ? 'checked' : ''} onclick="$vo.$dg.toggleItemIsVerifiedById('${id}')" ${vo.isEditable ? '' : 'disabled'} />
|
|
874
|
-
// `
|
|
875
|
-
|
|
876
|
-
// return t
|
|
877
|
-
// },
|
|
878
852
|
'isActive': (v, k, r) => {
|
|
879
853
|
// console.log('kpCellRender isActive', v, k, r)
|
|
880
854
|
|
|
@@ -1171,16 +1145,6 @@ export default {
|
|
|
1171
1145
|
|
|
1172
1146
|
},
|
|
1173
1147
|
|
|
1174
|
-
// toggleItemIsVerifiedById: function(id) {
|
|
1175
|
-
// // console.log('toggleItemIsVerifiedById', id)
|
|
1176
|
-
|
|
1177
|
-
// let vo = this
|
|
1178
|
-
|
|
1179
|
-
// //toggleItemByKeyAndId
|
|
1180
|
-
// vo.toggleItemByKeyAndId('isVerified', id)
|
|
1181
|
-
|
|
1182
|
-
// },
|
|
1183
|
-
|
|
1184
1148
|
toggleItemIsActiveById: function(id) {
|
|
1185
1149
|
// console.log('toggleItemIsActiveById', id)
|
|
1186
1150
|
|
|
@@ -124,7 +124,11 @@
|
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
<div style="position:absolute; top:10px; right:10px;">
|
|
127
|
-
|
|
127
|
+
|
|
128
|
+
<div
|
|
129
|
+
style="white-space:nowrap;"
|
|
130
|
+
v-if="showLangSelect"
|
|
131
|
+
>
|
|
128
132
|
<WTextSelect
|
|
129
133
|
style="width:100px;"
|
|
130
134
|
:items="keysLang"
|
|
@@ -139,6 +143,7 @@
|
|
|
139
143
|
</template>
|
|
140
144
|
</WTextSelect>
|
|
141
145
|
</div>
|
|
146
|
+
|
|
142
147
|
</div>
|
|
143
148
|
|
|
144
149
|
</div>
|
|
@@ -195,6 +200,24 @@ export default {
|
|
|
195
200
|
|
|
196
201
|
}
|
|
197
202
|
},
|
|
203
|
+
mounted: function() {
|
|
204
|
+
// console.log('mounted')
|
|
205
|
+
|
|
206
|
+
let vo = this
|
|
207
|
+
|
|
208
|
+
//firstSetting
|
|
209
|
+
if (vo.firstSetting) {
|
|
210
|
+
// console.log('webInfor', vo.webInfor)
|
|
211
|
+
let showLanguage = get(vo, 'webInfor.showLanguage', '')
|
|
212
|
+
// console.log('showLanguage', showLanguage)
|
|
213
|
+
vo.showLangSelect = showLanguage === 'y'
|
|
214
|
+
let language = get(vo, 'webInfor.language', '')
|
|
215
|
+
// console.log('language', language)
|
|
216
|
+
vo.$ui.setLang(language, 'layout mounted')
|
|
217
|
+
vo.firstSetting = false
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
},
|
|
198
221
|
computed: {
|
|
199
222
|
|
|
200
223
|
webName: {
|
|
@@ -214,14 +237,19 @@ export default {
|
|
|
214
237
|
// },
|
|
215
238
|
},
|
|
216
239
|
|
|
240
|
+
webInfor: function() {
|
|
241
|
+
let wi = get(this, `$store.state.webInfor`)
|
|
242
|
+
return wi
|
|
243
|
+
},
|
|
244
|
+
|
|
217
245
|
webLogo: function() {
|
|
218
246
|
let vo = this
|
|
219
|
-
return get(vo,
|
|
247
|
+
return get(vo, `webInfor.webLogo`, '')
|
|
220
248
|
},
|
|
221
249
|
|
|
222
250
|
webBackgoundGradientColors: function() {
|
|
223
251
|
let vo = this
|
|
224
|
-
return get(vo,
|
|
252
|
+
return get(vo, `webInfor.webBackgoundGradientColors`, [])
|
|
225
253
|
},
|
|
226
254
|
|
|
227
255
|
c1: function() {
|
package/src/plugins/mLang.mjs
CHANGED
|
@@ -309,7 +309,7 @@ let kpLang = {
|
|
|
309
309
|
},
|
|
310
310
|
userTimeVerified: {
|
|
311
311
|
eng: `Verified time`,
|
|
312
|
-
cht:
|
|
312
|
+
cht: `帳號驗證狀態與時間`,
|
|
313
313
|
},
|
|
314
314
|
isVerifiedWaiting: {
|
|
315
315
|
eng: `Waiting for verification`,
|
|
@@ -330,7 +330,7 @@ let kpLang = {
|
|
|
330
330
|
},
|
|
331
331
|
userTimeExpired: {
|
|
332
332
|
eng: `Expired time`,
|
|
333
|
-
cht:
|
|
333
|
+
cht: `帳號過期狀態與時間`,
|
|
334
334
|
},
|
|
335
335
|
isExpiredDeny: {
|
|
336
336
|
eng: `Account login prohibited`,
|
|
@@ -355,7 +355,7 @@ let kpLang = {
|
|
|
355
355
|
},
|
|
356
356
|
userTimeBlocked: {
|
|
357
357
|
eng: `Blocked time`,
|
|
358
|
-
cht:
|
|
358
|
+
cht: `帳號封鎖狀態與時間`,
|
|
359
359
|
},
|
|
360
360
|
isBlockedNormalStatus: {
|
|
361
361
|
eng: `Normal status`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import map from 'lodash-es/map.js'
|
|
2
2
|
import keys from 'lodash-es/keys.js'
|
|
3
|
-
import
|
|
3
|
+
import genIDSeq from 'wsemi/src/genIDSeq.mjs'
|
|
4
4
|
import dtmapping from 'wsemi/src/dtmapping.mjs'
|
|
5
5
|
import dtpick from 'wsemi/src/dtpick.mjs'
|
|
6
6
|
import nowms2str from 'wsemi/src/nowms2str.mjs'
|
|
@@ -30,7 +30,7 @@ let settings = {
|
|
|
30
30
|
|
|
31
31
|
let funNew = (ndata = {}) => {
|
|
32
32
|
let o = dtmapping(ndata, keys(settings))
|
|
33
|
-
o.id = `${
|
|
33
|
+
o.id = `${genIDSeq()}`
|
|
34
34
|
return o
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import map from 'lodash-es/map.js'
|
|
2
2
|
import keys from 'lodash-es/keys.js'
|
|
3
|
-
import
|
|
3
|
+
import genIDSeq from 'wsemi/src/genIDSeq.mjs'
|
|
4
4
|
import dtmapping from 'wsemi/src/dtmapping.mjs'
|
|
5
5
|
import dtpick from 'wsemi/src/dtpick.mjs'
|
|
6
6
|
import nowms2str from 'wsemi/src/nowms2str.mjs'
|
|
@@ -47,8 +47,8 @@ let settings = {
|
|
|
47
47
|
|
|
48
48
|
let funNew = (ndata = {}) => {
|
|
49
49
|
let o = dtmapping(ndata, keys(settings))
|
|
50
|
-
o.id = `${
|
|
51
|
-
o.token = `${
|
|
50
|
+
o.id = `${genIDSeq()}`
|
|
51
|
+
o.token = `${genIDSeq()}`
|
|
52
52
|
o.timeCreate = nowms2str()
|
|
53
53
|
o.timeEnd = ot().add(30, 'minute').format('YYYY-MM-DDTHH:mm:ss.SSSZ') //預設30min, 可由創建處再依照設定更新
|
|
54
54
|
o.timeUpdate = o.timeCreate
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import map from 'lodash-es/map.js'
|
|
2
2
|
import keys from 'lodash-es/keys.js'
|
|
3
|
-
import
|
|
3
|
+
import genIDSeq from 'wsemi/src/genIDSeq.mjs'
|
|
4
4
|
import dtmapping from 'wsemi/src/dtmapping.mjs'
|
|
5
5
|
import dtpick from 'wsemi/src/dtpick.mjs'
|
|
6
6
|
import nowms2str from 'wsemi/src/nowms2str.mjs'
|
|
@@ -90,7 +90,7 @@ let settings = {
|
|
|
90
90
|
|
|
91
91
|
let funNew = (ndata = {}) => {
|
|
92
92
|
let o = dtmapping(ndata, keys(settings))
|
|
93
|
-
o.id = `${
|
|
93
|
+
o.id = `${genIDSeq()}`
|
|
94
94
|
o.timeCreate = nowms2str()
|
|
95
95
|
// o.userId = o.userId
|
|
96
96
|
o.userIdUpdate = o.userId
|