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 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.2";
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.2";
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
- "arrayData": {
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": " //判斷不是APP在顯示\n if ((gvc.glitter.deviceType === glitter.deviceTypeEnum.Web) && (glitter.getUrlParameter('device') !== 'mobile')) {\n return [subData]\n } else {\n return []\n }"
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
- "gCount": "multiple"
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
- "arrayData": {
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": " //判斷不是APP在顯示\n if ((gvc.glitter.deviceType === glitter.deviceTypeEnum.Web) && (glitter.getUrlParameter('device') !== 'mobile')) {\n return [subData]\n } else {\n return []\n }"
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
- "gCount": "multiple"
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
  },
@@ -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) => {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.7.2",
3
+ "version": "13.7.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- // await UpdateScript.run()
91
+ await UpdateScript.run()
92
92
  if (ConfigSetting.runSchedule) {
93
93
  new Schedule().main();
94
94
  new SystemSchedule().start();
@@ -27,9 +27,9 @@ export class UpdateScript {
27
27
  // }))
28
28
  // await this.migrateHomePageFooter(migrate_template)
29
29
  // await this.migrate_blogs_toPage()
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
- // }
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