w-web-sso 1.0.13 → 1.0.15

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 (76) hide show
  1. package/db/wsso/ips/data.mdb +0 -0
  2. package/db/wsso/ips/lock.mdb +0 -0
  3. package/db/wsso/tokens/data.mdb +0 -0
  4. package/db/wsso/tokens/lock.mdb +0 -0
  5. package/db/wsso/users/data.mdb +0 -0
  6. package/db/wsso/users/lock.mdb +0 -0
  7. package/dist/css/{app.03a2f95c.css → app.e4367a2b.css} +1 -1
  8. package/dist/index.tmp +6 -2
  9. package/dist/js/app-legacy.4ebeee34.js +2 -0
  10. package/dist/js/app-legacy.4ebeee34.js.map +1 -0
  11. package/dist/js/app.d1707f92.js +2 -0
  12. package/dist/js/app.d1707f92.js.map +1 -0
  13. package/dist/js/chunk-vendors-legacy.7380957a.js +15 -0
  14. package/dist/js/chunk-vendors-legacy.7380957a.js.map +1 -0
  15. package/dist/js/chunk-vendors.7380957a.js +15 -0
  16. package/dist/js/chunk-vendors.7380957a.js.map +1 -0
  17. package/dist/w-web-sso.umd.js +2 -2
  18. package/dist/w-web-sso.umd.js.map +1 -1
  19. package/docs/WWebSso.html +4 -112
  20. package/docs/WWebSso.mjs.html +460 -111
  21. package/docs/index.html +1 -1
  22. package/g.getSettings.mjs +0 -1
  23. package/g.initialData.mjs +8 -10
  24. package/g.mjs +0 -0
  25. package/package.json +7 -6
  26. package/public/index.html +13 -0
  27. package/server/WWebSso.mjs +459 -110
  28. package/server/procCore.mjs +871 -277
  29. package/server/procProtect.mjs +746 -0
  30. package/server/procStaInfor.mjs +393 -0
  31. package/server/provideUsers.mjs +0 -1
  32. package/server/srlog.mjs +12 -0
  33. package/server/staLogs/staIp.callWorker.mjs +35 -0
  34. package/server/staLogs/staIp.mjs +118 -0
  35. package/server/staLogs/staIp.shellWorker.mjs +18 -0
  36. package/server/staLogs/staToken.callWorker.mjs +35 -0
  37. package/server/staLogs/staToken.mjs +118 -0
  38. package/server/staLogs/staToken.shellWorker.mjs +18 -0
  39. package/server/staLogs/staUserAccountLogin.callWorker.mjs +35 -0
  40. package/server/staLogs/staUserAccountLogin.mjs +136 -0
  41. package/server/staLogs/staUserAccountLogin.shellWorker.mjs +18 -0
  42. package/server/staLogs/test_staIp.mjs +27 -0
  43. package/server/staLogs/test_staToken.mjs +27 -0
  44. package/server/staLogs/test_staUserAccountLogin.mjs +30 -0
  45. package/settings.json +15 -1
  46. package/src/components/Layout.vue +70 -15
  47. package/src/components/LayoutContent.vue +35 -33
  48. package/src/components/LayoutContentIps.vue +757 -0
  49. package/src/components/LayoutContentStaInfor.vue +917 -0
  50. package/src/components/LayoutContentTokens.vue +961 -0
  51. package/src/components/{LayoutContentInfor.vue → LayoutContentUserInfor.vue} +366 -73
  52. package/src/components/LayoutContentUsers.vue +21 -34
  53. package/src/components/PageLogin.vue +1 -1
  54. package/src/components/VeUser.vue.txt +9 -10
  55. package/src/components/ruleGroup.vue.txt +5 -6
  56. package/src/main.js +7 -13
  57. package/src/plugins/mLang.mjs +853 -520
  58. package/src/plugins/mShare.mjs +141 -3
  59. package/src/plugins/mUI.mjs +30 -21
  60. package/src/schema/index.mjs +2 -0
  61. package/src/schema/tables/ips.mjs +0 -9
  62. package/src/schema/tables/tokens.mjs +5 -1
  63. package/src/schema/tables/users.mjs +2 -14
  64. package/src/store/mutations.mjs +3 -3
  65. package/src/store/types.mjs +1 -1
  66. package/srv.mjs +55 -38
  67. package/_/350/246/217/345/212/203.md +0 -275
  68. package/dist/js/app-legacy.d468ef7f.js +0 -2
  69. package/dist/js/app-legacy.d468ef7f.js.map +0 -1
  70. package/dist/js/app.d468ef7f.js +0 -2
  71. package/dist/js/app.d468ef7f.js.map +0 -1
  72. package/dist/js/chunk-vendors-legacy.f51f58bb.js +0 -13
  73. package/dist/js/chunk-vendors-legacy.f51f58bb.js.map +0 -1
  74. package/dist/js/chunk-vendors.f51f58bb.js +0 -13
  75. package/dist/js/chunk-vendors.f51f58bb.js.map +0 -1
  76. package/src/components/LayoutContentSettings.vue +0 -1248
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.2</a> on Sat Jun 07 2025 20:41:04 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 Sat Jul 12 2025 22:44:43 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.getSettings.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  // import path from 'path'
2
2
  // import fs from 'fs'
