w-web-api 1.0.18 → 1.0.21

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
@@ -71,7 +71,7 @@
71
71
 
72
72
  <dt class="tag-source">Source:</dt>
73
73
  <dd class="tag-source"><ul class="dummy"><li>
74
- <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line69">line 69</a>
74
+ <a href="WWebApi.mjs.html">WWebApi.mjs</a>, <a href="WWebApi.mjs.html#line78">line 78</a>
75
75
  </li></ul></dd>
76
76
 
77
77
 
@@ -124,7 +124,7 @@
124
124
 
125
125
  <h5>Example</h5>
126
126
 
127
- <pre class="prettyprint"><code>import WOrm from 'w-orm-mongodb/src/WOrmMongodb.mjs' //自行選擇引用ORM, 使用Mongodb測試
128
127
  getUserById: null,
129
128
  bCheckUser: false,
130
129
  bExcludeWhenNotAdmin: false,
131
130
  serverPort: 11005,
132
131
  webName: {
133
132
  'eng': 'API Service',
134
133
  'cht': 'API管理系統'
135
134
  },
136
135
  console.log(err)
136
+ <pre class="prettyprint"><code>import WOrm from 'w-orm-mongodb/src/WOrmMongodb.mjs' //自行選擇引用ORM, 使用Mongodb測試
137
137
  getUserById: null,
138
138
  bCheckUser: false,
139
139
  bExcludeWhenNotAdmin: false,
140
140
  serverPort: 11005,
141
141
  subfolder: '', //mpai
142
142
  webName: {
143
143
  'eng': 'API Service',
144
144
  'cht': 'API管理系統'
145
145
  },
146
146
  console.log(err)
147
147
 
148
148
 
149
149
 
@@ -517,6 +517,123 @@
517
517
  </tr>
518
518
 
519
519
 
520
+
521
+ <tr>
522
+
523
+ <td class="name"><code>webDescription</code></td>
524
+
525
+
526
+ <td class="type">
527
+
528
+
529
+ <span class="param-type">Object</span>
530
+
531
+
532
+
533
+ </td>
534
+
535
+
536
+ <td class="attributes">
537
+
538
+ &lt;optional><br>
539
+
540
+
541
+
542
+
543
+
544
+ </td>
545
+
546
+
547
+
548
+ <td class="default">
549
+
550
+ <code>{}</code>
551
+
552
+ </td>
553
+
554
+
555
+ <td class="description last"><p>輸入站台描述物件,至少包含語系eng與cht鍵的名稱,預設{}</p></td>
556
+ </tr>
557
+
558
+
559
+
560
+ <tr>
561
+
562
+ <td class="name"><code>webLogo</code></td>
563
+
564
+
565
+ <td class="type">
566
+
567
+
568
+ <span class="param-type">String</span>
569
+
570
+
571
+
572
+ </td>
573
+
574
+
575
+ <td class="attributes">
576
+
577
+ &lt;optional><br>
578
+
579
+
580
+
581
+
582
+
583
+ </td>
584
+
585
+
586
+
587
+ <td class="default">
588
+
589
+ <code>''</code>
590
+
591
+ </td>
592
+
593
+
594
+ <td class="description last"><p>輸入站台logo字串,採base64格式,預設''</p></td>
595
+ </tr>
596
+
597
+
598
+
599
+ <tr>
600
+
601
+ <td class="name"><code>subfolder</code></td>
602
+
603
+
604
+ <td class="type">
605
+
606
+
607
+ <span class="param-type">String</span>
608
+
609
+
610
+
611
+ </td>
612
+
613
+
614
+ <td class="attributes">
615
+
616
+ &lt;optional><br>
617
+
618
+
619
+
620
+
621
+
622
+ </td>
623
+
624
+
625
+
626
+ <td class="default">
627
+
628
+ <code>''</code>
629
+
630
+ </td>
631
+
632
+
633
+ <td class="description last"><p>輸入站台所在子目錄字串,提供站台位於內網採反向代理進行服務時,故需支援位於子目錄情形,預設''</p></td>
634
+ </tr>
635
+
636
+
520
637
  </tbody>
521
638
  </table>
522
639
 
@@ -604,7 +721,7 @@
604
721
  <br class="clear">
605
722
 
606
723
  <footer>
607
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Apr 19 2022 17:00:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
724
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Sun Jul 10 2022 17:14:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
608
725
  </footer>
609
726
 
610
727
  <script>prettyPrint();</script>
@@ -42,21 +42,26 @@
42
42
 
43
43
  <section>
44
44
  <article>
