underpost 2.8.845 → 2.8.847
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/README.md +13 -2
- package/bin/build.js +7 -1
- package/bin/deploy.js +7 -1
- package/cli.md +19 -3
- package/docker-compose.yml +1 -1
- package/manifests/deployment/dd-template-development/deployment.yaml +2 -2
- package/package.json +1 -1
- package/src/cli/cluster.js +6 -0
- package/src/cli/deploy.js +2 -1
- package/src/cli/index.js +8 -7
- package/src/cli/run.js +9 -1
- package/src/cli/ssh.js +32 -0
- package/src/client/Default.index.js +1 -1
- package/src/client/components/core/Chat.js +1 -1
- package/src/client/components/core/CommonJs.js +24 -22
- package/src/client/components/core/Content.js +1 -5
- package/src/client/components/core/Css.js +16 -2
- package/src/client/components/core/CssCore.js +7 -3
- package/src/client/components/core/DropDown.js +21 -12
- package/src/client/components/core/Modal.js +137 -15
- package/src/client/components/core/ObjectLayerEngine.js +638 -0
- package/src/client/components/core/Panel.js +156 -32
- package/src/client/components/core/Translate.js +4 -0
- package/src/client/components/default/MenuDefault.js +27 -1
- package/src/client/public/default/android-chrome-144x144.png +0 -0
- package/src/client/public/default/android-chrome-192x192.png +0 -0
- package/src/client/public/default/android-chrome-256x256.png +0 -0
- package/src/client/public/default/android-chrome-36x36.png +0 -0
- package/src/client/public/default/android-chrome-48x48.png +0 -0
- package/src/client/public/default/android-chrome-72x72.png +0 -0
- package/src/client/public/default/android-chrome-96x96.png +0 -0
- package/src/client/public/default/apple-touch-icon-114x114-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-114x114.png +0 -0
- package/src/client/public/default/apple-touch-icon-120x120-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-120x120.png +0 -0
- package/src/client/public/default/apple-touch-icon-144x144-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-144x144.png +0 -0
- package/src/client/public/default/apple-touch-icon-152x152-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-152x152.png +0 -0
- package/src/client/public/default/apple-touch-icon-180x180-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-180x180.png +0 -0
- package/src/client/public/default/apple-touch-icon-57x57-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-57x57.png +0 -0
- package/src/client/public/default/apple-touch-icon-60x60-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-60x60.png +0 -0
- package/src/client/public/default/apple-touch-icon-72x72-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-72x72.png +0 -0
- package/src/client/public/default/apple-touch-icon-76x76-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon-76x76.png +0 -0
- package/src/client/public/default/apple-touch-icon-precomposed.png +0 -0
- package/src/client/public/default/apple-touch-icon.png +0 -0
- package/src/client/public/default/assets/background/dark.jpg +0 -0
- package/src/client/public/default/assets/logo/base-icon.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-check.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-invalid-token.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-recover.png +0 -0
- package/src/client/public/default/favicon-16x16.png +0 -0
- package/src/client/public/default/favicon-32x32.png +0 -0
- package/src/client/public/default/favicon.ico +0 -0
- package/src/client/public/default/mstile-144x144.png +0 -0
- package/src/client/public/default/mstile-150x150.png +0 -0
- package/src/client/public/default/mstile-310x150.png +0 -0
- package/src/client/public/default/mstile-310x310.png +0 -0
- package/src/client/public/default/mstile-70x70.png +0 -0
- package/src/client/public/default/safari-pinned-tab.svg +24 -0
- package/src/client/ssr/body/DefaultSplashScreen.js +2 -2
- package/src/index.js +9 -1
- package/src/server/client-build.js +4 -18
- package/src/server/conf.js +12 -5
|
@@ -139,6 +139,71 @@ const Modal = {
|
|
|
139
139
|
case 'slide-menu-right':
|
|
140
140
|
case 'slide-menu-left':
|
|
141
141
|
(async () => {
|
|
142
|
+
if (!options.slideMenuTopBarBannerFix) {
|
|
143
|
+
options.slideMenuTopBarBannerFix = async () => {
|
|
144
|
+
let style = html``;
|
|
145
|
+
if (options.barMode === 'top-bottom-bar') {
|
|
146
|
+
style = html`<style>
|
|
147
|
+
.default-slide-menu-top-bar-fix-logo-container {
|
|
148
|
+
width: 50px;
|
|
149
|
+
height: 50px;
|
|
150
|
+
}
|
|
151
|
+
.default-slide-menu-top-bar-fix-logo {
|
|
152
|
+
width: 40px;
|
|
153
|
+
height: 40px;
|
|
154
|
+
padding: 5px;
|
|
155
|
+
}
|
|
156
|
+
.default-slide-menu-top-bar-fix-title-container-text {
|
|
157
|
+
font-size: 26px;
|
|
158
|
+
top: 8px;
|
|
159
|
+
color: ${darkTheme ? '#ffffff' : '#000000'};
|
|
160
|
+
}
|
|
161
|
+
</style>`;
|
|
162
|
+
} else {
|
|
163
|
+
style = html`<style>
|
|
164
|
+
.default-slide-menu-top-bar-fix-logo-container {
|
|
165
|
+
width: 100px;
|
|
166
|
+
height: 100px;
|
|
167
|
+
}
|
|
168
|
+
.default-slide-menu-top-bar-fix-logo {
|
|
169
|
+
width: 80px;
|
|
170
|
+
height: 80px;
|
|
171
|
+
padding: 10px;
|
|
172
|
+
}
|
|
173
|
+
.default-slide-menu-top-bar-fix-title-container-text {
|
|
174
|
+
font-size: 30px;
|
|
175
|
+
top: 30px;
|
|
176
|
+
color: ${darkTheme ? '#ffffff' : '#000000'};
|
|
177
|
+
}
|
|
178
|
+
</style>`;
|
|
179
|
+
}
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
if (s(`.top-bar-app-icon`) && s(`.top-bar-app-icon`).src) {
|
|
182
|
+
s(`.default-slide-menu-top-bar-fix-logo`).src = s(`.top-bar-app-icon`).src;
|
|
183
|
+
if (s(`.top-bar-app-icon`).classList.contains('negative-color'))
|
|
184
|
+
s(`.default-slide-menu-top-bar-fix-logo`).classList.add('negative-color');
|
|
185
|
+
htmls(
|
|
186
|
+
`.default-slide-menu-top-bar-fix-title-container`,
|
|
187
|
+
html`
|
|
188
|
+
<div class="inl default-slide-menu-top-bar-fix-title-container-text">
|
|
189
|
+
${options.RouterInstance.NameApp}
|
|
190
|
+
</div>
|
|
191
|
+
`,
|
|
192
|
+
);
|
|
193
|
+
} else
|
|
194
|
+
htmls(
|
|
195
|
+
`.default-slide-menu-top-bar-fix-logo-container`,
|
|
196
|
+
html`<div class="abs center">${s(`.action-btn-app-icon-render`).innerHTML}</div>`,
|
|
197
|
+
);
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
return html`${style}
|
|
201
|
+
<div class="in fll default-slide-menu-top-bar-fix-logo-container">
|
|
202
|
+
<img class="default-slide-menu-top-bar-fix-logo in fll" />
|
|
203
|
+
</div>
|
|
204
|
+
<div class="in fll default-slide-menu-top-bar-fix-title-container"></div>`;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
142
207
|
const { barConfig } = options;
|
|
143
208
|
options.style = {
|
|
144
209
|
position: 'absolute',
|
|
@@ -243,8 +308,17 @@ const Modal = {
|
|
|
243
308
|
style="top: ${options.heightTopBar + 50}px; z-index: 9; ${true ||
|
|
244
309
|
(options.mode && options.mode.match('right'))
|
|
245
310
|
? 'right'
|
|
246
|
-
: 'left'}: 50px; width: 50px; height:
|
|
311
|
+
: 'left'}: 50px; width: 50px; height: 150px; transition: .3s"
|
|
247
312
|
>
|
|
313
|
+
<div
|
|
314
|
+
class="abs main-body-btn main-body-btn-ui"
|
|
315
|
+
style="top: 0px; ${true || (options.mode && options.mode.match('right')) ? 'right' : 'left'}: 0px"
|
|
316
|
+
>
|
|
317
|
+
<div class="abs center">
|
|
318
|
+
<i class="fas fa-caret-down main-body-btn-ui-open hide"></i>
|
|
319
|
+
<i class="fas fa-caret-up main-body-btn-ui-close"></i>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
248
322
|
<div
|
|
249
323
|
class="abs main-body-btn main-body-btn-menu"
|
|
250
324
|
style="top: 50px; ${true || (options.mode && options.mode.match('right'))
|
|
@@ -257,15 +331,18 @@ const Modal = {
|
|
|
257
331
|
</div>
|
|
258
332
|
</div>
|
|
259
333
|
<div
|
|
260
|
-
class="abs main-body-btn main-body-btn-
|
|
261
|
-
|
|
334
|
+
class="abs main-body-btn main-body-btn-bar-custom ${options?.slideMenuTopBarBannerFix
|
|
335
|
+
? ''
|
|
336
|
+
: 'hide'}"
|
|
337
|
+
style="top: 100px; ${true || (options.mode && options.mode.match('right'))
|
|
338
|
+
? 'right'
|
|
339
|
+
: 'left'}: 0px"
|
|
262
340
|
>
|
|
263
341
|
<div class="abs center">
|
|
264
|
-
<i class="
|
|
265
|
-
<i class="
|
|
342
|
+
<i class="fa-solid fa-magnifying-glass main-body-btn-ui-bar-custom-open"></i>
|
|
343
|
+
<i class="fa-solid fa-home hide main-body-btn-ui-bar-custom-close"></i>
|
|
266
344
|
</div>
|
|
267
345
|
</div>
|
|
268
|
-
<div class="main-body-btn-container-custom"></div>
|
|
269
346
|
</div>
|
|
270
347
|
`,
|
|
271
348
|
);
|
|
@@ -274,6 +351,22 @@ const Modal = {
|
|
|
274
351
|
Modal.actionBtnCenter();
|
|
275
352
|
};
|
|
276
353
|
|
|
354
|
+
s(`.main-body-btn-bar-custom`).onclick = () => {
|
|
355
|
+
if (s(`.main-body-btn-ui-close`).classList.contains('hide')) {
|
|
356
|
+
s(`.main-body-btn-ui`).click();
|
|
357
|
+
}
|
|
358
|
+
if (s(`.main-body-btn-ui-bar-custom-open`).classList.contains('hide')) {
|
|
359
|
+
s(`.main-body-btn-ui-bar-custom-open`).classList.remove('hide');
|
|
360
|
+
s(`.main-body-btn-ui-bar-custom-close`).classList.add('hide');
|
|
361
|
+
s(`.slide-menu-top-bar-fix`).style.top = '0px';
|
|
362
|
+
} else {
|
|
363
|
+
s(`.main-body-btn-ui-bar-custom-open`).classList.add('hide');
|
|
364
|
+
s(`.main-body-btn-ui-bar-custom-close`).classList.remove('hide');
|
|
365
|
+
s(`.slide-menu-top-bar-fix`).style.top = '-100px';
|
|
366
|
+
s(`.top-bar-search-box-container`).click();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
277
370
|
let _heightTopBar, _heightBottomBar, _topMenu;
|
|
278
371
|
s(`.main-body-btn-ui`).onclick = () => {
|
|
279
372
|
if (s(`.main-body-btn-ui-open`).classList.contains('hide')) {
|
|
@@ -319,6 +412,7 @@ const Modal = {
|
|
|
319
412
|
);
|
|
320
413
|
}
|
|
321
414
|
};
|
|
415
|
+
Modal.setTopBannerLink();
|
|
322
416
|
});
|
|
323
417
|
|
|
324
418
|
const inputSearchBoxId = `top-bar-search-box`;
|
|
@@ -403,9 +497,12 @@ const Modal = {
|
|
|
403
497
|
})}
|
|
404
498
|
</div>
|
|
405
499
|
</div>
|
|
406
|
-
${options?.
|
|
407
|
-
? html`<div
|
|
408
|
-
|
|
500
|
+
${options?.slideMenuTopBarBannerFix
|
|
501
|
+
? html`<div
|
|
502
|
+
class="abs modal slide-menu-top-bar-fix"
|
|
503
|
+
style="height: ${options.heightTopBar}px; top: 0px"
|
|
504
|
+
>
|
|
505
|
+
<a class="a-link-top-banner"> ${await options.slideMenuTopBarBannerFix()}</a>
|
|
409
506
|
</div>`
|
|
410
507
|
: ''}
|
|
411
508
|
</div>`,
|
|
@@ -598,7 +695,16 @@ const Modal = {
|
|
|
598
695
|
Modal.removeModal(searchBoxHistoryId);
|
|
599
696
|
return;
|
|
600
697
|
}
|
|
601
|
-
setTimeout(() =>
|
|
698
|
+
setTimeout(() => {
|
|
699
|
+
getResultSearchBox(validatorData);
|
|
700
|
+
|
|
701
|
+
if (
|
|
702
|
+
s(`.slide-menu-top-bar-fix`) &&
|
|
703
|
+
!s(`.main-body-btn-ui-bar-custom-open`).classList.contains('hide')
|
|
704
|
+
) {
|
|
705
|
+
s(`.main-body-btn-bar-custom`).click();
|
|
706
|
+
}
|
|
707
|
+
});
|
|
602
708
|
};
|
|
603
709
|
|
|
604
710
|
const getDefaultSearchBoxSelector = () => `.search-result-btn-${currentKeyBoardSearchBoxIndex}`;
|
|
@@ -691,7 +797,6 @@ const Modal = {
|
|
|
691
797
|
Modal.MoveTitleToBar(id);
|
|
692
798
|
|
|
693
799
|
prepend(`.btn-bar-modal-container-${id}`, html`<div class="hide">${inputInfoNode.outerHTML}</div>`);
|
|
694
|
-
if (s(`.slide-menu-top-bar-fix`)) s(`.slide-menu-top-bar-fix`).classList.add('hide');
|
|
695
800
|
}
|
|
696
801
|
};
|
|
697
802
|
|
|
@@ -711,7 +816,6 @@ const Modal = {
|
|
|
711
816
|
} catch (e) {}
|
|
712
817
|
}
|
|
713
818
|
Modal.removeModal(searchBoxHistoryId);
|
|
714
|
-
if (s(`.slide-menu-top-bar-fix`)) s(`.slide-menu-top-bar-fix`).classList.remove('hide');
|
|
715
819
|
};
|
|
716
820
|
s('.top-bar-search-box').onblur = () => {
|
|
717
821
|
hoverFocusCtl.checkDismiss();
|
|
@@ -1025,7 +1129,7 @@ const Modal = {
|
|
|
1025
1129
|
await Modal.onHomeRouterEvent();
|
|
1026
1130
|
Object.keys(this.Data[idModal].onHome).map((keyListener) => this.Data[idModal].onHome[keyListener]());
|
|
1027
1131
|
});
|
|
1028
|
-
EventsUI.onClick(`.action-btn-app-icon`, () =>
|
|
1132
|
+
EventsUI.onClick(`.action-btn-app-icon`, () => s(`.action-btn-home`).click());
|
|
1029
1133
|
Keyboard.instanceMultiPressKey({
|
|
1030
1134
|
id: 'input-shortcut-global-escape',
|
|
1031
1135
|
keys: ['Escape'],
|
|
@@ -1036,11 +1140,18 @@ const Modal = {
|
|
|
1036
1140
|
}
|
|
1037
1141
|
|
|
1038
1142
|
{
|
|
1039
|
-
ThemeEvents['action-btn-theme'] = () => {
|
|
1143
|
+
ThemeEvents['action-btn-theme'] = async () => {
|
|
1040
1144
|
htmls(
|
|
1041
1145
|
`.action-btn-theme-render`,
|
|
1042
1146
|
html` ${darkTheme ? html` <i class="fas fa-moon"></i>` : html`<i class="far fa-sun"></i>`}`,
|
|
1043
1147
|
);
|
|
1148
|
+
if (s(`.slide-menu-top-bar-fix`)) {
|
|
1149
|
+
htmls(
|
|
1150
|
+
`.slide-menu-top-bar-fix`,
|
|
1151
|
+
html`<a class="a-link-top-banner">${await options.slideMenuTopBarBannerFix()}</a>`,
|
|
1152
|
+
);
|
|
1153
|
+
Modal.setTopBannerLink();
|
|
1154
|
+
}
|
|
1044
1155
|
};
|
|
1045
1156
|
ThemeEvents['action-btn-theme']();
|
|
1046
1157
|
|
|
@@ -1435,7 +1546,8 @@ const Modal = {
|
|
|
1435
1546
|
setDocTitle({ ...options.RouterInstance, route: '' });
|
|
1436
1547
|
};
|
|
1437
1548
|
s(`.main-btn-home`).onclick = async () => {
|
|
1438
|
-
await this.onHomeRouterEvent();
|
|
1549
|
+
// await this.onHomeRouterEvent();
|
|
1550
|
+
s(`.action-btn-home`).click();
|
|
1439
1551
|
};
|
|
1440
1552
|
EventsUI.onClick(`.btn-icon-menu-back`, backMenuButtonEvent);
|
|
1441
1553
|
EventsUI.onClick(`.btn-icon-menu-mode`, () => {
|
|
@@ -2101,6 +2213,16 @@ const Modal = {
|
|
|
2101
2213
|
// non-fatal: keep default placement if structure not present
|
|
2102
2214
|
}
|
|
2103
2215
|
},
|
|
2216
|
+
setTopBannerLink: function () {
|
|
2217
|
+
if (s(`.a-link-top-banner`)) {
|
|
2218
|
+
s(`.a-link-top-banner`).setAttribute('href', `${location.origin}${getProxyPath()}`);
|
|
2219
|
+
EventsUI.onClick(`.a-link-top-banner`, (e) => {
|
|
2220
|
+
if (location.pathname === '/') return location.reload();
|
|
2221
|
+
e.preventDefault();
|
|
2222
|
+
s(`.action-btn-home`).click();
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2104
2226
|
headerTitleHeight: 40,
|
|
2105
2227
|
actionBtnCenter: function () {
|
|
2106
2228
|
if (!s(`.btn-close-modal-menu`).classList.contains('hide')) {
|