ts-glitter 21.5.3 → 21.5.4
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/cms-plugin/account-info.js +79 -67
- package/lowcode/cms-plugin/account-info.ts +327 -311
- package/lowcode/cms-plugin/information/information-module.ts +3 -1
- package/lowcode/cms-plugin/list-header-option.js +1 -0
- package/lowcode/cms-plugin/list-header-option.ts +1 -0
- package/lowcode/cms-plugin/shopping-information.js +468 -0
- package/lowcode/cms-plugin/shopping-information.ts +557 -0
- package/lowcode/cms-plugin/shopping-market-shopee.js +283 -231
- package/lowcode/cms-plugin/shopping-market-shopee.ts +401 -361
- package/lowcode/cms-plugin/shopping-order-manager.js +16 -4
- package/lowcode/cms-plugin/shopping-order-manager.ts +18 -3
- package/lowcode/glitter-base/global/language.js +4 -1
- package/lowcode/glitter-base/global/language.ts +4 -2
- package/lowcode/glitter-base/route/shopee.js +48 -11
- package/lowcode/glitter-base/route/shopee.ts +119 -80
- package/lowcode/glitterBundle/plugins/html-render.js +121 -90
- package/lowcode/glitterBundle/plugins/html-render.ts +367 -318
- package/lowcode/modules/image-library.js +2 -3
- package/lowcode/modules/image-library.ts +21 -7
- package/lowcode/public-components/checkout/index.js +90 -41
- package/lowcode/public-components/checkout/index.ts +101 -49
- package/lowcode/public-components/footer/footer-initial.js +11 -2
- package/lowcode/public-components/footer/footer-initial.ts +29 -18
- package/lowcode/public-components/headers/header-class.js +47 -35
- package/lowcode/public-components/headers/header-class.ts +54 -38
- package/lowcode/public-components/layout-plugin/social-links-01.js +122 -3
- package/lowcode/public-components/layout-plugin/social-links-01.ts +135 -10
- package/lowcode/public-components/product/pd-card-01.js +23 -14
- package/lowcode/public-components/product/pd-card-01.ts +25 -14
- package/lowcode/public-components/product/pd-card-02.js +23 -16
- package/lowcode/public-components/product/pd-card-02.ts +25 -16
- package/lowcode/public-components/product/pd-card-03.js +25 -16
- package/lowcode/public-components/product/pd-card-03.ts +27 -16
- package/lowcode/public-components/terms-related/index.js +13 -2
- package/lowcode/public-components/terms-related/index.ts +15 -2
- package/lowcode/public-components/user-manager/um-class.js +490 -501
- package/lowcode/public-components/user-manager/um-class.ts +872 -882
- package/lowcode/public-components/user-manager/um-info.js +41 -40
- package/lowcode/public-components/user-manager/um-info.ts +54 -56
- package/lowcode/public-components/user-manager/um-login.js +10 -13
- package/lowcode/public-components/user-manager/um-login.ts +15 -23
- package/lowcode/public-components/user-manager/um-orderlist.js +60 -51
- package/lowcode/public-components/user-manager/um-orderlist.ts +289 -275
- package/lowcode/public-components/user-manager/um-rebate.js +104 -82
- package/lowcode/public-components/user-manager/um-rebate.ts +294 -267
- package/lowcode/public-components/user-manager/um-receive.js +582 -0
- package/lowcode/public-components/user-manager/um-receive.ts +599 -0
- package/lowcode/public-components/user-manager/um-wishlist.js +72 -68
- package/lowcode/public-components/user-manager/um-wishlist.ts +240 -230
- package/package.json +1 -1
- package/src/api-public/controllers/shopee.js +17 -0
- package/src/api-public/controllers/shopee.js.map +1 -1
- package/src/api-public/controllers/shopee.ts +32 -0
- package/src/api-public/services/monitor.d.ts +1 -0
- package/src/api-public/services/post.js +17 -7
- package/src/api-public/services/post.js.map +1 -1
- package/src/api-public/services/rebate.js +2 -11
- package/src/api-public/services/rebate.js.map +1 -1
- package/src/api-public/services/rebate.ts +5 -12
- package/src/api-public/services/shopee.d.ts +23 -2
- package/src/api-public/services/shopee.js +230 -111
- package/src/api-public/services/shopee.js.map +1 -1
- package/src/api-public/services/shopee.ts +1012 -838
- package/src/api-public/services/user.js +2 -2
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +3 -3
- package/src/index.js +17 -7
- package/src/index.js.map +1 -1
- package/src/modules/tool.d.ts +4 -4
- package/src/modules/tool.js +2 -1
- package/src/modules/tool.js.map +1 -1
- package/src/services/backend-service.js +17 -7
- package/src/services/backend-service.js.map +1 -1
- package/src/services/template.d.ts +1 -1
- package/src/services/template.js +24 -18
- package/src/services/template.js.map +1 -1
- package/src/services/template.ts +34 -37
package/lowcode/Entry.js
CHANGED
|
@@ -146,7 +146,7 @@ export class Entry {
|
|
|
146
146
|
}
|
|
147
147
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
148
148
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
149
|
-
glitter.share.editerVersion = 'V_21.5.
|
|
149
|
+
glitter.share.editerVersion = 'V_21.5.4';
|
|
150
150
|
glitter.share.start = new Date();
|
|
151
151
|
const vm = { appConfig: [] };
|
|
152
152
|
window.saasConfig = {
|
package/lowcode/Entry.ts
CHANGED
|
@@ -150,7 +150,7 @@ export class Entry {
|
|
|
150
150
|
}
|
|
151
151
|
(window as any).renderClock = (window as any).renderClock ?? createClock();
|
|
152
152
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
153
|
-
glitter.share.editerVersion = 'V_21.5.
|
|
153
|
+
glitter.share.editerVersion = 'V_21.5.4';
|
|
154
154
|
glitter.share.start = new Date();
|
|
155
155
|
const vm = { appConfig: [] };
|
|
156
156
|
(window as any).saasConfig = {
|
|
@@ -30,40 +30,40 @@ export class AccountInfo {
|
|
|
30
30
|
gvc.glitter.share.rebateConfig = yield UmClass.getRebateInfo();
|
|
31
31
|
}
|
|
32
32
|
return html ` <div
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
class="breadcrumb mb-0 d-flex align-items-center pt-4 pb-5 d-none d-lg-flex"
|
|
34
|
+
style="cursor:pointer; gap:10px;"
|
|
35
|
+
>
|
|
36
|
+
<li
|
|
37
|
+
class="breadcrumb-item "
|
|
38
|
+
style="margin-top: 0px;color:#292218;"
|
|
39
|
+
onclick="${gvc.event(() => {
|
|
40
40
|
gvc.glitter.href = '/index';
|
|
41
41
|
})}"
|
|
42
|
+
>
|
|
43
|
+
${Language.text('home_page')}
|
|
44
|
+
</li>
|
|
45
|
+
<i class="fa-solid fa-angle-right" aria-hidden="true"></i>
|
|
46
|
+
<li class="breadcrumb-item " style="margin-top: 0px;color:#292218;">
|
|
47
|
+
${Language.text('account_user_info')}
|
|
48
|
+
</li>
|
|
49
|
+
</div>
|
|
50
|
+
<div
|
|
51
|
+
class="d-flex flex-column-reverse flex-lg-row "
|
|
52
|
+
style="gap:${document.body.clientWidth > 800 ? 76 : 18}px;"
|
|
42
53
|
>
|
|
43
|
-
${
|
|
44
|
-
|
|
45
|
-
<i class="fa-solid fa-angle-right" aria-hidden="true"></i>
|
|
46
|
-
<li class="breadcrumb-item " style="margin-top: 0px;color:#292218;">
|
|
47
|
-
${Language.text('account_user_info')}
|
|
48
|
-
</li>
|
|
49
|
-
</div>
|
|
50
|
-
<div
|
|
51
|
-
class="d-flex flex-column-reverse flex-lg-row "
|
|
52
|
-
style="gap:${document.body.clientWidth > 800 ? 76 : 18}px;"
|
|
53
|
-
>
|
|
54
|
-
${(() => {
|
|
55
|
-
if (['account_edit', 'account_edit', 'order_list', 'voucher-list', 'rebate', 'wishlist'].includes(gvc.glitter.getUrlParameter('page')) &&
|
|
54
|
+
${(() => {
|
|
55
|
+
if (['account_edit', 'recipient_info', 'order_list', 'voucher-list', 'rebate', 'wishlist'].includes(gvc.glitter.getUrlParameter('page')) &&
|
|
56
56
|
document.body.clientWidth < 800) {
|
|
57
57
|
return ``;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
return html ` <div
|
|
61
|
-
|
|
61
|
+
class="d-flex flex-column align-items-start ${document.body.clientWidth > 800
|
|
62
62
|
? ``
|
|
63
63
|
: `border rounded-3 w-100 py-2 px-3`}"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
style="min-width:190px;width:190px;gap:4px;"
|
|
65
|
+
>
|
|
66
|
+
${[
|
|
67
67
|
{
|
|
68
68
|
title: Language.text('account_user_info'),
|
|
69
69
|
event: gvc.event(() => {
|
|
@@ -76,6 +76,12 @@ export class AccountInfo {
|
|
|
76
76
|
gvc.glitter.href = '/account_edit';
|
|
77
77
|
}),
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
title: Language.text('recipient_info'),
|
|
81
|
+
event: gvc.event(() => {
|
|
82
|
+
gvc.glitter.href = '/recipient_info';
|
|
83
|
+
}),
|
|
84
|
+
},
|
|
79
85
|
{
|
|
80
86
|
title: Language.text('order_history'),
|
|
81
87
|
event: gvc.event(() => {
|
|
@@ -121,33 +127,33 @@ export class AccountInfo {
|
|
|
121
127
|
return [
|
|
122
128
|
html ` <div class="tx_normal fw-normal mb-1">${Language.text('password')}</div>`,
|
|
123
129
|
html `<input
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
class="bgw-input"
|
|
131
|
+
type="password"
|
|
132
|
+
placeholder="${Language.text('please_enter_password')}"
|
|
133
|
+
oninput="${gvc.event(e => {
|
|
128
134
|
update_vm.pwd = e.value;
|
|
129
135
|
})}"
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
value="${update_vm.pwd}"
|
|
137
|
+
/>`,
|
|
132
138
|
html ` <div class="tx_normal fw-normal mt-2 mb-1">
|
|
133
|
-
|
|
134
|
-
|
|
139
|
+
${Language.text('confirm_password')}
|
|
140
|
+
</div>`,
|
|
135
141
|
html `<input
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
class="bgw-input mb-2"
|
|
143
|
+
type="password"
|
|
144
|
+
placeholder="${Language.text('please_enter_password_again')}"
|
|
145
|
+
oninput="${gvc.event(e => {
|
|
140
146
|
repeat_pwd = e.value;
|
|
141
147
|
})}"
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
value="${repeat_pwd}"
|
|
149
|
+
/>`,
|
|
144
150
|
gvc.bindView(() => {
|
|
145
151
|
const id = gvc.glitter.getUUID();
|
|
146
152
|
return {
|
|
147
153
|
bind: id,
|
|
148
154
|
view: () => {
|
|
149
155
|
return html `${Language.text('reset_password_verification_code')}
|
|
150
|
-
|
|
156
|
+
${UmClass.style_components.blueNote(get_verify_timer
|
|
151
157
|
? `${Language.text('verification_code_sent_to')}『${userData.userData.email}』`
|
|
152
158
|
: Language.text('get_verification_code'), gvc.event(() => {
|
|
153
159
|
if (!get_verify_timer) {
|
|
@@ -176,20 +182,22 @@ export class AccountInfo {
|
|
|
176
182
|
};
|
|
177
183
|
}),
|
|
178
184
|
html `<input
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
class="bgw-input mt-2 mb-4"
|
|
186
|
+
type="text"
|
|
187
|
+
placeholder="${Language.text('please_enter_verification_code')}"
|
|
188
|
+
oninput="${gvc.event((e, event) => {
|
|
183
189
|
update_vm.verify_code = e.value;
|
|
184
190
|
})}"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
html ` <div
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
value="${update_vm.verify_code}"
|
|
192
|
+
/>`,
|
|
193
|
+
html ` <div
|
|
194
|
+
class="d-flex align-items-center justify-content-end pt-2 border-top mx-n3"
|
|
195
|
+
>
|
|
196
|
+
<div
|
|
197
|
+
class="um-nav-btn um-nav-btn-active d-flex align-items-center justify-content-center"
|
|
198
|
+
style="cursor:pointer;"
|
|
199
|
+
type="button"
|
|
200
|
+
onclick="${gvc.event(() => {
|
|
193
201
|
if (update_vm.pwd.length < 8) {
|
|
194
202
|
dialog.errorMessage({ text: Language.text('password_min_length') });
|
|
195
203
|
return;
|
|
@@ -228,10 +236,10 @@ export class AccountInfo {
|
|
|
228
236
|
}
|
|
229
237
|
});
|
|
230
238
|
})}"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
>
|
|
240
|
+
<span class="tx_700_white">${Language.text('confirm_reset')}</span>
|
|
241
|
+
</div>
|
|
242
|
+
</div>`,
|
|
235
243
|
].join('');
|
|
236
244
|
},
|
|
237
245
|
});
|
|
@@ -268,19 +276,19 @@ export class AccountInfo {
|
|
|
268
276
|
},
|
|
269
277
|
]
|
|
270
278
|
.map(dd => {
|
|
271
|
-
return `<div
|
|
272
|
-
|
|
273
|
-
height: 30px;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
279
|
+
return html `<div
|
|
280
|
+
class="d-flex align-items-center w-100"
|
|
281
|
+
style="cursor:pointer; height: 30px; font-size: 16px; font-style: normal; font-weight: 400; color:${g_css.title};"
|
|
282
|
+
onclick="${dd.event}"
|
|
283
|
+
>
|
|
284
|
+
${dd.title}
|
|
285
|
+
</div>`;
|
|
278
286
|
})
|
|
279
287
|
.join(`${document.body.clientWidth > 800 ? `` : `<div class="w-100 border-top my-1"></div>`}`)}
|
|
280
|
-
|
|
288
|
+
</div>`;
|
|
281
289
|
}
|
|
282
290
|
})()}
|
|
283
|
-
|
|
291
|
+
${gvc.bindView(() => {
|
|
284
292
|
return {
|
|
285
293
|
bind: gvc.glitter.getUUID(),
|
|
286
294
|
view: () => {
|
|
@@ -296,6 +304,11 @@ color:${g_css.title};" onclick="${dd.event}">${dd.title}</div>`;
|
|
|
296
304
|
resolve(res.main(gvc, {}, {}));
|
|
297
305
|
});
|
|
298
306
|
break;
|
|
307
|
+
case 'recipient_info':
|
|
308
|
+
gvc.glitter.getModule(gvc.glitter.root_path + `public-components/user-manager/um-receive.js`, res => {
|
|
309
|
+
resolve(res.main(gvc, {}, {}));
|
|
310
|
+
});
|
|
311
|
+
break;
|
|
299
312
|
case 'account_edit':
|
|
300
313
|
gvc.glitter.getModule(gvc.glitter.root_path + `public-components/user-manager/um-info.js`, res => {
|
|
301
314
|
resolve(res.edit(gvc, {}, {}));
|
|
@@ -324,8 +337,7 @@ color:${g_css.title};" onclick="${dd.event}">${dd.title}</div>`;
|
|
|
324
337
|
},
|
|
325
338
|
};
|
|
326
339
|
})}
|
|
327
|
-
|
|
328
|
-
</div>`;
|
|
340
|
+
</div>`;
|
|
329
341
|
}),
|
|
330
342
|
divCreate: {
|
|
331
343
|
class: `mx-auto px-3 px-lg-0 pb-5`,
|
|
@@ -333,7 +345,7 @@ color:${g_css.title};" onclick="${dd.event}">${dd.title}</div>`;
|
|
|
333
345
|
},
|
|
334
346
|
};
|
|
335
347
|
}),
|
|
336
|
-
` <div style="height:${glitter.share.bottom_inset || 0}px;"></div
|
|
348
|
+
` <div style="height:${glitter.share.bottom_inset || 0}px;"></div>`,
|
|
337
349
|
];
|
|
338
350
|
}
|
|
339
351
|
}
|