3
- // import JSON5 from 'json5'
4
3
 
5
4
 
6
5
  function getSettings() {
package/g.initialData.mjs CHANGED
@@ -21,8 +21,8 @@ async function initialData() {
21
21
  redir: 'https://github.com/?token={token}', //給予{token}使前端自動取代成真實token
22
22
  isAdmin: 'n',
23
23
  isVerified: 'y',
24
- timeVerified: '2025-01-01T00:00:00+08:00',
25
- timeExpired: '2030-01-01T00:00:00+08:00',
24
+ timeVerified: '2025-01-01T00:00:00.000+08:00',
25
+ timeExpired: '2030-01-01T00:00:00.000+08:00',
26
26
  timeBlocked: '',
27
27
  isActive: 'y',
28
28
 
@@ -38,8 +38,8 @@ async function initialData() {
38
38
  redir: 'https://github.com/?token={token}', //給予{token}使前端自動取代成真實token
39
39
  isAdmin: 'n',
40
40
  isVerified: 'y',
41
- timeVerified: '2025-01-01T00:00:00+08:00',
42
- timeExpired: '2030-01-01T00:00:00+08:00',
41
+ timeVerified: '2025-01-01T00:00:00.000+08:00',
42
+ timeExpired: '2030-01-01T00:00:00.000+08:00',
43
43
  timeBlocked: '',
44
44
  isActive: 'y',
45
45
  },
@@ -54,8 +54,8 @@ async function initialData() {
54
54
  redir: 'https://github.com/?token={token}', //給予{token}使前端自動取代成真實token
55
55
  isAdmin: 'y',
56
56
  isVerified: 'y',
57
- timeVerified: '2025-01-01T00:00:00+08:00',
58
- timeExpired: '2030-01-01T00:00:00+08:00',
57
+ timeVerified: '2025-01-01T00:00:00.000+08:00',
58
+ timeExpired: '2030-01-01T00:00:00.000+08:00',
59
59
  timeBlocked: '',
60
60
  isActive: 'y',
61
61
  },
@@ -88,7 +88,7 @@ async function initialData() {
88
88
  {
89
89
  token: 'token-for-app',
90
90
  userId: 'id-for-app',
91
- isApp: true,
91
+ isApp: 'y',
92
92
  },
93
93
  ]
94
94
  ts = map(ts, (t, k) => {
@@ -98,9 +98,7 @@ async function initialData() {
98
98
  })
99
99
  v.id = `id-for-${token}`
100
100
  v.token = token
101
- if (t.isApp) {
102
- v.timeEnd = '2030-00-00T00:00:00+08:00'
103
- }
101
+ v.timeEnd = '2030-01-01T00:00:00.000+08:00' //測試各token皆給予超長時效
104
102
  return v
105
103
  })
106
104
  await woItems.tokens.delAll()
package/g.mjs ADDED
File without changes
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "w-web-sso",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "main": "dist/w-web-sso.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^7.4.47",
7
- "axios": "^1.9.0",
7
+ "axios": "^1.10.0",
8
8
  "json5": "^2.2.3",
9
9
  "lodash-es": "^4.17.21",
10
- "w-component-vue": "^2.4.20",
10
+ "w-component-vue": "^2.4.22",
11
11
  "w-data-collector": "^1.0.22",
12
- "w-serv-hapi": "^1.0.57",
13
- "w-serv-orm": "^1.0.26",
12
+ "w-serv-hapi": "^1.0.59",
13
+ "w-serv-orm": "^1.0.28",
14
+ "w-syslog": "^1.0.6",
14
15
  "w-ui-loginout": "^1.0.9",
15
- "wsemi": "^1.7.92"
16
+ "wsemi": "^1.8.14"
16
17
  },
17
18
  "devDependencies": {
18
19
  "@vue/cli-plugin-babel": "^5.0.8",
package/public/index.html CHANGED
@@ -6,12 +6,25 @@
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
7
  <title></title>
8
8
 
9
+ <!-- tailwindcss -->
10
+ <script src="https://cdn.tailwindcss.com"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ corePlugins: {
14
+ preflight: false,
15
+ }
16
+ }
17
+ </script>
18
+
9
19
  <!-- mdi font -->
10
20
  <link href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css" rel="stylesheet">
11
21
 
12
22
  <!-- fontawesome -->
13
23
  <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css" rel="stylesheet">
14
24
 
25
+ <!-- echarts -->
26
+ <script src="https://cdn.jsdelivr.net/npm/echarts@5.6.0/dist/echarts.min.js"></script>
27
+
15
28
  <!-- ___pmwsso___ -->
16
29
  <script>
17
30
  window.___pmwsso___={