w-web-api 1.0.50 → 1.0.52

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/docs/WWebApi.html CHANGED
@@ -80,7 +80,7 @@
80
80
 
81
81
  <dt class="tag-source">Source:</dt>
82
82
  <dd class="tag-source"><ul class="dummy"><li>
83
- <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line131">line 131</a>
83
+ <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line132">line 132</a>
84
84
  </li></ul></dd>
85
85
 
86
86
 
@@ -885,7 +885,7 @@
885
885
  <br class="clear">
886
886
 
887
887
  <footer>
888
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Nov 26 2025 22:42:33 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
888
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 28 2026 23:43:26 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
889
889
  </footer>
890
890
 
891
891
  <script>prettyPrint();</script>
@@ -72,6 +72,7 @@ import fsIsFile from 'wsemi/src/fsIsFile.mjs'
72
72
  import replace from 'wsemi/src/replace.mjs'
73
73
  import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
74
74
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
75
+ import procLang from './procLang.mjs'
75
76
  import ds from '../src/schema/index.mjs'
76
77
 
77
78
 
@@ -269,6 +270,19 @@ function WWebApi(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser,
269
270
  let urlRedirect = get(opt, 'urlRedirect', '')
270
271
 
271
272
 
273
+ //params
274
+ let showLanguage = get(opt, 'showLanguage', 'y')
275
+ let language = get(opt, 'language', 'eng')
276
+
277
+
278
+ //kpLangExt
279
+ let kpLangExt = get(opt, 'kpLangExt', {})
280
+
281
+
282
+ //kpLang
283
+ let kpLang = procLang({ kpLangExt, webName, webDescription })
284
+
285
+
272
286
  //WServOrm
273
287
  let optWServOrm = {
274
288
  useCheckUser,
@@ -288,9 +302,15 @@ function WWebApi(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser,
288
302
  //getWebInfor
289
303
  let getWebInfor = (userId) => {
290
304
  return {
291
- webName,
292
- webDescription,
305
+
306
+ // webName, //已併入kpLang
307
+ // webDescription, //已併入kpLang
293
308
  webLogo,
309
+
310
+ showLanguage,
311
+ language,
312
+ kpLang,
313
+
294
314
  }
295
315
  }
296
316
 
@@ -922,7 +942,7 @@ export default WWebApi
922
942
  <br class="clear">
923
943
 
924
944
  <footer>
925
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Wed Nov 26 2025 22:42:33 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
945
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Sat Mar 28 2026 23:43:26 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
926
946
  </footer>
927
947
 
928
948
  <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.2</a> on Wed Nov 26 2025 22:42:33 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.2</a> on Sat Mar 28 2026 23:43:26 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,18 +1,18 @@
1
1
  {
2
2
  "name": "w-web-api",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "main": "dist/w-web-api.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^7.4.47",
7
- "axios": "^1.9.0",
8
- "lodash-es": "^4.17.21",
7
+ "axios": "^1.13.6",
8
+ "lodash-es": "^4.17.23",
9
9
  "showdown": "^2.1.0",
10
- "w-component-vue": "^2.4.36",
10
+ "w-component-vue": "^2.4.44",
11
11
  "w-data-collector": "^1.0.22",
12
- "w-serv-hapi": "^1.0.71",
13
- "w-serv-orm": "^1.0.37",
12
+ "w-serv-hapi": "^1.0.72",
13
+ "w-serv-orm": "^1.0.38",
14
14
  "w-ui-loginout": "^1.0.10",
15
- "wsemi": "^1.8.34"
15
+ "wsemi": "^1.8.43"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@vue/cli-plugin-babel": "^5.0.8",
@@ -29,7 +29,7 @@
29
29
  "vue": "^2.6.14",
30
30
  "vuex": "^3.6.2",
31
31
  "w-orm-lmdb": "^1.0.3",
32
- "w-package-tools": "^1.1.2"
32
+ "w-package-tools": "^1.1.3"
33
33
  },
34
34
  "scripts": {
35
35
  "serve": "vue-cli-service serve",
@@ -25,6 +25,7 @@ import fsIsFile from 'wsemi/src/fsIsFile.mjs'
25
25
  import replace from 'wsemi/src/replace.mjs'
26
26
  import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
27
27
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
28
+ import procLang from './procLang.mjs'
28
29
  import ds from '../src/schema/index.mjs'
29
30
 
30
31
 
@@ -222,6 +223,19 @@ function WWebApi(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser,
222
223
  let urlRedirect = get(opt, 'urlRedirect', '')
223
224
 
224
225
 
226
+ //params
227
+ let showLanguage = get(opt, 'showLanguage', 'y')
228
+ let language = get(opt, 'language', 'eng')
229
+
230
+
231
+ //kpLangExt
232
+ let kpLangExt = get(opt, 'kpLangExt', {})
233
+
234
+
235
+ //kpLang
236
+ let kpLang = procLang({ kpLangExt, webName, webDescription })
237
+
238
+
225
239
  //WServOrm
226
240
  let optWServOrm = {
227
241
  useCheckUser,
@@ -241,9 +255,15 @@ function WWebApi(WOrm, url, db, getUserByToken, verifyClientUser, verifyAppUser,
241
255
  //getWebInfor
242
256
  let getWebInfor = (userId) => {
243
257
  return {
244
- webName,
245
- webDescription,
258
+
259
+ // webName, //已併入kpLang
260
+ // webDescription, //已併入kpLang
246
261
  webLogo,
262
+
263
+ showLanguage,
264
+ language,
265
+ kpLang,
266
+
247
267
  }
248
268
  }
249
269