generated from cms/tibi-svelte-starter
Initial commit
This commit is contained in:
17
public/.htaccess
Normal file
17
public/.htaccess
Normal file
@@ -0,0 +1,17 @@
|
||||
AddType application/javascript .mjs
|
||||
|
||||
#DirectoryIndex index.html spa.html
|
||||
DirectoryIndex noindex
|
||||
|
||||
<ifModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
RewriteRule ^/?api/(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/$1 [P,QSA,L]
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
RewriteRule ^/?(.*)$ http://tibi-server:8080/api/v1/_/__NAMESPACE__/ssr?token=__SSR_TOKEN__&url=/$1 [P,QSA,L]
|
||||
#RewriteRule (.*) /spa.html [QSA,L]
|
||||
</ifModule>
|
||||
12
public/serviceworker.js
Normal file
12
public/serviceworker.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const cacheName = "site-cache-v1"
|
||||
const assetsToCache = ["/", "/_dist_/index.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
20
public/site.webmanifest
Executable 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"
|
||||
}
|
||||
67
public/spa.html
Normal file
67
public/spa.html
Normal file
@@ -0,0 +1,67 @@
|
||||
<!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.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>
|
||||
|
||||
<!-- Webmakers - Cookie Bar -->
|
||||
<script
|
||||
src="//cc.webmakers.de/cc.js"
|
||||
defer
|
||||
id="ccScript"
|
||||
data-cc-tags="googleMaps"
|
||||
data-cc-privacy-policy-url="/datenschutz"
|
||||
data-cc-secondary-color="#c4253e"
|
||||
data-cc-necessary-cookies="likecmsSession"
|
||||
></script>
|
||||
</body>
|
||||
|
||||
<!--SSR.ERROR-->
|
||||
<!--SSR.COMMENT-->
|
||||
</html>
|
||||
Reference in New Issue
Block a user