w-web-perm 1.0.46 → 1.0.47

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * w-web-perm v1.0.46
2
+ * w-web-perm v1.0.47
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
@@ -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.4</a> on Thu Mar 26 2026 15:32:00 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.4</a> on Thu Mar 26 2026 16:17:35 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
929
929
  </footer>
930
930
 
931
931
  <script>prettyPrint();</script>
@@ -1276,7 +1276,7 @@ export default WWebPerm
1276
1276
  <br class="clear">
1277
1277
 
1278
1278
  <footer>
1279
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Mar 26 2026 15:32:00 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1279
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Mar 26 2026 16:17:35 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1280
1280
  </footer>
1281
1281
 
1282
1282
  <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 Thu Mar 26 2026 15:32:00 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 Thu Mar 26 2026 16:17:35 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-perm",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "main": "dist/w-web-perm.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^7.4.47",
@@ -46,6 +46,31 @@ import convertToTree from 'wsemi/src/convertToTree.mjs'
46
46
  let vo = Vue.prototype
47
47
 
48
48
 
49
+ //連線建立前的 fallback 專用, 僅含連線狀態字串, 其餘語系皆由後端提供
50
+ let kpFallback = {
51
+ csIng: {
52
+ eng: 'Connecting...',
53
+ cht: '連線中...',
54
+ },
55
+ csLogin: {
56
+ eng: 'Logged in',
57
+ cht: '已登入',
58
+ },
59
+ csLogout: {
60
+ eng: 'Logged out',
61
+ cht: '已登出',
62
+ },
63
+ csErrConn: {
64
+ eng: 'Unable to connect',
65
+ cht: '無法連線',
66
+ },
67
+ csErrLogin: {
68
+ eng: 'Login denied',
69
+ cht: '拒絕登入',
70
+ },
71
+ }
72
+
73
+
49
74
  function setVo(vObj) {
50
75
  vo = vObj
51
76
  }
@@ -180,6 +205,11 @@ function getKpText(key) {
180
205
 
181
206
  //t
182
207
  let t = get(kpText, key, '')
208
+ if (!isestr(t)) {
209
+ // fallback: 後端語系尚未載入時使用預設值
210
+ let lang = getLang()
211
+ t = get(kpFallback, `${key}.${lang}`, '')
212
+ }
183
213
  if (!isestr(t)) {
184
214
  t = key
185
215
  }
package/tableTags.json CHANGED
@@ -1 +1 @@
1
- {"grups":"2026-03-26T15:29:24+08:00|cXr1fm","pemis":"2026-03-26T15:29:24+08:00|cp05vW","targets":"2026-03-26T15:29:24+08:00|kXDsDy","users":"2026-03-26T15:29:24+08:00|tTgZtc"}
1
+ {"grups":"2026-03-26T16:16:47+08:00|OgUEFl","pemis":"2026-03-26T16:16:47+08:00|ZQqITs","targets":"2026-03-26T16:16:47+08:00|c3veRF","users":"2026-03-26T16:16:47+08:00|pCsk2f"}