45
- <pre class="prettyprint source linenums"><code>import get from 'lodash/get'
45
+ <pre class="prettyprint source linenums"><code>import path from 'path'
46
+ import fs from 'fs'
47
+ import get from 'lodash/get'
46
48
  // import map from 'lodash/map'
47
49
  import each from 'lodash/each'
48
50
  import keys from 'lodash/keys'
49
51
  // import cloneDeep from 'lodash/cloneDeep'
50
52
  import j2o from 'wsemi/src/j2o.mjs'
51
- import iseobj from 'wsemi/src/iseobj'
52
- import isestr from 'wsemi/src/isestr'
53
- import ispint from 'wsemi/src/ispint'
54
- import isfun from 'wsemi/src/isfun'
55
- import cint from 'wsemi/src/cint'
56
- import strleft from 'wsemi/src/strleft'
57
- import strdelleft from 'wsemi/src/strdelleft'
58
- import b642str from 'wsemi/src/b642str'
59
- import fsIsFolder from 'wsemi/src/fsIsFolder'
53
+ import iseobj from 'wsemi/src/iseobj.mjs'
54
+ import isestr from 'wsemi/src/isestr.mjs'
55
+ import ispint from 'wsemi/src/ispint.mjs'
56
+ import isfun from 'wsemi/src/isfun.mjs'
57
+ import cint from 'wsemi/src/cint.mjs'
58
+ import strleft from 'wsemi/src/strleft.mjs'
59
+ import strdelleft from 'wsemi/src/strdelleft.mjs'
60
+ import strright from 'wsemi/src/strright.mjs'
61
+ import strdelright from 'wsemi/src/strdelright.mjs'
62
+ import b642str from 'wsemi/src/b642str.mjs'
63
+ import fsIsFolder from 'wsemi/src/fsIsFolder.mjs'
64
+ import replace from 'wsemi/src/replace.mjs'
60
65
  import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
61
66
  import ds from '../src/schema/index.mjs'
62
67
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
@@ -75,6 +80,9 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
75
80
  * @param {Boolean} [opt.bCheckUser=true] 輸入是否檢查使用者資訊布林值,預設true
76
81
  * @param {Boolean} [opt.bExcludeWhenNotAdmin=true] 輸入使用ORM的select方法時是否自動刪除數據內isActive欄位之布林值,預設true
77
82
  * @param {Object} [opt.webName={}] 輸入站台名稱物件,至少包含語系eng與cht鍵的名稱,預設{}
83
+ * @param {Object} [opt.webDescription={}] 輸入站台描述物件,至少包含語系eng與cht鍵的名稱,預設{}
84
+ * @param {String} [opt.webLogo=''] 輸入站台logo字串,採base64格式,預設''
85
+ * @param {String} [opt.subfolder=''] 輸入站台所在子目錄字串,提供站台位於內網採反向代理進行服務時,故需支援位於子目錄情形,預設''
78
86
  * @returns {Object} 回傳物件,其內server為hapi伺服器實體,wsrv為w-converhp的伺服器事件物件,wsds為w-serv-webdata的伺服器事件物件,可監聽error事件
79
87
  * @example
80
88
  *
@@ -94,6 +102,7 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
94
102
  * bExcludeWhenNotAdmin: false,
95
103
  *
96
104
  * serverPort: 11005,
105
+ * subfolder: '', //mpai
97
106
  *
