ts-glitter 21.9.6 → 21.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/backend-manager/bg-blog.js +2 -0
- package/lowcode/backend-manager/bg-blog.ts +4 -0
- package/lowcode/backend-manager/bg-product.js +3 -3
- package/lowcode/backend-manager/bg-product.ts +3 -3
- package/lowcode/backend-manager/bg-widget.js +15 -11
- package/lowcode/backend-manager/bg-widget.ts +30 -21
- package/lowcode/cms-plugin/menus-setting.js +389 -141
- package/lowcode/cms-plugin/menus-setting.ts +519 -228
- package/lowcode/cms-plugin/shopping-collections.js +5 -38
- package/lowcode/cms-plugin/shopping-collections.ts +5 -47
- package/lowcode/jspage/function-page/setting_editor.js +0 -27
- package/lowcode/jspage/function-page/setting_editor.ts +27 -27
- package/lowcode/public-components/footer/footer-01.js +183 -158
- package/lowcode/public-components/footer/footer-01.ts +275 -256
- package/lowcode/public-components/footer/footer-02.js +83 -63
- package/lowcode/public-components/footer/footer-02.ts +160 -145
- package/lowcode/public-components/footer/footer-03.js +78 -60
- package/lowcode/public-components/footer/footer-03.ts +149 -137
- package/lowcode/public-components/headers/sy-02.js +17 -2
- package/lowcode/public-components/headers/sy-02.ts +18 -6
- package/lowcode/public-components/headers/sy-03.js +18 -4
- package/lowcode/public-components/headers/sy-03.ts +26 -15
- package/lowcode/public-components/headers/sy-04.js +18 -4
- package/lowcode/public-components/headers/sy-04.ts +26 -15
- package/lowcode/public-components/headers/sy-05.js +93 -68
- package/lowcode/public-components/headers/sy-05.ts +174 -151
- package/lowcode/public-components/product/pd-class.js +27 -8
- package/lowcode/public-components/product/pd-class.ts +60 -35
- package/package.json +1 -1
- package/src/api-public/services/shopee.js +17 -7
- package/src/api-public/services/user.js +17 -7
- package/src/index.js +17 -7
- package/src/services/app.js +17 -7
- package/src/services/app.js.map +1 -1
- package/src/services/backend-service.js +17 -7
- package/src/services/backend-service.js.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BgWidget } from '../backend-manager/bg-widget.js';
|
|
2
|
+
import { BgProduct } from '../backend-manager/bg-product.js';
|
|
2
3
|
import { ApiShop } from '../glitter-base/route/shopping.js';
|
|
3
4
|
import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
|
|
4
5
|
import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
|
|
5
|
-
import { FilterOptions } from './filter-options.js';
|
|
6
6
|
import { CheckInput } from '../modules/checkInput.js';
|
|
7
7
|
import { Language } from '../glitter-base/global/language.js';
|
|
8
8
|
function getEmptyLanguageData() {
|
|
@@ -734,48 +734,15 @@ export class ShoppingCollections {
|
|
|
734
734
|
<div class="tx_normal">商品名稱</div>
|
|
735
735
|
</div>
|
|
736
736
|
${BgWidget.grayButton('選擇商品', gvc.event(() => {
|
|
737
|
-
|
|
737
|
+
BgProduct.productsDialog({
|
|
738
738
|
gvc: gvc,
|
|
739
|
-
|
|
740
|
-
tag: 'select_users',
|
|
741
|
-
updownOptions: FilterOptions.productOrderBy,
|
|
739
|
+
default: vm.data.product_id,
|
|
742
740
|
callback: value => {
|
|
743
741
|
pvm.dataList = value;
|
|
744
742
|
vm.data.product_id = value;
|
|
745
743
|
pvm.loading = true;
|
|
746
744
|
gvc.notifyDataChange(pvm.id);
|
|
747
745
|
},
|
|
748
|
-
default: vm.data.product_id.map(id => `${id}`),
|
|
749
|
-
api: (data) => {
|
|
750
|
-
return new Promise(resolve => {
|
|
751
|
-
ApiShop.getProduct({
|
|
752
|
-
page: 0,
|
|
753
|
-
limit: 99999,
|
|
754
|
-
productType: 'product',
|
|
755
|
-
filter_visible: 'true',
|
|
756
|
-
search: data.query,
|
|
757
|
-
orderBy: (() => {
|
|
758
|
-
switch (data.orderString) {
|
|
759
|
-
case 'max_price':
|
|
760
|
-
case 'min_price':
|
|
761
|
-
return data.orderString;
|
|
762
|
-
default:
|
|
763
|
-
return '';
|
|
764
|
-
}
|
|
765
|
-
})(),
|
|
766
|
-
}).then(data => {
|
|
767
|
-
resolve(data.response.data.map((product) => {
|
|
768
|
-
var _a;
|
|
769
|
-
return {
|
|
770
|
-
key: product.content.id + '',
|
|
771
|
-
value: product.content.title,
|
|
772
|
-
image: (_a = product.content.preview_image[0]) !== null && _a !== void 0 ? _a : BgWidget.noImageURL,
|
|
773
|
-
};
|
|
774
|
-
}));
|
|
775
|
-
});
|
|
776
|
-
});
|
|
777
|
-
},
|
|
778
|
-
style: 'width: 100%;',
|
|
779
746
|
});
|
|
780
747
|
}))}
|
|
781
748
|
</div>
|
|
@@ -853,7 +820,7 @@ export class ShoppingCollections {
|
|
|
853
820
|
},
|
|
854
821
|
})}`,
|
|
855
822
|
,
|
|
856
|
-
html ` <div class="tx_normal fw-normal"
|
|
823
|
+
html ` <div class="tx_normal fw-normal">SEO 描述</div>
|
|
857
824
|
${EditorElem.editeText({
|
|
858
825
|
gvc: gvc,
|
|
859
826
|
title: '',
|
|
@@ -864,7 +831,7 @@ export class ShoppingCollections {
|
|
|
864
831
|
},
|
|
865
832
|
})}`,
|
|
866
833
|
,
|
|
867
|
-
html ` <div class="tx_normal fw-normal"
|
|
834
|
+
html ` <div class="tx_normal fw-normal">SEO 圖片</div>
|
|
868
835
|
${EditorElem.uploadImageContainer({
|
|
869
836
|
gvc: gvc,
|
|
870
837
|
title: '',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GVC } from '../glitterBundle/GVController.js';
|
|
2
2
|
import { BgWidget } from '../backend-manager/bg-widget.js';
|
|
3
|
-
import { OptionsItem } from '../backend-manager/bg-product.js';
|
|
3
|
+
import { BgProduct, OptionsItem } from '../backend-manager/bg-product.js';
|
|
4
4
|
import { ApiShop } from '../glitter-base/route/shopping.js';
|
|
5
5
|
import { EditorElem } from '../glitterBundle/plugins/editor-elem.js';
|
|
6
6
|
import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
|
|
@@ -878,57 +878,15 @@ export class ShoppingCollections {
|
|
|
878
878
|
${BgWidget.grayButton(
|
|
879
879
|
'選擇商品',
|
|
880
880
|
gvc.event(() => {
|
|
881
|
-
|
|
881
|
+
BgProduct.productsDialog({
|
|
882
882
|
gvc: gvc,
|
|
883
|
-
|
|
884
|
-
tag: 'select_users',
|
|
885
|
-
updownOptions: FilterOptions.productOrderBy,
|
|
883
|
+
default: vm.data.product_id,
|
|
886
884
|
callback: value => {
|
|
887
885
|
pvm.dataList = value;
|
|
888
886
|
vm.data.product_id = value;
|
|
889
887
|
pvm.loading = true;
|
|
890
888
|
gvc.notifyDataChange(pvm.id);
|
|
891
889
|
},
|
|
892
|
-
default: vm.data.product_id.map(id => `${id}`),
|
|
893
|
-
api: (data: { query: string; orderString: string }) => {
|
|
894
|
-
return new Promise(resolve => {
|
|
895
|
-
ApiShop.getProduct({
|
|
896
|
-
page: 0,
|
|
897
|
-
limit: 99999,
|
|
898
|
-
productType: 'product',
|
|
899
|
-
filter_visible: 'true',
|
|
900
|
-
search: data.query,
|
|
901
|
-
orderBy: (() => {
|
|
902
|
-
switch (data.orderString) {
|
|
903
|
-
case 'max_price':
|
|
904
|
-
case 'min_price':
|
|
905
|
-
return data.orderString;
|
|
906
|
-
default:
|
|
907
|
-
return '';
|
|
908
|
-
}
|
|
909
|
-
})(),
|
|
910
|
-
}).then(data => {
|
|
911
|
-
resolve(
|
|
912
|
-
data.response.data.map(
|
|
913
|
-
(product: {
|
|
914
|
-
content: {
|
|
915
|
-
id: number;
|
|
916
|
-
title: string;
|
|
917
|
-
preview_image: string[];
|
|
918
|
-
};
|
|
919
|
-
}) => {
|
|
920
|
-
return {
|
|
921
|
-
key: product.content.id + '',
|
|
922
|
-
value: product.content.title,
|
|
923
|
-
image: product.content.preview_image[0] ?? BgWidget.noImageURL,
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
)
|
|
927
|
-
);
|
|
928
|
-
});
|
|
929
|
-
});
|
|
930
|
-
},
|
|
931
|
-
style: 'width: 100%;',
|
|
932
890
|
});
|
|
933
891
|
})
|
|
934
892
|
)}
|
|
@@ -1016,7 +974,7 @@ export class ShoppingCollections {
|
|
|
1016
974
|
},
|
|
1017
975
|
})}`,
|
|
1018
976
|
,
|
|
1019
|
-
html` <div class="tx_normal fw-normal"
|
|
977
|
+
html` <div class="tx_normal fw-normal">SEO 描述</div>
|
|
1020
978
|
${EditorElem.editeText({
|
|
1021
979
|
gvc: gvc,
|
|
1022
980
|
title: '',
|
|
@@ -1027,7 +985,7 @@ export class ShoppingCollections {
|
|
|
1027
985
|
},
|
|
1028
986
|
})}`,
|
|
1029
987
|
,
|
|
1030
|
-
html` <div class="tx_normal fw-normal"
|
|
988
|
+
html` <div class="tx_normal fw-normal">SEO 圖片</div>
|
|
1031
989
|
${EditorElem.uploadImageContainer({
|
|
1032
990
|
gvc: gvc,
|
|
1033
991
|
title: '',
|
|
@@ -1416,33 +1416,6 @@ Setting_editor.menuItems = () => {
|
|
|
1416
1416
|
groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
1417
1417
|
moduleName: '蝦皮',
|
|
1418
1418
|
},
|
|
1419
|
-
{
|
|
1420
|
-
icon: '',
|
|
1421
|
-
page: 'APP-Market-Landing',
|
|
1422
|
-
group: 'APP應用',
|
|
1423
|
-
title: 'APP Market',
|
|
1424
|
-
appName: 'cms_system',
|
|
1425
|
-
groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
1426
|
-
moduleName: 'APP Market',
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
icon: '',
|
|
1430
|
-
page: 'APP-Market-Install',
|
|
1431
|
-
group: 'APP應用',
|
|
1432
|
-
title: '已安裝App',
|
|
1433
|
-
appName: 'cms_system',
|
|
1434
|
-
groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
1435
|
-
moduleName: 'APP Market',
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
icon: '',
|
|
1439
|
-
page: 'APP-Market-Published',
|
|
1440
|
-
group: 'APP應用',
|
|
1441
|
-
title: '已發佈App',
|
|
1442
|
-
appName: 'cms_system',
|
|
1443
|
-
groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
1444
|
-
moduleName: 'APP Market',
|
|
1445
|
-
},
|
|
1446
1419
|
{
|
|
1447
1420
|
icon: '',
|
|
1448
1421
|
page: 'web_theme',
|
|
@@ -627,33 +627,33 @@ export class Setting_editor {
|
|
|
627
627
|
groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
628
628
|
moduleName: '蝦皮',
|
|
629
629
|
},
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
{
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
},
|
|
630
|
+
// {
|
|
631
|
+
// icon: '',
|
|
632
|
+
// page: 'APP-Market-Landing',
|
|
633
|
+
// group: 'APP應用',
|
|
634
|
+
// title: 'APP Market',
|
|
635
|
+
// appName: 'cms_system',
|
|
636
|
+
// groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
637
|
+
// moduleName: 'APP Market',
|
|
638
|
+
// },
|
|
639
|
+
// {
|
|
640
|
+
// icon: '',
|
|
641
|
+
// page: 'APP-Market-Install',
|
|
642
|
+
// group: 'APP應用',
|
|
643
|
+
// title: '已安裝App',
|
|
644
|
+
// appName: 'cms_system',
|
|
645
|
+
// groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
646
|
+
// moduleName: 'APP Market',
|
|
647
|
+
// },
|
|
648
|
+
// {
|
|
649
|
+
// icon: '',
|
|
650
|
+
// page: 'APP-Market-Published',
|
|
651
|
+
// group: 'APP應用',
|
|
652
|
+
// title: '已發佈App',
|
|
653
|
+
// appName: 'cms_system',
|
|
654
|
+
// groupIcon: 'https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/list-tree-regular.svg',
|
|
655
|
+
// moduleName: 'APP Market',
|
|
656
|
+
// },
|
|
657
657
|
{
|
|
658
658
|
icon: '',
|
|
659
659
|
page: 'web_theme',
|