This commit is contained in:
2021-03-22 15:59:05 +01:00
parent dd27483b16
commit 2ee7f650db
46 changed files with 5636 additions and 0 deletions

13
public/.htaccess Normal file
View File

@@ -0,0 +1,13 @@
AddType application/javascript .mjs
#DirectoryIndex index.html spa.html
DirectoryIndex noindex
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)$ http://wmbasic_api:8080/api/v1/_/__NAMESPACE__/ssr?token=__SSR_TOKEN__&url=/$1 [P,QSA,L]
#RewriteRule (.*) /spa.html [QSA,L]
</ifModule>

16
public/serviceworker.js Normal file
View File

@@ -0,0 +1,16 @@
const cacheName = "site-cache-v1"
const assetsToCache = [
"/",
"/_dist_/index.mjs.css?t=__TIMESTAMP__",
"/_dist_/index.mjs?t=__TIMESTAMP__",
]
self.addEventListener("install", (event) => {
self.skipWaiting() // skip waiting
event.waitUntil(
caches.open(cacheName).then((cache) => {
return cache.addAll(assetsToCache)
})
)
})
self.addEventListener("fetch", (event) => {})

20
public/site.webmanifest Executable file
View File

@@ -0,0 +1,20 @@
{
"name": "__PROJECT_NAME__",
"short_name": "__PROJECT_NAME__",
"start_url": "/",
"icons": [
{
"src": "/favicon/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicon/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

56
public/spa.html Normal file
View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>__PROJECT_NAME__</title>
<base href="/" />
<link rel="stylesheet" href="/_dist_/index.mjs.css?t=__TIMESTAMP__" />
<!--
<link
rel="shortcut icon"
type="image/x-icon"
href="/favicon/favicon.ico"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link
rel="mask-icon"
href="/favicon/safari-pinned-tab.svg"
color="#c4102d"
/>
<meta name="msapplication-TileColor" content="#c4102d" />
<meta name="theme-color" content="#ffffff" />
-->
<!--HEAD-->
<!--PRELOAD-->
</head>
<body>
<div id="appContainer"><!--HTML--></div>
<script type="module" src="/_dist_/index.mjs?t=__TIMESTAMP__"></script>
<script nomodule src="/_dist_/index.es5.js?t=__TIMESTAMP__"></script>
</body>
<!--SSR.ERROR-->
<!--SSR.COMMENT-->
</html>