@underpostnet/underpost 2.7.91 → 2.7.93

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.
Files changed (54) hide show
  1. package/bin/deploy.js +13 -11
  2. package/bin/file.js +1 -0
  3. package/bin/hwt.js +59 -0
  4. package/bin/index.js +1 -1
  5. package/conf.js +29 -5
  6. package/docker-compose.yml +1 -1
  7. package/package.json +2 -2
  8. package/src/client/Default.index.js +2 -1
  9. package/src/client/components/core/404.js +20 -0
  10. package/src/client/components/core/500.js +20 -0
  11. package/src/client/{ssr/common → components/core}/Alert.js +13 -11
  12. package/src/client/components/core/Docs.js +1 -1
  13. package/src/client/components/core/Modal.js +8 -6
  14. package/src/client/components/core/Scroll.js +65 -1
  15. package/src/client/components/core/Translate.js +21 -5
  16. package/src/client/components/core/VanillaJs.js +4 -1
  17. package/src/client/components/core/Worker.js +10 -11
  18. package/src/client/components/default/MenuDefault.js +69 -0
  19. package/src/client/components/default/RoutesDefault.js +2 -0
  20. package/src/client/public/default/plantuml/client-conf.svg +1 -1
  21. package/src/client/public/default/plantuml/client-schema.svg +1 -1
  22. package/src/client/public/default/plantuml/cron-schema.svg +1 -1
  23. package/src/client/public/default/plantuml/server-conf.svg +1 -1
  24. package/src/client/public/default/plantuml/server-schema.svg +1 -1
  25. package/src/client/public/default/plantuml/ssr-conf.svg +1 -1
  26. package/src/client/public/default/plantuml/ssr-schema.svg +1 -1
  27. package/src/client/ssr/Render.js +1 -6
  28. package/src/client/ssr/body/404.js +73 -0
  29. package/src/client/ssr/body/500.js +72 -0
  30. package/src/client/ssr/{components/body → body}/CacheControl.js +1 -1
  31. package/src/client/ssr/mailer/DefaultRecoverEmail.js +21 -0
  32. package/src/client/ssr/mailer/DefaultVerifyEmail.js +17 -0
  33. package/src/client/ssr/offline/NoNetworkConnection.js +67 -0
  34. package/src/client/ssr/pages/Test.js +198 -0
  35. package/src/client/sw/default.sw.js +43 -166
  36. package/src/mailer/EmailRender.js +2 -4
  37. package/src/mailer/MailerProvider.js +4 -1
  38. package/src/server/client-build.js +100 -74
  39. package/src/server/client-formatted.js +2 -4
  40. package/src/server/conf.js +40 -13
  41. package/src/server/proxy.js +0 -2
  42. package/src/server/runtime.js +38 -10
  43. package/src/client/ssr/common/SsrCore.js +0 -91
  44. package/src/client/ssr/common/Translate.js +0 -26
  45. package/src/client/ssr/common/Worker.js +0 -28
  46. package/src/client/ssr/components/head/PwaDefault.js +0 -60
  47. /package/src/client/ssr/{components/body → body}/DefaultSplashScreen.js +0 -0
  48. /package/src/client/ssr/{components/email → email}/DefaultRecoverEmail.js +0 -0
  49. /package/src/client/ssr/{components/email → email}/DefaultVerifyEmail.js +0 -0
  50. /package/src/client/ssr/{components/head → head}/Css.js +0 -0
  51. /package/src/client/ssr/{components/head → head}/DefaultScripts.js +0 -0
  52. /package/src/client/ssr/{components/head → head}/Production.js +0 -0
  53. /package/src/client/ssr/{components/head → head}/Pwa.js +0 -0
  54. /package/src/client/ssr/{components/head → head}/Seo.js +0 -0
@@ -17,6 +17,8 @@ import { Badge } from '../core/Badge.js';
17
17
  import { Docs } from '../core/Docs.js';
18
18
  import { Recover } from '../core/Recover.js';
19
19
  import { DefaultManagement } from '../../services/default/default.management.js';
20
+ import { Page500 } from '../core/500.js';
21
+ import { Page404 } from '../core/404.js';
20
22
 
