@underpostnet/underpost 2.95.8 → 2.96.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.
@@ -1,12 +0,0 @@
1
- import { e404 } from '../common/Alert.js';
2
- import { append } from '../common/SsrCore.js';
3
- import { Translate } from '../common/Translate.js';
4
- import { Worker } from '../common/Worker.js';
5
- /*imports*/
6
-
7
- window.onload = () =>
8
- Worker.instance({
9
- render: async () => {
10
- append('.page-render', await e404({ Translate }));
11
- },
12
- });
@@ -1,12 +0,0 @@
1
- import { e500 } from '../common/Alert.js';
2
- import { append } from '../common/SsrCore.js';
3
- import { Translate } from '../common/Translate.js';
4
- import { Worker } from '../common/Worker.js';
5
- /*imports*/
6
-
7
- window.onload = () =>
8
- Worker.instance({
9
- render: async () => {
10
- append('.page-render', await e500({ Translate }));
11
- },
12
- });
@@ -1,14 +0,0 @@
1
- import { htmls, loggerFactory } from '../common/SsrCore.js';
2
- import { Alert } from '../common/Alert.js';
3
- import { Translate } from '../common/Translate.js';
4
- import { Worker } from '../common/Worker.js';
5
- /*imports*/
6
-
7
- const logger = loggerFactory({ url: location.toString() });
8
-
9
- window.onload = () =>
10
- Worker.instance({
11
- render: async () => {
12
- htmls(`.page-render`, html`${await Alert.maintenance({ Translate })}`);
13
- },
14
- });
@@ -1,21 +0,0 @@
1
- import { htmls, loggerFactory } from '../common/SsrCore.js';
2
- import { Alert } from '../common/Alert.js';
3
- import { Translate } from '../common/Translate.js';
4
- import { Worker } from '../common/Worker.js';
5
- /*imports*/
6
-
7
- const logger = loggerFactory({ url: location.toString() });
8
-
9
- window.onload = () =>
10
- Worker.instance({
11
- render: async () => {
12
- window.ononline = async () => {
13
- location.href = location.pathname.split('/')[1] ? `/${location.pathname.split('/')[1].split('.')[0]}` : '/';
14
- };
15
- window.onoffline = async () => {
16
- htmls(`.page-render`, html`${await Alert.noInternet({ Translate })}`);
17
- };
18
- if (navigator.onLine && !location.hostname.match('localhost')) window.ononline();
19
- else window.onoffline();
20
- },
21
- });