ts-glitter 19.3.5 → 19.3.7
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 +13 -24
- package/lowcode/Entry.ts +703 -715
- package/lowcode/app-component/footer.js +34 -33
- package/lowcode/app-component/footer.ts +142 -138
- package/lowcode/cms-plugin/account-info.js +14 -0
- package/lowcode/cms-plugin/account-info.ts +14 -0
- package/lowcode/cms-plugin/app-release.js +29 -12
- package/lowcode/cms-plugin/app-release.ts +22 -14
- package/lowcode/glitter-base/global/global-user.js +1 -1
- package/lowcode/glitter-base/global/global-user.ts +1 -1
- package/lowcode/glitter-base/global/language.js +3 -0
- package/lowcode/glitter-base/global/language.ts +3 -0
- package/lowcode/glitter-base/route/user.js +1 -0
- package/lowcode/glitter-base/route/user.ts +1 -0
- package/lowcode/official_view_component/official/component.js +670 -498
- package/lowcode/official_view_component/official/component.ts +1777 -1401
- package/lowcode/public-components/headers/header-mobile.js +157 -17
- package/lowcode/public-components/headers/header-mobile.ts +175 -17
- package/lowcode/public-components/user-manager/um-info.js +2 -1
- package/lowcode/public-components/user-manager/um-info.ts +2 -1
- package/package.json +1 -1
- package/src/services/app.js +1 -1
- package/src/services/app.ts +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -17,6 +17,7 @@ import { ShareDialog } from './glitterBundle/dialog/ShareDialog.js';
|
|
|
17
17
|
import { Language } from './glitter-base/global/language.js';
|
|
18
18
|
import { PayConfig } from './cms-plugin/pos-pages/pay-config.js';
|
|
19
19
|
import { ApiCart } from './glitter-base/route/api-cart.js';
|
|
20
|
+
import { ApiUser } from './glitter-base/route/user.js';
|
|
20
21
|
export class Entry {
|
|
21
22
|
static onCreate(glitter) {
|
|
22
23
|
var _a, _b;
|
|
@@ -24,7 +25,7 @@ export class Entry {
|
|
|
24
25
|
glitter.share.is_application = true;
|
|
25
26
|
}
|
|
26
27
|
else {
|
|
27
|
-
glitter.runJsInterFace(
|
|
28
|
+
glitter.runJsInterFace('is_application', {}, res => {
|
|
28
29
|
glitter.share.is_application = res.is_application;
|
|
29
30
|
});
|
|
30
31
|
}
|
|
@@ -44,10 +45,10 @@ export class Entry {
|
|
|
44
45
|
}
|
|
45
46
|
localStorage.removeItem('clear_cart_items');
|
|
46
47
|
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
}
|
|
48
|
+
catch (e) { }
|
|
49
49
|
}
|
|
50
50
|
glitter.share.ApiCart = ApiCart;
|
|
51
|
+
glitter.share.ApiUser = ApiUser;
|
|
51
52
|
const clock = glitter.ut.clock();
|
|
52
53
|
const hashLoop = setInterval(() => {
|
|
53
54
|
try {
|
|
@@ -140,7 +141,7 @@ export class Entry {
|
|
|
140
141
|
}
|
|
141
142
|
window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
|
|
142
143
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
143
|
-
glitter.share.editerVersion = 'V_19.3.
|
|
144
|
+
glitter.share.editerVersion = 'V_19.3.7';
|
|
144
145
|
glitter.share.start = new Date();
|
|
145
146
|
const vm = { appConfig: [] };
|
|
146
147
|
window.saasConfig = {
|
|
@@ -239,8 +240,7 @@ export class Entry {
|
|
|
239
240
|
if (glitter.getUrlParameter('type') === 'editor') {
|
|
240
241
|
const dialog = new ShareDialog(glitter);
|
|
241
242
|
dialog.dataLoading({ visible: true, text: '後台載入中' });
|
|
242
|
-
Entry.toBackendEditor(glitter, () => {
|
|
243
|
-
});
|
|
243
|
+
Entry.toBackendEditor(glitter, () => { });
|
|
244
244
|
}
|
|
245
245
|
else if (glitter.getUrlParameter('type') === 'htmlEditor') {
|
|
246
246
|
Entry.toHtmlEditor(glitter, vm, () => Entry.checkIframe(glitter));
|
|
@@ -426,9 +426,7 @@ export class Entry {
|
|
|
426
426
|
{
|
|
427
427
|
src: 'https://kit.fontawesome.com/cccedec0f8.js',
|
|
428
428
|
},
|
|
429
|
-
], () => {
|
|
430
|
-
}, () => {
|
|
431
|
-
});
|
|
429
|
+
], () => { }, () => { });
|
|
432
430
|
glitter.addStyle(`
|
|
433
431
|
@media (prefers-reduced-motion: no-preference) {
|
|
434
432
|
:root {
|
|
@@ -460,9 +458,7 @@ export class Entry {
|
|
|
460
458
|
src: `${glitter.htmlGenerate.configureCDN(glitter.htmlGenerate.resourceHook(dd.js))}`,
|
|
461
459
|
type: 'module',
|
|
462
460
|
};
|
|
463
|
-
}), () => {
|
|
464
|
-
}, () => {
|
|
465
|
-
}, [{ key: 'async', value: 'true' }]);
|
|
461
|
+
}), () => { }, () => { }, [{ key: 'async', value: 'true' }]);
|
|
466
462
|
glitter.htmlGenerate.loadScript(glitter, window.parent.editerData.setting
|
|
467
463
|
.filter((dd) => {
|
|
468
464
|
return ['widget', 'container', 'code'].indexOf(dd.type) === -1;
|
|
@@ -500,9 +496,7 @@ export class Entry {
|
|
|
500
496
|
{
|
|
501
497
|
src: `${glitter.root_path}/jslib/lottie-player.js`,
|
|
502
498
|
},
|
|
503
|
-
], () => {
|
|
504
|
-
}, () => {
|
|
505
|
-
});
|
|
499
|
+
], () => { }, () => { });
|
|
506
500
|
if (glitter.getUrlParameter('token') && glitter.getUrlParameter('return_type') === 'resetPassword') {
|
|
507
501
|
GlobalUser.token = glitter.getUrlParameter('token');
|
|
508
502
|
glitter.setUrlParameter('token');
|
|
@@ -533,8 +527,7 @@ export class Entry {
|
|
|
533
527
|
.map((dd) => {
|
|
534
528
|
return {
|
|
535
529
|
src: `${glitter.htmlGenerate.configureCDN(glitter.htmlGenerate.resourceHook(dd.js))}`,
|
|
536
|
-
callback: () => {
|
|
537
|
-
},
|
|
530
|
+
callback: () => { },
|
|
538
531
|
};
|
|
539
532
|
}));
|
|
540
533
|
function authPass() {
|
|
@@ -591,7 +584,7 @@ export class Entry {
|
|
|
591
584
|
glitter.share.PayConfig = PayConfig;
|
|
592
585
|
glitter.runJsInterFace('pos-device', {}, res => {
|
|
593
586
|
console.log(`res.deviceType=>`, res.deviceType);
|
|
594
|
-
PayConfig.deviceType =
|
|
587
|
+
PayConfig.deviceType = ['SUNMI', 'neostra'].includes(res.deviceType) ? 'pos' : 'web';
|
|
595
588
|
PayConfig.posType = res.deviceType;
|
|
596
589
|
if (res.deviceType === 'neostra') {
|
|
597
590
|
const script = document.createElement('script');
|
|
@@ -606,9 +599,7 @@ export class Entry {
|
|
|
606
599
|
'https://oss-sg.imin.sg/web/iMinPartner/js/imin-printer.min.js',
|
|
607
600
|
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
608
601
|
glitter.root_path + 'jslib/qrcode-d.js',
|
|
609
|
-
], () => {
|
|
610
|
-
}, () => {
|
|
611
|
-
});
|
|
602
|
+
], () => { }, () => { });
|
|
612
603
|
setTimeout(() => {
|
|
613
604
|
window.IminPrintInstance = new IminPrinter();
|
|
614
605
|
window.IminPrintInstance.connect();
|
|
@@ -618,9 +609,7 @@ export class Entry {
|
|
|
618
609
|
glitter.addMtScript([
|
|
619
610
|
'https://cdn.jsdelivr.net/npm/jsbarcode@3.11.5/dist/JsBarcode.all.min.js',
|
|
620
611
|
glitter.root_path + 'jslib/qrcode-d.js',
|
|
621
|
-
], () => {
|
|
622
|
-
}, () => {
|
|
623
|
-
});
|
|
612
|
+
], () => { }, () => { });
|
|
624
613
|
}
|
|
625
614
|
});
|
|
626
615
|
glitter.runJsInterFace('getTopInset', {}, (response) => {
|