ts-glitter 20.6.8 → 20.7.0
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 +2 -2
- package/lowcode/Entry.ts +2 -2
- package/lowcode/backend-manager/bg-blog.js +617 -621
- package/lowcode/backend-manager/bg-blog.ts +2323 -2325
- package/lowcode/backend-manager/bg-line.js +5 -4
- package/lowcode/backend-manager/bg-line.ts +5 -4
- package/lowcode/backend-manager/bg-list-component.js +9 -0
- package/lowcode/backend-manager/bg-list-component.ts +15 -1
- package/lowcode/backend-manager/bg-notify.js +6 -4
- package/lowcode/backend-manager/bg-notify.ts +6 -4
- package/lowcode/backend-manager/bg-product.js +145 -0
- package/lowcode/backend-manager/bg-product.ts +153 -0
- package/lowcode/backend-manager/bg-sns.js +5 -3
- package/lowcode/backend-manager/bg-sns.ts +5 -3
- package/lowcode/backend-manager/bg-widget.js +92 -4
- package/lowcode/backend-manager/bg-widget.ts +122 -6
- package/lowcode/backend-manager/splitPage.js +0 -39
- package/lowcode/backend-manager/splitPage.ts +0 -40
- package/lowcode/cms-plugin/auto-fcm-advertise.js +17 -5
- package/lowcode/cms-plugin/auto-fcm-advertise.ts +19 -6
- package/lowcode/cms-plugin/auto-fcm-history.js +2732 -0
- package/lowcode/cms-plugin/auto-fcm-history.ts +2995 -0
- package/lowcode/cms-plugin/cms-router.js +5 -0
- package/lowcode/cms-plugin/cms-router.ts +6 -0
- package/lowcode/cms-plugin/filter-options.js +80 -27
- package/lowcode/cms-plugin/filter-options.ts +83 -27
- package/lowcode/cms-plugin/language-backend.js +50 -39
- package/lowcode/cms-plugin/language-backend.ts +109 -95
- package/lowcode/cms-plugin/menus-setting.js +175 -151
- package/lowcode/cms-plugin/menus-setting.ts +620 -591
- package/lowcode/cms-plugin/model/order.d.ts +1 -0
- package/lowcode/cms-plugin/module/data.js +7 -7
- package/lowcode/cms-plugin/module/data.ts +262 -233
- package/lowcode/cms-plugin/module/delivery-html.js +18 -10
- package/lowcode/cms-plugin/module/delivery-html.ts +26 -10
- package/lowcode/cms-plugin/module/order-setting.js +458 -328
- package/lowcode/cms-plugin/module/order-setting.ts +622 -351
- package/lowcode/cms-plugin/module/product-excel.js +1 -1
- package/lowcode/cms-plugin/module/product-excel.ts +2 -1
- package/lowcode/cms-plugin/order/order-module.js +90 -1
- package/lowcode/cms-plugin/order/order-module.ts +106 -1
- package/lowcode/cms-plugin/pos-pages/payment-page.js +11 -8
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +28 -15
- package/lowcode/cms-plugin/pos-pages/products-page.js +0 -39
- package/lowcode/cms-plugin/pos-pages/products-page.ts +0 -40
- package/lowcode/cms-plugin/shopping-collections.ts +1 -3
- package/lowcode/cms-plugin/shopping-finance-setting.js +19 -80
- package/lowcode/cms-plugin/shopping-finance-setting.ts +19 -87
- package/lowcode/cms-plugin/shopping-order-manager.js +122 -38
- package/lowcode/cms-plugin/shopping-order-manager.ts +160 -58
- package/lowcode/cms-plugin/shopping-product-setting.js +364 -376
- package/lowcode/cms-plugin/shopping-product-setting.ts +406 -415
- package/lowcode/cms-plugin/shopping-setting-advance.js +57 -16
- package/lowcode/cms-plugin/shopping-setting-advance.ts +69 -18
- package/lowcode/cms-plugin/stock-history.js +75 -63
- package/lowcode/cms-plugin/stock-history.ts +390 -376
- package/lowcode/cms-plugin/user/user-module.js +2 -43
- package/lowcode/cms-plugin/user/user-module.ts +2 -46
- package/lowcode/cms-plugin/user-list.js +4 -6
- package/lowcode/cms-plugin/user-list.ts +35 -38
- package/lowcode/css/editor.css +42 -3
- package/lowcode/glitter-base/global/language.js +6 -1
- package/lowcode/glitter-base/global/language.ts +10 -4
- package/lowcode/glitter-base/global/payment-config.js +19 -16
- package/lowcode/glitter-base/global/payment-config.ts +22 -16
- package/lowcode/glitter-base/global/shipment-config.js +6 -5
- package/lowcode/glitter-base/global/shipment-config.ts +12 -10
- package/lowcode/glitter-base/route/fcm.js +21 -1
- package/lowcode/glitter-base/route/fcm.ts +22 -2
- package/lowcode/glitter-base/route/shopping.js +8 -32
- package/lowcode/glitter-base/route/shopping.ts +10 -33
- package/lowcode/glitter-base/route/stock.ts +1 -0
- package/lowcode/glitter-base/route/user.js +11 -2
- package/lowcode/glitter-base/route/user.ts +23 -12
- package/lowcode/jspage/function-page/setting_editor.js +9 -0
- package/lowcode/jspage/function-page/setting_editor.ts +9 -0
- package/lowcode/public-components/blogs/list.js +223 -195
- package/lowcode/public-components/blogs/list.ts +383 -352
- package/lowcode/public-components/product/product-list.js +8 -4
- package/lowcode/public-components/product/product-list.ts +9 -4
- package/lowcode/public-components/terms-related/index.js +1 -1
- package/lowcode/public-components/terms-related/index.ts +1 -1
- package/lowcode/public-components/user-manager/um-login.js +1 -1
- package/lowcode/public-components/user-manager/um-login.ts +2 -2
- package/lowcode/public-components/user-manager/um-order.js +41 -5
- package/lowcode/public-components/user-manager/um-order.ts +58 -20
- package/lowcode/public-components/user-manager/um-voucher.ts +2 -2
- package/nhi4veq3gk.json +1 -0
- package/package.json +1 -1
- package/src/Language.d.ts +2 -0
- package/src/Language.js +66 -65
- package/src/Language.js.map +1 -1
- package/src/Language.ts +719 -715
- package/src/api-public/config/shipment-config.js +3 -2
- package/src/api-public/config/shipment-config.js.map +1 -1
- package/src/api-public/config/shipment-config.ts +3 -2
- package/src/api-public/controllers/ai-chat.js.map +1 -1
- package/src/api-public/controllers/ai-chat.ts +1 -2
- package/src/api-public/controllers/fcm.js +23 -58
- package/src/api-public/controllers/fcm.js.map +1 -1
- package/src/api-public/controllers/fcm.ts +28 -56
- package/src/api-public/controllers/shop.js +7 -1
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +17 -10
- package/src/api-public/controllers/user.js +1 -0
- package/src/api-public/controllers/user.js.map +1 -1
- package/src/api-public/controllers/user.ts +2 -0
- package/src/api-public/services/auto-send-email.js +247 -187
- package/src/api-public/services/auto-send-email.js.map +1 -1
- package/src/api-public/services/auto-send-email.ts +568 -505
- package/src/api-public/services/delivery.js +1 -1
- package/src/api-public/services/delivery.js.map +1 -1
- package/src/api-public/services/delivery.ts +6 -5
- package/src/api-public/services/financial-service.js +1 -2
- package/src/api-public/services/financial-service.js.map +1 -1
- package/src/api-public/services/financial-service.ts +4 -6
- package/src/api-public/services/manager.d.ts +4 -3
- package/src/api-public/services/manager.js +8 -12
- package/src/api-public/services/manager.js.map +1 -1
- package/src/api-public/services/manager.ts +57 -59
- package/src/api-public/services/model/handlePaymentTransaction.d.ts +1 -1
- package/src/api-public/services/model/handlePaymentTransaction.js +23 -3
- package/src/api-public/services/model/handlePaymentTransaction.js.map +1 -1
- package/src/api-public/services/model/handlePaymentTransaction.ts +25 -36
- package/src/api-public/services/schedule.d.ts +1 -0
- package/src/api-public/services/schedule.js +27 -0
- package/src/api-public/services/schedule.js.map +1 -1
- package/src/api-public/services/schedule.ts +30 -0
- package/src/api-public/services/shopping.d.ts +22 -2
- package/src/api-public/services/shopping.js +371 -95
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +499 -141
- package/src/api-public/services/stock.js +0 -3
- package/src/api-public/services/stock.js.map +1 -1
- package/src/api-public/services/stock.ts +3 -3
- package/src/api-public/services/user.d.ts +1 -0
- package/src/api-public/services/user.js +32 -12
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +38 -19
- package/src/api-public/services/workers.js +3 -3
- package/src/api-public/services/workers.js.map +1 -1
- package/src/api-public/services/workers.ts +103 -103
- package/src/app-project/ios/proshake/AppDelegate.swift +51 -7
- package/src/app-project/ios/proshake/Info.plist +11 -9
- package/src/app-project/ios/proshake/SceneDelegate.swift +18 -0
- package/src/app-project/ios/proshake/glitter-interface/BasicUtil.swift +43 -2
- package/src/app-project/ios/proshake/glitter-interface/Ecommerce.swift +56 -0
- package/src/app-project/ios/proshake.xcodeproj/project.xcworkspace/xcuserdata/jianzhi.wang.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/src/app-project/serverless/src/modules/database.js +1 -1
- package/src/app-project/serverless/src/modules/database.js.map +1 -1
- package/src/app-project/serverless/src/modules/database.ts +171 -171
- package/src/controllers/template.d.ts +1 -1
- package/src/controllers/template.js +16 -16
- package/src/controllers/template.js.map +1 -1
- package/src/controllers/template.ts +98 -84
- package/src/modules/database.js +3 -1
- package/src/modules/database.js.map +1 -1
- package/src/modules/database.ts +185 -181
- package/src/modules/firebase.d.ts +17 -0
- package/src/modules/firebase.js +126 -0
- package/src/modules/firebase.js.map +1 -1
- package/src/modules/firebase.ts +169 -0
- package/src/public-config-initial/auto-fcm.js +8 -2
- package/src/public-config-initial/auto-fcm.js.map +1 -1
- package/src/public-config-initial/auto-fcm.ts +15 -6
- package/src/services/app.d.ts +2 -1
- package/src/services/app.js.map +1 -1
- package/src/services/app.ts +2 -1
- package/src/services/ios-project.js +12 -6
- package/src/services/ios-project.js.map +1 -1
- package/src/services/ios-project.ts +12 -6
- package/src/services/template.d.ts +3 -2
- package/src/services/template.js +2 -1
- package/src/services/template.js.map +1 -1
- package/src/services/template.ts +13 -20
|
@@ -1,98 +1,112 @@
|
|
|
1
|
-
import {BgWidget} from
|
|
2
|
-
import {Language} from
|
|
3
|
-
import {GVC} from
|
|
1
|
+
import { BgWidget } from '../backend-manager/bg-widget.js';
|
|
2
|
+
import { Language, LanguageLocation } from '../glitter-base/global/language.js';
|
|
3
|
+
import { GVC } from '../glitterBundle/GVController.js';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
public static switchBtn(cf:{
|
|
7
|
-
gvc:GVC,
|
|
8
|
-
language:'en-US'|'zh-CN'|'zh-TW',
|
|
9
|
-
callback:(language:'en-US'|'zh-CN'|'zh-TW')=>void
|
|
10
|
-
}){
|
|
11
|
-
const gvc=cf.gvc
|
|
12
|
-
return BgWidget.grayButton(`<div class="d-flex align-items-center" style="gap:5px;">
|
|
13
|
-
<i class="fa-duotone fa-solid fa-earth-americas"></i>${Language.getLanguageText({
|
|
14
|
-
local: true,
|
|
15
|
-
compare: cf.language
|
|
16
|
-
})}
|
|
17
|
-
</div>`, gvc.event(() => {
|
|
18
|
-
BgWidget.settingDialog({
|
|
19
|
-
gvc: gvc,
|
|
20
|
-
innerHTML: (gvc: GVC) => {
|
|
21
|
-
return gvc.bindView(
|
|
22
|
-
(() => {
|
|
23
|
-
const id = gvc.glitter.getUUID();
|
|
24
|
-
const glitter = gvc.glitter
|
|
25
|
-
const html = String.raw
|
|
26
|
-
let img = '';
|
|
27
|
-
return {
|
|
28
|
-
bind: id,
|
|
29
|
-
view: () => {
|
|
30
|
-
return html`
|
|
31
|
-
<div style="position: relative;word-break: break-all;white-space: normal;">
|
|
32
|
-
${BgWidget.grayNote('前往商店設定->商店訊息中,設定支援的語言。')}
|
|
33
|
-
${gvc.bindView(() => {
|
|
34
|
-
const html = String.raw
|
|
35
|
-
return {
|
|
36
|
-
bind: glitter.getUUID(),
|
|
37
|
-
view: () => {
|
|
5
|
+
const html = String.raw;
|
|
38
6
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
7
|
+
export class LanguageBackend {
|
|
8
|
+
public static switchBtn(cf: {
|
|
9
|
+
gvc: GVC;
|
|
10
|
+
language: LanguageLocation;
|
|
11
|
+
callback: (language: LanguageLocation) => void;
|
|
12
|
+
}) {
|
|
13
|
+
const gvc = cf.gvc;
|
|
14
|
+
return BgWidget.grayButton(
|
|
15
|
+
html`<div class="d-flex align-items-center" style="gap:5px;">
|
|
16
|
+
<i class="fa-duotone fa-solid fa-earth-americas"></i>${Language.getLanguageText({
|
|
17
|
+
local: true,
|
|
18
|
+
compare: cf.language,
|
|
19
|
+
})}
|
|
20
|
+
</div>`,
|
|
21
|
+
gvc.event(() => {
|
|
22
|
+
BgWidget.settingDialog({
|
|
23
|
+
gvc: gvc,
|
|
24
|
+
innerHTML: (gvc: GVC) => {
|
|
25
|
+
return gvc.bindView(
|
|
26
|
+
(() => {
|
|
27
|
+
const id = gvc.glitter.getUUID();
|
|
28
|
+
const glitter = gvc.glitter;
|
|
29
|
+
const html = String.raw;
|
|
30
|
+
let img = '';
|
|
31
|
+
return {
|
|
32
|
+
bind: id,
|
|
33
|
+
view: () => {
|
|
34
|
+
return html` <div style="position: relative;word-break: break-all;white-space: normal;">
|
|
35
|
+
${BgWidget.grayNote('前往商店設定->商店訊息中,設定支援的語言。')}
|
|
36
|
+
${gvc.bindView(() => {
|
|
37
|
+
const html = String.raw;
|
|
38
|
+
return {
|
|
39
|
+
bind: glitter.getUUID(),
|
|
40
|
+
view: () => {
|
|
41
|
+
const sup = [
|
|
42
|
+
{
|
|
43
|
+
key: 'en-US',
|
|
44
|
+
value: '英文',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: 'zh-CN',
|
|
48
|
+
value: '簡體中文',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: 'zh-TW',
|
|
52
|
+
value: '繁體中文',
|
|
53
|
+
},
|
|
54
|
+
]
|
|
55
|
+
.filter(dd => {
|
|
56
|
+
return (window.parent as any).store_info.language_setting.support.includes(dd.key);
|
|
57
|
+
})
|
|
58
|
+
.sort((dd: any) => {
|
|
59
|
+
return dd.key === cf.language ? -1 : 1;
|
|
60
|
+
});
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
62
|
+
return html` <div
|
|
63
|
+
class="d-flex mt-3 flex-wrap align-items-center justify-content-center"
|
|
64
|
+
style="gap:15px;"
|
|
65
|
+
>
|
|
66
|
+
${sup
|
|
67
|
+
.map((dd: any) => {
|
|
68
|
+
return html`
|
|
69
|
+
<div
|
|
70
|
+
class="px-3 py-1 text-white position-relative d-flex align-items-center justify-content-center"
|
|
71
|
+
style="border-radius: 20px;background: #393939;cursor: pointer;width:100px;"
|
|
72
|
+
onclick="${gvc.event(() => {
|
|
73
|
+
cf.callback(dd.key);
|
|
74
|
+
gvc.closeDialog();
|
|
75
|
+
})}"
|
|
76
|
+
>
|
|
77
|
+
${dd.value}
|
|
78
|
+
<div
|
|
79
|
+
class="position-absolute text-white rounded-2 px-2 d-flex align-items-center rounded-3 ${dd.key !==
|
|
80
|
+
cf.language
|
|
81
|
+
? `d-none`
|
|
82
|
+
: ``}"
|
|
83
|
+
style="top: -12px;right: -10px; height:20px;font-size: 11px;background: #ff6c02;"
|
|
84
|
+
>
|
|
85
|
+
已選擇
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
`;
|
|
89
|
+
})
|
|
90
|
+
.join('')}
|
|
91
|
+
</div>`;
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
})}
|
|
95
|
+
</div>`;
|
|
96
|
+
},
|
|
97
|
+
divCreate: {},
|
|
98
|
+
onCreate: () => {},
|
|
99
|
+
};
|
|
100
|
+
})()
|
|
101
|
+
);
|
|
102
|
+
},
|
|
103
|
+
title: '切換語系',
|
|
104
|
+
footer_html: gvc => {
|
|
105
|
+
return ``;
|
|
106
|
+
},
|
|
107
|
+
width: 350,
|
|
108
|
+
});
|
|
109
|
+
})
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
}
|