@underpostnet/underpost 2.7.82
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/.dockerignore +14 -0
- package/.env.development +6 -0
- package/.env.production +6 -0
- package/.env.test +6 -0
- package/.github/workflows/ghpkg.yml +75 -0
- package/.github/workflows/publish.yml +84 -0
- package/.github/workflows/pwa-microservices-template.test.yml +30 -0
- package/.nycrc +9 -0
- package/.prettierignore +13 -0
- package/.prettierrc +9 -0
- package/.vscode/extensions.json +72 -0
- package/.vscode/settings.json +100 -0
- package/AUTHORS.md +10 -0
- package/CHANGELOG.md +37 -0
- package/Dockerfile +90 -0
- package/LICENSE +21 -0
- package/README.md +96 -0
- package/bin/db.js +172 -0
- package/bin/deploy.js +674 -0
- package/bin/file.js +93 -0
- package/bin/index.js +82 -0
- package/bin/ssl.js +55 -0
- package/bin/util.js +182 -0
- package/bin/vs.js +35 -0
- package/conf.js +251 -0
- package/docker-compose.yml +67 -0
- package/jsconfig.json +7 -0
- package/jsdoc.json +32 -0
- package/nodemon.json +6 -0
- package/package.json +134 -0
- package/prometheus.yml +36 -0
- package/src/api/core/core.controller.js +69 -0
- package/src/api/core/core.model.js +11 -0
- package/src/api/core/core.router.js +23 -0
- package/src/api/core/core.service.js +29 -0
- package/src/api/crypto/crypto.controller.js +51 -0
- package/src/api/crypto/crypto.model.js +23 -0
- package/src/api/crypto/crypto.router.js +20 -0
- package/src/api/crypto/crypto.service.js +64 -0
- package/src/api/default/default.controller.js +69 -0
- package/src/api/default/default.model.js +20 -0
- package/src/api/default/default.router.js +23 -0
- package/src/api/default/default.service.js +31 -0
- package/src/api/file/file.controller.js +53 -0
- package/src/api/file/file.model.js +19 -0
- package/src/api/file/file.router.js +21 -0
- package/src/api/file/file.service.js +80 -0
- package/src/api/instance/instance.controller.js +69 -0
- package/src/api/instance/instance.model.js +36 -0
- package/src/api/instance/instance.router.js +33 -0
- package/src/api/instance/instance.service.js +48 -0
- package/src/api/test/test.controller.js +59 -0
- package/src/api/test/test.model.js +14 -0
- package/src/api/test/test.router.js +21 -0
- package/src/api/test/test.service.js +35 -0
- package/src/api/user/user.build.js +16 -0
- package/src/api/user/user.controller.js +70 -0
- package/src/api/user/user.model.js +65 -0
- package/src/api/user/user.router.js +345 -0
- package/src/api/user/user.service.js +479 -0
- package/src/api.js +23 -0
- package/src/client/Default.index.js +40 -0
- package/src/client/components/core/Account.js +290 -0
- package/src/client/components/core/AgGrid.js +160 -0
- package/src/client/components/core/Auth.js +19 -0
- package/src/client/components/core/Badge.js +32 -0
- package/src/client/components/core/Blockchain.js +41 -0
- package/src/client/components/core/Blog.js +9 -0
- package/src/client/components/core/BtnIcon.js +101 -0
- package/src/client/components/core/CalendarCore.js +458 -0
- package/src/client/components/core/Chat.js +64 -0
- package/src/client/components/core/ColorPalette.js +5267 -0
- package/src/client/components/core/CommonJs.js +742 -0
- package/src/client/components/core/Content.js +193 -0
- package/src/client/components/core/Css.js +846 -0
- package/src/client/components/core/CssCore.js +817 -0
- package/src/client/components/core/D3Chart.js +44 -0
- package/src/client/components/core/Docs.js +231 -0
- package/src/client/components/core/DropDown.js +164 -0
- package/src/client/components/core/EventsUI.js +46 -0
- package/src/client/components/core/FileExplorer.js +699 -0
- package/src/client/components/core/FullScreen.js +45 -0
- package/src/client/components/core/Input.js +346 -0
- package/src/client/components/core/JoyStick.js +77 -0
- package/src/client/components/core/Keyboard.js +73 -0
- package/src/client/components/core/LoadingAnimation.js +178 -0
- package/src/client/components/core/LogIn.js +187 -0
- package/src/client/components/core/LogOut.js +58 -0
- package/src/client/components/core/Logger.js +26 -0
- package/src/client/components/core/Modal.js +1612 -0
- package/src/client/components/core/NotificationManager.js +84 -0
- package/src/client/components/core/Panel.js +613 -0
- package/src/client/components/core/PanelForm.js +468 -0
- package/src/client/components/core/Polyhedron.js +162 -0
- package/src/client/components/core/Recover.js +204 -0
- package/src/client/components/core/Responsive.js +53 -0
- package/src/client/components/core/RichText.js +51 -0
- package/src/client/components/core/Router.js +76 -0
- package/src/client/components/core/Scroll.js +34 -0
- package/src/client/components/core/SignUp.js +125 -0
- package/src/client/components/core/SocketIo.js +72 -0
- package/src/client/components/core/Stream.js +113 -0
- package/src/client/components/core/ToggleSwitch.js +87 -0
- package/src/client/components/core/ToolTip.js +26 -0
- package/src/client/components/core/Translate.js +446 -0
- package/src/client/components/core/Validator.js +100 -0
- package/src/client/components/core/VanillaJs.js +463 -0
- package/src/client/components/core/Wallet.js +106 -0
- package/src/client/components/core/Webhook.js +25 -0
- package/src/client/components/core/Worker.js +282 -0
- package/src/client/components/default/CommonDefault.js +29 -0
- package/src/client/components/default/CssDefault.js +13 -0
- package/src/client/components/default/ElementsDefault.js +38 -0
- package/src/client/components/default/LogInDefault.js +41 -0
- package/src/client/components/default/LogOutDefault.js +28 -0
- package/src/client/components/default/MenuDefault.js +389 -0
- package/src/client/components/default/RoutesDefault.js +48 -0
- package/src/client/components/default/SettingsDefault.js +16 -0
- package/src/client/components/default/SignUpDefault.js +9 -0
- package/src/client/components/default/SocketIoDefault.js +54 -0
- package/src/client/components/default/TranslateDefault.js +7 -0
- 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-384x384.png +0 -0
- package/src/client/public/default/android-chrome-48x48.png +0 -0
- package/src/client/public/default/android-chrome-512x512.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-1024x1024.png +0 -0
- package/src/client/public/default/apple-touch-icon-114x114.png +0 -0
- package/src/client/public/default/apple-touch-icon-120x120.png +0 -0
- package/src/client/public/default/apple-touch-icon-144x144.png +0 -0
- package/src/client/public/default/apple-touch-icon-152x152.png +0 -0
- package/src/client/public/default/apple-touch-icon-167x167.png +0 -0
- package/src/client/public/default/apple-touch-icon-180x180.png +0 -0
- package/src/client/public/default/apple-touch-icon-57x57.png +0 -0
- package/src/client/public/default/apple-touch-icon-60x60.png +0 -0
- package/src/client/public/default/apple-touch-icon-72x72.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/apple-touch-startup-image-1125x2436.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1136x640.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1170x2532.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1179x2556.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1242x2208.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1242x2688.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1284x2778.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1290x2796.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1334x750.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1488x2266.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1536x2048.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1620x2160.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1640x2160.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1668x2224.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1668x2388.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-1792x828.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2048x1536.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2048x2732.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2160x1620.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2160x1640.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2208x1242.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2224x1668.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2266x1488.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2388x1668.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2436x1125.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2532x1170.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2556x1179.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2688x1242.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2732x2048.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2778x1284.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-2796x1290.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-640x1136.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-750x1334.png +0 -0
- package/src/client/public/default/apple-touch-startup-image-828x1792.png +0 -0
- package/src/client/public/default/assets/background/white.jpg +0 -0
- package/src/client/public/default/assets/background/white0-min.jpg +0 -0
- package/src/client/public/default/assets/background/white0.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/browserconfig.xml +12 -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-48x48.png +0 -0
- package/src/client/public/default/favicon.ico +0 -0
- package/src/client/public/default/manifest.webmanifest +69 -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/plantuml/client-conf.svg +1 -0
- package/src/client/public/default/plantuml/client-schema.svg +1 -0
- package/src/client/public/default/plantuml/cron-conf.svg +1 -0
- package/src/client/public/default/plantuml/cron-schema.svg +1 -0
- package/src/client/public/default/plantuml/server-conf.svg +1 -0
- package/src/client/public/default/plantuml/server-schema.svg +1 -0
- package/src/client/public/default/plantuml/ssr-conf.svg +1 -0
- package/src/client/public/default/plantuml/ssr-schema.svg +1 -0
- package/src/client/public/default/sitemap +148 -0
- package/src/client/public/default/yandex-browser-50x50.png +0 -0
- package/src/client/public/default/yandex-browser-manifest.json +9 -0
- package/src/client/public/doc/favicon.ico +0 -0
- package/src/client/public/doc/sitemap +148 -0
- package/src/client/public/test/favicon.ico +0 -0
- package/src/client/public/test/sitemap +148 -0
- package/src/client/services/core/core.service.js +170 -0
- package/src/client/services/crypto/crypto.service.js +70 -0
- package/src/client/services/default/default.management.js +343 -0
- package/src/client/services/default/default.service.js +89 -0
- package/src/client/services/file/file.service.js +70 -0
- package/src/client/services/instance/instance.management.js +74 -0
- package/src/client/services/instance/instance.service.js +89 -0
- package/src/client/services/test/test.service.js +70 -0
- package/src/client/services/user/user.management.js +50 -0
- package/src/client/services/user/user.service.js +89 -0
- package/src/client/ssr/Render.js +237 -0
- package/src/client/ssr/common/Alert.js +75 -0
- package/src/client/ssr/common/SsrCore.js +91 -0
- package/src/client/ssr/common/Translate.js +26 -0
- package/src/client/ssr/common/Worker.js +28 -0
- package/src/client/ssr/components/body/CacheControl.js +114 -0
- package/src/client/ssr/components/body/DefaultSplashScreen.js +90 -0
- package/src/client/ssr/components/email/DefaultRecoverEmail.js +21 -0
- package/src/client/ssr/components/email/DefaultVerifyEmail.js +17 -0
- package/src/client/ssr/components/head/Css.js +241 -0
- package/src/client/ssr/components/head/DefaultScripts.js +3 -0
- package/src/client/ssr/components/head/PwaDefault.js +60 -0
- package/src/client/ssr/offline/default.index.js +31 -0
- package/src/client/ssr/pages/404.js +12 -0
- package/src/client/ssr/pages/500.js +12 -0
- package/src/client/sw/default.sw.js +203 -0
- package/src/client/sw/template.sw.js +84 -0
- package/src/client.build.js +22 -0
- package/src/client.dev.js +21 -0
- package/src/cron.js +30 -0
- package/src/db/DataBaseProvider.js +34 -0
- package/src/db/mariadb/MariaDB.js +33 -0
- package/src/db/mongo/MongooseDB.js +125 -0
- package/src/dns.js +22 -0
- package/src/index.js +43 -0
- package/src/mailer/EmailRender.js +69 -0
- package/src/mailer/MailerProvider.js +96 -0
- package/src/proxy.js +22 -0
- package/src/runtime/lampp/Lampp.js +115 -0
- package/src/runtime/nginx/Nginx.js +3 -0
- package/src/runtime/xampp/Xampp.js +49 -0
- package/src/server/auth.js +235 -0
- package/src/server/backup.js +108 -0
- package/src/server/client-build-live.js +98 -0
- package/src/server/client-build.js +821 -0
- package/src/server/client-dev-server.js +60 -0
- package/src/server/client-formatted.js +58 -0
- package/src/server/client-icons.js +151 -0
- package/src/server/conf.js +883 -0
- package/src/server/cron.js +35 -0
- package/src/server/dns.js +89 -0
- package/src/server/downloader.js +42 -0
- package/src/server/logger.js +190 -0
- package/src/server/network.js +122 -0
- package/src/server/peer.js +33 -0
- package/src/server/process.js +66 -0
- package/src/server/prompt-optimizer.js +28 -0
- package/src/server/proxy.js +118 -0
- package/src/server/runtime.js +461 -0
- package/src/server/ssl.js +120 -0
- package/src/server.js +25 -0
- package/src/ws/IoInterface.js +45 -0
- package/src/ws/IoServer.js +39 -0
- package/src/ws/core/channels/core.ws.chat.js +23 -0
- package/src/ws/core/channels/core.ws.mailer.js +35 -0
- package/src/ws/core/channels/core.ws.stream.js +31 -0
- package/src/ws/core/core.ws.connection.js +28 -0
- package/src/ws/core/core.ws.emit.js +14 -0
- package/src/ws/core/core.ws.server.js +24 -0
- package/src/ws/core/management/core.ws.chat.js +8 -0
- package/src/ws/core/management/core.ws.mailer.js +16 -0
- package/src/ws/core/management/core.ws.stream.js +8 -0
- package/src/ws/default/channels/default.ws.main.js +16 -0
- package/src/ws/default/default.ws.connection.js +22 -0
- package/src/ws/default/default.ws.emit.js +14 -0
- package/src/ws/default/default.ws.server.js +20 -0
- package/src/ws/default/management/default.ws.main.js +8 -0
- package/startup.js +11 -0
- package/supervisord-openssh-server.conf +5 -0
- package/test/api.test.js +60 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const TranslateCore = {
|
|
2
|
+
['server-maintenance']: {
|
|
3
|
+
en: "The server is under maintenance <br> we'll be back soon.",
|
|
4
|
+
es: 'El servidor está en mantenimiento <br> volveremos pronto.',
|
|
5
|
+
},
|
|
6
|
+
['no-internet-connection']: {
|
|
7
|
+
en: 'No internet connection <br> verify your network',
|
|
8
|
+
es: 'Sin conexión a internet <br> verifica tu red',
|
|
9
|
+
},
|
|
10
|
+
['page-not-found']: {
|
|
11
|
+
en: 'Page not found',
|
|
12
|
+
es: 'Página no encontrada',
|
|
13
|
+
},
|
|
14
|
+
['page-broken']: {
|
|
15
|
+
es: 'Algo salio mal',
|
|
16
|
+
en: 'Something went wrong',
|
|
17
|
+
},
|
|
18
|
+
['back']: {
|
|
19
|
+
en: 'Back to <br> homepage',
|
|
20
|
+
es: 'Volver a <br> la pagina principal',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const Translate = (key) => TranslateCore[key][getLang().match('es') ? 'es' : 'en'];
|
|
25
|
+
|
|
26
|
+
export { Translate };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const Worker = {
|
|
2
|
+
instance: async function (options = { render: async () => {} }) {
|
|
3
|
+
window.serviceWorkerReady = true;
|
|
4
|
+
append(
|
|
5
|
+
'body',
|
|
6
|
+
html`
|
|
7
|
+
<style>
|
|
8
|
+
body {
|
|
9
|
+
background-color: #dcdcdc;
|
|
10
|
+
color: #303030;
|
|
11
|
+
font-family: arial;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
}
|
|
14
|
+
.page-render {
|
|
15
|
+
min-height: 100vh;
|
|
16
|
+
}
|
|
17
|
+
a {
|
|
18
|
+
color: #000000;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<div class="in page-render"></div>
|
|
22
|
+
`,
|
|
23
|
+
);
|
|
24
|
+
await options.render();
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { Worker };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
const CacheControl = function ({ ttiLoadTimeLimit }) {
|
|
2
|
+
window.cleanCache = async () => {
|
|
3
|
+
await new Promise(async (resolve, reject) => {
|
|
4
|
+
navigator.serviceWorker
|
|
5
|
+
.getRegistrations()
|
|
6
|
+
.then(async (registrations) => {
|
|
7
|
+
const cacheNames = await caches.keys();
|
|
8
|
+
for (const cacheName of cacheNames) await caches.delete(cacheName);
|
|
9
|
+
for (const registration of registrations) {
|
|
10
|
+
console.log('[sw-cache-control] remove', registration);
|
|
11
|
+
registration.unregister();
|
|
12
|
+
}
|
|
13
|
+
})
|
|
14
|
+
.catch((...args) => {
|
|
15
|
+
console.error(...args);
|
|
16
|
+
return resolve(args);
|
|
17
|
+
})
|
|
18
|
+
.finally((...args) => {
|
|
19
|
+
console.log('[sw-cache-control] finally uninstall', args);
|
|
20
|
+
return resolve(args);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
// document.querySelector('html').innerHTML = '';
|
|
24
|
+
// window.open(window.location.origin, '_blank');
|
|
25
|
+
localStorage.clear();
|
|
26
|
+
location.reload();
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
window.cacheControlCallBack = async () => {
|
|
30
|
+
let disable = false;
|
|
31
|
+
let status = false;
|
|
32
|
+
await new Promise((resolve, reject) => {
|
|
33
|
+
if ('serviceWorker' in navigator) {
|
|
34
|
+
navigator.serviceWorker
|
|
35
|
+
.getRegistrations()
|
|
36
|
+
.then((registrations) => {
|
|
37
|
+
for (const registration of registrations) {
|
|
38
|
+
if (registration.installing) console.log('[sw-cache-control] installing', registration);
|
|
39
|
+
else if (registration.waiting) console.log('[sw-cache-control] waiting', registration);
|
|
40
|
+
else if (registration.active) {
|
|
41
|
+
console.log('[sw-cache-control] active', registration);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (registrations.length > 0) status = true;
|
|
45
|
+
})
|
|
46
|
+
.catch((...args) => {
|
|
47
|
+
console.error(...args);
|
|
48
|
+
return resolve(false);
|
|
49
|
+
})
|
|
50
|
+
.finally((...args) => {
|
|
51
|
+
console.log('[sw-cache-control] finally status', args);
|
|
52
|
+
return resolve(status);
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
console.warn('[sw-cache-control] disabled');
|
|
56
|
+
disable = true;
|
|
57
|
+
return resolve(false);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (!disable && !window.serviceWorkerReady) {
|
|
61
|
+
window.cleanCache();
|
|
62
|
+
} else {
|
|
63
|
+
// old navigator
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
setTimeout(() => {
|
|
67
|
+
if (document.querySelector('.clean-cache-container'))
|
|
68
|
+
document.querySelector('.clean-cache-container').onclick = window.cleanCache;
|
|
69
|
+
});
|
|
70
|
+
setTimeout(window.cacheControlCallBack, ttiLoadTimeLimit); // 70s limit);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
SrrComponent = ({ ttiLoadTimeLimit }) => {
|
|
74
|
+
const borderChar = (px, color, selectors) => {
|
|
75
|
+
if (selectors) {
|
|
76
|
+
return selectors
|
|
77
|
+
.map(
|
|
78
|
+
(selector) => html`
|
|
79
|
+
<style>
|
|
80
|
+
${selector} {
|
|
81
|
+
text-shadow: ${px}px -${px}px ${px}px ${color}, -${px}px ${px}px ${px}px ${color},
|
|
82
|
+
-${px}px -${px}px ${px}px ${color}, ${px}px ${px}px ${px}px ${color};
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
85
|
+
`,
|
|
86
|
+
)
|
|
87
|
+
.join('');
|
|
88
|
+
}
|
|
89
|
+
return html`
|
|
90
|
+
text-shadow: ${px}px -${px}px ${px}px ${color}, -${px}px ${px}px ${px}px ${color}, -${px}px -${px}px ${px}px
|
|
91
|
+
${color}, ${px}px ${px}px ${px}px ${color};
|
|
92
|
+
`;
|
|
93
|
+
};
|
|
94
|
+
return html`
|
|
95
|
+
<style>
|
|
96
|
+
.clean-cache-container {
|
|
97
|
+
position: fixed !important;
|
|
98
|
+
bottom: 5px !important;
|
|
99
|
+
right: 20px !important;
|
|
100
|
+
cursor: pointer !important;
|
|
101
|
+
font-family: Arial, sans-serif !important;
|
|
102
|
+
z-index: 11 !important;
|
|
103
|
+
color: white !important;
|
|
104
|
+
font-size: 12px !important;
|
|
105
|
+
}
|
|
106
|
+
</style>
|
|
107
|
+
${borderChar(1, 'black', ['.clean-cache-container'])}
|
|
108
|
+
<script>
|
|
109
|
+
const CacheControl = ${CacheControl};
|
|
110
|
+
CacheControl({ ttiLoadTimeLimit: ${ttiLoadTimeLimit ? ttiLoadTimeLimit : 1000 * 70 * 1} });
|
|
111
|
+
</script>
|
|
112
|
+
<div class="clean-cache-container">v2.7.82</div>
|
|
113
|
+
`;
|
|
114
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
SrrComponent = ({ base64BackgroundImage, metadata }) => html`
|
|
2
|
+
${base64BackgroundImage
|
|
3
|
+
? html`<style>
|
|
4
|
+
.ssr-background-image {
|
|
5
|
+
background-image: url('${base64BackgroundImage}');
|
|
6
|
+
}
|
|
7
|
+
</style>`
|
|
8
|
+
: metadata?.themeColor
|
|
9
|
+
? html`<style>
|
|
10
|
+
.ssr-background-image {
|
|
11
|
+
background: ${metadata.themeColor};
|
|
12
|
+
}
|
|
13
|
+
</style>`
|
|
14
|
+
: ''}
|
|
15
|
+
|
|
16
|
+
<style>
|
|
17
|
+
.ssr-top-bar {
|
|
18
|
+
background: #ffffff;
|
|
19
|
+
height: 100px;
|
|
20
|
+
}
|
|
21
|
+
.ssr-btn {
|
|
22
|
+
height: 40px;
|
|
23
|
+
width: 40px;
|
|
24
|
+
}
|
|
25
|
+
.ssr-btn-0 {
|
|
26
|
+
top: 55px;
|
|
27
|
+
right: 5px;
|
|
28
|
+
}
|
|
29
|
+
.ssr-btn-1 {
|
|
30
|
+
top: 55px;
|
|
31
|
+
right: 55px;
|
|
32
|
+
}
|
|
33
|
+
.ssr-btn-2 {
|
|
34
|
+
top: 55px;
|
|
35
|
+
right: 105px;
|
|
36
|
+
}
|
|
37
|
+
.ssr-btn-3 {
|
|
38
|
+
top: 55px;
|
|
39
|
+
left: 5px;
|
|
40
|
+
}
|
|
41
|
+
.ssr-btn-4 {
|
|
42
|
+
top: 5px;
|
|
43
|
+
left: 5px;
|
|
44
|
+
}
|
|
45
|
+
.ssr-btn-5 {
|
|
46
|
+
top: 5px;
|
|
47
|
+
right: 5px;
|
|
48
|
+
border-radius: 50%;
|
|
49
|
+
}
|
|
50
|
+
.ssr-loader {
|
|
51
|
+
width: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.loader {
|
|
55
|
+
height: 6px;
|
|
56
|
+
width: 130px;
|
|
57
|
+
--c: no-repeat linear-gradient(#353535 0 0);
|
|
58
|
+
background: var(--c), var(--c), #e1e1e1;
|
|
59
|
+
background-size: 60% 100%;
|
|
60
|
+
animation: l16 3s infinite;
|
|
61
|
+
}
|
|
62
|
+
@keyframes l16 {
|
|
63
|
+
0% {
|
|
64
|
+
background-position: -150% 0, -150% 0;
|
|
65
|
+
}
|
|
66
|
+
66% {
|
|
67
|
+
background-position: 250% 0, -150% 0;
|
|
68
|
+
}
|
|
69
|
+
100% {
|
|
70
|
+
background-position: 250% 0, 250% 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</style>
|
|
74
|
+
<div class="ssr-background-image"></div>
|
|
75
|
+
<div class="ssr-abs ssr-background" style="opacity: 1">
|
|
76
|
+
<div class="ssr-in ssr-top-bar">
|
|
77
|
+
${new Array(6)
|
|
78
|
+
.fill()
|
|
79
|
+
.map(
|
|
80
|
+
(v, i) => html`<div class="ssr-abs ssr-btn ssr-btn-${i}">
|
|
81
|
+
<div class="ssr-shimmer"></div>
|
|
82
|
+
</div>`,
|
|
83
|
+
)
|
|
84
|
+
.join('')}
|
|
85
|
+
|
|
86
|
+
<div class="ssr-abs ssr-search-box"><div class="ssr-shimmer-search-box"></div></div>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="ssr-abs ssr-center ssr-loader"><div class="loader"></div></div>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
SrrComponent = (render = { style: {}, renderStyle: () => '' }, options) =>
|
|
2
|
+
html`
|
|
3
|
+
<div style="${render.renderStyle('body')}">
|
|
4
|
+
<div style="${render.renderStyle('.container')}">
|
|
5
|
+
<h1 style="${render.renderStyle('h1')}">{{H1}}</h1>
|
|
6
|
+
<p style="${render.renderStyle('p')}">{{P1}}</p>
|
|
7
|
+
<p style="${render.renderStyle('p')}">
|
|
8
|
+
<a href="{{RECOVER_WEB_URL}}" style="${render.renderStyle('button')}"
|
|
9
|
+
><img
|
|
10
|
+
src="http${options.transport.secure ? 's' : ''}://${options.host}${options.path === '/'
|
|
11
|
+
? ''
|
|
12
|
+
: options.path}/api/user/recover/{{TOKEN}}"
|
|
13
|
+
/><br />{{RECOVER_BTN_LABEL}}</a
|
|
14
|
+
>
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
<div style="${render.renderStyle('.footer')}">
|
|
18
|
+
<p>{{COMPANY}}</p>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
SrrComponent = (render = { style: {}, renderStyle: () => '' }, options) =>
|
|
2
|
+
html`
|
|
3
|
+
<div style="${render.renderStyle('body')}">
|
|
4
|
+
<div style="${render.renderStyle('.container')}">
|
|
5
|
+
<h1 style="${render.renderStyle('h1')}">{{H1}}</h1>
|
|
6
|
+
<p style="${render.renderStyle('p')}">{{P1}}</p>
|
|
7
|
+
<img
|
|
8
|
+
src="http${options.transport.secure ? 's' : ''}://${options.host}${options.path === '/'
|
|
9
|
+
? ''
|
|
10
|
+
: options.path}/api/user/mailer/{{TOKEN}}"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
<div style="${render.renderStyle('.footer')}">
|
|
14
|
+
<p>{{COMPANY}}</p>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
`;
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// https://css-loaders.com/pulsing/
|
|
2
|
+
|
|
3
|
+
SrrComponent = () => html`
|
|
4
|
+
<style>
|
|
5
|
+
body {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ssr-fl {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flow-root;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ssr-abs,
|
|
16
|
+
.ssr-in {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ssr-fll {
|
|
21
|
+
float: left;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ssr-flr {
|
|
25
|
+
float: right;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ssr-abs {
|
|
29
|
+
position: absolute;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ssr-in,
|
|
33
|
+
.ssr-inl {
|
|
34
|
+
position: relative;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ssr-inl {
|
|
38
|
+
display: inline-table;
|
|
39
|
+
display: -webkit-inline-table;
|
|
40
|
+
display: -moz-inline-table;
|
|
41
|
+
display: -ms-inline-table;
|
|
42
|
+
display: -o-inline-table;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ssr-fix {
|
|
46
|
+
position: fixed;
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ssr-stq {
|
|
51
|
+
position: sticky;
|
|
52
|
+
/* require defined at least top, bottom, left o right */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ssr-wfa {
|
|
56
|
+
width: fill-available;
|
|
57
|
+
width: -webkit-fill-available;
|
|
58
|
+
width: -moz-fill-available;
|
|
59
|
+
width: -ms-fill-available;
|
|
60
|
+
width: -o-fill-available;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ssr-wft {
|
|
64
|
+
width: fit-content;
|
|
65
|
+
width: -webkit-fit-content;
|
|
66
|
+
width: -moz-fit-content;
|
|
67
|
+
width: -ms-fit-content;
|
|
68
|
+
width: -o-fit-content;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ssr-wfm {
|
|
72
|
+
width: max-content;
|
|
73
|
+
width: -webkit-max-content;
|
|
74
|
+
width: -moz-max-content;
|
|
75
|
+
width: -ms-max-content;
|
|
76
|
+
width: -o-max-content;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ssr-negative-color {
|
|
80
|
+
filter: invert(1);
|
|
81
|
+
-webkit-filter: invert(1);
|
|
82
|
+
-moz-filter: invert(1);
|
|
83
|
+
-ms-filter: invert(1);
|
|
84
|
+
-o-filter: invert(1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ssr-no-drag {
|
|
88
|
+
user-drag: none;
|
|
89
|
+
-webkit-user-drag: none;
|
|
90
|
+
-moz-user-drag: none;
|
|
91
|
+
-ms-user-drag: none;
|
|
92
|
+
-o-user-drag: none;
|
|
93
|
+
user-select: none;
|
|
94
|
+
-webkit-user-select: none;
|
|
95
|
+
-moz-user-select: none;
|
|
96
|
+
-ms-user-select: none;
|
|
97
|
+
-o-user-select: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ssr-center {
|
|
101
|
+
transform: translate(-50%, -50%);
|
|
102
|
+
top: 50%;
|
|
103
|
+
left: 50%;
|
|
104
|
+
width: 100%;
|
|
105
|
+
text-align: center;
|
|
106
|
+
}
|
|
107
|
+
.ssr-gray {
|
|
108
|
+
filter: grayscale(1);
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
111
|
+
<style>
|
|
112
|
+
.ssr-background-image {
|
|
113
|
+
background-size: cover;
|
|
114
|
+
background-position: center;
|
|
115
|
+
height: 100vh;
|
|
116
|
+
width: 100vw;
|
|
117
|
+
object-fit: cover;
|
|
118
|
+
z-index: -1;
|
|
119
|
+
top: 0px;
|
|
120
|
+
left: 0px;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
}
|
|
123
|
+
.ssr-background {
|
|
124
|
+
top: 0px;
|
|
125
|
+
left: 0px;
|
|
126
|
+
height: 100%;
|
|
127
|
+
width: 100%;
|
|
128
|
+
z-index: 11;
|
|
129
|
+
}
|
|
130
|
+
.ssr-shimmer {
|
|
131
|
+
height: 100%;
|
|
132
|
+
background-image: linear-gradient(
|
|
133
|
+
to right,
|
|
134
|
+
rgb(255, 255, 255, 0.5) 0%,
|
|
135
|
+
rgba(200, 200, 200, 0.5) 30%,
|
|
136
|
+
rgba(220, 220, 220, 0.5) 50%,
|
|
137
|
+
rgba(255, 255, 255, 0.5) 100%
|
|
138
|
+
);
|
|
139
|
+
animation: ssr-shimmer 3s linear infinite;
|
|
140
|
+
}
|
|
141
|
+
@keyframes ssr-shimmer {
|
|
142
|
+
0% {
|
|
143
|
+
background-position: -30px 0;
|
|
144
|
+
}
|
|
145
|
+
100% {
|
|
146
|
+
background-position: 80px 0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
.ssr-shimmer-dark {
|
|
150
|
+
height: 100%;
|
|
151
|
+
background-image: linear-gradient(
|
|
152
|
+
to right,
|
|
153
|
+
rgb(5, 5, 5, 0.5) 0%,
|
|
154
|
+
rgba(10, 10, 10, 0.5) 30%,
|
|
155
|
+
rgba(15, 15, 15, 0.5) 40%,
|
|
156
|
+
rgba(10, 10, 10, 0.5) 70%,
|
|
157
|
+
rgba(5, 5, 5, 0.5) 100%
|
|
158
|
+
);
|
|
159
|
+
animation: ssr-shimmer-dark 3s linear infinite;
|
|
160
|
+
}
|
|
161
|
+
@keyframes ssr-shimmer-dark {
|
|
162
|
+
0% {
|
|
163
|
+
background-position: -30px 0;
|
|
164
|
+
}
|
|
165
|
+
100% {
|
|
166
|
+
background-position: 80px 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
.ssr-shimmer-dark-search-box {
|
|
170
|
+
height: 100%;
|
|
171
|
+
background-image: linear-gradient(
|
|
172
|
+
to right,
|
|
173
|
+
rgb(5, 5, 5, 0.5) 0%,
|
|
174
|
+
rgba(10, 10, 10, 0.5) 30%,
|
|
175
|
+
rgba(15, 15, 15, 0.5) 40%,
|
|
176
|
+
rgba(10, 10, 10, 0.5) 70%,
|
|
177
|
+
rgba(5, 5, 5, 0.5) 100%
|
|
178
|
+
);
|
|
179
|
+
animation: ssr-shimmer-dark-search-box 3s linear infinite;
|
|
180
|
+
}
|
|
181
|
+
@keyframes ssr-shimmer-dark-search-box {
|
|
182
|
+
0% {
|
|
183
|
+
background-position: -290px 0;
|
|
184
|
+
}
|
|
185
|
+
100% {
|
|
186
|
+
background-position: 400px 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
.ssr-shimmer-search-box {
|
|
190
|
+
height: 100%;
|
|
191
|
+
background-image: linear-gradient(
|
|
192
|
+
to right,
|
|
193
|
+
rgb(255, 255, 255, 0.5) 0%,
|
|
194
|
+
rgba(200, 200, 200, 0.5) 30%,
|
|
195
|
+
rgba(220, 220, 220, 0.5) 50%,
|
|
196
|
+
rgba(255, 255, 255, 0.5) 100%
|
|
197
|
+
);
|
|
198
|
+
animation: ssr-shimmer-search-box 3s linear infinite;
|
|
199
|
+
}
|
|
200
|
+
@keyframes ssr-shimmer-search-box {
|
|
201
|
+
0% {
|
|
202
|
+
background-position: -290px 0;
|
|
203
|
+
}
|
|
204
|
+
100% {
|
|
205
|
+
background-position: 400px 0;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
.ssr-search-box {
|
|
209
|
+
width: 290px;
|
|
210
|
+
height: 33.3px;
|
|
211
|
+
top: 8.5px;
|
|
212
|
+
left: 100px;
|
|
213
|
+
border-radius: 8px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ssr-btn {
|
|
217
|
+
border-radius: 8px;
|
|
218
|
+
overflow: hidden;
|
|
219
|
+
/* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
|
|
220
|
+
color: #606060;
|
|
221
|
+
/* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 10px 30px 0 rgba(0, 0, 0, 0.3); */
|
|
222
|
+
}
|
|
223
|
+
.ssr-sub-shimmer-loader {
|
|
224
|
+
background: linear-gradient(
|
|
225
|
+
90deg,
|
|
226
|
+
rgba(190, 190, 190, 0.5) 33%,
|
|
227
|
+
rgba(150, 150, 150, 0.5) 50%,
|
|
228
|
+
rgba(190, 190, 190, 0.5) 66%
|
|
229
|
+
)
|
|
230
|
+
rgba(220, 220, 220, 0.5);
|
|
231
|
+
background-size: 300% 100%;
|
|
232
|
+
animation: ssr-sub-shimmer-l1 1s infinite linear;
|
|
233
|
+
border-radius: 5px;
|
|
234
|
+
}
|
|
235
|
+
@keyframes ssr-sub-shimmer-l1 {
|
|
236
|
+
0% {
|
|
237
|
+
background-position: right;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
</style>
|
|
241
|
+
`;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
SrrComponent = () => html`<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
|
2
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
3
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
4
|
+
<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png">
|
|
5
|
+
<link rel="manifest" href="/manifest.webmanifest" crossOrigin="use-credentials">
|
|
6
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
7
|
+
<meta name="theme-color" content="#fff">
|
|
8
|
+
<meta name="application-name" content="Default">
|
|
9
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
|
|
10
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
|
|
11
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
|
|
12
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
|
|
13
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
|
|
14
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
|
|
15
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
|
|
16
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
|
|
17
|
+
<link rel="apple-touch-icon" sizes="167x167" href="/apple-touch-icon-167x167.png">
|
|
18
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
|
|
19
|
+
<link rel="apple-touch-icon" sizes="1024x1024" href="/apple-touch-icon-1024x1024.png">
|
|
20
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
21
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
22
|
+
<meta name="apple-mobile-web-app-title" content="Default">
|
|
23
|
+
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-640x1136.png">
|
|
24
|
+
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-1136x640.png">
|
|
25
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-750x1334.png">
|
|
26
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-1334x750.png">
|
|
27
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1125x2436.png">
|
|
28
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2436x1125.png">
|
|
29
|
+
<link rel="apple-touch-startup-image" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1170x2532.png">
|
|
30
|
+
<link rel="apple-touch-startup-image" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2532x1170.png">
|
|
31
|
+
<link rel="apple-touch-startup-image" media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1179x2556.png">
|
|
32
|
+
<link rel="apple-touch-startup-image" media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2556x1179.png">
|
|
33
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-828x1792.png">
|
|
34
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-1792x828.png">
|
|
35
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1242x2688.png">
|
|
36
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2688x1242.png">
|
|
37
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1242x2208.png">
|
|
38
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2208x1242.png">
|
|
39
|
+
<link rel="apple-touch-startup-image" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1284x2778.png">
|
|
40
|
+
<link rel="apple-touch-startup-image" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2778x1284.png">
|
|
41
|
+
<link rel="apple-touch-startup-image" media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/apple-touch-startup-image-1290x2796.png">
|
|
42
|
+
<link rel="apple-touch-startup-image" media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/apple-touch-startup-image-2796x1290.png">
|
|
43
|
+
<link rel="apple-touch-startup-image" media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1488x2266.png">
|
|
44
|
+
<link rel="apple-touch-startup-image" media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2266x1488.png">
|
|
45
|
+
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1536x2048.png">
|
|
46
|
+
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2048x1536.png">
|
|
47
|
+
<link rel="apple-touch-startup-image" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1620x2160.png">
|
|
48
|
+
<link rel="apple-touch-startup-image" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2160x1620.png">
|
|
49
|
+
<link rel="apple-touch-startup-image" media="(device-width: 820px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1640x2160.png">
|
|
50
|
+
<link rel="apple-touch-startup-image" media="(device-width: 820px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2160x1640.png">
|
|
51
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1668x2388.png">
|
|
52
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2388x1668.png">
|
|
53
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-1668x2224.png">
|
|
54
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2224x1668.png">
|
|
55
|
+
<link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/apple-touch-startup-image-2048x2732.png">
|
|
56
|
+
<link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/apple-touch-startup-image-2732x2048.png">
|
|
57
|
+
<meta name="msapplication-TileColor" content="#fff">
|
|
58
|
+
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
|
|
59
|
+
<meta name="msapplication-config" content="/browserconfig.xml">
|
|
60
|
+
<link rel="yandex-tableau-widget" href="/yandex-browser-manifest.json">`;
|
|
@@ -0,0 +1,31 @@
|
|
|
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: '/offline.js' });
|
|
8
|
+
|
|
9
|
+
window.onload = () =>
|
|
10
|
+
Worker.instance({
|
|
11
|
+
render: async () => {
|
|
12
|
+
window.ononline = async () => {
|
|
13
|
+
location.href = '/';
|
|
14
|
+
};
|
|
15
|
+
window.onoffline = async () => {
|
|
16
|
+
htmls(`.page-render`, html`${await Alert.noInternet({ Translate })}`);
|
|
17
|
+
};
|
|
18
|
+
try {
|
|
19
|
+
if (navigator.onLine) {
|
|
20
|
+
const maintenance = await fetch(location.origin + '/favicon.ico');
|
|
21
|
+
if (maintenance.status !== 200) {
|
|
22
|
+
htmls(`.page-render`, html`${await Alert.maintenance({ Translate })}`);
|
|
23
|
+
} else window.ononline();
|
|
24
|
+
}
|
|
25
|
+
throw new Error(`no internet connection`);
|
|
26
|
+
} catch (error) {
|
|
27
|
+
logger.error(error);
|
|
28
|
+
window.onoffline();
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
});
|