ts-glitter 17.2.4 → 17.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 +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-blog.js +3 -3
- package/lowcode/backend-manager/bg-blog.ts +4 -4
- package/lowcode/cms-plugin/shopping-information.js +1 -1
- package/lowcode/cms-plugin/shopping-information.ts +1 -1
- package/lowcode/jspage/editor.js +1 -1
- package/lowcode/jspage/editor.ts +1 -1
- package/lowcode/public-components/terms-related/index.js +2 -2
- package/lowcode/public-components/terms-related/index.ts +2 -2
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -89,7 +89,7 @@ export class Entry {
|
|
|
89
89
|
}
|
|
90
90
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : clockF();
|
|
91
91
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
92
|
-
glitter.share.editerVersion = 'V_17.2.
|
|
92
|
+
glitter.share.editerVersion = 'V_17.2.6';
|
|
93
93
|
glitter.share.start = new Date();
|
|
94
94
|
const vm = {
|
|
95
95
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -90,7 +90,7 @@ export class Entry {
|
|
|
90
90
|
}
|
|
91
91
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
92
92
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
93
|
-
glitter.share.editerVersion = 'V_17.2.
|
|
93
|
+
glitter.share.editerVersion = 'V_17.2.6';
|
|
94
94
|
glitter.share.start = new Date();
|
|
95
95
|
const vm: {
|
|
96
96
|
appConfig: any;
|
|
@@ -1639,7 +1639,7 @@ function detail(gvc, cf, vm, cVm, page_tab) {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
});
|
|
1641
1641
|
}
|
|
1642
|
-
function saveData(gvc, cf, vm, cVm, silence) {
|
|
1642
|
+
function saveData(gvc, cf, vm, cVm, silence, pass_check = false) {
|
|
1643
1643
|
return new Promise((res_, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
1644
1644
|
if (!vm.data.content.tag) {
|
|
1645
1645
|
yield cf.widget.event('error', {
|
|
@@ -1649,7 +1649,7 @@ function saveData(gvc, cf, vm, cVm, silence) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
else if (window.parent.store_info.language_setting.support.find((d1) => {
|
|
1651
1651
|
return !(vm.data.content.language_data[d1].name);
|
|
1652
|
-
})) {
|
|
1652
|
+
}) && !pass_check) {
|
|
1653
1653
|
language = window.parent.store_info.language_setting.support.find((d1) => {
|
|
1654
1654
|
return !(vm.data.content.language_data[d1].name);
|
|
1655
1655
|
});
|
|
@@ -2165,7 +2165,7 @@ function template_select(gvc, cf, vm, cVm, page_type) {
|
|
|
2165
2165
|
vm.data.content.config = c2;
|
|
2166
2166
|
vm.data.content.name = c2.name;
|
|
2167
2167
|
initialData(vm.data.content);
|
|
2168
|
-
saveData(gvc, cf, vm, cVm, false).then(() => {
|
|
2168
|
+
saveData(gvc, cf, vm, cVm, false, true).then(() => {
|
|
2169
2169
|
cVm.type = 'detail';
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
@@ -1797,18 +1797,18 @@ function detail(gvc: GVC, cf: any, vm: any, cVm: any, page_tab: 'page' | 'hidden
|
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
function saveData(gvc: GVC, cf: any, vm: any, cVm: any, silence: boolean) {
|
|
1800
|
+
function saveData(gvc: GVC, cf: any, vm: any, cVm: any, silence: boolean,pass_check:boolean=false) {
|
|
1801
1801
|
return new Promise(async (res_, reject) => {
|
|
1802
1802
|
|
|
1803
1803
|
|
|
1804
|
-
if (!vm.data.content.tag) {
|
|
1804
|
+
if (!vm.data.content.tag ) {
|
|
1805
1805
|
await cf.widget.event('error', {
|
|
1806
1806
|
title: '請設定連結',
|
|
1807
1807
|
});
|
|
1808
1808
|
res_(false)
|
|
1809
1809
|
} else if ((window.parent as any).store_info.language_setting.support.find((d1: any) => {
|
|
1810
1810
|
return !(vm.data.content.language_data[d1].name)
|
|
1811
|
-
})) {
|
|
1811
|
+
}) && !pass_check) {
|
|
1812
1812
|
language=(window.parent as any).store_info.language_setting.support.find((d1: any) => {
|
|
1813
1813
|
return !(vm.data.content.language_data[d1].name)
|
|
1814
1814
|
})
|
|
@@ -2378,7 +2378,7 @@ function template_select(gvc: GVC, cf: any, vm: any, cVm: any, page_type: any) {
|
|
|
2378
2378
|
vm.data.content.config = c2;
|
|
2379
2379
|
vm.data.content.name = c2.name;
|
|
2380
2380
|
initialData(vm.data.content)
|
|
2381
|
-
saveData(gvc, cf, vm, cVm, false).then(() => {
|
|
2381
|
+
saveData(gvc, cf, vm, cVm, false,true).then(() => {
|
|
2382
2382
|
cVm.type = 'detail';
|
|
2383
2383
|
});
|
|
2384
2384
|
} else if (!vm.data.id) {
|
|
@@ -405,7 +405,7 @@ export class ShoppingInformation {
|
|
|
405
405
|
footer_html: (gvc) => {
|
|
406
406
|
return ``;
|
|
407
407
|
},
|
|
408
|
-
width:
|
|
408
|
+
width: 400
|
|
409
409
|
});
|
|
410
410
|
})}">${dd.value}
|
|
411
411
|
<div class="position-absolute text-white rounded-2 px-2 d-flex align-items-center rounded-3 ${dd.key !== vm.data.language_setting.def ? `d-none` : ``}" style="top: -12px;right: -10px; height:20px;font-size: 11px;background: #ff6c02;">預設</div>
|
|
@@ -435,7 +435,7 @@ export class ShoppingInformation {
|
|
|
435
435
|
footer_html: (gvc) => {
|
|
436
436
|
return ``
|
|
437
437
|
},
|
|
438
|
-
width:
|
|
438
|
+
width: 400
|
|
439
439
|
})
|
|
440
440
|
})}">${dd.value}
|
|
441
441
|
<div class="position-absolute text-white rounded-2 px-2 d-flex align-items-center rounded-3 ${dd.key !== vm.data.language_setting.def ? `d-none` : ``}" style="top: -12px;right: -10px; height:20px;font-size: 11px;background: #ff6c02;">預設</div>
|
package/lowcode/jspage/editor.js
CHANGED
package/lowcode/jspage/editor.ts
CHANGED
|
@@ -33,8 +33,8 @@ export class TermsRelated {
|
|
|
33
33
|
if (!lan_d) {
|
|
34
34
|
lan_d = (yield ApiUser.getPublicConfig(`terms-related-${page}-${window.store_info.language_setting.def}`, 'manager')).response.value.text;
|
|
35
35
|
}
|
|
36
|
-
return html
|
|
37
|
-
<div class="mb-5" style="min-height: calc(100vh - 200px);">
|
|
36
|
+
return html `
|
|
37
|
+
<div class="mb-5 mt-3" style="min-height: calc(100vh - 200px);">
|
|
38
38
|
${lan_d || ''}
|
|
39
39
|
</div>`;
|
|
40
40
|
}
|
|
@@ -33,8 +33,8 @@ export class TermsRelated {
|
|
|
33
33
|
if (!lan_d) {
|
|
34
34
|
lan_d = (await ApiUser.getPublicConfig(`terms-related-${page}-${(window as any).store_info.language_setting.def}`, 'manager')).response.value.text
|
|
35
35
|
}
|
|
36
|
-
return html
|
|
37
|
-
<div class="mb-5" style="min-height: calc(100vh - 200px);">
|
|
36
|
+
return html`
|
|
37
|
+
<div class="mb-5 mt-3" style="min-height: calc(100vh - 200px);">
|
|
38
38
|
${lan_d || ''}
|
|
39
39
|
</div>`
|
|
40
40
|
}
|