98
107
  * webName: {
99
108
  * 'eng': 'API Service',
@@ -164,7 +173,19 @@ function WWebApi(WOrm, url, db, opt = {}) {
164
173
 
165
174
 
166
175
  //webLogo
167
- let webLogo = get(opt, 'webLogo', {})
176
+ let webLogo = get(opt, 'webLogo', '')
177
+
178
+
179
+ //subfolder
180
+ let subfolder = get(opt, 'subfolder', '')
181
+ if (isestr(subfolder)) {
182
+ if (strright(subfolder, 1) === '/') { //右邊不需要給「/」
183
+ subfolder = strdelright(subfolder, 1)
184
+ }
185
+ if (strleft(subfolder, 1) !== '/') { //左邊需要給「/」
186
+ subfolder = `/${subfolder}`
187
+ }
188
+ }
168
189
 
169
190
 
170
191
  //WServOrm
@@ -286,6 +307,16 @@ function WWebApi(WOrm, url, db, opt = {}) {
286
307
  // console.log('pathStaticFiles', pathStaticFiles)
287
308
 
288
309
 
310
+ //subfolder
311
+ let fnEntryIn = 'index.tmp'
312
+ let fnEntryOut = 'index.html'
313
+ let fpEntryIn = path.resolve(pathStaticFiles, fnEntryIn)
314
+ let fpEntryOut = path.resolve(pathStaticFiles, fnEntryOut)
315
+ let c = fs.readFileSync(fpEntryIn, 'utf8')
316
+ c = replace(c, '{sfd}', subfolder)
317
+ fs.writeFileSync(fpEntryOut, c, 'utf8')
318
+
319
+
289
320
  //apis
290
321
  let apis = [
291
322
  // {
@@ -407,7 +438,7 @@ export default WWebApi
407
438
  <br class="clear">
408
439
 
409
440
  <footer>
410
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Tue Apr 19 2022 17:00:10 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
441
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Sun Jul 10 2022 17:14:43 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
411
442
  </footer>
412
443
 
413
444
  <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 Tue Apr 19 2022 17:00: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 Sun Jul 10 2022 17:14:43 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,17 +1,17 @@
1
1
  {
2
2
  "name": "w-web-api",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "main": "dist/w-web-api.umd.js",
5
5
  "dependencies": {
6
- "@mdi/js": "^6.6.96",
7
- "axios": "^0.26.1",
6
+ "@mdi/js": "^6.9.96",
7
+ "axios": "^0.27.2",
8
8
  "lodash": "^4.17.21",
9
9
  "showdown": "^2.0.3",
10
- "w-component-vue": "^2.2.6",
10
+ "w-component-vue": "^2.2.29",
11
11
  "w-data-collector": "^1.0.13",
12
12
  "w-serv-hapi": "^1.0.9",
13
13
  "w-serv-orm": "^1.0.2",
14
- "wsemi": "^1.6.57"
14
+ "wsemi": "^1.6.69"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@vue/cli-plugin-babel": "^4.5.13",
@@ -1,18 +1,23 @@
1
+ import path from 'path'
2
+ import fs from 'fs'
1
3
  import get from 'lodash/get'
2
4
  // import map from 'lodash/map'
3
5
  import each from 'lodash/each'
4
6
  import keys from 'lodash/keys'
5
7
  // import cloneDeep from 'lodash/cloneDeep'
6
8
  import j2o from 'wsemi/src/j2o.mjs'
7
- import iseobj from 'wsemi/src/iseobj'
8
- import isestr from 'wsemi/src/isestr'
9
- import ispint from 'wsemi/src/ispint'
10
- import isfun from 'wsemi/src/isfun'
11
- import cint from 'wsemi/src/cint'
12
- import strleft from 'wsemi/src/strleft'
13
- import strdelleft from 'wsemi/src/strdelleft'
14
- import b642str from 'wsemi/src/b642str'
15
- import fsIsFolder from 'wsemi/src/fsIsFolder'
9
+ import iseobj from 'wsemi/src/iseobj.mjs'
10
+ import isestr from 'wsemi/src/isestr.mjs'
11
+ import ispint from 'wsemi/src/ispint.mjs'
12
+ import isfun from 'wsemi/src/isfun.mjs'
13
+ import cint from 'wsemi/src/cint.mjs'
14
+ import strleft from 'wsemi/src/strleft.mjs'
15
+ import strdelleft from 'wsemi/src/strdelleft.mjs'
16
+ import strright from 'wsemi/src/strright.mjs'
17
+ import strdelright from 'wsemi/src/strdelright.mjs'
18
+ import b642str from 'wsemi/src/b642str.mjs'
19
+ import fsIsFolder from 'wsemi/src/fsIsFolder.mjs'
20
+ import replace from 'wsemi/src/replace.mjs'
16
21
  import WServHapiServer from 'w-serv-hapi/src/WServHapiServer.mjs'
17
22
  import ds from '../src/schema/index.mjs'
18
23
  import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
@@ -31,6 +36,9 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
31
36
  * @param {Boolean} [opt.bCheckUser=true] 輸入是否檢查使用者資訊布林值,預設true
32
37
  * @param {Boolean} [opt.bExcludeWhenNotAdmin=true] 輸入使用ORM的select方法時是否自動刪除數據內isActive欄位之布林值,預設true
33
38
  * @param {Object} [opt.webName={}] 輸入站台名稱物件,至少包含語系eng與cht鍵的名稱,預設{}
39
+ * @param {Object} [opt.webDescription={}] 輸入站台描述物件,至少包含語系eng與cht鍵的名稱,預設{}
40
+ * @param {String} [opt.webLogo=''] 輸入站台logo字串,採base64格式,預設''
41
+ * @param {String} [opt.subfolder=''] 輸入站台所在子目錄字串,提供站台位於內網採反向代理進行服務時,故需支援位於子目錄情形,預設''
34
42
  * @returns {Object} 回傳物件,其內server為hapi伺服器實體,wsrv為w-converhp的伺服器事件物件,wsds為w-serv-webdata的伺服器事件物件,可監聽error事件
35
43
  * @example
36
44
  *
@@ -50,6 +58,7 @@ import WServOrm from 'w-serv-orm/src/WServOrm.mjs'
50
58
  * bExcludeWhenNotAdmin: false,
51
59
  *
52
60
  * serverPort: 11005,
61
+ * subfolder: '', //mpai
53
62
  *
54
63
  * webName: {
55
64
  * 'eng': 'API Service',
@@ -120,7 +129,19 @@ function WWebApi(WOrm, url, db, opt = {}) {
120
129
 
121
130
 
122
131
  //webLogo
123
- let webLogo = get(opt, 'webLogo', {})
132
+ let webLogo = get(opt, 'webLogo', '')
133
+
134
+
135
+ //subfolder
136
+ let subfolder = get(opt, 'subfolder', '')
137
+ if (isestr(subfolder)) {
138
+ if (strright(subfolder, 1) === '/') { //右邊不需要給「/」
139
+ subfolder = strdelright(subfolder, 1)
140
+ }
141
+ if (strleft(subfolder, 1) !== '/') { //左邊需要給「/」
142
+ subfolder = `/${subfolder}`
143
+ }
144
+ }
124
145
 
125
146
 
126
147
  //WServOrm
@@ -242,6 +263,16 @@ function WWebApi(WOrm, url, db, opt = {}) {
242
263
  // console.log('pathStaticFiles', pathStaticFiles)
243
264
 
244
265
 
266
+ //subfolder
267
+ let fnEntryIn = 'index.tmp'
268
+ let fnEntryOut = 'index.html'
269
+ let fpEntryIn = path.resolve(pathStaticFiles, fnEntryIn)
270
+ let fpEntryOut = path.resolve(pathStaticFiles, fnEntryOut)
271
+ let c = fs.readFileSync(fpEntryIn, 'utf8')
272
+ c = replace(c, '{sfd}', subfolder)
273
+ fs.writeFileSync(fpEntryOut, c, 'utf8')
274
+
275
+
245
276
  //apis
246
277
  let apis = [
247
278
  // {
@@ -18,8 +18,8 @@
18
18
  :iconHeight="lineHeightTree"
19
19
  :defItemHeight="lineHeightTree"
20
20
  :activable="true"
21
- :activeItem="apiActive"
22
- :fun-active="funActive"
21
+ :itemActive="apiActive"
22
+ :funActive="funActive"
23
23
  :itemTextColorActive="'#000'"
24
24
  :itemBackgroundColorActive ="'rgba(100,100,100,0.15)'"
25
25
  >
package/srv.mjs CHANGED
@@ -15,6 +15,7 @@ let opt = {
15
15
  bExcludeWhenNotAdmin: false,
16
16
 
17
17
  serverPort: 11005,
18
+ subfolder: '', //mpai
18
19
 
19
20
  webName: {
20
21
  'eng': 'API Service',
@@ -1 +1 @@
1
- {"apis":"E90dfN"}
1
+ {"apis":"EQZME1"}
@@ -0,0 +1,23 @@
1
+ import path from 'path'
2
+ import fs from 'fs'
3
+ // import _ from 'lodash'
4
+ import w from 'wsemi'
5
+
6
+
7
+ let fdTar = './dist'
8
+ let fnEntryIn = 'index.html'
9
+ let fnEntryOut = 'index.tmp'
10
+ let fpEntryIn = path.resolve(fdTar, fnEntryIn)
11
+ let fpEntryOut = path.resolve(fdTar, fnEntryOut)
12
+
13
+ //readFileSync
14
+ let c = fs.readFileSync(fpEntryIn, 'utf8')
15
+
16
+ //replace
17
+ c = w.replace(c, '/mapi/', '{sfd}/')
18
+
19
+ //writeFileSync
20
+ fs.writeFileSync(fpEntryOut, c, 'utf8')
21
+
22
+ //unlinkSync
23
+ fs.unlinkSync(fpEntryIn)
package/vue.config.js CHANGED
@@ -11,5 +11,5 @@ module.exports = {
11
11
  }
12
12
  },
13
13
  // transpileDependencies: ['vuetify'],
14
- //publicPath: process.env.NODE_ENV === 'production' ? '/apimgr/' : '/',
14
+ publicPath: process.env.NODE_ENV === 'production' ? '/mapi/' : '/', //預先編譯至mapi子目錄下, 待轉成模板, 並於伺服器啟動後依照設定檔取代
15
15
  }
package/dist/index.html DELETED
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title></title><link href="https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css" rel="stylesheet"><link href="https://pro.fontawesome.com/releases/v5.15.4/css/all.css" rel="stylesheet"><link href="/css/app.5eff8f8a.css" rel="preload" as="style"><link href="/css/chunk-vendors.f0a39794.css" rel="preload" as="style"><link href="/js/app.5009124f.js" rel="preload" as="script"><link href="/js/chunk-vendors.ec21cce7.js" rel="preload" as="script"><link href="/css/chunk-vendors.f0a39794.css" rel="stylesheet"><link href="/css/app.5eff8f8a.css" rel="stylesheet"></head><body style="font-family:'Microsoft JhengHei','Avenir','Helvetica', 'Arial', 'sans-serif'; padding:0px; margin:0px;"><noscript><strong>We're sorry but w-component-vue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.ec21cce7.js"></script><script src="/js/app.5009124f.js"></script></body></html>
@@ -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 bt})),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"),u=a("7548"),f=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)])},y=[],b=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(b["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,y,!1,null,"dd5199a0",null),mt=lt.exports,ut={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()}}},ft=ut,gt=(a("034f"),Object(Y["a"])(ft,g,h,!1,null,null,null)),ht=gt.exports,vt=a("d7a6"),yt=a("9523"),bt="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){yt(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"},group:{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",group:"全部",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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",group:"寵物",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(b["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={},yt(ne,bt,(function(t,e){t.webInfor=e})),yt(ne,St,(function(t,e){t.lang=e})),yt(ne,Tt,(function(t,e){t.kpText=e})),yt(ne,It,(function(t,e){t.connState=e})),yt(ne,kt,(function(t,e){t.syncState=e})),yt(ne,Ct,(function(t,e){t.loading=e})),yt(ne,wt,(function(t,e){t.viewState=e})),yt(ne,Et,(function(t,e){t[e.tableName]=e.data})),yt(ne,At,(function(t,e){E(t,e.path,e.data)})),yt(ne,Ot,(function(t,e){t.heightApp=e})),yt(ne,Bt,(function(t,e){t.heightAppEff=e})),yt(ne,jt,(function(t,e){t.heightToolbar=e})),yt(ne,xt,(function(t,e){t.menu=e})),yt(ne,Gt,(function(t,e){t.userToken=e})),yt(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"),ue=(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")),fe=(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){yt(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 ye=d["a"].prototype;function be(t){ye=t}function Se(t){ye.$store.commit(ye.$store.types.UpdateConnState,t)}function Te(t){ye.$store.commit(ye.$store.types.UpdateLoading,t)}function Ie(t){ye.$store.commit(ye.$store.types.UpdateViewState,t)}function ke(){function t(e){O(e,(function(e){e.$forceUpdate(),e.$children&&t(e.$children)}))}t(ye.$children)}function Ce(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Object(b["a"])(t)&&ye.$store.commit(ye.$store.types.UpdateLang,t),we(),ke()}function we(){var t=p(ye,"$store.state.keyLangs"),e=p(ye,"$store.state.webInfor.webName"),a=p(ye,"$store.state.webInfor.webDescription"),n=ve(ve({},t),{},{webName:ve({},e),webDescription:ve({},a)}),r=p(ye,"$store.state.lang"),i={};return O(n,(function(t,e){i[e]=t[r]})),ye.$store.commit(ye.$store.types.UpdateKpText,i),i}function Ee(t){var e=p(ye,"$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(b["a"])(n)){var r=Ee("empty");return r}return Object(fe["a"])(a)&&(n=a(n)),n}function Oe(){var t=p(ye,"$store.state.heightToolbar"),e=window.innerHeight-t;return ye.$store.commit(ye.$store.types.UpdateHeightApp,window.innerHeight),ye.$store.commit(ye.$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(ue["a"])(e);case 4:return t.next=6,Object(ge["a"])((function(){return Object(P["a"])(p(ye,"$dsrl"))}));case 6:return t.next=8,Object(ge["a"])((function(){return p(ye,"$store.state.syncState")}));case 8:case"end":return t.stop()}}),t)}))),je.apply(this,arguments)}var xe={setVo:be,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,yt({},e,a));return r||(r=""),Object(b["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(u["a"])()),d["a"].directive("dommutation",Object(m["a"])()),d["a"].directive("domdragdrop",Object(f["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.5009124f.js.map