ts-glitter 15.9.5 → 15.9.8
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/setting_editor.js +3 -0
- package/lowcode/jspage/function-page/setting_editor.ts +3 -0
- package/lowcode/jspage/main.js +3 -0
- package/lowcode/jspage/main.ts +4 -0
- package/lowcode/view-model/saas-view-model.js +9 -4
- package/lowcode/view-model/saas-view-model.ts +9 -4
- package/package.json +1 -1
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_15.9.
|
|
82
|
+
glitter.share.editerVersion = 'V_15.9.8';
|
|
83
83
|
glitter.share.start = new Date();
|
|
84
84
|
const vm = {
|
|
85
85
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -81,7 +81,7 @@ export class Entry {
|
|
|
81
81
|
|
|
82
82
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
83
83
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
84
|
-
glitter.share.editerVersion = 'V_15.9.
|
|
84
|
+
glitter.share.editerVersion = 'V_15.9.8';
|
|
85
85
|
glitter.share.start = new Date();
|
|
86
86
|
const vm: {
|
|
87
87
|
appConfig: any;
|
|
@@ -20,6 +20,9 @@ export class Setting_editor {
|
|
|
20
20
|
static left(gvc, viewModel, createID, gBundle) {
|
|
21
21
|
const html = String.raw;
|
|
22
22
|
const glitter = gvc.glitter;
|
|
23
|
+
if (!glitter.getUrlParameter('tab')) {
|
|
24
|
+
glitter.setUrlParameter('tab', 'home_page');
|
|
25
|
+
}
|
|
23
26
|
glitter.share.checkData = () => {
|
|
24
27
|
return true;
|
|
25
28
|
};
|
|
@@ -679,6 +679,9 @@ export class Setting_editor {
|
|
|
679
679
|
static left(gvc: GVC, viewModel: any, createID: string, gBundle: any) {
|
|
680
680
|
const html = String.raw;
|
|
681
681
|
const glitter = gvc.glitter;
|
|
682
|
+
if(!glitter.getUrlParameter('tab')){
|
|
683
|
+
glitter.setUrlParameter('tab','home_page')
|
|
684
|
+
}
|
|
682
685
|
glitter.share.checkData = () => {
|
|
683
686
|
return true
|
|
684
687
|
}
|
package/lowcode/jspage/main.js
CHANGED
|
@@ -198,6 +198,9 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
198
198
|
}
|
|
199
199
|
const waitGetData = [
|
|
200
200
|
() => __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
if ((EditorConfig.backend_page() === 'backend-manger') && !(gvc.glitter.getUrlParameter('tab'))) {
|
|
202
|
+
gvc.glitter.setUrlParameter('tab', 'home_page');
|
|
203
|
+
}
|
|
201
204
|
return yield new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
202
205
|
ApiPageConfig.getAppConfig().then((res) => {
|
|
203
206
|
viewModel.app_config_original = res.response.result[0];
|
package/lowcode/jspage/main.ts
CHANGED
|
@@ -223,6 +223,9 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
223
223
|
|
|
224
224
|
const waitGetData = [
|
|
225
225
|
async () => {
|
|
226
|
+
if((EditorConfig.backend_page() === 'backend-manger') && !(gvc.glitter.getUrlParameter('tab'))){
|
|
227
|
+
gvc.glitter.setUrlParameter('tab','home_page')
|
|
228
|
+
}
|
|
226
229
|
return await new Promise(async (resolve, reject) => {
|
|
227
230
|
ApiPageConfig.getAppConfig().then((res) => {
|
|
228
231
|
viewModel.app_config_original = res.response.result[0];
|
|
@@ -672,6 +675,7 @@ ${Storage.page_setting_item === `${da.index}` ? `background:${EditorConfig.edito
|
|
|
672
675
|
bind: 'MainEditorLeft',
|
|
673
676
|
view: () => {
|
|
674
677
|
const view = (() => {
|
|
678
|
+
|
|
675
679
|
switch (Storage.select_function) {
|
|
676
680
|
case 'backend-manger':
|
|
677
681
|
return Setting_editor.left(gvc, viewModel, editorContainerID, gBundle);
|
|
@@ -892,10 +892,10 @@ export class SaasViewModel {
|
|
|
892
892
|
`);
|
|
893
893
|
gvc.glitter.addStyleLink(gvc.glitter.root_path + `/css/editor.css`);
|
|
894
894
|
const hr = html `
|
|
895
|
-
<div style="width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh
|
|
896
|
-
class="bg-white shadow rounded-3">
|
|
895
|
+
<div style="${(document.body.clientWidth < 800) ? `width: 100%;` : `width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh;`}"
|
|
896
|
+
class="bg-white shadow ${(document.body.clientWidth > 800) ? `rounded-3` : ``}">
|
|
897
897
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
898
|
-
<div class="fw-500 color39">建立您的商店</div>
|
|
898
|
+
<div class="fw-500 color39" style="padding-top: ${gvc.glitter.share.top_inset}px;">建立您的商店</div>
|
|
899
899
|
<div class="flex-fill"></div>
|
|
900
900
|
<i
|
|
901
901
|
class="fa-regular fa-circle-xmark fs-5 color39 ${register ? `d-none` : ``}"
|
|
@@ -960,7 +960,7 @@ ${['選擇初始模板', BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
960
960
|
</div>`;
|
|
961
961
|
},
|
|
962
962
|
divCreate: {
|
|
963
|
-
style: `max-height:calc(
|
|
963
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - 115px);overflow-y:auto;`,
|
|
964
964
|
class: ``,
|
|
965
965
|
},
|
|
966
966
|
};
|
|
@@ -990,6 +990,11 @@ ${['選擇初始模板', BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
990
990
|
</div>
|
|
991
991
|
</div>`;
|
|
992
992
|
if (register) {
|
|
993
|
+
if (document.body.clientWidth < 800) {
|
|
994
|
+
return `<div class="position-fixed w-100 vh-100 bg-white" style="top:0px;left:0px;">
|
|
995
|
+
${hr}
|
|
996
|
+
</div>`;
|
|
997
|
+
}
|
|
993
998
|
return html `
|
|
994
999
|
<div
|
|
995
1000
|
class="position-fixed vw-100 vh-100 d-flex align-items-center justify-content-center bg-white"
|
|
@@ -931,10 +931,10 @@ export class SaasViewModel {
|
|
|
931
931
|
`);
|
|
932
932
|
gvc.glitter.addStyleLink(gvc.glitter.root_path + `/css/editor.css`);
|
|
933
933
|
const hr = html`
|
|
934
|
-
<div style="width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh
|
|
935
|
-
class="bg-white shadow rounded-3">
|
|
934
|
+
<div style="${(document.body.clientWidth<800) ? `width: 100%;`:`width: 600px;max-width: calc(100vw - 20px); overflow-y: auto;max-height: 100vh;`}"
|
|
935
|
+
class="bg-white shadow ${(document.body.clientWidth>800) ? `rounded-3`:``}">
|
|
936
936
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
937
|
-
<div class="fw-500 color39">建立您的商店</div>
|
|
937
|
+
<div class="fw-500 color39" style="padding-top: ${gvc.glitter.share.top_inset}px;">建立您的商店</div>
|
|
938
938
|
<div class="flex-fill"></div>
|
|
939
939
|
<i
|
|
940
940
|
class="fa-regular fa-circle-xmark fs-5 color39 ${register ? `d-none` : ``}"
|
|
@@ -1000,7 +1000,7 @@ ${['選擇初始模板',BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
1000
1000
|
</div>`;
|
|
1001
1001
|
},
|
|
1002
1002
|
divCreate: {
|
|
1003
|
-
style: `max-height:calc(
|
|
1003
|
+
style: `max-height:calc(${window.innerHeight - gvc.glitter.share.top_inset - gvc.glitter.share.bottom_inset}px - 115px);overflow-y:auto;`,
|
|
1004
1004
|
class: ``,
|
|
1005
1005
|
},
|
|
1006
1006
|
};
|
|
@@ -1030,6 +1030,11 @@ ${['選擇初始模板',BgWidget.grayNote('請選擇初始模板,後續可在
|
|
|
1030
1030
|
</div>
|
|
1031
1031
|
</div>`;
|
|
1032
1032
|
if (register) {
|
|
1033
|
+
if(document.body.clientWidth<800){
|
|
1034
|
+
return `<div class="position-fixed w-100 vh-100 bg-white" style="top:0px;left:0px;">
|
|
1035
|
+
${hr}
|
|
1036
|
+
</div>`
|
|
1037
|
+
}
|
|
1033
1038
|
return html`
|
|
1034
1039
|
<div
|
|
1035
1040
|
class="position-fixed vw-100 vh-100 d-flex align-items-center justify-content-center bg-white"
|