w-web-api 1.0.52 → 1.0.53
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/_gh-pages-deploy/.nojekyll +0 -0
- package/_gh-pages-deploy/WWebApi.html +898 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/_gh-pages-deploy/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/_gh-pages-deploy/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/_gh-pages-deploy/index.html +84 -0
- package/_gh-pages-deploy/scripts/collapse.js +39 -0
- package/_gh-pages-deploy/scripts/commonNav.js +28 -0
- package/_gh-pages-deploy/scripts/linenumber.js +25 -0
- package/_gh-pages-deploy/scripts/nav.js +12 -0
- package/_gh-pages-deploy/scripts/polyfill.js +4 -0
- package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/_gh-pages-deploy/scripts/prettify/lang-css.js +2 -0
- package/_gh-pages-deploy/scripts/prettify/prettify.js +28 -0
- package/_gh-pages-deploy/scripts/search.js +99 -0
- package/{docs/WWebApi.mjs.html → _gh-pages-deploy/server_WWebApi.mjs.html} +96 -39
- package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +187 -0
- package/_gh-pages-deploy/styles/jsdoc.css +776 -0
- package/_gh-pages-deploy/styles/prettify.css +80 -0
- package/dist/css/app.fe69497a.css +1 -0
- package/dist/index.tmp +4 -2
- package/dist/js/app-legacy.15819aa7.js +1 -0
- package/dist/js/app.15819aa7.js +1 -0
- package/dist/js/chunk-vendors-legacy.c1a32dd1.js +15 -0
- package/dist/js/chunk-vendors.c1a32dd1.js +15 -0
- package/dist/w-web-api.umd.js +2 -2
- package/dist/w-web-api.umd.js.map +1 -1
- package/docs/WWebApi.html +2 -2
- package/docs/index.html +1 -1
- package/docs/server_WWebApi.mjs.html +1012 -0
- package/docs/src_components_Common_CheckYesNo.vue.html +187 -0
- package/g.getSettings.mjs +3 -0
- package/package.json +15 -11
- package/public/index.html +9 -2
- package/server/WWebApi.mjs +93 -36
- package/server/procApis.mjs +62 -0
- package/server/procLang.mjs +386 -0
- package/server/procProxy.mjs +120 -0
- package/server/srLog.mjs +30 -0
- package/server/staLogs/staEvent.mjs +129 -0
- package/server/staLogs/test_staEvent.mjs +132 -0
- package/settings.json +14 -0
- package/src/App.vue +11 -7
- package/src/assets/scalar-ui.css +113 -0
- package/src/components/Common/CheckYes.vue +102 -0
- package/src/components/Common/CheckYesNo.vue +115 -0
- package/src/components/Common/LoadingWinBar.vue +114 -0
- package/src/components/Layout.vue +8 -7
- package/src/components/LayoutContent.vue +308 -333
- package/src/components/LayoutContentEdit.vue +577 -0
- package/src/components/LayoutContentStats.vue +485 -0
- package/src/components/LayoutContentTest.vue +799 -0
- package/src/components/MdPanel.vue +80 -58
- package/src/main.js +8 -0
- package/src/plugins/mUI.mjs +19 -4
- package/src/schema/tables/apis.mjs +30 -0
- package/srv.mjs +47 -19
- package/tableTags.json +1 -1
- package/.github/workflows/ci-test.yml +0 -24
- package/.vscode/launch.json +0 -18
- package/db/wapis/apis/data.mdb +0 -0
- package/db/wapis/apis/lock.mdb +0 -0
- package/dist/css/app.b5cf2ef5.css +0 -1
- package/dist/js/app-legacy.927b5679.js +0 -1
- package/dist/js/app.927b5679.js +0 -1
- package/dist/js/chunk-vendors-legacy.ffb0c6c5.js +0 -13
- package/dist/js/chunk-vendors.ffb0c6c5.js +0 -13
- package/tableTags-web-api.json +0 -1
- package/test/all.test.mjs +0 -10
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<WDialog
|
|
3
|
+
:show.sync="loading"
|
|
4
|
+
:maxWidth="dialogWidth"
|
|
5
|
+
@resize="resizeDialog"
|
|
6
|
+
>
|
|
7
|
+
|
|
8
|
+
<template v-slot:panel>
|
|
9
|
+
|
|
10
|
+
<div :style="`padding:${barPadding-5}px ${barPadding}px ${barPadding}px ${barPadding}px;`">
|
|
11
|
+
|
|
12
|
+
<div style="padding-bottom:3px; font-size:0.9rem; color:#666;">
|
|
13
|
+
|
|
14
|
+
<span v-if="msg!==''">{{msg}}</span>
|
|
15
|
+
|
|
16
|
+
<span v-else>{{$t('processing')}}</span>
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<WProgressBar
|
|
21
|
+
:style="`width:${barWidth}px;`"
|
|
22
|
+
:height="3"
|
|
23
|
+
:enableContinuous="true"
|
|
24
|
+
:progColor="'deep-purple lighten-1'"
|
|
25
|
+
:progBackgroundColor="'deep-purple lighten-4'"
|
|
26
|
+
></WProgressBar>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
</WDialog>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
import Vue from 'vue'
|
|
37
|
+
import get from 'lodash-es/get.js'
|
|
38
|
+
import WDialog from 'w-component-vue/src/components/WDialog.vue'
|
|
39
|
+
import WProgressBar from 'w-component-vue/src/components/WProgressBar.vue'
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export default {
|
|
43
|
+
components: {
|
|
44
|
+
WDialog,
|
|
45
|
+
WProgressBar,
|
|
46
|
+
},
|
|
47
|
+
props: {
|
|
48
|
+
},
|
|
49
|
+
data: function() {
|
|
50
|
+
return {
|
|
51
|
+
|
|
52
|
+
dialogWidth: 0,
|
|
53
|
+
dialogWidthMax: 600,
|
|
54
|
+
|
|
55
|
+
barPadding: 20,
|
|
56
|
+
barWidth: 0,
|
|
57
|
+
msg: '',
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mounted: function() {
|
|
62
|
+
//console.log('mounted')
|
|
63
|
+
|
|
64
|
+
let vo = this
|
|
65
|
+
|
|
66
|
+
//set
|
|
67
|
+
Vue.prototype.$dg.setLoadingWinBarMessage = vo.setMessage
|
|
68
|
+
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
|
|
72
|
+
loading: function() {
|
|
73
|
+
let vo = this
|
|
74
|
+
let b = get(vo, `$store.state.loading`)
|
|
75
|
+
// console.log('loading', b)
|
|
76
|
+
return b
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
},
|
|
80
|
+
methods: {
|
|
81
|
+
|
|
82
|
+
setMessage: function(msg) {
|
|
83
|
+
this.msg = msg
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
resizeDialog: function(msg) {
|
|
87
|
+
// console.log('methods resizeDialog', msg)
|
|
88
|
+
|
|
89
|
+
let vo = this
|
|
90
|
+
|
|
91
|
+
let w = window.innerWidth
|
|
92
|
+
// console.log('window.innerWidth', window.innerWidth)
|
|
93
|
+
|
|
94
|
+
//dialogWidth
|
|
95
|
+
let dialogWidth = w - vo.barPadding * 2
|
|
96
|
+
dialogWidth = Math.max(dialogWidth, 0)
|
|
97
|
+
dialogWidth = Math.min(dialogWidth, vo.dialogWidthMax)
|
|
98
|
+
vo.dialogWidth = dialogWidth
|
|
99
|
+
// console.log('dialogWidth', dialogWidth)
|
|
100
|
+
|
|
101
|
+
//barWidth
|
|
102
|
+
let barWidth = dialogWidth - vo.barPadding * 2
|
|
103
|
+
barWidth = Math.max(barWidth, 0)
|
|
104
|
+
vo.barWidth = barWidth
|
|
105
|
+
// console.log('barWidth', barWidth)
|
|
106
|
+
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</script>
|
|
112
|
+
|
|
113
|
+
<style scoped>
|
|
114
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div style="height:100svh; background
|
|
2
|
+
<div style="height:100svh; background:var(--bg-2);">
|
|
3
3
|
|
|
4
4
|
<!-- menu top, 因窄版導致名稱換行故須使用overflow-y:hidden -->
|
|
5
|
-
<div :style="`height:${heightToolbar}px; overflow-y:hidden; padding:0px 10px; background
|
|
5
|
+
<div :style="`height:${heightToolbar}px; box-sizing:border-box; overflow-y:hidden; padding:0px 10px; background:var(--bg-1); border-bottom:1px solid var(--border); display:flex; align-items:center;`">
|
|
6
6
|
|
|
7
7
|
<WButtonCircle
|
|
8
8
|
:icon="'mdi-menu'"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
<div>
|
|
23
|
-
<div style="font-size:
|
|
24
|
-
<div style="font-size:
|
|
23
|
+
<div style="font-size:var(--fs-h3); color:var(--c-1); font-weight:600;">{{webName}}</div>
|
|
24
|
+
<div style="font-size:var(--fs-xs); color:var(--c-2);">{{$t('webDescription')}}</div>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
</div>
|
|
@@ -106,9 +106,10 @@ export default {
|
|
|
106
106
|
let showLanguage = get(vo, 'webInfor.showLanguage', '')
|
|
107
107
|
// console.log('showLanguage', showLanguage)
|
|
108
108
|
vo.showLangSelect = showLanguage === 'y'
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
//setLang(null):改走 getLang 解析(URL ?lang= > store > window 注入之 server 語系),
|
|
110
|
+
//不再用 webInfor.language 明確覆蓋(否則會蓋掉 URL ?lang= 與使用者切換)。server 初始語系已由
|
|
111
|
+
//window.___pmwperm___.language(WWebApi 注入 index.html)提供,getLang 會取得。
|
|
112
|
+
vo.$ui.setLang(null, 'layout mounted')
|
|
112
113
|
vo.firstSetting = false
|
|
113
114
|
}
|
|
114
115
|
|