ts-glitter 13.7.2 → 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-03.ts +0 -1
- 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
|
},
|
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
|
|