ts-glitter 21.5.9 → 21.6.2
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/lib/glitterBundle/html-component/editor.ts +5 -5
- package/lib/glitterBundle/html-component/widget.ts +1 -1
- package/lib/glitterBundle/plugins/add_item_dia.ts +3 -3
- package/lib/glitterBundle/plugins/dialog-style-editor.ts +4 -4
- package/lib/glitterBundle/plugins/editor-elem.ts +8 -8
- package/lib/glitterBundle/plugins/editor.ts +3 -3
- package/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/backend-manager/bg-customer-message.js +4 -4
- package/lowcode/backend-manager/bg-customer-message.ts +4 -4
- package/lowcode/backend-manager/bg-global-event.js +1 -1
- package/lowcode/backend-manager/bg-global-event.ts +1 -1
- package/lowcode/backend-manager/bg-guide.js +21 -21
- package/lowcode/backend-manager/bg-guide.ts +22 -22
- package/lowcode/backend-manager/bg-mobile-guide.js +4 -4
- package/lowcode/backend-manager/bg-mobile-guide.ts +4 -4
- package/lowcode/backend-manager/bg-seo.js +1 -1
- package/lowcode/backend-manager/bg-seo.ts +1 -1
- package/lowcode/backend-manager/bg-shopping.js +6 -6
- package/lowcode/backend-manager/bg-shopping.ts +6 -6
- package/lowcode/backend-manager/bg-wallet.js +3 -3
- package/lowcode/backend-manager/bg-wallet.ts +3 -3
- package/lowcode/backend-manager/bg-widget.js +6 -0
- package/lowcode/backend-manager/bg-widget.ts +7 -0
- package/lowcode/cms-plugin/POS-setting.js +1 -1
- package/lowcode/cms-plugin/POS-setting.ts +1 -1
- package/lowcode/cms-plugin/ai-generator/member-ai.js +2 -2
- package/lowcode/cms-plugin/ai-generator/member-ai.ts +2 -2
- package/lowcode/cms-plugin/ai-generator/product-ai.js +2 -2
- package/lowcode/cms-plugin/ai-generator/product-ai.ts +2 -2
- package/lowcode/cms-plugin/ai-message.js +2 -2
- package/lowcode/cms-plugin/ai-message.ts +2 -2
- package/lowcode/cms-plugin/ai-points-list.js +2 -2
- package/lowcode/cms-plugin/ai-points-list.ts +2 -2
- package/lowcode/cms-plugin/app-design.js +3 -3
- package/lowcode/cms-plugin/app-design.ts +3 -3
- package/lowcode/cms-plugin/app-release.js +2 -2
- package/lowcode/cms-plugin/app-release.ts +2 -2
- package/lowcode/cms-plugin/customer-message-user.js +5 -5
- package/lowcode/cms-plugin/customer-message-user.ts +5 -5
- package/lowcode/cms-plugin/data-analyze-module.js +3 -3
- package/lowcode/cms-plugin/data-analyze-module.ts +3 -3
- package/lowcode/cms-plugin/domain-setting.js +2 -2
- package/lowcode/cms-plugin/domain-setting.ts +2 -2
- package/lowcode/cms-plugin/live_capture.js +17 -17
- package/lowcode/cms-plugin/live_capture.ts +17 -17
- package/lowcode/cms-plugin/member-type-list.js +4 -4
- package/lowcode/cms-plugin/member-type-list.ts +4 -4
- package/lowcode/cms-plugin/module/form-module.js +1 -1
- package/lowcode/cms-plugin/module/form-module.ts +1 -1
- package/lowcode/cms-plugin/permission-setting.js +5 -5
- package/lowcode/cms-plugin/permission-setting.ts +5 -5
- package/lowcode/cms-plugin/pos-basic-setting.js +1 -1
- package/lowcode/cms-plugin/pos-basic-setting.ts +2 -2
- package/lowcode/cms-plugin/pos-checkout-setting.js +3 -3
- package/lowcode/cms-plugin/pos-checkout-setting.ts +4 -4
- package/lowcode/cms-plugin/pos-pages/payment-page.js +449 -232
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +501 -278
- package/lowcode/cms-plugin/pos-pages/pos-function.js +3 -2
- package/lowcode/cms-plugin/pos-pages/pos-function.ts +4 -3
- package/lowcode/cms-plugin/pos-pages/pos-home-page.js +9 -9
- package/lowcode/cms-plugin/pos-pages/pos-home-page.ts +9 -9
- package/lowcode/cms-plugin/pos-pages/pos-summary.js +2 -2
- package/lowcode/cms-plugin/pos-pages/pos-summary.ts +2 -2
- package/lowcode/cms-plugin/pos-pages/products-page.js +6 -180
- package/lowcode/cms-plugin/pos-pages/products-page.ts +6 -185
- package/lowcode/cms-plugin/product-service.js +4 -4
- package/lowcode/cms-plugin/product-service.ts +4 -5
- package/lowcode/cms-plugin/reconciliation-area.js +24 -24
- package/lowcode/cms-plugin/reconciliation-area.ts +24 -24
- package/lowcode/cms-plugin/seo-blog.js +2 -2
- package/lowcode/cms-plugin/seo-blog.ts +2 -2
- package/lowcode/cms-plugin/seo-setting-v2.js +5 -5
- package/lowcode/cms-plugin/seo-setting-v2.ts +5 -5
- package/lowcode/cms-plugin/shopping-allowance-manager.js +4 -4
- package/lowcode/cms-plugin/shopping-allowance-manager.ts +4 -4
- package/lowcode/cms-plugin/shopping-collections.js +6 -6
- package/lowcode/cms-plugin/shopping-collections.ts +6 -6
- package/lowcode/cms-plugin/shopping-invoice-manager.js +11 -11
- package/lowcode/cms-plugin/shopping-invoice-manager.ts +11 -11
- package/lowcode/cms-plugin/shopping-order-manager.js +21 -13
- package/lowcode/cms-plugin/shopping-order-manager.ts +21 -13
- package/lowcode/cms-plugin/shopping-product-setting.js +1 -1
- package/lowcode/cms-plugin/shopping-product-setting.ts +1 -1
- package/lowcode/cms-plugin/shopping-product-text.js +5 -5
- package/lowcode/cms-plugin/shopping-product-text.ts +5 -5
- package/lowcode/cms-plugin/shopping-setting-basic.js +5 -6
- package/lowcode/cms-plugin/shopping-setting-basic.ts +5 -6
- package/lowcode/cms-plugin/shopping-shipment-setting.js +2 -2
- package/lowcode/cms-plugin/shopping-shipment-setting.ts +2 -2
- package/lowcode/cms-plugin/stock-history.js +7 -7
- package/lowcode/cms-plugin/stock-history.ts +7 -7
- package/lowcode/cms-plugin/stock-stores.js +2 -2
- package/lowcode/cms-plugin/stock-stores.ts +2 -2
- package/lowcode/cms-plugin/stock-vendors.js +2 -2
- package/lowcode/cms-plugin/stock-vendors.ts +2 -2
- package/lowcode/cms-plugin/third-party-google.js +1 -1
- package/lowcode/cms-plugin/third-party-google.ts +1 -1
- package/lowcode/cms-plugin/user-list.js +6 -2
- package/lowcode/cms-plugin/user-list.ts +7 -2
- package/lowcode/cms-plugin/user-login-setting.js +1 -1
- package/lowcode/cms-plugin/user-login-setting.ts +1 -1
- package/lowcode/cms-plugin/wallet-list.js +3 -3
- package/lowcode/cms-plugin/wallet-list.ts +3 -3
- package/lowcode/dialog/addTemplate.js +9 -9
- package/lowcode/dialog/addTemplate.ts +9 -9
- package/lowcode/dialog/dialog.js +1 -1
- package/lowcode/dialog/dialog.ts +1 -1
- package/lowcode/dialog/dialog_setting.js +1 -1
- package/lowcode/dialog/dialog_setting.ts +1 -1
- package/lowcode/dialog/image-preview.js +2 -2
- package/lowcode/dialog/image-preview.ts +2 -2
- package/lowcode/editor/add-component.js +4 -4
- package/lowcode/editor/add-component.ts +9 -9
- package/lowcode/editor/add-page.js +1 -1
- package/lowcode/editor/add-page.ts +1 -1
- package/lowcode/editor/page-code-setting.js +1 -1
- package/lowcode/editor/page-code-setting.ts +1 -1
- package/lowcode/editor/page-editor.js +15 -15
- package/lowcode/editor/page-editor.ts +15 -15
- package/lowcode/editor/page-setting-view.js +6 -6
- package/lowcode/editor/page-setting-view.ts +6 -6
- package/lowcode/editor/preview-app.js +1 -1
- package/lowcode/editor/preview-app.ts +1 -1
- package/lowcode/editor/search-idea.js +2 -2
- package/lowcode/editor/search-idea.ts +2 -2
- package/lowcode/editor/set-global-value.js +9 -9
- package/lowcode/editor/set-global-value.ts +9 -9
- package/lowcode/editor-bridge/trigger-event.js +1 -1
- package/lowcode/editor-bridge/trigger-event.ts +1 -1
- package/lowcode/editor-components/global-widget/global-widget.js +1 -1
- package/lowcode/editor-components/global-widget/global-widget.ts +1 -1
- package/lowcode/editor-config.js +1 -1
- package/lowcode/editor-config.ts +1 -1
- package/lowcode/form-view/e-commerce/path-select.js +1 -1
- package/lowcode/form-view/e-commerce/path-select.ts +1 -1
- package/lowcode/form-view/e-commerce/product-select.js +1 -1
- package/lowcode/form-view/e-commerce/product-select.ts +1 -1
- package/lowcode/form-view/editor/color-theme-selector.js +2 -2
- package/lowcode/form-view/editor/color-theme-selector.ts +2 -2
- package/lowcode/form-view/editor/image-selector.js +5 -5
- package/lowcode/form-view/editor/image-selector.ts +5 -5
- package/lowcode/glitterBundle/html-component/custom-style.js +6 -6
- package/lowcode/glitterBundle/html-component/custom-style.ts +6 -6
- package/lowcode/glitterBundle/html-component/global-widget.js +2 -2
- package/lowcode/glitterBundle/html-component/global-widget.ts +2 -2
- package/lowcode/glitterBundle/html-component/widget.js +1 -1
- package/lowcode/glitterBundle/html-component/widget.ts +1 -1
- package/lowcode/glitterBundle/module/html-generate.js +2 -2
- package/lowcode/glitterBundle/module/html-generate.ts +2 -2
- package/lowcode/glitterBundle/plugins/add_item_dia.js +7 -7
- package/lowcode/glitterBundle/plugins/add_item_dia.ts +7 -7
- package/lowcode/glitterBundle/plugins/editor.js +3 -3
- package/lowcode/glitterBundle/plugins/editor.ts +3 -3
- package/lowcode/glitterBundle/plugins/style-editor.js +5 -5
- package/lowcode/glitterBundle/plugins/style-editor.ts +5 -5
- package/lowcode/jspage/editor.js +3 -3
- package/lowcode/jspage/editor.ts +3 -3
- package/lowcode/jspage/function-page/main_editor.js +6 -6
- package/lowcode/jspage/function-page/main_editor.ts +6 -6
- package/lowcode/jspage/function-page/page_editor.js +4 -4
- package/lowcode/jspage/function-page/page_editor.ts +4 -4
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.js +3 -3
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.ts +3 -3
- package/lowcode/jspage/function-page/tool-setting.js +2 -2
- package/lowcode/jspage/function-page/tool-setting.ts +2 -2
- package/lowcode/landing-page/about-us.js +5 -5
- package/lowcode/landing-page/about-us.ts +5 -5
- package/lowcode/modules/file-system.js +2 -2
- package/lowcode/modules/file-system.ts +2 -2
- package/lowcode/modules/image-library-clone.js +4 -4
- package/lowcode/modules/image-library-clone.ts +4 -4
- package/lowcode/modules/image-library.js +2 -2
- package/lowcode/modules/image-library.ts +2 -2
- package/lowcode/official_view_component/official/component.js +1 -1
- package/lowcode/official_view_component/official/component.ts +1 -1
- package/lowcode/official_view_component/official/widget.js +1 -1
- package/lowcode/official_view_component/official/widget.ts +1 -1
- package/lowcode/public-components/banner/first-banner.js +1 -1
- package/lowcode/public-components/banner/first-banner.ts +1 -1
- package/lowcode/public-components/blogs/list.js +1 -1
- package/lowcode/public-components/blogs/list.ts +1 -1
- package/lowcode/public-components/headers/sy-02.js +4 -4
- package/lowcode/public-components/headers/sy-02.ts +4 -4
- package/lowcode/public-components/headers/sy-03.js +1 -1
- package/lowcode/public-components/headers/sy-03.ts +1 -1
- package/lowcode/public-components/headers/sy-04.js +2 -2
- package/lowcode/public-components/headers/sy-04.ts +2 -2
- package/lowcode/public-components/headers/sy-05.js +1 -1
- package/lowcode/public-components/headers/sy-05.ts +1 -1
- package/lowcode/public-components/user-manager/um-order.js +2 -2
- package/lowcode/public-components/user-manager/um-order.ts +2 -2
- package/lowcode/setting/appSetting.js +4 -4
- package/lowcode/setting/appSetting.ts +4 -4
- package/lowcode/setting/initialStyle.js +2 -2
- package/lowcode/setting/initialStyle.ts +2 -2
- package/lowcode/setting/pageManager.js +6 -6
- package/lowcode/setting/pageManager.ts +6 -6
- package/lowcode/view-model/saas-view-model.js +2 -2
- package/lowcode/view-model/saas-view-model.ts +2 -2
- package/package.json +1 -1
- package/src/services/system-schedule.js +1 -1
- package/src/services/system-schedule.js.map +1 -1
- package/src/services/system-schedule.ts +1 -1
|
@@ -36,7 +36,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
36
36
|
link.href = gBundle;
|
|
37
37
|
link.click();
|
|
38
38
|
})}">
|
|
39
|
-
<span class="tx_700"
|
|
39
|
+
<span class="tx_700" >下載圖片</span>
|
|
40
40
|
</div>
|
|
41
41
|
${grayButton('關閉', gvc.event(() => {
|
|
42
42
|
gvc.closeDialog();
|
|
@@ -53,7 +53,7 @@ function grayButton(text, event, obj) {
|
|
|
53
53
|
var _a;
|
|
54
54
|
const html = String.raw;
|
|
55
55
|
return html `
|
|
56
|
-
<button class="btn btn-gray"
|
|
56
|
+
<button class="btn btn-gray" type="button" onclick="${event}">
|
|
57
57
|
<i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}" style="color: #393939"></i>
|
|
58
58
|
${text.length > 0 ? html `<span class="tx_700" style="${(_a = obj === null || obj === void 0 ? void 0 : obj.textStyle) !== null && _a !== void 0 ? _a : ''}">${text}</span>` : ''}
|
|
59
59
|
</button>`;
|
|
@@ -50,7 +50,7 @@ gvc.addStyle(`.btn-gray {
|
|
|
50
50
|
link.href = gBundle;
|
|
51
51
|
link.click();
|
|
52
52
|
})}">
|
|
53
|
-
<span class="tx_700"
|
|
53
|
+
<span class="tx_700" >下載圖片</span>
|
|
54
54
|
</div>
|
|
55
55
|
${grayButton(
|
|
56
56
|
'關閉',
|
|
@@ -70,7 +70,7 @@ gvc.addStyle(`.btn-gray {
|
|
|
70
70
|
function grayButton(text: string, event: string, obj?: { icon?: string; textStyle?: string }) {
|
|
71
71
|
const html = String.raw
|
|
72
72
|
return html`
|
|
73
|
-
<button class="btn btn-gray"
|
|
73
|
+
<button class="btn btn-gray" type="button" onclick="${event}">
|
|
74
74
|
<i class="${obj && obj.icon && obj.icon.length > 0 ? obj.icon : 'd-none'}" style="color: #393939"></i>
|
|
75
75
|
${text.length > 0 ? html`<span class="tx_700" style="${obj?.textStyle ?? ''}">${text}</span>` : ''}
|
|
76
76
|
</button>`;
|
|
@@ -48,7 +48,7 @@ export class AddComponent {
|
|
|
48
48
|
}
|
|
49
49
|
return html `
|
|
50
50
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
51
|
-
<h5 class="offcanvas-title"
|
|
51
|
+
<h5 class="offcanvas-title" > 新增區塊</h5>
|
|
52
52
|
<div class="flex-fill"></div>
|
|
53
53
|
<div
|
|
54
54
|
class="fs-5 text-black"
|
|
@@ -57,7 +57,7 @@ export class AddComponent {
|
|
|
57
57
|
AddComponent.toggle(false);
|
|
58
58
|
})}"
|
|
59
59
|
>
|
|
60
|
-
<i class="fa-sharp fa-regular fa-circle-xmark"
|
|
60
|
+
<i class="fa-sharp fa-regular fa-circle-xmark" ></i>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
<div class="d-flex py-2 px-2 bg-white align-items-center w-100 justify-content-around border-bottom ${Storage.select_function === 'user-editor' ? `d-none` : ``}">
|
|
@@ -485,12 +485,12 @@ background-clip: text;
|
|
|
485
485
|
})}"
|
|
486
486
|
>
|
|
487
487
|
<i class="fa-regular fa-paste fs-6 d-flex align-items-center justify-content-center"
|
|
488
|
-
|
|
488
|
+
></i>
|
|
489
489
|
</div>
|
|
490
490
|
|
|
491
491
|
</div>
|
|
492
492
|
<div class="p-2 border-bottom f-flex ${['plus', 'basic', 'ai'].includes(vm.template_from) ? `d-none` : ``}"
|
|
493
|
-
|
|
493
|
+
>
|
|
494
494
|
<div class="input-group mb-2">
|
|
495
495
|
<input
|
|
496
496
|
class="form-control input-sm"
|
|
@@ -58,7 +58,7 @@ export class AddComponent {
|
|
|
58
58
|
}
|
|
59
59
|
return html`
|
|
60
60
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
61
|
-
<h5 class="offcanvas-title"
|
|
61
|
+
<h5 class="offcanvas-title" > 新增區塊</h5>
|
|
62
62
|
<div class="flex-fill"></div>
|
|
63
63
|
<div
|
|
64
64
|
class="fs-5 text-black"
|
|
@@ -67,7 +67,7 @@ export class AddComponent {
|
|
|
67
67
|
AddComponent.toggle(false);
|
|
68
68
|
})}"
|
|
69
69
|
>
|
|
70
|
-
<i class="fa-sharp fa-regular fa-circle-xmark"
|
|
70
|
+
<i class="fa-sharp fa-regular fa-circle-xmark" ></i>
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
<div class="d-flex py-2 px-2 bg-white align-items-center w-100 justify-content-around border-bottom ${Storage.select_function === 'user-editor' ? `d-none` : ``}">
|
|
@@ -525,12 +525,12 @@ background-clip: text;
|
|
|
525
525
|
})}"
|
|
526
526
|
>
|
|
527
527
|
<i class="fa-regular fa-paste fs-6 d-flex align-items-center justify-content-center"
|
|
528
|
-
|
|
528
|
+
></i>
|
|
529
529
|
</div>
|
|
530
530
|
|
|
531
531
|
</div>
|
|
532
532
|
<div class="p-2 border-bottom f-flex ${['plus', 'basic', 'ai'].includes(vm.template_from) ? `d-none` : ``}"
|
|
533
|
-
|
|
533
|
+
>
|
|
534
534
|
<div class="input-group mb-2">
|
|
535
535
|
<input
|
|
536
536
|
class="form-control input-sm"
|
|
@@ -6017,11 +6017,11 @@ ${[
|
|
|
6017
6017
|
// <div class="modal-content bg-white rounded-3 p-3 "
|
|
6018
6018
|
// style="max-width:90%;width:400px;;">
|
|
6019
6019
|
// <div class=" "
|
|
6020
|
-
//
|
|
6020
|
+
// >
|
|
6021
6021
|
// <div class="ps-1 pe-1 "
|
|
6022
|
-
//
|
|
6022
|
+
// >
|
|
6023
6023
|
// <div class="mb-3 "
|
|
6024
|
-
//
|
|
6024
|
+
// >
|
|
6025
6025
|
// <label class="form-label mb-3 "
|
|
6026
6026
|
// style="color: black;"
|
|
6027
6027
|
// for="username">${title}
|
|
@@ -6073,7 +6073,7 @@ ${[
|
|
|
6073
6073
|
// style="justify-content: end;"
|
|
6074
6074
|
// >
|
|
6075
6075
|
// <button class="btn btn-outline-dark me-2 "
|
|
6076
|
-
//
|
|
6076
|
+
//
|
|
6077
6077
|
// type="button"
|
|
6078
6078
|
// onclick="${gvc.event(() => {
|
|
6079
6079
|
// gvc.closeDialog()
|
|
@@ -6081,7 +6081,7 @@ ${[
|
|
|
6081
6081
|
// 取消
|
|
6082
6082
|
// </button>
|
|
6083
6083
|
// <button class="btn btn-primary-c "
|
|
6084
|
-
//
|
|
6084
|
+
//
|
|
6085
6085
|
// type="button"
|
|
6086
6086
|
// onclick="${gvc.event(() => {
|
|
6087
6087
|
// AddComponent.checkLoop(gvc, tdata).then(async (res) => {
|
|
@@ -27,7 +27,7 @@ export class AddPage {
|
|
|
27
27
|
return [
|
|
28
28
|
html `
|
|
29
29
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
30
|
-
<h5 class=" offcanvas-title "
|
|
30
|
+
<h5 class=" offcanvas-title " >
|
|
31
31
|
添加畫面</h5>
|
|
32
32
|
<div class="flex-fill"></div>
|
|
33
33
|
<div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
|
|
@@ -23,7 +23,7 @@ export class AddPage {
|
|
|
23
23
|
return [
|
|
24
24
|
html`
|
|
25
25
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
26
|
-
<h5 class=" offcanvas-title "
|
|
26
|
+
<h5 class=" offcanvas-title " >
|
|
27
27
|
添加畫面</h5>
|
|
28
28
|
<div class="flex-fill"></div>
|
|
29
29
|
<div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
|
|
@@ -288,7 +288,7 @@ export class PageCodeSetting {
|
|
|
288
288
|
return [
|
|
289
289
|
html `
|
|
290
290
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
291
|
-
<h5 class="offcanvas-title"
|
|
291
|
+
<h5 class="offcanvas-title" >頁面代碼</h5>
|
|
292
292
|
<div class="flex-fill"></div>
|
|
293
293
|
<div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
|
|
294
294
|
PageCodeSetting.toggle(false, gvc);
|
|
@@ -339,7 +339,7 @@ export class PageCodeSetting {
|
|
|
339
339
|
return [
|
|
340
340
|
html`
|
|
341
341
|
<div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
342
|
-
<h5 class="offcanvas-title"
|
|
342
|
+
<h5 class="offcanvas-title" >頁面代碼</h5>
|
|
343
343
|
<div class="flex-fill"></div>
|
|
344
344
|
<div class="fs-5 text-black" style="cursor: pointer;" onclick="${gvc.event(() => {
|
|
345
345
|
PageCodeSetting.toggle(false,gvc)
|
|
@@ -100,7 +100,7 @@ export class PageEditor {
|
|
|
100
100
|
<li class="btn-group d-flex flex-column"
|
|
101
101
|
style="margin-top:1px;margin-bottom:1px;">
|
|
102
102
|
<div class="editor_item d-flex px-2 my-0 hi me-n1 ${(viewModel.selectItem === dd) ? `selectLeftItem` : ``} ${(viewModel.selectItem === dd || selectChild || (option.selectEv && option.selectEv(dd))) ? `active` : ``}"
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
onclick="${gvc.event(() => {
|
|
105
105
|
if (dd.type === 'container' && option.justFolder) {
|
|
106
106
|
eval(toggle);
|
|
@@ -129,7 +129,7 @@ export class PageEditor {
|
|
|
129
129
|
<div class="flex-fill"></div>
|
|
130
130
|
${(dd.type === 'container') ? html `
|
|
131
131
|
<div class="btn-group me-0 subBt"
|
|
132
|
-
|
|
132
|
+
|
|
133
133
|
onclick="${gvc.event((e, event) => {
|
|
134
134
|
var _a;
|
|
135
135
|
dd.data.setting = (_a = dd.data.setting) !== null && _a !== void 0 ? _a : [];
|
|
@@ -529,7 +529,7 @@ export class PageEditor {
|
|
|
529
529
|
</div>
|
|
530
530
|
</div>
|
|
531
531
|
</div>`,
|
|
532
|
-
(viewModel.globalStyle.length === 0) ? ` <div class="alert-info alert p-2 m-2"
|
|
532
|
+
(viewModel.globalStyle.length === 0) ? ` <div class="alert-info alert p-2 m-2" >尚未設定全站樣式</div>` :
|
|
533
533
|
EditorElem.arrayItem({
|
|
534
534
|
gvc: gvc,
|
|
535
535
|
title: '',
|
|
@@ -1534,7 +1534,7 @@ export class PageEditor {
|
|
|
1534
1534
|
view: () => {
|
|
1535
1535
|
const editData = obj.viewModel.selectItem;
|
|
1536
1536
|
return html `
|
|
1537
|
-
<div class="mx-n2 mt-n2"
|
|
1537
|
+
<div class="mx-n2 mt-n2" >
|
|
1538
1538
|
<div class=" d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top py-2 bgf6"
|
|
1539
1539
|
style="color:#151515;font-size:16px;gap:0px;">
|
|
1540
1540
|
SEO設定
|
|
@@ -1920,12 +1920,12 @@ export class PageEditor {
|
|
|
1920
1920
|
editData = viewModel.selectItem;
|
|
1921
1921
|
}
|
|
1922
1922
|
return html `
|
|
1923
|
-
<div class="mx-n2 mt-n2"
|
|
1923
|
+
<div class="mx-n2 mt-n2" >
|
|
1924
1924
|
<div class="d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top bgf6"
|
|
1925
1925
|
style="color:#151515;font-size:16px;gap:0px;height:48px;">
|
|
1926
1926
|
${editData.name}
|
|
1927
1927
|
</div>
|
|
1928
|
-
<div class=" pt-0 justify-content-start px-2"
|
|
1928
|
+
<div class=" pt-0 justify-content-start px-2" >
|
|
1929
1929
|
${[EditorElem.select({
|
|
1930
1930
|
title: "設為首頁",
|
|
1931
1931
|
gvc: gvc,
|
|
@@ -1983,7 +1983,7 @@ export class PageEditor {
|
|
|
1983
1983
|
let deleteText = '';
|
|
1984
1984
|
return html `
|
|
1985
1985
|
<div class="w-100 d-flex align-items-center justify-content-center mt-3"
|
|
1986
|
-
|
|
1986
|
+
>
|
|
1987
1987
|
<h3 style="font-size: 16px;width: 100px;white-space: nowrap;color:red;"
|
|
1988
1988
|
class="m-0 me-2 mb-2">刪除頁面</h3>
|
|
1989
1989
|
${glitter.htmlGenerate.editeInput({
|
|
@@ -2012,7 +2012,7 @@ export class PageEditor {
|
|
|
2012
2012
|
</button>
|
|
2013
2013
|
</div>`;
|
|
2014
2014
|
})()].map((dd) => {
|
|
2015
|
-
return `<div
|
|
2015
|
+
return `<div >${dd}</div>`;
|
|
2016
2016
|
}).join(``)}
|
|
2017
2017
|
</div>
|
|
2018
2018
|
<div class="mt-2 d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top py-2 bgf6"
|
|
@@ -2153,7 +2153,7 @@ ${EditorElem.editeInput({
|
|
|
2153
2153
|
{
|
|
2154
2154
|
title: '步驟四:部署網域', content: `
|
|
2155
2155
|
DNS設定至少需要10分鐘到72小時才會生效,如設定失敗可以稍加等待後再重新嘗試。
|
|
2156
|
-
<button type="button" class="btn btn-primary-c w-100 mt-2"
|
|
2156
|
+
<button type="button" class="btn btn-primary-c w-100 mt-2"
|
|
2157
2157
|
onclick="${gvc.event(() => {
|
|
2158
2158
|
const dialog = new ShareDialog(glitter);
|
|
2159
2159
|
dialog.dataLoading({ text: '', visible: true });
|
|
@@ -2208,7 +2208,7 @@ PageEditor.openDialog = {
|
|
|
2208
2208
|
><i class="fa-sharp fa-regular fa-circle-xmark"></i>
|
|
2209
2209
|
</div>
|
|
2210
2210
|
</div>
|
|
2211
|
-
<div class="d-flex "
|
|
2211
|
+
<div class="d-flex " >
|
|
2212
2212
|
<div>
|
|
2213
2213
|
${gvc.bindView(() => {
|
|
2214
2214
|
return {
|
|
@@ -2313,7 +2313,7 @@ PageEditor.openDialog = {
|
|
|
2313
2313
|
select: "official"
|
|
2314
2314
|
};
|
|
2315
2315
|
return html `
|
|
2316
|
-
<div class="d-flex "
|
|
2316
|
+
<div class="d-flex " >
|
|
2317
2317
|
<div>
|
|
2318
2318
|
${gvc.bindView(() => {
|
|
2319
2319
|
return {
|
|
@@ -2412,7 +2412,7 @@ PageEditor.openDialog = {
|
|
|
2412
2412
|
title: title,
|
|
2413
2413
|
view: (() => {
|
|
2414
2414
|
const id = gvc.glitter.getUUID();
|
|
2415
|
-
return `<div class="d-flex"
|
|
2415
|
+
return `<div class="d-flex" >${[
|
|
2416
2416
|
gvc.bindView(() => {
|
|
2417
2417
|
return {
|
|
2418
2418
|
bind: gvc.glitter.getUUID(),
|
|
@@ -2465,7 +2465,7 @@ PageEditor.openDialog = {
|
|
|
2465
2465
|
><i class="fa-sharp fa-regular fa-circle-xmark"></i>
|
|
2466
2466
|
</div>
|
|
2467
2467
|
</div>
|
|
2468
|
-
<div class="d-flex "
|
|
2468
|
+
<div class="d-flex " >
|
|
2469
2469
|
<div>
|
|
2470
2470
|
${gvc.bindView(() => {
|
|
2471
2471
|
return {
|
|
@@ -2551,7 +2551,7 @@ function uploadImage(obj) {
|
|
|
2551
2551
|
obj.def = e.value;
|
|
2552
2552
|
obj.gvc.notifyDataChange(id);
|
|
2553
2553
|
})}">
|
|
2554
|
-
<div
|
|
2554
|
+
<div style="width: 1px;height: 25px;background-"></div>
|
|
2555
2555
|
<i class="fa-regular fa-upload text-dark ms-2" style="cursor: pointer;" onclick="${obj.gvc.event(() => {
|
|
2556
2556
|
glitter.ut.chooseMediaCallback({
|
|
2557
2557
|
single: true,
|
|
@@ -2607,7 +2607,7 @@ function questionText(title, data, show) {
|
|
|
2607
2607
|
<h3 class="accordion-header">
|
|
2608
2608
|
<button class="accordion-button shadow-none rounded-3 ${(index === 0 || show) ? '' : 'collapsed'}" type="button" data-bs-toggle="collapse" data-bs-target="#q-${index}" aria-expanded="false" aria-controls="q-1">${dd.title}</button>
|
|
2609
2609
|
</h3>
|
|
2610
|
-
<div class="accordion-collapse collapse ${(index === 0 || show) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq"
|
|
2610
|
+
<div class="accordion-collapse collapse ${(index === 0 || show) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" >
|
|
2611
2611
|
<div class="accordion-body fs-sm pt-0">
|
|
2612
2612
|
${dd.content}
|
|
2613
2613
|
</div>
|
|
@@ -43,7 +43,7 @@ export class PageEditor {
|
|
|
43
43
|
><i class="fa-sharp fa-regular fa-circle-xmark"></i>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="d-flex "
|
|
46
|
+
<div class="d-flex " >
|
|
47
47
|
<div>
|
|
48
48
|
${gvc.bindView(() => {
|
|
49
49
|
return {
|
|
@@ -169,7 +169,7 @@ export class PageEditor {
|
|
|
169
169
|
select: "official"
|
|
170
170
|
}
|
|
171
171
|
return html`
|
|
172
|
-
<div class="d-flex "
|
|
172
|
+
<div class="d-flex " >
|
|
173
173
|
<div>
|
|
174
174
|
${gvc.bindView(() => {
|
|
175
175
|
return {
|
|
@@ -281,7 +281,7 @@ export class PageEditor {
|
|
|
281
281
|
title:title,
|
|
282
282
|
view:(()=>{
|
|
283
283
|
const id = gvc.glitter.getUUID()
|
|
284
|
-
return `<div class="d-flex"
|
|
284
|
+
return `<div class="d-flex" >${
|
|
285
285
|
[
|
|
286
286
|
gvc.bindView(() => {
|
|
287
287
|
return {
|
|
@@ -340,7 +340,7 @@ export class PageEditor {
|
|
|
340
340
|
><i class="fa-sharp fa-regular fa-circle-xmark"></i>
|
|
341
341
|
</div>
|
|
342
342
|
</div>
|
|
343
|
-
<div class="d-flex "
|
|
343
|
+
<div class="d-flex " >
|
|
344
344
|
<div>
|
|
345
345
|
${gvc.bindView(() => {
|
|
346
346
|
return {
|
|
@@ -503,7 +503,7 @@ console.log(`selectEditEvent-->`)
|
|
|
503
503
|
<li class="btn-group d-flex flex-column"
|
|
504
504
|
style="margin-top:1px;margin-bottom:1px;">
|
|
505
505
|
<div class="editor_item d-flex px-2 my-0 hi me-n1 ${(viewModel.selectItem === dd) ? `selectLeftItem` : ``} ${(viewModel.selectItem === dd || selectChild || (option.selectEv && option.selectEv(dd))) ? `active` : ``}"
|
|
506
|
-
|
|
506
|
+
|
|
507
507
|
onclick="${gvc.event(() => {
|
|
508
508
|
if (dd.type === 'container' && option.justFolder) {
|
|
509
509
|
eval(toggle)
|
|
@@ -540,7 +540,7 @@ console.log(`selectEditEvent-->`)
|
|
|
540
540
|
<div class="flex-fill"></div>
|
|
541
541
|
${(dd.type === 'container') ? html`
|
|
542
542
|
<div class="btn-group me-0 subBt"
|
|
543
|
-
|
|
543
|
+
|
|
544
544
|
onclick="${gvc.event((e, event) => {
|
|
545
545
|
dd.data.setting = dd.data.setting ?? []
|
|
546
546
|
viewModel.selectContainer = dd.data.setting
|
|
@@ -983,7 +983,7 @@ console.log(`selectEditEvent-->`)
|
|
|
983
983
|
</div>
|
|
984
984
|
</div>
|
|
985
985
|
</div>`,
|
|
986
|
-
(viewModel.globalStyle.length === 0) ? ` <div class="alert-info alert p-2 m-2"
|
|
986
|
+
(viewModel.globalStyle.length === 0) ? ` <div class="alert-info alert p-2 m-2" >尚未設定全站樣式</div>` :
|
|
987
987
|
EditorElem.arrayItem({
|
|
988
988
|
gvc: gvc,
|
|
989
989
|
title: '',
|
|
@@ -2041,7 +2041,7 @@ console.log(`selectEditEvent-->`)
|
|
|
2041
2041
|
view: () => {
|
|
2042
2042
|
const editData = obj.viewModel.selectItem;
|
|
2043
2043
|
return html`
|
|
2044
|
-
<div class="mx-n2 mt-n2"
|
|
2044
|
+
<div class="mx-n2 mt-n2" >
|
|
2045
2045
|
<div class=" d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top py-2 bgf6"
|
|
2046
2046
|
style="color:#151515;font-size:16px;gap:0px;">
|
|
2047
2047
|
SEO設定
|
|
@@ -2442,12 +2442,12 @@ console.log(`selectEditEvent-->`)
|
|
|
2442
2442
|
editData = viewModel.selectItem
|
|
2443
2443
|
}
|
|
2444
2444
|
return html`
|
|
2445
|
-
<div class="mx-n2 mt-n2"
|
|
2445
|
+
<div class="mx-n2 mt-n2" >
|
|
2446
2446
|
<div class="d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top bgf6"
|
|
2447
2447
|
style="color:#151515;font-size:16px;gap:0px;height:48px;">
|
|
2448
2448
|
${editData.name}
|
|
2449
2449
|
</div>
|
|
2450
|
-
<div class=" pt-0 justify-content-start px-2"
|
|
2450
|
+
<div class=" pt-0 justify-content-start px-2" >
|
|
2451
2451
|
${[EditorElem.select({
|
|
2452
2452
|
title: "設為首頁",
|
|
2453
2453
|
gvc: gvc,
|
|
@@ -2505,7 +2505,7 @@ console.log(`selectEditEvent-->`)
|
|
|
2505
2505
|
let deleteText = ''
|
|
2506
2506
|
return html`
|
|
2507
2507
|
<div class="w-100 d-flex align-items-center justify-content-center mt-3"
|
|
2508
|
-
|
|
2508
|
+
>
|
|
2509
2509
|
<h3 style="font-size: 16px;width: 100px;white-space: nowrap;color:red;"
|
|
2510
2510
|
class="m-0 me-2 mb-2">刪除頁面</h3>
|
|
2511
2511
|
${glitter.htmlGenerate.editeInput({
|
|
@@ -2535,7 +2535,7 @@ console.log(`selectEditEvent-->`)
|
|
|
2535
2535
|
</div>`
|
|
2536
2536
|
})()
|
|
2537
2537
|
].map((dd) => {
|
|
2538
|
-
return `<div
|
|
2538
|
+
return `<div >${dd}</div>`
|
|
2539
2539
|
}).join(``)}
|
|
2540
2540
|
</div>
|
|
2541
2541
|
<div class="mt-2 d-flex px-2 hi fw-bold d-flex align-items-center border-bottom border-top py-2 bgf6"
|
|
@@ -2679,7 +2679,7 @@ ${EditorElem.editeInput({
|
|
|
2679
2679
|
{
|
|
2680
2680
|
title: '步驟四:部署網域', content: `
|
|
2681
2681
|
DNS設定至少需要10分鐘到72小時才會生效,如設定失敗可以稍加等待後再重新嘗試。
|
|
2682
|
-
<button type="button" class="btn btn-primary-c w-100 mt-2"
|
|
2682
|
+
<button type="button" class="btn btn-primary-c w-100 mt-2"
|
|
2683
2683
|
onclick="${gvc.event(() => {
|
|
2684
2684
|
const dialog = new ShareDialog(glitter);
|
|
2685
2685
|
dialog.dataLoading({text: '', visible: true});
|
|
@@ -2745,7 +2745,7 @@ function uploadImage(obj: {
|
|
|
2745
2745
|
obj.def = e.value
|
|
2746
2746
|
obj.gvc.notifyDataChange(id)
|
|
2747
2747
|
})}">
|
|
2748
|
-
<div
|
|
2748
|
+
<div style="width: 1px;height: 25px;background-"></div>
|
|
2749
2749
|
<i class="fa-regular fa-upload text-dark ms-2" style="cursor: pointer;" onclick="${obj.gvc.event(() => {
|
|
2750
2750
|
glitter.ut.chooseMediaCallback({
|
|
2751
2751
|
single: true,
|
|
@@ -2805,7 +2805,7 @@ function questionText(title: string, data: { title: string, content: string }[],
|
|
|
2805
2805
|
<h3 class="accordion-header">
|
|
2806
2806
|
<button class="accordion-button shadow-none rounded-3 ${(index === 0 || show) ? '' : 'collapsed'}" type="button" data-bs-toggle="collapse" data-bs-target="#q-${index}" aria-expanded="false" aria-controls="q-1">${dd.title}</button>
|
|
2807
2807
|
</h3>
|
|
2808
|
-
<div class="accordion-collapse collapse ${(index === 0 || show) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq"
|
|
2808
|
+
<div class="accordion-collapse collapse ${(index === 0 || show) ? 'show' : ''}" id="q-${index}" data-bs-parent="#faq" >
|
|
2809
2809
|
<div class="accordion-body fs-sm pt-0">
|
|
2810
2810
|
${dd.content}
|
|
2811
2811
|
</div>
|
|
@@ -42,7 +42,7 @@ export class PageSettingView {
|
|
|
42
42
|
view: () => {
|
|
43
43
|
return [
|
|
44
44
|
html ` <div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
45
|
-
<h5 class="offcanvas-title"
|
|
45
|
+
<h5 class="offcanvas-title" >頁面設定</h5>
|
|
46
46
|
<div class="flex-fill"></div>
|
|
47
47
|
<div
|
|
48
48
|
class="fs-5 text-black"
|
|
@@ -649,7 +649,7 @@ export class PageSettingView {
|
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
651
|
const html = String.raw;
|
|
652
|
-
return html ` <div class="position-relative"
|
|
652
|
+
return html ` <div class="position-relative" >
|
|
653
653
|
<div class="position-relative bgf6 d-flex align-items-center justify-content-between m-n2 p-2 border-bottom shadow">
|
|
654
654
|
<span class="fs-6 fw-bold " style="color:black;">基本設定</span>
|
|
655
655
|
<button
|
|
@@ -662,7 +662,7 @@ export class PageSettingView {
|
|
|
662
662
|
儲存
|
|
663
663
|
</button>
|
|
664
664
|
</div>
|
|
665
|
-
<div class="pt-3 justify-content-start px-2 "
|
|
665
|
+
<div class="pt-3 justify-content-start px-2 " >
|
|
666
666
|
${[
|
|
667
667
|
(() => {
|
|
668
668
|
var _a, _b, _c;
|
|
@@ -816,7 +816,7 @@ export class PageSettingView {
|
|
|
816
816
|
return {
|
|
817
817
|
bind: id,
|
|
818
818
|
view: () => {
|
|
819
|
-
return html `<lottie-player autoplay loop mode="normal" src="${new URL('../lottie/error.json', import.meta.url)}" style="width: 200px;"
|
|
819
|
+
return html `<lottie-player autoplay loop mode="normal" src="${new URL('../lottie/error.json', import.meta.url)}" style="width: 200px;" >
|
|
820
820
|
</lottie-player>
|
|
821
821
|
<div class="alert alert-danger w-100" style="word-break: break-all;white-space: normal;">
|
|
822
822
|
<strong>請注意</strong>,頁面刪除後即無法復原,請警慎進行操作。
|
|
@@ -947,7 +947,7 @@ export class PageSettingView {
|
|
|
947
947
|
bind: menuID,
|
|
948
948
|
view: () => {
|
|
949
949
|
return html `
|
|
950
|
-
<div
|
|
950
|
+
<div >${EditorElem.h3('選擇頁面')}</div>
|
|
951
951
|
<div class="d-flex align-items-center">
|
|
952
952
|
<div class="btn-group ms-0" style="max-width: 400px;min-width: 250px;">
|
|
953
953
|
<button
|
|
@@ -1206,7 +1206,7 @@ function uploadImage(obj) {
|
|
|
1206
1206
|
obj.gvc.notifyDataChange(id);
|
|
1207
1207
|
})}"
|
|
1208
1208
|
/>
|
|
1209
|
-
<div
|
|
1209
|
+
<div style="width: 1px;height: 25px;background-"></div>
|
|
1210
1210
|
<i
|
|
1211
1211
|
class="fa-regular fa-upload text-dark ms-2"
|
|
1212
1212
|
style="cursor: pointer;"
|
|
@@ -38,7 +38,7 @@ export class PageSettingView {
|
|
|
38
38
|
view: () => {
|
|
39
39
|
return [
|
|
40
40
|
html` <div class="w-100 d-flex align-items-center p-3 border-bottom">
|
|
41
|
-
<h5 class="offcanvas-title"
|
|
41
|
+
<h5 class="offcanvas-title" >頁面設定</h5>
|
|
42
42
|
<div class="flex-fill"></div>
|
|
43
43
|
<div
|
|
44
44
|
class="fs-5 text-black"
|
|
@@ -675,7 +675,7 @@ export class PageSettingView {
|
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
677
|
const html = String.raw;
|
|
678
|
-
return html` <div class="position-relative"
|
|
678
|
+
return html` <div class="position-relative" >
|
|
679
679
|
<div class="position-relative bgf6 d-flex align-items-center justify-content-between m-n2 p-2 border-bottom shadow">
|
|
680
680
|
<span class="fs-6 fw-bold " style="color:black;">基本設定</span>
|
|
681
681
|
<button
|
|
@@ -688,7 +688,7 @@ export class PageSettingView {
|
|
|
688
688
|
儲存
|
|
689
689
|
</button>
|
|
690
690
|
</div>
|
|
691
|
-
<div class="pt-3 justify-content-start px-2 "
|
|
691
|
+
<div class="pt-3 justify-content-start px-2 " >
|
|
692
692
|
${[
|
|
693
693
|
(() => {
|
|
694
694
|
let view: any = [
|
|
@@ -854,7 +854,7 @@ export class PageSettingView {
|
|
|
854
854
|
return {
|
|
855
855
|
bind: id,
|
|
856
856
|
view: () => {
|
|
857
|
-
return html`<lottie-player autoplay loop mode="normal" src="${new URL('../lottie/error.json', import.meta.url)}" style="width: 200px;"
|
|
857
|
+
return html`<lottie-player autoplay loop mode="normal" src="${new URL('../lottie/error.json', import.meta.url)}" style="width: 200px;" >
|
|
858
858
|
</lottie-player>
|
|
859
859
|
<div class="alert alert-danger w-100" style="word-break: break-all;white-space: normal;">
|
|
860
860
|
<strong>請注意</strong>,頁面刪除後即無法復原,請警慎進行操作。
|
|
@@ -1000,7 +1000,7 @@ export class PageSettingView {
|
|
|
1000
1000
|
bind: menuID,
|
|
1001
1001
|
view: () => {
|
|
1002
1002
|
return html`
|
|
1003
|
-
<div
|
|
1003
|
+
<div >${EditorElem.h3('選擇頁面')}</div>
|
|
1004
1004
|
<div class="d-flex align-items-center">
|
|
1005
1005
|
<div class="btn-group ms-0" style="max-width: 400px;min-width: 250px;">
|
|
1006
1006
|
<button
|
|
@@ -1260,7 +1260,7 @@ function uploadImage(obj: { title: string; gvc: any; def: string; callback: (dat
|
|
|
1260
1260
|
obj.gvc.notifyDataChange(id);
|
|
1261
1261
|
})}"
|
|
1262
1262
|
/>
|
|
1263
|
-
<div
|
|
1263
|
+
<div style="width: 1px;height: 25px;background-"></div>
|
|
1264
1264
|
<i
|
|
1265
1265
|
class="fa-regular fa-upload text-dark ms-2"
|
|
1266
1266
|
style="cursor: pointer;"
|
|
@@ -61,7 +61,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
61
61
|
</div>
|
|
62
62
|
<div class="m-0 m-sm-2 d-flex align-items-center justify-content-center" style="${document.body.clientWidth > 768 ? `height:calc(100vh - 70px);` : `height:calc(100vh - 55px);`}">
|
|
63
63
|
<iframe
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
src="${(() => {
|
|
66
66
|
const url = new URL(`${glitter.root_path}${gBundle.page}${location.search}`);
|
|
67
67
|
url.searchParams.set('appName', gBundle.appName);
|
|
@@ -61,7 +61,7 @@ init(import.meta.url, (gvc, glitter, gBundle) => {
|
|
|
61
61
|
</div>
|
|
62
62
|
<div class="m-0 m-sm-2 d-flex align-items-center justify-content-center" style="${document.body.clientWidth > 768 ? `height:calc(100vh - 70px);` : `height:calc(100vh - 55px);`}">
|
|
63
63
|
<iframe
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
src="${(() => {
|
|
66
66
|
const url = new URL(`${glitter.root_path}${gBundle.page}${location.search}`);
|
|
67
67
|
url.searchParams.set('appName', gBundle.appName);
|
|
@@ -96,7 +96,7 @@ ${gvc.bindView(() => {
|
|
|
96
96
|
};
|
|
97
97
|
})}
|
|
98
98
|
</div>
|
|
99
|
-
<div
|
|
99
|
+
<div style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
|
|
100
100
|
${(() => {
|
|
101
101
|
if (obg.type === 'idea') {
|
|
102
102
|
return `<div class="bgf6 p-3 w-100 border-bottom">${BgWidget.title('點擊喜愛的區塊進行複製', 'font-size:16px;')}</div>`;
|
|
@@ -127,7 +127,7 @@ ${gvc.bindView(() => {
|
|
|
127
127
|
</div>`;
|
|
128
128
|
}
|
|
129
129
|
return [
|
|
130
|
-
`<iframe
|
|
130
|
+
`<iframe style="height: calc(2.5 * (100vh - 125px)) !important;
|
|
131
131
|
width: calc(250%);
|
|
132
132
|
transform: scale(0.4) translateX(-75%) translateY(-75%);
|
|
133
133
|
position: absolute;
|
|
@@ -107,7 +107,7 @@ ${gvc.bindView(() => {
|
|
|
107
107
|
};
|
|
108
108
|
})}
|
|
109
109
|
</div>
|
|
110
|
-
<div
|
|
110
|
+
<div style="${document.body.clientWidth < 768 ? `width: calc(100%)` : `width: calc(100% - 200px)`};">
|
|
111
111
|
${(()=>{
|
|
112
112
|
if(obg.type==='idea'){
|
|
113
113
|
return `<div class="bgf6 p-3 w-100 border-bottom">${BgWidget.title('點擊喜愛的區塊進行複製', 'font-size:16px;')}</div>`
|
|
@@ -137,7 +137,7 @@ ${gvc.bindView(() => {
|
|
|
137
137
|
</div>`;
|
|
138
138
|
}
|
|
139
139
|
return [
|
|
140
|
-
`<iframe
|
|
140
|
+
`<iframe style="height: calc(2.5 * (100vh - 125px)) !important;
|
|
141
141
|
width: calc(250%);
|
|
142
142
|
transform: scale(0.4) translateX(-75%) translateY(-75%);
|
|
143
143
|
position: absolute;
|