ts-glitter 13.4.7 → 13.5.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 +1 -1
- package/lowcode/Entry.ts +1 -2
- package/lowcode/backend-manager/bg-blog.js +573 -590
- package/lowcode/backend-manager/bg-blog.ts +884 -915
- package/lowcode/backend-manager/bg-graph-api.js +3 -3
- package/lowcode/backend-manager/bg-graph-api.ts +3 -5
- package/lowcode/backend-manager/bg-guide.js +69 -24
- package/lowcode/backend-manager/bg-guide.ts +82 -27
- package/lowcode/backend-manager/bg-line.js +18 -18
- package/lowcode/backend-manager/bg-line.ts +18 -35
- package/lowcode/backend-manager/bg-notify.js +18 -18
- package/lowcode/backend-manager/bg-notify.ts +18 -34
- package/lowcode/backend-manager/bg-project.js +11 -11
- package/lowcode/backend-manager/bg-project.ts +11 -20
- package/lowcode/backend-manager/bg-recommend.js +656 -652
- package/lowcode/backend-manager/bg-recommend.ts +31 -40
- package/lowcode/backend-manager/bg-seo.js +25 -20
- package/lowcode/backend-manager/bg-seo.ts +121 -105
- package/lowcode/backend-manager/bg-shopping.js +14 -14
- package/lowcode/backend-manager/bg-shopping.ts +14 -25
- package/lowcode/backend-manager/bg-sns.js +18 -18
- package/lowcode/backend-manager/bg-sns.ts +18 -34
- package/lowcode/backend-manager/bg-wallet.js +5 -5
- package/lowcode/backend-manager/bg-wallet.ts +5 -7
- package/lowcode/backend-manager/bg-widget.js +25 -14
- package/lowcode/backend-manager/bg-widget.ts +43 -17
- package/lowcode/cms-plugin/ai-points-list.js +54 -57
- package/lowcode/cms-plugin/ai-points-list.ts +55 -63
- package/lowcode/cms-plugin/ai-points.js +2 -2
- package/lowcode/cms-plugin/ai-points.ts +2 -4
- package/lowcode/cms-plugin/app-release.js +45 -46
- package/lowcode/cms-plugin/app-release.ts +221 -209
- package/lowcode/cms-plugin/auto-reply.js +3 -3
- package/lowcode/cms-plugin/auto-reply.ts +3 -5
- package/lowcode/cms-plugin/form-setting.js +6 -6
- package/lowcode/cms-plugin/form-setting.ts +6 -10
- package/lowcode/cms-plugin/line-auto-reply.js +3 -3
- package/lowcode/cms-plugin/line-auto-reply.ts +3 -5
- package/lowcode/cms-plugin/member-group-list.js +2 -2
- package/lowcode/cms-plugin/member-group-list.ts +2 -3
- package/lowcode/cms-plugin/member-setting.js +75 -88
- package/lowcode/cms-plugin/member-setting.ts +143 -157
- package/lowcode/cms-plugin/member-type-list.js +243 -240
- package/lowcode/cms-plugin/member-type-list.ts +14 -19
- package/lowcode/cms-plugin/menus-setting.js +2 -2
- package/lowcode/cms-plugin/menus-setting.ts +2 -4
- package/lowcode/cms-plugin/permission-setting.js +17 -18
- package/lowcode/cms-plugin/permission-setting.ts +145 -147
- package/lowcode/cms-plugin/pos-checkout-setting.js +7 -10
- package/lowcode/cms-plugin/pos-checkout-setting.ts +174 -179
- package/lowcode/cms-plugin/shopping-collections.js +224 -218
- package/lowcode/cms-plugin/shopping-collections.ts +152 -153
- package/lowcode/cms-plugin/shopping-discount-setting.js +855 -852
- package/lowcode/cms-plugin/shopping-discount-setting.ts +14 -18
- package/lowcode/cms-plugin/shopping-finance-setting.js +259 -265
- package/lowcode/cms-plugin/shopping-finance-setting.ts +273 -284
- package/lowcode/cms-plugin/shopping-order-manager.js +520 -497
- package/lowcode/cms-plugin/shopping-order-manager.ts +347 -325
- package/lowcode/cms-plugin/shopping-order-return.js +10 -9
- package/lowcode/cms-plugin/shopping-order-return.ts +23 -27
- package/lowcode/cms-plugin/shopping-product-setting.js +1079 -1055
- package/lowcode/cms-plugin/shopping-product-setting.ts +348 -337
- package/lowcode/cms-plugin/shopping-product-stock.js +2 -2
- package/lowcode/cms-plugin/shopping-product-stock.ts +2 -3
- package/lowcode/cms-plugin/shopping-product-text.js +32 -36
- package/lowcode/cms-plugin/shopping-product-text.ts +78 -81
- package/lowcode/cms-plugin/shopping-rebate-setting.js +321 -316
- package/lowcode/cms-plugin/shopping-rebate-setting.ts +15 -17
- package/lowcode/cms-plugin/shopping-rebate.js +102 -59
- package/lowcode/cms-plugin/shopping-rebate.ts +110 -71
- package/lowcode/cms-plugin/shopping-shipment-setting.js +382 -426
- package/lowcode/cms-plugin/shopping-shipment-setting.ts +489 -531
- package/lowcode/cms-plugin/sms-points.js +2 -2
- package/lowcode/cms-plugin/sms-points.ts +2 -4
- package/lowcode/cms-plugin/sns-auto-reply.js +3 -3
- package/lowcode/cms-plugin/sns-auto-reply.ts +3 -5
- package/lowcode/cms-plugin/third-party-apple.js +22 -28
- package/lowcode/cms-plugin/third-party-apple.ts +189 -191
- package/lowcode/cms-plugin/third-party-facebook.js +31 -32
- package/lowcode/cms-plugin/third-party-facebook.ts +240 -234
- package/lowcode/cms-plugin/third-party-google.js +33 -29
- package/lowcode/cms-plugin/third-party-google.ts +216 -202
- package/lowcode/cms-plugin/third-party-line.js +19 -22
- package/lowcode/cms-plugin/third-party-line.ts +166 -162
- package/lowcode/cms-plugin/user-list.js +449 -441
- package/lowcode/cms-plugin/user-list.ts +63 -65
- package/lowcode/cms-plugin/user-login-setting.js +2 -2
- package/lowcode/cms-plugin/user-login-setting.ts +2 -5
- package/lowcode/cms-plugin/wallet-list.js +5 -5
- package/lowcode/cms-plugin/wallet-list.ts +5 -7
- package/lowcode/cms-plugin/web-config-setting.js +5 -5
- package/lowcode/cms-plugin/web-config-setting.ts +5 -8
- package/lowcode/cms-plugin/widget-manager.js +1 -1
- package/lowcode/cms-plugin/widget-manager.ts +1 -2
- package/lowcode/css/editor.css +12 -1
- package/lowcode/form-view/editor/array-items.js +1 -1
- package/lowcode/form-view/editor/array-items.ts +1 -1
- package/lowcode/form-view/editor/color-selector.ts +1 -1
- package/lowcode/glitter-base/route/shopping.js +17 -0
- package/lowcode/glitter-base/route/shopping.ts +17 -0
- package/lowcode/glitter-base/route/user.js +2 -2
- package/lowcode/glitter-base/route/user.ts +26 -27
- package/lowcode/glitterBundle/Glitter.js +10 -3
- package/lowcode/glitterBundle/Glitter.ts +10 -3
- package/lowcode/jspage/editor.js +16 -10
- package/lowcode/jspage/editor.ts +17 -11
- package/lowcode/jspage/function-page/server-editor/router/api-manager.js +4 -4
- package/lowcode/jspage/function-page/server-editor/router/api-manager.ts +4 -6
- package/lowcode/jspage/function-page/server-editor/router/database.js +8 -8
- package/lowcode/jspage/function-page/server-editor/router/database.ts +53 -48
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.js +2 -2
- package/lowcode/jspage/function-page/server-editor/router/domain-manager.ts +2 -3
- package/lowcode/jspage/function-page/server-editor/router/server-status.js +50 -38
- package/lowcode/jspage/function-page/server-editor/router/server-status.ts +93 -76
- package/lowcode/jspage/main.js +61 -29
- package/lowcode/jspage/main.ts +99 -56
- package/lowcode/official_view_component/official/form.js +110 -78
- package/lowcode/official_view_component/official/form.ts +238 -192
- package/lowcode/view-model/saas-view-model.js +454 -285
- package/lowcode/view-model/saas-view-model.ts +917 -722
- package/package.json +1 -1
- package/src/api-public/controllers/ai-points.js.map +1 -1
- package/src/api-public/controllers/article.js +3 -0
- package/src/api-public/controllers/article.js.map +1 -1
- package/src/api-public/controllers/article.ts +3 -0
- package/src/api-public/controllers/chat.js.map +1 -1
- package/src/api-public/controllers/delivery.js.map +1 -1
- package/src/api-public/controllers/fb-message.js.map +1 -1
- package/src/api-public/controllers/index.js.map +1 -1
- package/src/api-public/controllers/invoice.js.map +1 -1
- package/src/api-public/controllers/line-message.js.map +1 -1
- package/src/api-public/controllers/oauth.js.map +1 -1
- package/src/api-public/controllers/rebate.js.map +1 -1
- package/src/api-public/controllers/recommend.js.map +1 -1
- package/src/api-public/controllers/sms-points.js.map +1 -1
- package/src/api-public/controllers/wallet.js.map +1 -1
- package/src/api-public/services/EcInvoice.js.map +1 -1
- package/src/api-public/services/ai-pointes.js.map +1 -1
- package/src/api-public/services/article.js.map +1 -1
- package/src/api-public/services/auto-send-email.js.map +1 -1
- package/src/api-public/services/delivery.js.map +1 -1
- package/src/api-public/services/ezpay/tool.d.ts +0 -1
- package/src/api-public/services/ezpay/tool.js.map +1 -1
- package/src/api-public/services/fake-data-model/fake-product.js.map +1 -1
- package/src/api-public/services/fb-message.js.map +1 -5
- package/src/api-public/services/filter-protect-data.js.map +1 -1
- package/src/api-public/services/financial-service.js.map +1 -1
- package/src/api-public/services/graph-api.js.map +1 -1
- package/src/api-public/services/invoice.js.map +1 -1
- package/src/api-public/services/monitor.d.ts +0 -1
- package/src/api-public/services/monitor.js.map +1 -1
- package/src/api-public/services/public-table-check.js.map +1 -1
- package/src/api-public/services/rebate.js.map +1 -1
- package/src/api-public/services/recommend.js.map +1 -1
- package/src/api-public/services/share-permission.js.map +1 -1
- package/src/api-public/services/shopping.d.ts +1 -1
- package/src/api-public/services/shopping.js +44 -36
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +184 -183
- package/src/api-public/services/sms-pointes.js.map +1 -1
- package/src/api-public/services/sms.js.map +1 -1
- package/src/api-public/services/wallet.js.map +1 -1
- package/src/api-public/services/workers.d.ts +1 -1
- package/src/api-public/utils/ut-database.js.map +1 -1
- package/src/app-project/serverless/src/controllers/index.js.map +1 -1
- package/src/app-project/serverless/src/controllers/sample.js.map +1 -1
- package/src/app-project/serverless/src/modules/database.d.ts +1 -2
- package/src/app-project/serverless/src/modules/database.js.map +1 -1
- package/src/app-project/serverless/src/modules/exception.js.map +1 -1
- package/src/app-project/serverless/src/modules/hooks.js.map +1 -1
- package/src/app-project/serverless/src/modules/logger.js.map +1 -1
- package/src/app-project/serverless/src/modules/redis.d.ts +1 -1
- package/src/app-project/serverless/src/modules/redis.js.map +1 -1
- package/src/app-project/serverless/src/modules/response.js.map +1 -1
- package/src/app-project/serverless/src/modules/ssh.js.map +1 -1
- package/src/config.js.map +1 -5
- package/src/controllers/ai.js.map +1 -1
- package/src/controllers/global-event.js.map +1 -1
- package/src/controllers/page.js.map +1 -1
- package/src/controllers/private_config.js.map +1 -1
- package/src/export/export-test.js.map +1 -1
- package/src/firebase/message.js +1 -2
- package/src/firebase/message.js.map +1 -1
- package/src/helper/app_creater.js +1 -2
- package/src/helper/app_creater.js.map +1 -1
- package/src/helper/glitter-util.d.ts +0 -1
- package/src/helper/glitter-util.js.map +1 -1
- package/src/lambda/interface.d.ts +1 -1
- package/src/lambda/interface.js +2 -2
- package/src/lambda/interface.js.map +1 -1
- package/src/modules/exception.js.map +1 -1
- package/src/modules/hooks.js.map +1 -1
- package/src/modules/response.js.map +1 -1
- package/src/modules/ssh.js.map +1 -1
- package/src/services/ses.js +1 -2
- package/src/services/ses.js.map +1 -1
- package/src/services/system-schedule.js.map +1 -1
- package/g1b90plcfb.csv +0 -1289
|
@@ -1,194 +1,198 @@
|
|
|
1
|
-
import {GVC} from
|
|
2
|
-
import {TableSet} from
|
|
3
|
-
import {BgWidget} from
|
|
4
|
-
import {ApiUser} from
|
|
5
|
-
import {ShareDialog} from
|
|
1
|
+
import { GVC } from '../glitterBundle/GVController.js';
|
|
2
|
+
import { TableSet } from './table-set.js';
|
|
3
|
+
import { BgWidget } from '../backend-manager/bg-widget.js';
|
|
4
|
+
import { ApiUser } from '../glitter-base/route/user.js';
|
|
5
|
+
import { ShareDialog } from '../glitterBundle/dialog/ShareDialog.js';
|
|
6
6
|
|
|
7
7
|
export class ThirdPartyLine {
|
|
8
8
|
public static main(gvc: GVC) {
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
return (
|
|
10
|
+
BgWidget.container(
|
|
11
|
+
gvc.bindView(() => {
|
|
12
|
+
const id = gvc.glitter.getUUID();
|
|
13
|
+
const key = 'login_line_setting';
|
|
14
|
+
const vm: {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
data: {
|
|
17
|
+
login_toggle: boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
secret: string;
|
|
20
|
+
message_token: string;
|
|
21
|
+
};
|
|
22
|
+
} = {
|
|
23
|
+
loading: true,
|
|
24
|
+
data: {
|
|
25
|
+
login_toggle: false,
|
|
26
|
+
id: '',
|
|
27
|
+
secret: '',
|
|
28
|
+
message_token: '',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
ApiUser.getPublicConfig(key, 'manager').then((dd) => {
|
|
33
|
+
vm.loading = false;
|
|
34
|
+
dd.response.value && (vm.data = dd.response.value);
|
|
35
|
+
gvc.notifyDataChange(id);
|
|
36
|
+
});
|
|
35
37
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
return {
|
|
39
|
+
bind: id,
|
|
40
|
+
view: () => {
|
|
41
|
+
if (vm.loading) {
|
|
42
|
+
return BgWidget.spinner();
|
|
43
|
+
}
|
|
44
|
+
return [
|
|
45
|
+
BgWidget.title('LINE 串接設定'),
|
|
46
|
+
BgWidget.mbContainer(18),
|
|
47
|
+
`<div class="d-flex justify-content-center mx-sm-n3 ${document.body.clientWidth < 768 ? 'flex-column' : ''}"
|
|
46
48
|
style="gap: 24px">
|
|
47
49
|
${BgWidget.container(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
[
|
|
51
|
+
BgWidget.card(
|
|
52
|
+
[
|
|
53
|
+
`<div class="tx_700">串接綁定</div>`,
|
|
54
|
+
`<div class="d-flex align-items-center" style="gap:10px;">
|
|
52
55
|
啟用LINE登入${BgWidget.switchButton(gvc, vm.data.login_toggle, () => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
vm.data.login_toggle = !vm.data.login_toggle;
|
|
57
|
+
gvc.notifyDataChange(id);
|
|
58
|
+
})}</div>`,
|
|
59
|
+
BgWidget.editeInput({
|
|
60
|
+
gvc: gvc,
|
|
61
|
+
title: `<div class="d-flex align-items-center" style="gap:10px;">
|
|
59
62
|
通道ID${BgWidget.grayNote('(Channel ID)')}
|
|
60
63
|
</div>`,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
default: vm.data.id,
|
|
65
|
+
placeHolder: '請前往LINE開發者後台取得Channel ID',
|
|
66
|
+
callback: (text) => {
|
|
67
|
+
vm.data.id = text;
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
BgWidget.editeInput({
|
|
71
|
+
gvc: gvc,
|
|
72
|
+
title: `<div class="d-flex align-items-center" style="gap:10px;">
|
|
70
73
|
應用程式密鑰${BgWidget.grayNote('(Channel Secret)')}
|
|
71
74
|
</div>`,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
default: vm.data.secret,
|
|
76
|
+
placeHolder: '請前往LINE開發者後台取得Channel Secret',
|
|
77
|
+
callback: (text) => {
|
|
78
|
+
vm.data.secret = text;
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
BgWidget.editeInput({
|
|
82
|
+
gvc: gvc,
|
|
83
|
+
title: `<div class="d-flex align-items-center" style="gap:10px;">
|
|
81
84
|
訊息金鑰 ${BgWidget.grayNote('(Message API access token)')}
|
|
82
85
|
</div>`,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
default: vm.data.message_token,
|
|
87
|
+
placeHolder: '請前往LINE開發者後台取得Message Token',
|
|
88
|
+
callback: (text) => {
|
|
89
|
+
vm.data.message_token = text;
|
|
90
|
+
},
|
|
91
|
+
}),
|
|
92
|
+
`<div onclick="${gvc.event(() => {
|
|
93
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
94
|
+
navigator.clipboard.writeText(`https://` + (window.parent as any).glitter.share.editorViewModel.domain + '/login');
|
|
95
|
+
dialog.successMessage({ text: '已複製至剪貼簿' });
|
|
96
|
+
})}">
|
|
94
97
|
${BgWidget.editeInput({
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
readonly: true,
|
|
99
|
+
gvc: gvc,
|
|
100
|
+
title: `<div class="d-flex flex-column" style="gap:5px;">
|
|
98
101
|
Callback URL ${BgWidget.grayNote('點擊複製此連結至LINE開發者後台的『 Callback URL 』欄位')}
|
|
99
102
|
</div>`,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
})}
|
|
103
|
+
default: `https://` + (window.parent as any).glitter.share.editorViewModel.domain + '/login',
|
|
104
|
+
placeHolder: '',
|
|
105
|
+
callback: (text) => {},
|
|
106
|
+
})}
|
|
106
107
|
</div>`,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
`<div onclick="${gvc.event(() => {
|
|
109
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
110
|
+
navigator.clipboard.writeText(`https://` + (window.parent as any).glitter.share.editorViewModel.domain + '/login?line_liff=true');
|
|
111
|
+
dialog.successMessage({ text: '已複製至剪貼簿' });
|
|
112
|
+
})}">
|
|
112
113
|
${BgWidget.editeInput({
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
readonly: true,
|
|
115
|
+
gvc: gvc,
|
|
116
|
+
title: `<div class="d-flex flex-column" style="gap:5px;">
|
|
116
117
|
LINE LIFF ${BgWidget.grayNote('點擊複製此連結至LINE開發者後台的LIFF中的『 Endpoint URL 』欄位')}
|
|
117
118
|
</div>`,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
})}
|
|
119
|
+
default: `https://` + (window.parent as any).glitter.share.editorViewModel.domain + '/login?line_liff=true',
|
|
120
|
+
placeHolder: '',
|
|
121
|
+
callback: (text) => {},
|
|
122
|
+
})}
|
|
124
123
|
</div>`,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
`<div onclick="${gvc.event(() => {
|
|
125
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
126
|
+
navigator.clipboard.writeText(
|
|
127
|
+
`${(window.parent as any).config.url}/api-public/v1/line_message/listenMessage?g-app=${(window.parent as any).appName}`
|
|
128
|
+
);
|
|
129
|
+
dialog.successMessage({ text: '已複製至剪貼簿' });
|
|
130
|
+
})}">
|
|
130
131
|
${BgWidget.editeInput({
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
readonly: true,
|
|
133
|
+
gvc: gvc,
|
|
134
|
+
title: `<div class="d-flex flex-column" style="gap:5px;">
|
|
134
135
|
Webhook URL ${BgWidget.grayNote('點擊複製此連結至LINE開發者後台的Messaging API 中的『 Webhook URL 』欄位')}
|
|
135
136
|
</div>`,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
undefined,
|
|
146
|
-
'padding: 0 ; margin: 0 !important; width: 68.5%;'
|
|
147
|
-
)}
|
|
137
|
+
default: `${(window.parent as any).config.url}/api-public/v1/line_message/listenMessage?g-app=${(window.parent as any).appName}`,
|
|
138
|
+
placeHolder: '',
|
|
139
|
+
callback: (text) => {},
|
|
140
|
+
})}
|
|
141
|
+
</div>`,
|
|
142
|
+
].join(BgWidget.mbContainer(12))
|
|
143
|
+
),
|
|
144
|
+
].join(BgWidget.mbContainer(24))
|
|
145
|
+
)}
|
|
148
146
|
${BgWidget.container(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
147
|
+
// 摘要預覽
|
|
148
|
+
[
|
|
149
|
+
BgWidget.card(
|
|
150
|
+
[
|
|
151
|
+
`<div class="tx_700">操作說明</div>`,
|
|
152
|
+
`<div class="tx_normal">設定LINE串接,實現LINE登入、訊息發送與推播功能,透過LINE LIFF實現用戶QR掃碼,同時加入好友與註冊會員綁定</div>`,
|
|
153
|
+
`<div class="tx_normal">前往 ${BgWidget.blueNote(
|
|
154
|
+
`『 教學步驟 』`,
|
|
155
|
+
gvc.event(() => {
|
|
156
|
+
(window.parent as any).glitter.openNewTab('https://shopnex.cc/blogs/lineapiconnect');
|
|
157
|
+
})
|
|
158
|
+
)} 查看串接設定流程</div>`,
|
|
159
|
+
].join(BgWidget.mbContainer(12))
|
|
160
|
+
),
|
|
161
|
+
].join(BgWidget.mbContainer(24))
|
|
162
|
+
)}
|
|
162
163
|
<div class="update-bar-container">
|
|
163
|
-
${BgWidget.save(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
ApiUser.setPublicConfig({
|
|
175
|
-
key: key,
|
|
176
|
-
value: vm.data,
|
|
177
|
-
user_id: 'manager',
|
|
178
|
-
}).then(() => {
|
|
179
|
-
dialog.dataLoading({visible: false});
|
|
180
|
-
dialog.successMessage({text: '設定成功'});
|
|
181
|
-
gvc.closeDialog();
|
|
182
|
-
});
|
|
164
|
+
${BgWidget.save(
|
|
165
|
+
gvc.event(async () => {
|
|
166
|
+
const dialog = new ShareDialog(gvc.glitter);
|
|
167
|
+
dialog.dataLoading({ visible: true });
|
|
168
|
+
const cf = (await ApiUser.getPublicConfig('login_config', 'manager')).response.value || {};
|
|
169
|
+
cf.line = vm.data.login_toggle;
|
|
170
|
+
await ApiUser.setPublicConfig({
|
|
171
|
+
key: 'login_config',
|
|
172
|
+
value: cf,
|
|
173
|
+
user_id: 'manager',
|
|
174
|
+
});
|
|
183
175
|
|
|
184
|
-
|
|
176
|
+
ApiUser.setPublicConfig({
|
|
177
|
+
key: key,
|
|
178
|
+
value: vm.data,
|
|
179
|
+
user_id: 'manager',
|
|
180
|
+
}).then(() => {
|
|
181
|
+
dialog.dataLoading({ visible: false });
|
|
182
|
+
dialog.successMessage({ text: '設定成功' });
|
|
183
|
+
gvc.closeDialog();
|
|
184
|
+
});
|
|
185
|
+
})
|
|
186
|
+
)}
|
|
185
187
|
</div>
|
|
186
|
-
</div
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
</div>`,
|
|
189
|
+
].join('');
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
})
|
|
193
|
+
) + BgWidget.mbContainer(120)
|
|
194
|
+
);
|
|
191
195
|
}
|
|
192
196
|
}
|
|
193
197
|
|
|
194
|
-
(window as any).glitter.setModule(import.meta.url, ThirdPartyLine);
|
|
198
|
+
(window as any).glitter.setModule(import.meta.url, ThirdPartyLine);
|