w-web-api 1.0.13 → 1.0.16

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
@@ -604,7 +604,7 @@
604
604
  <br class="clear">
605
605
 
606
606
  <footer>
607
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Sun Apr 17 2022 12:12:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
607
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Apr 19 2022 15:52:28 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
608
608
  </footer>
609
609
 
610
610
  <script>prettyPrint();</script>
@@ -110,6 +110,7 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
110
110
  *
111
111
  */
112
112
  async function WWebApi(WOrm, url, db, opt = {}) {
113
+ let instWServHapiServer = null
113
114
 
114
115
 
115
116
  //check WOrm
@@ -211,7 +212,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
211
212
  if (iseobj(inp)) {
212
213
 
213
214
  //spread
214
- let { levels, apis } = inp
215
+ let { group, apis } = inp
215
216
 
216
217
  //apis
217
218
  each(apis, (api, kapi) => {
@@ -220,8 +221,10 @@ async function WWebApi(WOrm, url, db, opt = {}) {
220
221
  // console.log(k, v)
221
222
  if (isestr(v)) {
222
223
  if (strleft(v, 7) === 'base64:') {
224
+ // console.log(k, 'get base64')
223
225
  v = strdelleft(v, 7)
224
226
  v = b642str(v)
227
+ // console.log(v)
225
228
  apis[kapi][k] = v
226
229
  }
227
230
  }
@@ -229,7 +232,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
229
232
  })
230
233
 
231
234
  //resave
232
- inp = { levels, apis }
235
+ inp = { group, apis }
233
236
 
234
237
  }
235
238
  else {
@@ -245,7 +248,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
245
248
 
246
249
  //spread params
247
250
  let { apis: rsApis } = params
248
- // console.log('levels', levels)
251
+ // console.log('group', group)
249
252
  // console.log('rsApis', rsApis)
250
253
 
251
254
  //save
@@ -259,12 +262,12 @@ async function WWebApi(WOrm, url, db, opt = {}) {
259
262
  let replaceAPIsByLevels = async (userId, params = {}) => {
260
263
 
261
264
  //spread params
262
- let { levels, apis: rsApis } = params
263
- // console.log('levels', levels)
265
+ let { group, apis: rsApis } = params
266
+ // console.log('group', group)
264
267
  // console.log('rsApis', rsApis)
265
268
 
266
- //delAll levels
267
- await woItems.apis.delAll({ levels })
269
+ //delAll group
270
+ await woItems.apis.delAll({ group })
268
271
 
269
272
  //insert
270
273
  let r = await woItems.apis.insert(rsApis)
@@ -360,7 +363,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
360
363
 
361
364
 
362
365
  //WServHapiServer
363
- let wshs = WServHapiServer({
366
+ instWServHapiServer = WServHapiServer({
364
367
  port: opt.serverPort,
365
368
  pathStaticFiles,
366
369
  apis,
@@ -384,7 +387,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
384
387
  })
385
388
 
386
389
 
387
- return wshs
390
+ return instWServHapiServer
388
391
  }
389
392
 
390
393
 
@@ -403,7 +406,7 @@ export default WWebApi
403
406
  <br class="clear">
404
407
 
405
408
  <footer>
406
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Sun Apr 17 2022 12:12:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
409
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Apr 19 2022 15:52:28 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
407
410
  </footer>
408
411
 
409
412
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -68,7 +68,7 @@
68
68
  <br class="clear">
69
69
 
70
70
  <footer>
71
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Sun Apr 17 2022 12:12:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
71
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Apr 19 2022 15:52:28 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
72
72
  </footer>
73
73
 
74
74
  <script>prettyPrint();</script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-web-api",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "main": "dist/w-web-api.umd.js",
5
5
  "dependencies": {
6
6
  "@mdi/js": "^6.6.96",
@@ -9,9 +9,9 @@
9
9
  "showdown": "^2.0.3",
10
10
  "w-component-vue": "^2.2.6",
11
11
  "w-data-collector": "^1.0.13",
12
- "w-serv-hapi": "^1.0.6",
12
+ "w-serv-hapi": "^1.0.7",
13
13
  "w-serv-orm": "^1.0.2",
14
- "wsemi": "^1.6.55"
14
+ "wsemi": "^1.6.57"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@vue/cli-plugin-babel": "^4.5.13",
@@ -66,6 +66,7 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
66
66
  *
67
67
  */
68
68
  async function WWebApi(WOrm, url, db, opt = {}) {
69
+ let instWServHapiServer = null
69
70
 
70
71
 
71
72
  //check WOrm
@@ -167,7 +168,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
167
168
  if (iseobj(inp)) {
168
169
 
169
170
  //spread
170
- let { levels, apis } = inp
171
+ let { group, apis } = inp
171
172
 
172
173
  //apis
173
174
  each(apis, (api, kapi) => {
@@ -176,8 +177,10 @@ async function WWebApi(WOrm, url, db, opt = {}) {
176
177
  // console.log(k, v)
177
178
  if (isestr(v)) {
178
179
  if (strleft(v, 7) === 'base64:') {
180
+ // console.log(k, 'get base64')
179
181
  v = strdelleft(v, 7)
180
182
  v = b642str(v)
183
+ // console.log(v)
181
184
  apis[kapi][k] = v
182
185
  }
183
186
  }
@@ -185,7 +188,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
185
188
  })
186
189
 
187
190
  //resave
188
- inp = { levels, apis }
191
+ inp = { group, apis }
189
192
 
190
193
  }
191
194
  else {
@@ -201,7 +204,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
201
204
 
202
205
  //spread params
203
206
  let { apis: rsApis } = params
204
- // console.log('levels', levels)
207
+ // console.log('group', group)
205
208
  // console.log('rsApis', rsApis)
206
209
 
207
210
  //save
@@ -215,12 +218,12 @@ async function WWebApi(WOrm, url, db, opt = {}) {
215
218
  let replaceAPIsByLevels = async (userId, params = {}) => {
216
219
 
217
220
  //spread params
218
- let { levels, apis: rsApis } = params
219
- // console.log('levels', levels)
221
+ let { group, apis: rsApis } = params
222
+ // console.log('group', group)
220
223
  // console.log('rsApis', rsApis)
221
224
 
222
- //delAll levels
223
- await woItems.apis.delAll({ levels })
225
+ //delAll group
226
+ await woItems.apis.delAll({ group })
224
227
 
225
228
  //insert
226
229
  let r = await woItems.apis.insert(rsApis)
@@ -316,7 +319,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
316
319
 
317
320
 
318
321
  //WServHapiServer
319
- let wshs = WServHapiServer({
322
+ instWServHapiServer = WServHapiServer({
320
323
  port: opt.serverPort,
321
324
  pathStaticFiles,
322
325
  apis,
@@ -340,7 +343,7 @@ async function WWebApi(WOrm, url, db, opt = {}) {
340
343
  })
341
344
 
342
345
 
343
- return wshs
346
+ return instWServHapiServer
344
347
  }
345
348
 
346
349
 
@@ -1,9 +1,14 @@
1
1
  import axios from 'axios'
2
2
  import ltdtpick from 'wsemi/src/ltdtpick.mjs'
3
+ import genPm from 'wsemi/src/genPm.mjs'
3
4
 
4
5
 
5
- async function provideApis(url, levels, apis) {
6
+ async function provideApis(url, group, apis) {
6
7
  //url: 指API伺服器提供的接入網址, 例如 http://localhost:11005/replaceAPIsByLevels
8
+ //group: 指API所屬群組, 主要呼叫replaceAPIsByLevels為主
9
+
10
+ //pm
11
+ let pm = genPm()
7
12
 
8
13
  //ks
9
14
  let ks = [
@@ -13,12 +18,15 @@ async function provideApis(url, levels, apis) {
13
18
  'url', //指api網址, 例如 http://localhost:11005/getDogsList
14
19
  'method', //'get'
15
20
  'version', //'v1'
21
+ 'group', //'寵物'
16
22
  'levels', //'寵物.天竺鼠'
17
23
  'keywords', //'pets;guineapigs'
18
24
  'state', //'ok'
19
25
  'creator', //'pets-system'
20
26
  'dataSource', //'pets-data'
21
27
  'mdInputParams', //輸入方式說明, markdown格式
28
+ 'inputExample', //輸入範例數據
29
+ 'mdOutputParams', //輸出方式說明, markdown格式
22
30
  'outputExample', //輸出範例數據, json格式
23
31
  ]
24
32
 
@@ -27,12 +35,12 @@ async function provideApis(url, levels, apis) {
27
35
 
28
36
  //rin
29
37
  let rin = {
30
- levels,
38
+ group,
31
39
  apis,
32
40
  }
41
+ // rin = JSON.stringify(rin)
33
42
 
34
43
  //axios
35
- let rout
36
44
  await axios({
37
45
  method: 'post',
38
46
  url,
@@ -41,22 +49,22 @@ async function provideApis(url, levels, apis) {
41
49
  })
42
50
  .then((res) => {
43
51
  // console.log(res)
44
- rout = {
45
- state: 'success',
52
+ let r = {
46
53
  msg: '成功傳輸API清單',
47
54
  res,
48
55
  }
56
+ pm.resolve(r)
49
57
  })
50
58
  .catch((err) => {
51
59
  // console.log(err)
52
- rout = {
53
- state: 'error',
60
+ let r = {
54
61
  msg: '無法傳輸API清單',
55
62
  res: err,
56
63
  }
64
+ pm.reject(r)
57
65
  })
58
66
 
59
- return rout
67
+ return pm
60
68
  }
61
69
 
62
70
 
@@ -7,7 +7,7 @@
7
7
  :icon="'mdi-menu'"
8
8
  :tooltip="'左側選單'"
9
9
  :shadow="false"
10
- @click="drawer = !drawer"
10
+ @click="drawer=!drawer"
11
11
  v-if="false"
12
12
  ></WButtonCircle>
13
13
 
@@ -44,6 +44,10 @@ let settings = {
44
44
  name: '版本',
45
45
  type: 'STRING',
46
46
  },
47
+ 'group': { //用來統一管理外部API來源
48
+ name: '群組',
49
+ type: 'STRING',
50
+ },
47
51
  'levels': { //階層群組用英文句點「.」分隔
48
52
  name: '階層群組',
49
53
  type: 'STRING',
@@ -116,6 +120,7 @@ let funTest = () => {
116
120
  'url': 'http://localhost:11005/getAPIsList',
117
121
  'method': 'get',
118
122
  'version': 'v1',
123
+ 'group': '全部',
119
124
  'levels': 'API',
120
125
  'keywords': 'API;center',
121
126
  'state': 'ok',
@@ -176,6 +181,7 @@ let funTest = () => {
176
181
  'url': 'http://localhost:11005/getPetsList',
177
182
  'method': 'get',
178
183
  'version': 'v1',
184
+ 'group': '寵物',
179
185
  'levels': '寵物',
180
186
  'keywords': 'pets',
181
187
  'state': 'ok',
@@ -236,6 +242,7 @@ let funTest = () => {
236
242
  'url': 'http://localhost:11005/getDogsList',
237
243
  'method': 'get',
238
244
  'version': 'v1',
245
+ 'group': '寵物',
239
246
  'levels': '寵物.狗狗',
240
247
  'keywords': 'pets;dogs',
241
248
  'state': 'ok',
@@ -296,6 +303,7 @@ let funTest = () => {
296
303
  'url': 'http://localhost:11005/addDog',
297
304
  'method': 'post',
298
305
  'version': 'v1',
306
+ 'group': '寵物',
299
307
  'levels': '寵物.狗狗',
300
308
  'keywords': 'pets;dogs',
301
309
  'state': 'ok',
@@ -356,6 +364,7 @@ let funTest = () => {
356
364
  'url': 'http://localhost:11005/updateDog',
357
365
  'method': 'put',
358
366
  'version': 'v1',
367
+ 'group': '寵物',
359
368
  'levels': '寵物.狗狗',
360
369
  'keywords': 'pets;dogs',
361
370
  'state': 'ok',
@@ -416,6 +425,7 @@ let funTest = () => {
416
425
  'url': 'http://localhost:11005/deleteDog',
417
426
  'method': 'del',
418
427
  'version': 'v1',
428
+ 'group': '寵物',
419
429
  'levels': '寵物.狗狗',
420
430
  'keywords': 'pets;dogs',
421
431
  'state': 'ok',
@@ -476,6 +486,7 @@ let funTest = () => {
476
486
  'url': 'http://localhost:11005/getCatsList',
477
487
  'method': 'get',
478
488
  'version': 'v1',
489
+ 'group': '寵物',
479
490
  'levels': '寵物.貓咪',
480
491
  'keywords': 'pets;cats',
481
492
  'state': 'ok',
@@ -536,6 +547,7 @@ let funTest = () => {
536
547
  'url': 'http://localhost:11005/addCat',
537
548
  'method': 'post',
538
549
  'version': 'v1',
550
+ 'group': '寵物',
539
551
  'levels': '寵物.貓咪',
540
552
  'keywords': 'pets;cats',
541
553
  'state': 'ok',
@@ -596,6 +608,7 @@ let funTest = () => {
596
608
  'url': 'http://localhost:11005/updateCat',
597
609
  'method': 'put',
598
610
  'version': 'v1',
611
+ 'group': '寵物',
599
612
  'levels': '寵物.貓咪',
600
613
  'keywords': 'pets;cats',
601
614
  'state': 'ok',
@@ -656,6 +669,7 @@ let funTest = () => {
656
669
  'url': 'http://localhost:11005/deleteCat',
657
670
  'method': 'del',
658
671
  'version': 'v1',
672
+ 'group': '寵物',
659
673
  'levels': '寵物.貓咪',
660
674
  'keywords': 'pets;cats',
661
675
  'state': 'ok',
@@ -716,6 +730,7 @@ let funTest = () => {
716
730
  'url': 'http://localhost:11005/getcarsList',
717
731
  'method': 'get',
718
732
  'version': 'v1',
733
+ 'group': '寵物',
719
734
  'levels': '交通工具.汽車',
720
735
  'keywords': 'vehicles;cars',
721
736
  'state': 'ok',
@@ -776,6 +791,7 @@ let funTest = () => {
776
791
  'url': 'http://localhost:11005/addDog',
777
792
  'method': 'post',
778
793
  'version': 'v1',
794
+ 'group': '寵物',
779
795
  'levels': '交通工具.汽車',
780
796
  'keywords': 'vehicles;cars',
781
797
  'state': 'ok',
@@ -836,6 +852,7 @@ let funTest = () => {
836
852
  'url': 'http://localhost:11005/updateDog',
837
853
  'method': 'put',
838
854
  'version': 'v1',
855
+ 'group': '寵物',
839
856
  'levels': '交通工具.汽車',
840
857
  'keywords': 'vehicles;cars',
841
858
  'state': 'ok',
@@ -896,6 +913,7 @@ let funTest = () => {
896
913
  'url': 'http://localhost:11005/deleteDog',
897
914
  'method': 'del',
898
915
  'version': 'v1',
916
+ 'group': '寵物',
899
917
  'levels': '交通工具.汽車',
900
918
  'keywords': 'vehicles;cars',
901
919
  'state': 'ok',
@@ -1 +1 @@
1
- {"apis":"lRcqJc"}
1
+ {"apis":"RnCO2r"}
@@ -1,2 +0,0 @@
1
- (function(t){function e(e){for(var n,o,p=e[0],s=e[1],d=e[2],l=0,m=[];l<p.length;l++)o=p[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&m.push(r[o][0]),r[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);c&&c(e);while(m.length)m.shift()();return i.push.apply(i,d||[]),a()}function a(){for(var t,e=0;e<i.length;e++){for(var a=i[e],n=!0,p=1;p<a.length;p++){var s=a[p];0!==r[s]&&(n=!1)}n&&(i.splice(e--,1),t=o(o.s=a[0]))}return t}var n={},r={app:0},i=[];function o(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=t,o.c=n,o.d=function(t,e,a){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(a,n,function(e){return t[e]}.bind(null,n));return a},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/";var p=window["webpackJsonp"]=window["webpackJsonp"]||[],s=p.push.bind(p);p.push=e,p=p.slice();for(var d=0;d<p.length;d++)e(p[d]);var c=s;i.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"034f":function(t,e,a){"use strict";a("85ec")},1:function(t,e){},"16cc":function(t,e,a){"use strict";a("8096")},"56d7":function(t,e,a){"use strict";a.r(e);var n={};a.r(n),a.d(n,"UpdateWebInfor",(function(){return yt})),a.d(n,"UpdateLang",(function(){return St})),a.d(n,"UpdateKpText",(function(){return Tt})),a.d(n,"UpdateConnState",(function(){return It})),a.d(n,"UpdateSyncState",(function(){return kt})),a.d(n,"UpdateLoading",(function(){return Ct})),a.d(n,"UpdateViewState",(function(){return wt})),a.d(n,"UpdateTableData",(function(){return Et})),a.d(n,"UpdateData",(function(){return At})),a.d(n,"UpdateHeightApp",(function(){return Ot})),a.d(n,"UpdateHeightAppEff",(function(){return Bt})),a.d(n,"UpdateHeightToolbar",(function(){return jt})),a.d(n,"UpdateMenu",(function(){return xt})),a.d(n,"UpdateUserToken",(function(){return Gt})),a.d(n,"UpdateUserSelf",(function(){return Nt}));var r={};a.r(r);var i={};a.r(i);var o={};a.r(o),a.d(o,"at",(function(){return _e["a"]}));var p=a("9b02"),s=a.n(p),d=a("2b0e"),c=a("e7c6"),l=a("ded4"),m=a("36ac"),f=a("7548"),u=a("8ce7"),g=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"domresize",rawName:"v-domresize"}],on:{domresize:t.resize}},[a("transition",{attrs:{"enter-active-class":"fade-enter-active","leave-active-class":"fade-leave-active"}},[t.ready?a("Layout"):t._e()],1)],1)},h=[],v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{height:"100vh",background:"#f5f5f5"}},[a("div",{style:"height:"+t.heightToolbar+"px; padding:0px 10px; display:flex; align-items:center; background:#fff; border-bottom:1px solid #ccc;"},[t._e(),a("div",{staticStyle:{"padding-left":"5px","white-space":"nowrap"}},[a("div",{staticStyle:{display:"flex","align-items":"center"}},[t.webLogo?a("div",{staticStyle:{"padding-right":"10px",display:"flex","align-items":"center"}},[a("img",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.webLogo}})]):t._e(),a("div",[a("div",{staticStyle:{"font-size":"1.2rem",color:"#000"}},[t._v(t._s(t.webName))]),a("div",{staticStyle:{"font-size":"0.8rem",color:"#666"}},[t._v(t._s(t.$t("webDescription")))])])])]),a("div",{staticStyle:{width:"100%"}}),a("div",{staticStyle:{"padding-right":"10px","white-space":"nowrap"}},[a("WTextSelect",{attrs:{items:t.tgLangs},on:{input:t.changeLang},model:{value:t.tgLangSelect,callback:function(e){t.tgLangSelect=e},expression:"tgLangSelect"}})],1)],1),a("div",{style:"height:calc( 100% - "+t.heightToolbar+"px );"},[a("LayoutContent")],1)])},b=[],y=a("c97c"),S=a("ea3a"),T=a("d4e6"),I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{height:"100%"}},[t.syncState?[a("LayoutContentList")]:a("div",{staticStyle:{padding:"20px","font-size":"0.9rem"}},[t._v(" "+t._s(t.$t("waitingData"))+" ")])],2)},k=[],C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{height:"100%"},attrs:{changeApis:t.changeApis}},[t.hasApis?a("div",{staticStyle:{display:"flex",height:"100%"}},[a("div",{directives:[{name:"domresize",rawName:"v-domresize"}],staticStyle:{"min-width":"400px",height:"100%",color:"#444",background:"#fff"},on:{domresize:t.resizeTree}},[a("WTree",{attrs:{viewHeightMax:t.heightTree,data:t.apisTree,iconHeight:t.lineHeightTree,defItemHeight:t.lineHeightTree,activable:!0,activeItem:t.apiActive,"fun-active":t.funActive,itemTextColorActive:"#000",itemBackgroundColorActive:"rgba(100,100,100,0.15)"},scopedSlots:t._u([{key:"item",fn:function(e){return["node"!==e.data.type?a("div",{style:"display:flex; align-items:center; min-height:"+t.lineHeightTree+"px;"},[t._v(" "+t._s(e.data.key)+" ")]):a("div",{style:"display:flex; align-items:center; min-height:"+t.lineHeightTree+"px; cursor:pointer;",on:{click:function(a){t.ckItem(t.getItemByKey(e.data.text))}}},[a("div",{staticStyle:{"padding-right":"5px"}},[a("div",{style:"padding:0px 6px; font-size:0.7rem; border-radius:10px; border:1px solid #ddd; color:#fff; background:"+t.getMethodColorByKey(e.data.text)+";"},[t._v(" "+t._s(t.getMethodByKey(e.data.text))+" ")])]),a("div",[t._v(" "+t._s(t.$ui.gv(t.getItemByKey(e.data.text),"name"))+" ")])])]}}],null,!1,901240009)})],1),a("div",{staticStyle:{height:"100%","border-right":"1px solid #ddd"}}),t.apiSelect?a("div",{staticStyle:{width:"100%",height:"100%","overflow-y":"auto"}},[a("div",{staticStyle:{padding:"15px 20px 10px 10px"}},[a("div",{staticStyle:{padding:"5px"}},[a("div",{staticStyle:{padding:"10px","border-radius":"5px",border:"1px solid #ddd",background:"#fff",display:"flex","align-items":"center"}},[a("div",{staticStyle:{"padding-right":"5px"}},[a("div",{style:"padding:0px 6px; font-size:0.7rem; border-radius:10px; border:1px solid #ddd; color:#fff; background:"+t.getMethodColor(t.apiSelect)+";"},[t._v(" "+t._s(t.getMethod(t.apiSelect))+" ")])]),a("div",{staticStyle:{"font-size":"0.8rem"}},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"url"))+" ")])])]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticStyle:{color:"#485ed5"}},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"name"))+" ")]),a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"description"))+" ")])]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("tokens"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"tokens"))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("version"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"version"))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("levels"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,""))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("keywords"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,""))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("state"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,""))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("timeCreate"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"timeCreate",t.getDay))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("timeUpdate"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"timeUpdate",t.getDay))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("creator"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"creator"))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("dataSource"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"dataSource"))+" ")])]),a("div",{staticClass:"bk"},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("isActive"))+" ")]),a("div",{staticClass:"bk-item"},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"isActive"))+" ")])])]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("mdInputParams"))+" ")]),a("div",{staticClass:"bk-item",staticStyle:{padding:"10px"}},[a("MdPanel",{attrs:{md:t.$ui.gv(t.apiSelect,"mdInputParams")}})],1)]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("inputExample"))+" ")]),a("div",{staticClass:"bk-item",staticStyle:{padding:"10px"}},[t._v(" "+t._s(t.$ui.gv(t.apiSelect,"inputExample"))+" ")])]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("mdOutputParams"))+" ")]),a("div",{staticClass:"bk-item",staticStyle:{padding:"10px"}},[a("MdPanel",{attrs:{md:t.$ui.gv(t.apiSelect,"mdOutputParams")}})],1)]),a("div",{staticStyle:{padding:"10px"}},[a("div",{staticClass:"bk-title"},[t._v(" "+t._s(t.$t("outputExample"))+" ")]),a("div",{staticStyle:{"padding-top":"10px"}},[a("div",{staticStyle:{"padding-left":"10px","margin-bottom":"-1px"}},[a("WGroupRadio",{attrs:{items:t.optputMenuItems,value:t.optputMenuItemSelect,group:!0,"group-border-radius-style":{top:!0},"group-shift":7,"border-radius":20,"border-color":"#ddd","border-color-hover":"#dadada","border-color-active":"orange lighten-2","margin-style":{}},on:{input:t.changeOptputMenuItemSelect}})],1),a("div",{staticStyle:{border:"1px solid #ddd",background:"#fff"}},["tree"===t.optputMenuItemSelectId?a("div",{},[a("WJsonView",{staticStyle:{width:"100%"},attrs:{viewHeightMax:null,data:t.getOutputJsonObj(t.apiSelect)}})],1):t._e(),"raw"===t.optputMenuItemSelectId?a("div",{staticStyle:{padding:"10px",color:"#555","font-size":"0.85rem"}},[a("pre",[t._v(t._s(t.getOutputJson(t.apiSelect)))])]):t._e()])])])])]):a("div",{staticStyle:{padding:"20px","font-size":"0.9rem"}},[t._v(" "+t._s(t.$t("noSelectApi"))+" ")])]):a("div",{staticStyle:{padding:"20px","font-size":"0.9rem"}},[t._v(" "+t._s(t.$t("waitingData"))+" ")])])},w=[],E=a("0f5c"),A=a.n(E),O=a("c641"),B=a.n(O),j=a("d623"),x=a.n(j),G=a("66c7"),N=a.n(G),R=a("2769"),U=a.n(R),L=a("0644"),_=a.n(L),$=a("ec85"),P=a("524d"),D=a("73cf"),M=a("3b32"),H=a("1b73"),z=a("d502"),K=a("9dd0"),W=a("c0ce"),J=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"md",domProps:{innerHTML:t._s(t.mdh)}})])},V=[],X=a("339e"),q=a.n(X),F={components:{},props:{md:{type:String,default:""}},data:function(){return{}},computed:{mdh:function(){var t=this,e=new q.a.Converter;e.setOption("tables",!0);var a=e.makeHtml(t.md);return a}},methods:{}},Q=F,Y=(a("16cc"),a("2877")),Z=Object(Y["a"])(Q,J,V,!1,null,"6700278b",null),tt=Z.exports,et={components:{WGroupRadio:z["a"],WTree:K["a"],WJsonView:W["a"],MdPanel:tt},props:{},data:function(){return{heightTree:2,lineHeightTree:38,apisTree:[],kpApisTree:{},apiActive:null,apiSelect:null,kpColorMethod:{GET:"#7c2",POST:"#68f",PUT:"#f82",DEL:"#f26"},optputMenuItemSelectId:"tree"}},computed:{apis:function(){return s()(this,"$store.state.apis")},changeApis:function(){var t=this;return t.genTree(t.apis),""},hasApis:function(){return x()(this.apisTree)>0},optputMenuItems:function(){var t=this,e=[{id:"tree",text:t.$t("outputMenuTree"),icon:"mdi-vanity-light"},{id:"raw",text:t.$t("outputMenuRaw"),icon:"mdi-lan"}];return e},optputMenuItemSelect:function(){var t=this,e=U()(t.optputMenuItems,{id:t.optputMenuItemSelectId});return e}},methods:{resizeTree:function(t){var e=this,a=s()(t,"snew.clientHeight");e.heightTree=a},genTree:function(){var t=this;t.apisTree=[],t.kpApisTree={};var e=_()(t.apis),a={},n={};B()(e,(function(t){var e=t.id,r="".concat(t.levels,".").concat(t.name);n[e]=t,Object($["a"])(s()(a,r))||A()(a,r,e)}));var r=Object(H["a"])(a,{bindRoot:"全部"}),i=s()(e,0,null);t.apiSelect=i,t.apisTree=r,t.kpApisTree=n},getItemByKey:function(t){var e=this,a=e.kpApisTree[t];return a},getMethod:function(t){var e=s()(t,"method","").toUpperCase();return e},getMethodByKey:function(t){var e=this,a=e.getItemByKey(t),n=s()(a,"method","").toUpperCase();return n},getMethodColor:function(t){var e=this,a=e.getMethod(t),n=s()(e.kpColorMethod,a,"#888");return n},getMethodColorByKey:function(t){var e=this,a=e.getMethodByKey(t),n=s()(e.kpColorMethod,a,"#888");return n},getDay:function(t){return Object(M["a"])(t)},getOutputJson:function(t){var e=s()(t,"outputExample","");return e=N()(e),e},getOutputJsonObj:function(t){var e=this.getOutputJson(t),a=Object(D["a"])(e);return a},funActive:function(t){var e=this,a=!Array.isArray(t.item.children);if(a&&!Object(P["a"])(e.apiActive)){var n=t.item.id;e.apiActive={id:n}}return a},changeOptputMenuItemSelect:function(t){var e=this;e.optputMenuItemSelectId=t.id},ckItem:function(t){var e=this;e.apiSelect=_()(t)}}},at=et,nt=(a("a3a0"),Object(Y["a"])(at,C,w,!1,null,"7c186c61",null)),rt=nt.exports,it={components:{LayoutContentList:rt},props:{},data:function(){return{}},computed:{syncState:function(){return s()(this,"$store.state.syncState")}},methods:{}},ot=it,pt=Object(Y["a"])(ot,I,k,!1,null,"9b2333d2",null),st=pt.exports,dt={components:{WButtonCircle:S["a"],WTextSelect:T["a"],LayoutContent:st},props:{},data:function(){return{drawer:!1,tgLangs:[{id:"cht",text:"中文"},{id:"eng",text:"English"}],tgLangSelect:{id:"cht",text:"中文"}}},beforeMount:function(){var t=this;t.$ui.setLang(t.tgLangSelect.id)},computed:{viewState:function(){return s()(this,"$store.state.viewState")},heightToolbar:function(){return s()(this,"$store.state.heightToolbar")},webName:{get:function(){var t=this,e=t.$t("webName");return Object(y["a"])(e)||(e=t.$t("waitingData")),document.title=e,e}},webLogo:function(){return s()(this,"$store.state.webInfor.webLogo")}},methods:{changeLang:function(t){var e=this,a=t.id;e.$ui.setLang(a)}}},ct=dt,lt=Object(Y["a"])(ct,v,b,!1,null,"a357a654",null),mt=lt.exports,ft={components:{Layout:mt},data:function(){return{ready:!0}},mounted:function(){var t=this;t.$ui.setVo(t)},methods:{resize:function(t){var e=this;e.$ui.syncHeight()}}},ut=ft,gt=(a("034f"),Object(Y["a"])(ut,g,h,!1,null,null,null)),ht=gt.exports,vt=a("d7a6"),bt=a("9523"),yt="UpdateWebInfor",St="UpdateLang",Tt="UpdateKpText",It="UpdateConnState",kt="UpdateSyncState",Ct="UpdateLoading",wt="UpdateViewState",Et="UpdateTableData",At="UpdateData",Ot="UpdateHeightApp",Bt="UpdateHeightAppEff",jt="UpdateHeightToolbar",xt="UpdateMenu",Gt="UpdateUserToken",Nt="UpdateUserSelf",Rt=a("dd61"),Ut=a("ec69"),Lt=a("5cff"),_t=a("80d1"),$t=a("7092"),Pt=a("e096"),Dt=a("7cc7");function Mt(t){return t.indexOf("\\\\")>=0?"```"+t+"```":t}var Ht=Mt;function zt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Kt(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(a),!0).forEach((function(e){bt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):zt(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var Wt="apis",Jt="APIs",Vt="APIs",Xt={id:{pk:!0,name:"主鍵",type:"STRING"},order:{name:"順序",type:"INTEGER"},name:{name:"名稱",type:"STRING"},description:{name:"說明",type:"TEXT"},url:{name:"網址",type:"STRING"},method:{name:"方法",type:"STRING"},version:{name:"版本",type:"STRING"},levels:{name:"階層群組",type:"STRING"},keywords:{name:"關鍵字",type:"STRING"},state:{name:"狀態",type:"STRING"},creator:{name:"創建者",type:"STRING"},dataSource:{name:"資料提供者",type:"STRING"},tokens:{name:"金鑰",type:"TEXT"},mdInputParams:{name:"輸入參數md說明",type:"STRING"},inputExample:{name:"輸入範例",type:"STRING"},mdOutputParams:{name:"輸出資料md說明",type:"STRING"},outputExample:{name:"輸出範例",type:"STRING"},timeCreate:{name:"創建時間",type:"STRING"},timeUpdate:{name:"更新時間",type:"STRING"},isActive:{name:"是否有效",type:"STRING"}},qt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object(_t["a"])(t,Ut(Xt));return e.id="".concat(Object(Dt["a"])(),"-").concat(Object(Lt["a"])()),e.timeCreate=Object(Pt["a"])(),e.timeUpdate=e.timeCreate,e.isActive="y",e},Ft=function(){var t=Rt([{id:"id-for-apis-sys-1",name:"取得API清單",description:"API管理中心取得API清單資訊",url:"http://localhost:11005/getAPIsList",method:"get",version:"v1",levels:"API",keywords:"API;center",state:"ok",creator:"apis-system",dataSource:"apis-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-1",name:"取得寵物清單",description:"寵物管理中心取得寵物清單資訊",url:"http://localhost:11005/getPetsList",method:"get",version:"v1",levels:"寵物",keywords:"pets",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-dogs-1",name:"取得狗狗清單",description:"取得狗狗清單資訊",url:"http://localhost:11005/getDogsList",method:"get",version:"v1",levels:"寵物.狗狗",keywords:"pets;dogs",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-dogs-2",name:"新增狗狗資訊",description:"新增狗狗資訊",url:"http://localhost:11005/addDog",method:"post",version:"v1",levels:"寵物.狗狗",keywords:"pets;dogs",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### POST參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-dogs-3",name:"變更狗狗資訊",description:"變更狗狗資訊",url:"http://localhost:11005/updateDog",method:"put",version:"v1",levels:"寵物.狗狗",keywords:"pets;dogs",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-dogs-4",name:"刪除狗狗資訊",description:"刪除狗狗資訊",url:"http://localhost:11005/deleteDog",method:"del",version:"v1",levels:"寵物.狗狗",keywords:"pets;dogs",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-cats-1",name:"取得貓咪清單",description:"取得貓咪清單資訊",url:"http://localhost:11005/getCatsList",method:"get",version:"v1",levels:"寵物.貓咪",keywords:"pets;cats",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-cats-2",name:"新增貓咪資訊",description:"新增貓咪資訊",url:"http://localhost:11005/addCat",method:"post",version:"v1",levels:"寵物.貓咪",keywords:"pets;cats",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### POST參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-cats-3",name:"變更貓咪資訊",description:"變更貓咪資訊",url:"http://localhost:11005/updateCat",method:"put",version:"v1",levels:"寵物.貓咪",keywords:"pets;cats",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-pets-cats-4",name:"刪除貓咪資訊",description:"刪除貓咪資訊",url:"http://localhost:11005/deleteCat",method:"del",version:"v1",levels:"寵物.貓咪",keywords:"pets;cats",state:"ok",creator:"pets-system",dataSource:"pets-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-vehicles-cars-1",name:"取得汽車清單",description:"取得汽車清單資訊",url:"http://localhost:11005/getcarsList",method:"get",version:"v1",levels:"交通工具.汽車",keywords:"vehicles;cars",state:"ok",creator:"vehicles-system",dataSource:"vehicles-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-vehicles-cars-2",name:"新增汽車資訊",description:"新增汽車資訊",url:"http://localhost:11005/addDog",method:"post",version:"v1",levels:"交通工具.汽車",keywords:"vehicles;cars",state:"ok",creator:"vehicles-system",dataSource:"vehicles-data",mdInputParams:"### POST參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-vehicles-cars-3",name:"變更汽車資訊",description:"變更汽車資訊",url:"http://localhost:11005/updateDog",method:"put",version:"v1",levels:"交通工具.汽車",keywords:"vehicles;cars",state:"ok",creator:"vehicles-system",dataSource:"vehicles-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '},{id:"id-for-apis-vehicles-cars-4",name:"刪除汽車資訊",description:"刪除汽車資訊",url:"http://localhost:11005/deleteDog",method:"del",version:"v1",levels:"交通工具.汽車",keywords:"vehicles;cars",state:"ok",creator:"vehicles-system",dataSource:"vehicles-data",mdInputParams:"### GET網址參數\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| token | STRING | key-for-token |\n| id | STRING | id-for-test |\n| paramA | INTEGER | 123 |\n| paramB | DOUBLE | 123.456 |\n ",inputExample:"http://localhost:11005/getAPIsList?token={token}&id={id}&paramA=123&paramB=123.456",mdOutputParams:"### 回傳數據欄位: Array of objects\n| 參數 | 型別 | 範例 |\n| -- | -- | -- |\n| id | STRING | id-for-test |\n| weight | DOUBLE | 12.3 |\n| color | STRING | #f26 |\n| paramA | INTEGER | 321 |\n| paramB | DOUBLE | 654.321 |\n| paramC | STRING | ".concat(Ht("C:\\\\pj\\abc\\filename.pdf")," |\n "),outputExample:'\n[\n {\n "id": "id-for-test-1",\n "weight": 12.3,\n "color": "#f26",\n "paramA": 101,\n "paramB": 0.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename1.pdf"\n },\n {\n "id": "id-for-test-2",\n "weight": 22.3,\n "color": "#2f6",\n "paramA": 102,\n "paramB": 1.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename2.pdf"\n },\n {\n "id": "id-for-test-3",\n "weight": 32.3,\n "color": "#26f",\n "paramA": 103,\n "paramB": 2.01,\n "paramC": "C:\\\\\\\\pj\\\\abc\\\\filename3.pdf"\n }\n]\n '}],(function(t,e){var a=qt(Kt(Kt({},t),{},{order:e}));return a.id=t.id,Object(y["a"])(t.timeUpdate)&&(a.timeUpdate=t.timeUpdate),a=Object($t["a"])(a,Ut(Xt)),a}));return console.log("已產生: {keyTable} 測試資料",t),t},Qt={keyTable:Wt,tableNameCht:Jt,tableNameEng:Vt,settings:Xt,funNew:qt,funTest:Ft},Yt=Qt,Zt=a("a623"),te={apis:Yt},ee={};for(var ae in te)ee[ae]=Object(Zt["a"])(te[ae],{useCreateStorage:!1});var ne,re=ee,ie={hostname:"".concat(window.location.origin),webInfor:{},connState:"連線中...",syncState:!1,viewState:"lists",loading:!1,settings:{leftDrawerWidth:200},heightApp:0,heightAppEff:0,heightToolbar:60,menu:{},userToken:"",userSelf:{id:"id-for-admin",name:"系統管理員",email:"admin@email.com",isAdmin:!0},lang:"cht",keyLangs:{empty:{eng:"Empty",cht:"無"},noSelectApi:{eng:"No Select",cht:"尚未選擇API"},waitingData:{eng:"Waiting data...",cht:"等待數據中..."},tokens:{eng:"Tokens",cht:"授權金鑰"},version:{eng:"Version",cht:"版本"},levels:{eng:"Levels",cht:"所屬階層"},keywords:{eng:"Keywords",cht:"關鍵字"},state:{eng:"State",cht:"狀態"},timeCreate:{eng:"Create time",cht:"創建時間"},timeUpdate:{eng:"Update time",cht:"更新時間"},creator:{eng:"Creator",cht:"API創建者"},dataSource:{eng:"Source",cht:"資料提供者"},isActive:{eng:"Active",cht:"有效"},mdInputParams:{eng:"Input",cht:"輸入參數資訊或結構"},inputExample:{eng:"Input example",cht:"輸入範例"},mdOutputParams:{eng:"Output",cht:"回傳數據結構"},outputExample:{eng:"Output example",cht:"回傳數據範例"},outputMenuTree:{eng:"Tree",cht:"樹狀組件"},outputMenuRaw:{eng:"Raw",cht:"原始數據"}},kpText:{}};O(re,(function(t,e){ie[e]=null}));var oe=(ne={},bt(ne,yt,(function(t,e){t.webInfor=e})),bt(ne,St,(function(t,e){t.lang=e})),bt(ne,Tt,(function(t,e){t.kpText=e})),bt(ne,It,(function(t,e){t.connState=e})),bt(ne,kt,(function(t,e){t.syncState=e})),bt(ne,Ct,(function(t,e){t.loading=e})),bt(ne,wt,(function(t,e){t.viewState=e})),bt(ne,Et,(function(t,e){t[e.tableName]=e.data})),bt(ne,At,(function(t,e){E(t,e.path,e.data)})),bt(ne,Ot,(function(t,e){t.heightApp=e})),bt(ne,Bt,(function(t,e){t.heightAppEff=e})),bt(ne,jt,(function(t,e){t.heightToolbar=e})),bt(ne,xt,(function(t,e){t.menu=e})),bt(ne,Gt,(function(t,e){t.userToken=e})),bt(ne,Nt,(function(t,e){t.userSelf=e})),ne);d["a"].use(vt);var pe=new vt.Store({state:ie,mutations:oe,getters:r,actions:i,strict:!0});pe.types=n,d["a"].prototype.$store=pe;var se=pe,de=a("f309");d["a"].use(de["a"]);var ce=new de["a"]({icons:{iconfont:"mdiSvg"}}),le=a("c973"),me=a("a34a"),fe=(a("004e"),a("5e9e"),a("63ea"),a("eed6"),a("9380"),a("4416"),a("6625"),a("ded5"),a("e726"),a("27d4"),a("6edf"),a("c707"),a("a7f7"),a("6578")),ue=(a("fe98"),a("0bce")),ge=(a("60e1"),a("6560"),a("d029"),a("1fdc"),a("3001"),a("05f1"),a("9871"),a("750f"),a("194f"),a("d71d"),a("04cd"));a("dd60"),a("40dd"),a("eeac"),a("94c5"),a("04a3"),a("b4cd");function he(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function ve(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?he(Object(a),!0).forEach((function(e){bt(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):he(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var be=d["a"].prototype;function ye(t){be=t}function Se(t){be.$store.commit(be.$store.types.UpdateConnState,t)}function Te(t){be.$store.commit(be.$store.types.UpdateLoading,t)}function Ie(t){be.$store.commit(be.$store.types.UpdateViewState,t)}function ke(){function t(e){O(e,(function(e){e.$forceUpdate(),e.$children&&t(e.$children)}))}t(be.$children)}function Ce(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Object(y["a"])(t)&&be.$store.commit(be.$store.types.UpdateLang,t),we(),ke()}function we(){var t=p(be,"$store.state.keyLangs"),e=p(be,"$store.state.webInfor.webName"),a=p(be,"$store.state.webInfor.webDescription"),n=ve(ve({},t),{},{webName:ve({},e),webDescription:ve({},a)}),r=p(be,"$store.state.lang"),i={};return O(n,(function(t,e){i[e]=t[r]})),be.$store.commit(be.$store.types.UpdateKpText,i),i}function Ee(t){var e=p(be,"$store.state.kpText");return p(e,t,"")}function Ae(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=p(t,e,"");if(!Object(y["a"])(n)){var r=Ee("empty");return r}return Object(ue["a"])(a)&&(n=a(n)),n}function Oe(){var t=p(be,"$store.state.heightToolbar"),e=window.innerHeight-t;return be.$store.commit(be.$store.types.UpdateHeightApp,window.innerHeight),be.$store.commit(be.$store.types.UpdateHeightAppEff,e),""}function Be(){return je.apply(this,arguments)}function je(){return je=le(me.mark((function t(){var e,a=arguments;return me.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:0,!(e>0)){t.next=4;break}return t.next=4,Object(fe["a"])(e);case 4:return t.next=6,Object(ge["a"])((function(){return Object(P["a"])(p(be,"$dsrl"))}));case 6:return t.next=8,Object(ge["a"])((function(){return p(be,"$store.state.syncState")}));case 8:case"end":return t.stop()}}),t)}))),je.apply(this,arguments)}var xe={setVo:ye,updateConnState:Se,updateLoading:Te,updateViewState:Ie,forceUpdate:ke,setLang:Ce,getKpLang:we,getKpText:Ee,gv:Ae,syncHeight:Oe,waitData:Be},Ge=xe;function Ne(t){function e(e,a,n){var r=R(t,bt({},e,a));return r||(r=""),Object(y["a"])(n)&&(r=p(r,n,"")),r}function a(t){return e("keyTable",t,"tableNameCht")}return{getTableInforBy:e,getTableChtByKey:a}}var Re=Ne;function Ue(t){return{}}var Le=Ue,_e=a("d5a1");d["a"].config.productionTip=!1,d["a"].prototype.$alert=function(){var t=Array.prototype.slice.call(arguments),e=t[0],a=t[1];console.log(e,a),"close"!==e&&Object(l["a"])(e,a)};var $e=Re(re),Pe=Le(d["a"].prototype);d["a"].prototype.$ui=Ge,d["a"].prototype.$t=Ge.getKpText,d["a"].prototype.$s=o,d["a"].prototype.$dssm=$e,d["a"].prototype.$dspt=Pe,d["a"].prototype.$dg={},d["a"].directive("domresize",Object(f["a"])()),d["a"].directive("dommutation",Object(m["a"])()),d["a"].directive("domdragdrop",Object(u["a"])());var De=!1;Object(c["a"])({getUrl:function(){return window.location.origin+window.location.pathname},useWaitToken:!1,getToken:function(){return s()(d["a"].prototype,"$store.state.userToken","")},getServerMethods:function(t){console.log("$fapi",t),d["a"].prototype.$fapi=t,t.getWebInfor().then((function(t){console.log("$fapi getWebInfor",t),d["a"].prototype.$store.commit(d["a"].prototype.$store.types.UpdateWebInfor,t),Ge.setLang()})).catch((function(t){console.log(t)}))},recvData:function(t){console.log("sync data",t.tableName,t.data),d["a"].prototype.$store.commit(d["a"].prototype.$store.types.UpdateTableData,t)},getAfterUpdateTableTags:function(t){De||(De=!0,console.log("first-sync"),d["a"].prototype.$store.commit(d["a"].prototype.$store.types.UpdateSyncState,!0))}}),new d["a"]({vuetify:ce,store:se,render:function(t){return t(ht)}}).$mount("#app")},8096:function(t,e,a){},"85ec":function(t,e,a){},a3a0:function(t,e,a){"use strict";a("fd72")},fd72:function(t,e,a){}});
2
- //# sourceMappingURL=app.a2249856.js.map