21
23
  const MenuDefault = {
22
24
  Data: {},
@@ -136,6 +138,28 @@ const MenuDefault = {
136
138
  handleContainerClass: 'handle-btn-container',
137
139
  tooltipHtml: await Badge.Render(buildBadgeToolTipMenuOption('default-management')),
138
140
  })}
141
+ ${await BtnIcon.Render({
142
+ class: 'in wfa main-btn-menu main-btn-404 hide',
143
+ label: renderMenuLabel({
144
+ icon: html`<i class="fa-solid fa-triangle-exclamation"></i>`,
145
+ text: html`<span class="menu-label-text">${Translate.Render('404')}</span>`,
146
+ }),
147
+ attrs: `data-id="404"`,
148
+ tabHref: `${getProxyPath()}404`,
149
+ handleContainerClass: 'handle-btn-container',
150
+ tooltipHtml: await Badge.Render(buildBadgeToolTipMenuOption('404')),
151
+ })}
152
+ ${await BtnIcon.Render({
153
+ class: 'in wfa main-btn-menu main-btn-500 hide',
154
+ label: renderMenuLabel({
155
+ icon: html`<i class="fa-solid fa-circle-exclamation"></i>`,
156
+ text: html`<span class="menu-label-text">${Translate.Render('500')}</span>`,
157
+ }),
158
+ attrs: `data-id="500"`,
159
+ tabHref: `${getProxyPath()}500`,
160
+ handleContainerClass: 'handle-btn-container',
161
+ tooltipHtml: await Badge.Render(buildBadgeToolTipMenuOption('500')),
162
+ })}
139
163
  </div>
140
164
  `,
141
165
  barConfig: newInstance(barConfig),
@@ -148,6 +172,7 @@ const MenuDefault = {
148
172
  return '';
149
173
  },
150
174
  mode: 'slide-menu',
175
+ RouterInstance,
151
176
  heightTopBar,
152
177
  heightBottomBar,
153
178
  htmlMainBody: options?.htmlMainBody ? options.htmlMainBody : undefined,
@@ -383,6 +408,50 @@ const MenuDefault = {
383
408
  heightBottomBar,
384
409
  });
385
410
  });
411
+
412
+ EventsUI.onClick(`.main-btn-404`, async () => {
413
+ const { barConfig } = await Themes[Css.currentTheme]();
414
+ await Modal.Render({
415
+ id: 'modal-404',
416
+ route: '404',
417
+ barConfig,
418
+ title: renderViewTitle({
419
+ icon: html`<i class="fa-solid fa-triangle-exclamation"></i>`,
420
+ text: Translate.Render('404'),
421
+ }),
422
+ html: async () => await Page404.Render({ idModal: 'modal-404' }),
423
+ handleType: 'bar',
424
+ maximize: true,
425
+ mode: 'view',
426
+ slideMenu: 'modal-menu',
427
+ RouterInstance,
428
+ heightTopBar,
429
+ heightBottomBar,
430
+ observer: true,
431
+ });
432
+ });
433
+
434
+ EventsUI.onClick(`.main-btn-500`, async () => {
435
+ const { barConfig } = await Themes[Css.currentTheme]();
436
+ await Modal.Render({
437
+ id: 'modal-500',
438
+ route: '500',
439
+ barConfig,
440
+ title: renderViewTitle({
441
+ icon: html`<i class="fa-solid fa-circle-exclamation"></i>`,
442
+ text: Translate.Render('500'),
443
+ }),
444
+ html: async () => await Page500.Render({ idModal: 'modal-500' }),
445
+ handleType: 'bar',
446
+ maximize: true,
447
+ mode: 'view',
448
+ slideMenu: 'modal-menu',
449
+ RouterInstance,
450
+ heightTopBar,
451
+ heightBottomBar,
452
+ observer: true,
453
+ });
454
+ });
386
455
  },
387
456
  };
388
457
 
@@ -36,6 +36,8 @@ const RoutesDefault = () => {
36
36
  render: () => s(`.main-btn-default-management`).click(),
37
37
  translateTitle: true,
38
38
  },
39
+ '/404': { title: '404 Not Found', render: () => s(`.main-btn-404`).click() },
40
+ '/500': { title: '500 Server Error', render: () => s(`.main-btn-500`).click() },
39
41
  };
40
42
  };
41
43