ts-glitter 13.7.1 → 13.7.3
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/jspage/function-page/tool-setting.js +7 -5
- package/lowcode/jspage/function-page/tool-setting.ts +10 -8
- package/lowcode/public-components/headers/sy-02.js +3 -2
- package/lowcode/public-components/headers/sy-02.ts +3 -2
- package/lowcode/public-components/headers/sy-03.js +3 -1
- package/lowcode/public-components/headers/sy-03.ts +3 -2
- package/lowcode/public-components/headers/sy-04.js +4 -2
- package/lowcode/public-components/headers/sy-04.ts +4 -2
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/update-script.ts +3 -3
package/lowcode/Entry.js
CHANGED
|
@@ -59,7 +59,7 @@ export class Entry {
|
|
|
59
59
|
}
|
|
60
60
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
61
61
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
62
|
-
glitter.share.editerVersion = "V_13.7.
|
|
62
|
+
glitter.share.editerVersion = "V_13.7.3";
|
|
63
63
|
glitter.share.start = (new Date());
|
|
64
64
|
const vm = {
|
|
65
65
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class Entry {
|
|
|
60
60
|
}
|
|
61
61
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
62
62
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
63
|
-
glitter.share.editerVersion = "V_13.7.
|
|
63
|
+
glitter.share.editerVersion = "V_13.7.3";
|
|
64
64
|
glitter.share.start = (new Date());
|
|
65
65
|
const vm: {
|
|
66
66
|
appConfig: any;
|
|
@@ -306,18 +306,20 @@ export class ToolSetting {
|
|
|
306
306
|
classDataType: 'static',
|
|
307
307
|
preloadEvenet: {},
|
|
308
308
|
share: {},
|
|
309
|
-
"
|
|
309
|
+
"gCount": "multiple"
|
|
310
|
+
};
|
|
311
|
+
if (['c_header', 'footer'].includes(widget.tag)) {
|
|
312
|
+
widget.config[0].arrayData = {
|
|
310
313
|
"clickEvent": [{
|
|
311
314
|
"clickEvent": {
|
|
312
315
|
"src": "./official_event/event.js",
|
|
313
316
|
"route": "code"
|
|
314
317
|
},
|
|
315
318
|
"codeVersion": "v2",
|
|
316
|
-
"code": "
|
|
319
|
+
"code": "//判斷不是APP在顯示\n if ((!glitter.share.is_application) && (glitter.getUrlParameter('device') !== 'mobile')) {\n return [subData]\n } else {\n return []\n }"
|
|
317
320
|
}]
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
};
|
|
321
|
+
};
|
|
322
|
+
}
|
|
321
323
|
ApiPageConfig.setPage({
|
|
322
324
|
id: widget.id,
|
|
323
325
|
appName: widget.appName,
|
|
@@ -292,7 +292,7 @@ export class ToolSetting {
|
|
|
292
292
|
((window as any).glitterInitialHelper).getPageData({
|
|
293
293
|
tag: dd.tag,
|
|
294
294
|
appName: dd.appName
|
|
295
|
-
},(d3:any)=>{
|
|
295
|
+
}, (d3: any) => {
|
|
296
296
|
widget.config[0] = {
|
|
297
297
|
id: gvc.glitter.getUUID(),
|
|
298
298
|
js: './official_view_component/official.js',
|
|
@@ -302,7 +302,7 @@ export class ToolSetting {
|
|
|
302
302
|
},
|
|
303
303
|
data: {
|
|
304
304
|
refer_app: dd.appName,
|
|
305
|
-
refer_form_data:d3.response.result[0].page_config.formData,
|
|
305
|
+
refer_form_data: d3.response.result[0].page_config.formData,
|
|
306
306
|
tag: dd.tag,
|
|
307
307
|
list: [],
|
|
308
308
|
carryData: {},
|
|
@@ -321,18 +321,20 @@ export class ToolSetting {
|
|
|
321
321
|
classDataType: 'static',
|
|
322
322
|
preloadEvenet: {},
|
|
323
323
|
share: {},
|
|
324
|
-
"
|
|
324
|
+
"gCount": "multiple"
|
|
325
|
+
};
|
|
326
|
+
if (['c_header', 'footer'].includes(widget.tag)) {
|
|
327
|
+
widget.config[0].arrayData = {
|
|
325
328
|
"clickEvent": [{
|
|
326
329
|
"clickEvent": {
|
|
327
330
|
"src": "./official_event/event.js",
|
|
328
331
|
"route": "code"
|
|
329
332
|
},
|
|
330
333
|
"codeVersion": "v2",
|
|
331
|
-
"code": "
|
|
334
|
+
"code": "//判斷不是APP在顯示\n if ((!glitter.share.is_application) && (glitter.getUrlParameter('device') !== 'mobile')) {\n return [subData]\n } else {\n return []\n }"
|
|
332
335
|
}]
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
};
|
|
336
|
+
}
|
|
337
|
+
}
|
|
336
338
|
ApiPageConfig.setPage({
|
|
337
339
|
id: widget.id,
|
|
338
340
|
appName: widget.appName,
|
|
@@ -347,7 +349,7 @@ export class ToolSetting {
|
|
|
347
349
|
}).then((api) => {
|
|
348
350
|
dialog.dataLoading({visible: false});
|
|
349
351
|
location.reload();
|
|
350
|
-
});
|
|
352
|
+
});
|
|
351
353
|
})
|
|
352
354
|
}
|
|
353
355
|
},
|
|
@@ -14,7 +14,6 @@ export class Sy02 {
|
|
|
14
14
|
<nav class="navbar navbar-expand-lg vw-100 header header-place shadow position-fixed top-0 left-0 py-0"
|
|
15
15
|
style="background: ${(_a = widget.formData.theme_color['background']) !== null && _a !== void 0 ? _a : '#000'} !important;height: 76px;z-index:9999;">
|
|
16
16
|
<div class="container header-place h-100">
|
|
17
|
-
|
|
18
17
|
<!--LOGO顯示區塊-->
|
|
19
18
|
<div class="d-flex align-items-center justify-content-center h-100"
|
|
20
19
|
style="gap: 8px;cursor: pointer;">
|
|
@@ -278,7 +277,9 @@ background: ${(_a = widget.formData.theme_color['background']) !== null && _a !=
|
|
|
278
277
|
bind: vm.id,
|
|
279
278
|
view: () => {
|
|
280
279
|
var _a;
|
|
281
|
-
return html `<span class="position-relative"
|
|
280
|
+
return html `<span class="position-relative" onclick="${gvc.event(() => {
|
|
281
|
+
gvc.glitter.href = '/checkout';
|
|
282
|
+
})}">
|
|
282
283
|
<i class="fa-duotone fa-cart-shopping"
|
|
283
284
|
style="color: ${(_a = widget.formData.theme_color['title']) !== null && _a !== void 0 ? _a : '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
284
285
|
${(vm.count) ? `<div class="position-absolute"
|
|
@@ -18,7 +18,6 @@ export class Sy02 {
|
|
|
18
18
|
<nav class="navbar navbar-expand-lg vw-100 header header-place shadow position-fixed top-0 left-0 py-0"
|
|
19
19
|
style="background: ${widget.formData.theme_color['background'] ?? '#000'} !important;height: 76px;z-index:9999;">
|
|
20
20
|
<div class="container header-place h-100">
|
|
21
|
-
|
|
22
21
|
<!--LOGO顯示區塊-->
|
|
23
22
|
<div class="d-flex align-items-center justify-content-center h-100"
|
|
24
23
|
style="gap: 8px;cursor: pointer;">
|
|
@@ -276,7 +275,9 @@ background: ${widget.formData.theme_color['background'] ?? '#000'};overflow-x: h
|
|
|
276
275
|
return {
|
|
277
276
|
bind: vm.id,
|
|
278
277
|
view: () => {
|
|
279
|
-
return html`<span class="position-relative"
|
|
278
|
+
return html`<span class="position-relative" onclick="${gvc.event(()=>{
|
|
279
|
+
gvc.glitter.href='/checkout'
|
|
280
|
+
})}">
|
|
280
281
|
<i class="fa-duotone fa-cart-shopping"
|
|
281
282
|
style="color: ${widget.formData.theme_color['title'] ?? '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
282
283
|
${(vm.count) ? `<div class="position-absolute"
|
|
@@ -266,7 +266,9 @@ background: ${(_a = widget.formData.theme_color['background']) !== null && _a !=
|
|
|
266
266
|
bind: vm.id,
|
|
267
267
|
view: () => {
|
|
268
268
|
var _a;
|
|
269
|
-
return html `<span class="position-relative"
|
|
269
|
+
return html `<span class="position-relative" onclick="${gvc.event(() => {
|
|
270
|
+
gvc.glitter.href = '/checkout';
|
|
271
|
+
})}">
|
|
270
272
|
<i class="fa-duotone fa-cart-shopping"
|
|
271
273
|
style="color: ${(_a = widget.formData.theme_color['title']) !== null && _a !== void 0 ? _a : '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
272
274
|
${(vm.count) ? `<div class="position-absolute"
|
|
@@ -5,7 +5,6 @@ import {GlobalUser} from "../../glitter-base/global/global-user.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
const html = String.raw
|
|
8
|
-
|
|
9
8
|
export class Sy03 {
|
|
10
9
|
public static main(gvc: GVC, widget: any, subData: any) {
|
|
11
10
|
let changePage = (index: string, type: 'page' | 'home', subData: any) => {}
|
|
@@ -264,7 +263,9 @@ background: ${widget.formData.theme_color['background'] ?? '#000'};overflow-x: h
|
|
|
264
263
|
return {
|
|
265
264
|
bind: vm.id,
|
|
266
265
|
view: () => {
|
|
267
|
-
return html`<span class="position-relative"
|
|
266
|
+
return html`<span class="position-relative" onclick="${gvc.event(()=>{
|
|
267
|
+
gvc.glitter.href='/checkout'
|
|
268
|
+
})}">
|
|
268
269
|
<i class="fa-duotone fa-cart-shopping"
|
|
269
270
|
style="color: ${widget.formData.theme_color['title'] ?? '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
270
271
|
${(vm.count) ? `<div class="position-absolute"
|
|
@@ -277,8 +277,10 @@ background: ${(_a = widget.formData.theme_color['background']) !== null && _a !=
|
|
|
277
277
|
bind: vm.id,
|
|
278
278
|
view: () => {
|
|
279
279
|
var _a;
|
|
280
|
-
return html `<span class="position-relative"
|
|
281
|
-
|
|
280
|
+
return html `<span class="position-relative" onclick="${gvc.event(() => {
|
|
281
|
+
gvc.glitter.href = '/checkout';
|
|
282
|
+
})}">
|
|
283
|
+
<i class="fa-duotone fa-cart-shopping"
|
|
282
284
|
style="color: ${(_a = widget.formData.theme_color['title']) !== null && _a !== void 0 ? _a : '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
283
285
|
${(vm.count) ? `<div class="position-absolute"
|
|
284
286
|
style="font-size: 10px;right: -10px;top: -6px;">
|
|
@@ -274,8 +274,10 @@ background: ${widget.formData.theme_color['background'] ?? '#000'};overflow-x: h
|
|
|
274
274
|
return {
|
|
275
275
|
bind: vm.id,
|
|
276
276
|
view: () => {
|
|
277
|
-
return html`<span class="position-relative"
|
|
278
|
-
|
|
277
|
+
return html`<span class="position-relative" onclick="${gvc.event(()=>{
|
|
278
|
+
gvc.glitter.href='/checkout'
|
|
279
|
+
})}">
|
|
280
|
+
<i class="fa-duotone fa-cart-shopping"
|
|
279
281
|
style="color: ${widget.formData.theme_color['title'] ?? '#000'} !important;cursor: pointer;font-size:20px;"></i>
|
|
280
282
|
${(vm.count) ? `<div class="position-absolute"
|
|
281
283
|
style="font-size: 10px;right: -10px;top: -6px;">
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -88,7 +88,7 @@ export async function initial(serverPort: number) {
|
|
|
88
88
|
if (process.env.firebase) {
|
|
89
89
|
await Firebase.initial();
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
await UpdateScript.run()
|
|
92
92
|
if (ConfigSetting.runSchedule) {
|
|
93
93
|
new Schedule().main();
|
|
94
94
|
new SystemSchedule().start();
|
package/src/update-script.ts
CHANGED
|
@@ -27,9 +27,9 @@ export class UpdateScript {
|
|
|
27
27
|
// }))
|
|
28
28
|
// await this.migrateHomePageFooter(migrate_template)
|
|
29
29
|
// await this.migrate_blogs_toPage()
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
for (const b of await db.query('SELECT appName FROM glitter.app_config where brand=?;', ['shopnex'])){
|
|
31
|
+
await this.footer_migrate(b.appName)
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
}
|
|
35
35
|
|