w-web-api 1.0.53 → 1.0.55
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/README.md +1 -1
- package/dist/css/{app.fe69497a.css → app.cad4a1ca.css} +1 -1
- package/dist/index.tmp +1 -1
- package/dist/js/app-legacy.7687b23b.js +1 -0
- package/dist/js/app.7687b23b.js +1 -0
- package/dist/js/chunk-vendors-legacy.4c27cf51.js +15 -0
- package/dist/js/chunk-vendors.4c27cf51.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 +1 -1
- package/docs/index.html +1 -1
- package/docs/server_WWebApi.mjs.html +24 -34
- package/docs/src_components_Common_CheckYesNo.vue.html +1 -1
- package/logs/2026-06-19T16.log +6 -0
- package/logs/2026-06-20T11.log +4 -0
- package/logs/2026-06-20T14.log +2 -0
- package/logs/2026-06-21T20.log +1 -0
- package/logs/2026-06-21T21.log +4 -0
- package/logs/2026-06-22T07.log +12 -0
- package/logs/2026-06-22T08.log +808 -0
- package/logs/2026-06-22T09.log +104 -0
- package/logs/2026-06-22T10.log +26 -0
- package/logs/2026-06-22T11.log +860 -0
- package/logs/2026-06-22T12.log +430 -0
- package/logs/2026-06-22T23.log +1547 -0
- package/logs/2026-06-23T00.log +473 -0
- package/logs/2026-06-23T08.log +231 -0
- package/logs/2026-06-23T09.log +179 -0
- package/logs/2026-07-01T11.log +488 -0
- package/logs/2026-07-09T22.log +370 -0
- package/logs/2026-07-09T23.log +370 -0
- package/logs/2026-07-10T12.log +284 -0
- package/logs/2026-07-10T13.log +777 -0
- package/logs/2026-07-11T17.log +2 -0
- package/package.json +15 -14
- package/server/WWebApi.mjs +23 -33
- package/server/procLang.mjs +8 -88
- package/server/procProxy.mjs +89 -89
- package/server/srLog.mjs +2 -2
- package/server/staLogs/filterVpfsByWindow.mjs +27 -0
- package/server/staLogs/staEvent.mjs +4 -2
- package/server/staLogs/test_staEvent.mjs +67 -1
- package/settings.json +4 -0
- package/src/components/Layout.vue +1 -20
- package/src/components/LayoutContent.vue +0 -26
- package/src/components/LayoutContentEdit.vue +2 -2
- package/src/components/LayoutContentTest.vue +1 -19
- package/src/main.js +3 -8
- package/src/plugins/mUI.mjs +0 -35
- package/src/store/mutations.mjs +0 -14
- package/src/store/types.mjs +0 -3
- package/srv.mjs +6 -4
- package/tableTags.json +1 -1
- package/z/344/277/256/346/255/243/350/246/217/345/212/203/346/233/270.md +246 -0
- package/_gh-pages-deploy/.nojekyll +0 -0
- package/_gh-pages-deploy/WWebApi.html +0 -898
- 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 +0 -978
- 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 +0 -1049
- 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 +0 -84
- package/_gh-pages-deploy/scripts/collapse.js +0 -39
- package/_gh-pages-deploy/scripts/commonNav.js +0 -28
- package/_gh-pages-deploy/scripts/linenumber.js +0 -25
- package/_gh-pages-deploy/scripts/nav.js +0 -12
- package/_gh-pages-deploy/scripts/polyfill.js +0 -4
- package/_gh-pages-deploy/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/_gh-pages-deploy/scripts/prettify/lang-css.js +0 -2
- package/_gh-pages-deploy/scripts/prettify/prettify.js +0 -28
- package/_gh-pages-deploy/scripts/search.js +0 -99
- package/_gh-pages-deploy/server_WWebApi.mjs.html +0 -1012
- package/_gh-pages-deploy/src_components_Common_CheckYesNo.vue.html +0 -187
- package/_gh-pages-deploy/styles/jsdoc.css +0 -776
- package/_gh-pages-deploy/styles/prettify.css +0 -80
- package/dist/js/app-legacy.15819aa7.js +0 -1
- package/dist/js/app.15819aa7.js +0 -1
- package/dist/js/chunk-vendors-legacy.c1a32dd1.js +0 -15
- package/dist/js/chunk-vendors.c1a32dd1.js +0 -15
- package/src/plugins/mDataSelectorSchema.mjs +0 -30
- package/src/plugins/mShare.mjs +0 -44
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<title>src/components/Common/CheckYesNo.vue - Documentation</title>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<script src="scripts/prettify/prettify.js"></script>
|
|
10
|
-
<script src="scripts/prettify/lang-css.js"></script>
|
|
11
|
-
<!--[if lt IE 9]>
|
|
12
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
13
|
-
<![endif]-->
|
|
14
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
|
-
<script src="scripts/nav.js" defer></script>
|
|
17
|
-
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
|
|
22
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
|
|
23
|
-
<label for="nav-trigger" class="navicon-button x">
|
|
24
|
-
<div class="navicon"></div>
|
|
25
|
-
</label>
|
|
26
|
-
|
|
27
|
-
<label for="nav-trigger" class="overlay"></label>
|
|
28
|
-
|
|
29
|
-
<nav >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WWebApi.html">WWebApi</a></li></ul>
|
|
33
|
-
|
|
34
|
-
</nav>
|
|
35
|
-
|
|
36
|
-
<div id="main">
|
|
37
|
-
|
|
38
|
-
<h1 class="page-title">src/components/Common/CheckYesNo.vue</h1>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<section>
|
|
47
|
-
<article>
|
|
48
|
-
<pre class="prettyprint source linenums"><code><template>
|
|
49
|
-
<WConfirm
|
|
50
|
-
:show.sync="bShow"
|
|
51
|
-
:title="$t('systemMessage')"
|
|
52
|
-
:content="content"
|
|
53
|
-
:_contentColor="'white'"
|
|
54
|
-
:_contentIconColor="'white'"
|
|
55
|
-
:_contentBackgroundColor="'orange lighten-5'"
|
|
56
|
-
:_titleColor="'white'"
|
|
57
|
-
:headerBackgroundColor="'grey lighten-3'"
|
|
58
|
-
:noBtnText="$t('no')"
|
|
59
|
-
:yesBtnText="$t('yes')"
|
|
60
|
-
@click-no="clickBtn(false)"
|
|
61
|
-
@click-yes="clickBtn(true)"
|
|
62
|
-
></WConfirm>
|
|
63
|
-
</template>
|
|
64
|
-
|
|
65
|
-
<script>
|
|
66
|
-
import Vue from 'vue'
|
|
67
|
-
import genPm from 'wsemi/src/genPm.mjs'
|
|
68
|
-
import WConfirm from 'w-component-vue/src/components/WConfirm.vue'
|
|
69
|
-
|
|
70
|
-
export default {
|
|
71
|
-
components: {
|
|
72
|
-
WConfirm,
|
|
73
|
-
},
|
|
74
|
-
props: {
|
|
75
|
-
},
|
|
76
|
-
data: function() {
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
bShow: false,
|
|
80
|
-
pm: null,
|
|
81
|
-
|
|
82
|
-
content: '',
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
mounted: function() {
|
|
87
|
-
//console.log('mounted')
|
|
88
|
-
|
|
89
|
-
let vo = this
|
|
90
|
-
|
|
91
|
-
//set
|
|
92
|
-
Vue.prototype.$dg.showCheckYesNo = vo.show
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
computed: {
|
|
96
|
-
},
|
|
97
|
-
methods: {
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* 顯示 Yes/No 確認對話框並回傳 Promise。
|
|
101
|
-
*
|
|
102
|
-
* **Contract** (caller 須遵守):
|
|
103
|
-
* - 使用者點 **Yes** → Promise `resolve()` (無值, 進 `.then()`)
|
|
104
|
-
* - 使用者點 **No** → Promise `reject('close')` (進 `.catch(err => err === 'close')`)
|
|
105
|
-
*
|
|
106
|
-
* 正確 caller pattern:
|
|
107
|
-
*
|
|
108
|
-
* vo.$dg.showCheckYesNo('確定要 X?')
|
|
109
|
-
* .then(() => {
|
|
110
|
-
* //使用者點 Yes
|
|
111
|
-
* doX()
|
|
112
|
-
* })
|
|
113
|
-
* .catch((err) => {
|
|
114
|
-
* //使用者點 No (err === 'close') 為正常路徑, 靜默處理
|
|
115
|
-
* if (err === 'close') return
|
|
116
|
-
* //非預期錯誤 (CheckYesNo 本身故障等)
|
|
117
|
-
* console.log('showCheckYesNo unexpected error', err)
|
|
118
|
-
* })
|
|
119
|
-
*
|
|
120
|
-
* @param {string} content - 顯示在 modal 中的訊息文字
|
|
121
|
-
* @returns {Promise<void>} Yes → resolve(); No → reject('close')
|
|
122
|
-
*/
|
|
123
|
-
show: function(content) {
|
|
124
|
-
//console.log('methods show', content)
|
|
125
|
-
|
|
126
|
-
let vo = this
|
|
127
|
-
|
|
128
|
-
//pm
|
|
129
|
-
vo.pm = genPm()
|
|
130
|
-
|
|
131
|
-
//save
|
|
132
|
-
vo.content = content
|
|
133
|
-
|
|
134
|
-
//show
|
|
135
|
-
vo.bShow = true
|
|
136
|
-
|
|
137
|
-
return vo.pm
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
clickBtn: function(mode) {
|
|
141
|
-
//console.log('methods clickBtn', mode)
|
|
142
|
-
|
|
143
|
-
let vo = this
|
|
144
|
-
|
|
145
|
-
if (mode) {
|
|
146
|
-
vo.pm.resolve()
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
vo.pm.reject('close')
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
//hide
|
|
153
|
-
vo.bShow = false
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
</script>
|
|
160
|
-
|
|
161
|
-
<style scoped>
|
|
162
|
-
</style>
|
|
163
|
-
</code></pre>
|
|
164
|
-
</article>
|
|
165
|
-
</section>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
</div>
|
|
173
|
-
|
|
174
|
-
<br class="clear">
|
|
175
|
-
|
|
176
|
-
<footer>
|
|
177
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Jun 22 2026 15:42:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
178
|
-
</footer>
|
|
179
|
-
|
|
180
|
-
<script>prettyPrint();</script>
|
|
181
|
-
<script src="scripts/polyfill.js"></script>
|
|
182
|
-
<script src="scripts/linenumber.js"></script>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</body>
|
|
187
|
-
</html>
|