@cloudbase/framework-plugin-low-code 0.7.11-beta.3 → 0.7.13
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/package.json +1 -1
- package/template/html/index.html.ejs +419 -431
- package/template/mp/package.json +1 -1
- package/template/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="zh-cn">
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<% if (!isAdminPortal) { %>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
|
6
|
+
<meta name="renderer" content="webkit|ie-stand" />
|
|
7
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no,viewport-fit=cover" />
|
|
8
|
+
<meta name="format-detection" content="telephone=no" />
|
|
9
|
+
<meta name="description" content="<%= meta.desc %>" />
|
|
10
|
+
<script crossorigin="anonymous" src="https://cdn-go.cn/aegis/aegis-sdk/latest/aegis.min.js?v=1"></script>
|
|
11
|
+
<script>
|
|
12
|
+
<% if(!isAdminPortal){ %>
|
|
14
13
|
const _aegis = new Aegis({
|
|
15
14
|
id: 'lXHFsBpTjIzNADiczY', // 项目ID,即上报key
|
|
16
15
|
reportApiSpeed: true, // 接口测速
|
|
@@ -28,441 +27,430 @@
|
|
|
28
27
|
});
|
|
29
28
|
<% }%>
|
|
30
29
|
window._aegis = _aegis;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</title>
|
|
36
|
-
<% if(delevopment){ %>
|
|
30
|
+
window._aegis_inited = Date.now()
|
|
31
|
+
</script>
|
|
32
|
+
<title><%= meta.title %></title>
|
|
33
|
+
<% if(delevopment){ %>
|
|
37
34
|
<!-- <script src="https://cdn.jsdelivr.net/npm/eruda"></script>
|
|
38
35
|
<script>
|
|
39
36
|
eruda.init();
|
|
40
37
|
</script> -->
|
|
41
|
-
<% }%>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<body
|
|
384
|
-
|
|
385
|
-
<% if(!isAdminPortal){ %>
|
|
38
|
+
<% }%> <% Array.isArray(meta.jsApis) && meta.jsApis.filter(function(item){return !!item}).forEach(function(jsApi){%>
|
|
39
|
+
<script src="<%=jsApi %>"></script>
|
|
40
|
+
<% })%>
|
|
41
|
+
|
|
42
|
+
<!-- 重置浏览器样式 -->
|
|
43
|
+
<style type="text/css">
|
|
44
|
+
.clearfix::before,
|
|
45
|
+
.clearfix::after {
|
|
46
|
+
content: '';
|
|
47
|
+
display: table;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.clearfix::after {
|
|
51
|
+
clear: both;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
html {
|
|
55
|
+
-ms-text-size-adjust: 100%;
|
|
56
|
+
-webkit-text-size-adjust: 100%;
|
|
57
|
+
-webkit-tap-highlight-color: transparent;
|
|
58
|
+
height: 100%;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
body {
|
|
62
|
+
margin: 0;
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
font-family: 'Helvetica Neue', Helvetica, 'Microsoft Yahei', STHeiTi, Arial, sans-serif;
|
|
65
|
+
line-height: 1.5;
|
|
66
|
+
color: #333;
|
|
67
|
+
background-color: #fff;
|
|
68
|
+
min-height: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
body > #react-body {
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.weapps-page {
|
|
76
|
+
min-height: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
article,
|
|
80
|
+
aside,
|
|
81
|
+
details,
|
|
82
|
+
figcaption,
|
|
83
|
+
figure,
|
|
84
|
+
footer,
|
|
85
|
+
header,
|
|
86
|
+
hgroup,
|
|
87
|
+
main,
|
|
88
|
+
menu,
|
|
89
|
+
nav,
|
|
90
|
+
section,
|
|
91
|
+
summary {
|
|
92
|
+
display: block;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
audio,
|
|
96
|
+
canvas,
|
|
97
|
+
progress,
|
|
98
|
+
video {
|
|
99
|
+
display: inline-block;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
audio:not([controls]) {
|
|
103
|
+
display: none;
|
|
104
|
+
height: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
progress {
|
|
108
|
+
vertical-align: baseline;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
[hidden],
|
|
112
|
+
template {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
a {
|
|
117
|
+
background: transparent;
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
color: #08c;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
a:active {
|
|
123
|
+
outline: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
abbr[title] {
|
|
127
|
+
border-bottom: 1px dotted;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
b,
|
|
131
|
+
strong {
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
dfn {
|
|
136
|
+
font-style: italic;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
mark {
|
|
140
|
+
background: #ff0;
|
|
141
|
+
color: #000;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
small {
|
|
145
|
+
font-size: 80%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
sub,
|
|
149
|
+
sup {
|
|
150
|
+
font-size: 75%;
|
|
151
|
+
line-height: 0;
|
|
152
|
+
position: relative;
|
|
153
|
+
vertical-align: baseline;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
sup {
|
|
157
|
+
top: -0.5em;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
sub {
|
|
161
|
+
bottom: -0.25em;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
img {
|
|
165
|
+
border: 0;
|
|
166
|
+
vertical-align: middle;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
svg:not(:root) {
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
pre {
|
|
174
|
+
overflow: auto;
|
|
175
|
+
white-space: pre;
|
|
176
|
+
white-space: pre-wrap;
|
|
177
|
+
word-wrap: break-word;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
code,
|
|
181
|
+
kbd,
|
|
182
|
+
pre,
|
|
183
|
+
samp {
|
|
184
|
+
font-family: monospace, monospace;
|
|
185
|
+
font-size: 1em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
button,
|
|
189
|
+
input,
|
|
190
|
+
optgroup,
|
|
191
|
+
select,
|
|
192
|
+
textarea {
|
|
193
|
+
color: inherit;
|
|
194
|
+
font: inherit;
|
|
195
|
+
margin: 0;
|
|
196
|
+
vertical-align: middle;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
button,
|
|
200
|
+
input,
|
|
201
|
+
select {
|
|
202
|
+
overflow: visible;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
button,
|
|
206
|
+
select {
|
|
207
|
+
text-transform: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
button,
|
|
211
|
+
html input[type='button'],
|
|
212
|
+
input[type='reset'],
|
|
213
|
+
input[type='submit'] {
|
|
214
|
+
-webkit-appearance: button;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
[disabled] {
|
|
219
|
+
cursor: default;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
button::-moz-focus-inner,
|
|
223
|
+
input::-moz-focus-inner {
|
|
224
|
+
border: 0;
|
|
225
|
+
padding: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
input {
|
|
229
|
+
line-height: normal;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
input[type='checkbox'],
|
|
233
|
+
input[type='radio'] {
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
padding: 0;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
239
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
240
|
+
height: auto;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
input[type='search'] {
|
|
244
|
+
-webkit-appearance: textfield;
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
input[type='search']::-webkit-search-cancel-button,
|
|
249
|
+
input[type='search']::-webkit-search-decoration {
|
|
250
|
+
-webkit-appearance: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
fieldset {
|
|
254
|
+
border: 1px solid #c0c0c0;
|
|
255
|
+
margin: 0 2px;
|
|
256
|
+
padding: 0.35em 0.625em 0.75em;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
legend {
|
|
260
|
+
border: 0;
|
|
261
|
+
padding: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
textarea {
|
|
265
|
+
overflow: auto;
|
|
266
|
+
resize: vertical;
|
|
267
|
+
vertical-align: top;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
optgroup {
|
|
271
|
+
font-weight: bold;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
input,
|
|
275
|
+
select,
|
|
276
|
+
textarea {
|
|
277
|
+
outline: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
textarea,
|
|
281
|
+
input {
|
|
282
|
+
-webkit-user-modify: read-write-plaintext-only;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
input::-ms-clear,
|
|
286
|
+
input::-ms-reveal {
|
|
287
|
+
display: none;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
input::-moz-placeholder,
|
|
291
|
+
textarea::-moz-placeholder {
|
|
292
|
+
color: #999;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
input:-ms-input-placeholder,
|
|
296
|
+
textarea:-ms-input-placeholder {
|
|
297
|
+
color: #999;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
input::-webkit-input-placeholder,
|
|
301
|
+
textarea::-webkit-input-placeholder {
|
|
302
|
+
color: #999;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.placeholder {
|
|
306
|
+
color: #999;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
table {
|
|
310
|
+
border-collapse: collapse;
|
|
311
|
+
border-spacing: 0;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
td,
|
|
315
|
+
th {
|
|
316
|
+
padding: 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
h1,
|
|
320
|
+
h2,
|
|
321
|
+
h3,
|
|
322
|
+
h4,
|
|
323
|
+
h5,
|
|
324
|
+
h6,
|
|
325
|
+
p,
|
|
326
|
+
figure,
|
|
327
|
+
form,
|
|
328
|
+
blockquote {
|
|
329
|
+
margin: 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
ul,
|
|
333
|
+
ol,
|
|
334
|
+
li,
|
|
335
|
+
dl,
|
|
336
|
+
dd {
|
|
337
|
+
margin: 0;
|
|
338
|
+
padding: 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
ul,
|
|
342
|
+
ol {
|
|
343
|
+
list-style: none outside none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
h1,
|
|
347
|
+
h2,
|
|
348
|
+
h3 {
|
|
349
|
+
line-height: 2;
|
|
350
|
+
font-weight: normal;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
h1 {
|
|
354
|
+
font-size: 18px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
h2 {
|
|
358
|
+
font-size: 16px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
h3 {
|
|
362
|
+
font-size: 14px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
i {
|
|
366
|
+
font-style: normal;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
* {
|
|
370
|
+
box-sizing: border-box;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.hide {
|
|
374
|
+
display: none;
|
|
375
|
+
}
|
|
376
|
+
</style>
|
|
377
|
+
</head>
|
|
378
|
+
|
|
379
|
+
<body data-weui-theme="light">
|
|
380
|
+
<div id="react-body" class="main-wrap"></div>
|
|
381
|
+
<% if(!isAdminPortal){ %>
|
|
386
382
|
<script src="/weda-config/weda-private.js"></script>
|
|
387
383
|
<script src="//static.cloudbase.net/cloudbase-js-sdk/2.4.0-alpha.0/cloudbase.full.js?v=1"></script>
|
|
388
384
|
<% }%>
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
_aegis.report({
|
|
401
|
-
msg:
|
|
402
|
-
'[' +
|
|
403
|
-
name +
|
|
404
|
-
':' +
|
|
405
|
-
data.methodName +
|
|
406
|
-
']: ' +
|
|
407
|
-
(res.result.message || '函数调用失败'),
|
|
408
|
-
level: '16',
|
|
409
|
-
ext2: res.result.code,
|
|
410
|
-
ext3: res.requestId,
|
|
411
|
-
trace: 'trace',
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
} catch (e) { }
|
|
415
|
-
return res;
|
|
416
|
-
})
|
|
417
|
-
.catch(function (e) {
|
|
418
|
-
try {
|
|
385
|
+
<script>
|
|
386
|
+
if (window.cloudbase) {
|
|
387
|
+
const _callFunction = window.cloudbase.__proto__.callFunction;
|
|
388
|
+
window.cloudbase.__proto__.callFunction = function (args) {
|
|
389
|
+
let promise = _callFunction.call(window.cloudbase, ...arguments);
|
|
390
|
+
if (promise instanceof Promise) {
|
|
391
|
+
return promise
|
|
392
|
+
.then(function (res) {
|
|
393
|
+
const { name, data = {} } = args || {};
|
|
394
|
+
try {
|
|
395
|
+
if (res.result && res.result.code) {
|
|
419
396
|
_aegis.report({
|
|
420
397
|
msg: '[' + name + ':' + data.methodName + ']: ' + (res.result.message || '函数调用失败'),
|
|
421
398
|
level: '16',
|
|
422
|
-
ext2:
|
|
423
|
-
ext3:
|
|
399
|
+
ext2: res.result.code,
|
|
400
|
+
ext3: res.requestId,
|
|
424
401
|
trace: 'trace',
|
|
425
402
|
});
|
|
426
403
|
}
|
|
427
|
-
} catch (e) {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
.catch
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
404
|
+
} catch (e) {}
|
|
405
|
+
return res;
|
|
406
|
+
})
|
|
407
|
+
.catch(function (e) {
|
|
408
|
+
try {
|
|
409
|
+
_aegis.report({
|
|
410
|
+
msg: '[' + name + ':' + data.methodName + ']: ' + (e.message || '函数调用失败'),
|
|
411
|
+
level: '16',
|
|
412
|
+
ext2: e.code,
|
|
413
|
+
ext3: e.requestId,
|
|
414
|
+
trace: 'trace',
|
|
415
|
+
});
|
|
416
|
+
} catch (e) {}
|
|
417
|
+
throw e;
|
|
418
|
+
});
|
|
442
419
|
} else {
|
|
443
420
|
return promise;
|
|
444
421
|
}
|
|
445
422
|
};
|
|
446
423
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
424
|
+
</script>
|
|
425
|
+
<script
|
|
426
|
+
crossorigin
|
|
427
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_npm/react@16.14.0/umd/react.production.min.js"
|
|
428
|
+
></script>
|
|
429
|
+
<script
|
|
430
|
+
crossorigin
|
|
431
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_npm/react-dom@16.14.0/umd/react-dom.production.min.js"
|
|
432
|
+
></script>
|
|
433
|
+
<script
|
|
434
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/ajax/libs/mobx/5.15.7/mobx.umd.js"
|
|
435
|
+
crossorigin="anonymous"
|
|
436
|
+
></script>
|
|
437
|
+
<script
|
|
438
|
+
crossorigin="anonymous"
|
|
439
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-cloud-sdk@1.0.10/dist/h5.browser.js"
|
|
440
|
+
></script>
|
|
441
|
+
<script>
|
|
442
|
+
// zxing polifill
|
|
443
|
+
if (!this.globalThis) {
|
|
444
|
+
this.globalThis = this;
|
|
445
|
+
}
|
|
446
|
+
</script>
|
|
447
|
+
<script
|
|
448
|
+
crossorigin="anonymous"
|
|
449
|
+
src="https://qbase.cdn-go.cn/lcap/lcap-resource-cdngo/-/0.1.2/_url/npm/@zxing/library@0.18.6/umd/index.min.js"
|
|
450
|
+
></script>
|
|
451
|
+
<script
|
|
452
|
+
crossorigin="anonymous"
|
|
453
|
+
src="https://qbase.cdn-go.cn//lcap/lcap-resource-cdngo/-/release/_npm/@cloudbase/weda-client@0.2.10/dist/web.browser.js"
|
|
454
|
+
></script>
|
|
455
|
+
</body>
|
|
456
|
+
</html>
|
package/template/mp/package.json
CHANGED
package/template/package.json
CHANGED