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/.github/workflows/ci-test.yml +1 -1
- package/db/wapis/apis/lock.mdb +0 -0
- package/dist/css/{app.c2babfc7.css → app.b5cf2ef5.css} +1 -1
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.927b5679.js +1 -0
- package/dist/js/app.927b5679.js +1 -0
- package/dist/js/chunk-vendors-legacy.ffb0c6c5.js +13 -0
- package/dist/js/chunk-vendors.ffb0c6c5.js +13 -0
- package/dist/w-web-api.umd.js +2 -2
- package/dist/w-web-api.umd.js.map +1 -1
- package/docs/WWebApi.html +2 -2
- package/docs/WWebApi.mjs.html +23 -3
- package/docs/index.html +1 -1
- package/package.json +8 -8
- package/server/WWebApi.mjs +22 -2
- package/{src/plugins/mLang.mjs → server/procLang.mjs} +338 -250
- package/src/components/Layout.vue +25 -0
- package/src/plugins/mUI.mjs +39 -67
- package/src/store/mutations.mjs +1 -1
- package/tableTags.json +1 -1
- package/dist/js/app-legacy.f9897979.js +0 -1
- package/dist/js/app.f9897979.js +0 -1
- package/dist/js/chunk-vendors-legacy.9ac63a94.js +0 -13
- package/dist/js/chunk-vendors.9ac63a94.js +0 -13
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#
|
|
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
|
|
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>
|
package/docs/WWebApi.mjs.html
CHANGED
|
@@ -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
|
-
|
|
292
|
-
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
8
|
-
"lodash-es": "^4.17.
|
|
7
|
+
"axios": "^1.13.6",
|
|
8
|
+
"lodash-es": "^4.17.23",
|
|
9
9
|
"showdown": "^2.1.0",
|
|
10
|
-
"w-component-vue": "^2.4.
|
|
10
|
+
"w-component-vue": "^2.4.44",
|
|
11
11
|
"w-data-collector": "^1.0.22",
|
|
12
|
-
"w-serv-hapi": "^1.0.
|
|
13
|
-
"w-serv-orm": "^1.0.
|
|
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.
|
|
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.
|
|
32
|
+
"w-package-tools": "^1.1.3"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"serve": "vue-cli-service serve",
|
package/server/WWebApi.mjs
CHANGED
|
@@ -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
|
-
|
|
245
|
-
|
|
258
|
+
|
|
259
|
+
// webName, //已併入kpLang
|
|
260
|
+
// webDescription, //已併入kpLang
|
|
246
261
|
webLogo,
|
|
262
|
+
|
|
263
|
+
showLanguage,
|
|
264
|
+
language,
|
|
265
|
+
kpLang,
|
|
266
|
+
|
|
247
267
|
}
|
|
248
268
|
}
|
|
249
269
|
|