ts-glitter 16.2.3 → 16.2.6

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
@@ -79,7 +79,7 @@ export class Entry {
79
79
  }
80
80
  window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
81
81
  console.log(`Entry-time:`, window.renderClock.stop());
82
- glitter.share.editerVersion = 'V_16.2.3';
82
+ glitter.share.editerVersion = 'V_16.2.6';
83
83
  glitter.share.start = new Date();
84
84
  const vm = {
85
85
  appConfig: [],
package/lowcode/Entry.ts CHANGED
@@ -78,7 +78,7 @@ export class Entry {
78
78
  }
79
79
  (window as any).renderClock = (window as any).renderClock ?? clockF();
80
80
  console.log(`Entry-time:`, (window as any).renderClock.stop());
81
- glitter.share.editerVersion = 'V_16.2.3';
81
+ glitter.share.editerVersion = 'V_16.2.6';
82
82
  glitter.share.start = new Date();
83
83
  const vm: {
84
84
  appConfig: any;
@@ -630,14 +630,18 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
630
630
  </div>
631
631
  <div class="d-flex justify-content-end">
632
632
  ${BgWidget.save(gvc.event(() => {
633
+ const glitter = window.parent.glitter;
633
634
  if (!domain_text) {
634
635
  dialog.errorMessage({ text: '請輸入網域名稱' });
635
636
  return;
636
637
  }
638
+ else if (glitter.share.editorViewModel.domain === domain_text) {
639
+ dialog.errorMessage({ text: '此網域已部署完成' });
640
+ return;
641
+ }
637
642
  dialog.dataLoading({ visible: true });
638
643
  const appName = window.parent.appName;
639
644
  const saasConfig = window.parent.saasConfig;
640
- const glitter = window.parent.glitter;
641
645
  if (domain_from === 'custom') {
642
646
  saasConfig.api.setDomain({
643
647
  domain: domain_text,
@@ -661,14 +661,17 @@ ${BgWidget.title('GoDaddy DNS 設定指南')}
661
661
  </div>
662
662
  <div class="d-flex justify-content-end">
663
663
  ${BgWidget.save(gvc.event(() => {
664
+ const glitter = (window.parent as any).glitter;
664
665
  if (!domain_text) {
665
666
  dialog.errorMessage({text: '請輸入網域名稱'})
666
667
  return
668
+ }else if(glitter.share.editorViewModel.domain===domain_text){
669
+ dialog.errorMessage({text: '此網域已部署完成'})
670
+ return
667
671
  }
668
672
  dialog.dataLoading({visible: true})
669
673
  const appName = (window.parent as any).appName;
670
674
  const saasConfig = (window.parent as any).saasConfig;
671
- const glitter = (window.parent as any).glitter;
672
675
  if (domain_from === 'custom') {
673
676
  saasConfig.api.setDomain({
674
677
  domain: domain_text,
@@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
11
11
  import { BgWidget } from '../backend-manager/bg-widget.js';
12
12
  import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
13
+ import { Language } from "../glitter-base/global/language.js";
13
14
  export class ShoppingShipmentSetting {
14
15
  static main(gvc) {
15
16
  const saasConfig = window.parent.saasConfig;
@@ -97,7 +98,7 @@ export class ShoppingShipmentSetting {
97
98
  ]
98
99
  .concat(((_a = logistics_setting.custom_delivery) !== null && _a !== void 0 ? _a : []).map((dd) => {
99
100
  return {
100
- title: dd.name,
101
+ title: Language.getLanguageCustomText(dd.name),
101
102
  key: dd.id,
102
103
  };
103
104
  }))
@@ -2,6 +2,7 @@ import { GVC } from '../glitterBundle/GVController.js';
2
2
  import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
3
3
  import { BgWidget } from '../backend-manager/bg-widget.js';
4
4
  import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
5
+ import {Language} from "../glitter-base/global/language.js";
5
6
 
6
7
  export class ShoppingShipmentSetting {
7
8
  public static main(gvc: GVC) {
@@ -105,7 +106,7 @@ export class ShoppingShipmentSetting {
105
106
  .concat(
106
107
  (logistics_setting.custom_delivery ?? []).map((dd: any) => {
107
108
  return {
108
- title: dd.name,
109
+ title: Language.getLanguageCustomText(dd.name),
109
110
  key: dd.id,
110
111
  };
111
112
  })
@@ -729,10 +729,10 @@ export class UMOrder {
729
729
  title: Language.text('contact_number'),
730
730
  value: orderData.customer_info.phone,
731
731
  },
732
- {
733
- title: Language.text('email'),
734
- value: orderData.customer_info.email,
735
- },
732
+ ...(orderData.customer_info.email) ? [{
733
+ title: Language.text('email'),
734
+ value: orderData.customer_info.email,
735
+ }] : []
736
736
  ].concat(((_a = orderData.custom_form_format) !== null && _a !== void 0 ? _a : [])
737
737
  .map((dd) => {
738
738
  return {
@@ -841,14 +841,14 @@ export class UMOrder {
841
841
  title: Language.text('recipient_name'),
842
842
  value: orderData.user_info.name,
843
843
  },
844
- {
845
- title: Language.text('recipient_phone'),
846
- value: orderData.user_info.phone,
847
- },
848
- {
849
- title: Language.text('recipient_email'),
850
- value: orderData.user_info.email,
851
- },
844
+ ...(orderData.user_info.phone) ? [{
845
+ title: Language.text('recipient_phone'),
846
+ value: orderData.user_info.phone,
847
+ }] : [],
848
+ ...(orderData.user_info.email) ? [{
849
+ title: Language.text('recipient_email'),
850
+ value: orderData.user_info.email,
851
+ }] : []
852
852
  ],
853
853
  ];
854
854
  if (selector && selector.form) {
@@ -1228,10 +1228,10 @@ export class UMOrder {
1228
1228
  title: Language.text('contact_number'),
1229
1229
  value: orderData.customer_info.phone,
1230
1230
  },
1231
- {
1231
+ ...(orderData.customer_info.email) ? [{
1232
1232
  title: Language.text('email'),
1233
1233
  value: orderData.customer_info.email,
1234
- },
1234
+ }] : []
1235
1235
  ].concat(
1236
1236
  (orderData.custom_form_format ?? [])
1237
1237
  .map((dd) => {
@@ -1345,14 +1345,15 @@ export class UMOrder {
1345
1345
  title: Language.text('recipient_name'),
1346
1346
  value: orderData.user_info.name,
1347
1347
  },
1348
- {
1348
+ ...(orderData.user_info.phone) ? [{
1349
1349
  title: Language.text('recipient_phone'),
1350
1350
  value: orderData.user_info.phone,
1351
- },
1352
- {
1351
+ }] : []
1352
+ ,
1353
+ ...(orderData.user_info.email) ? [{
1353
1354
  title: Language.text('recipient_email'),
1354
1355
  value: orderData.user_info.email,
1355
- },
1356
+ }] : []
1356
1357
  ],
1357
1358
  ];
1358
1359
  if (selector && selector.form) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "16.2.3",
3
+ "version": "16.2.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,6 +46,7 @@
46
46
  "google-auth-library": "^9.10.0",
47
47
  "http-status-codes": "^2.3.0",
48
48
  "jimp": "^1.6.0",
49
+ "js-beautify": "^1.15.1",
49
50
  "jsdom": "^25.0.0",
50
51
  "json2csv": "^6.0.0-alpha.2",
51
52
  "jsonwebtoken": "^9.0.0",
@@ -58,6 +59,7 @@
58
59
  "nodemailer": "^6.9.3",
59
60
  "nodemon": "^2.0.20",
60
61
  "openai": "4.68.4",
62
+ "prettier": "^3.4.2",
61
63
  "qs": "^6.12.1",
62
64
  "sharp": "^0.33.5",
63
65
  "sitemap": "^8.0.0",
@@ -88,6 +90,7 @@
88
90
  "@types/uuid": "^9.0.7",
89
91
  "@types/ws": "^8.5.10",
90
92
  "multer": "^1.4.4",
91
- "terser": "^5.19.2"
93
+ "terser": "^5.19.2",
94
+ "@types/js-beautify": "^1.15.1"
92
95
  }
93
96
  }
@@ -146,7 +146,7 @@ export declare class Shopping {
146
146
  type: string;
147
147
  divisor: number;
148
148
  executionTime: string;
149
- queryStatus: "success" | "error";
149
+ queryStatus: "error" | "success";
150
150
  queryData: any;
151
151
  } | {
152
152
  type: string;