242 lines
7.5 KiB
HTML
242 lines
7.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
|
|
[{[ if .ReCaptcha -]}]
|
|
<script src="[{[ .ReCaptchaHost ]}]/recaptcha/api.js?render=explicit"></script>
|
|
[{[ end ]}]
|
|
|
|
<title>[{[ if .Name -]}][{[ .Name ]}][{[ else ]}]File Browser[{[ end ]}]</title>
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="[{[ .StaticURL ]}]/img/icons/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="[{[ .StaticURL ]}]/img/icons/favicon-16x16.png">
|
|
|
|
<!-- Add to home screen for Android and modern mobile browsers -->
|
|
<link rel="manifest" id="manifestPlaceholder" crossorigin="use-credentials">
|
|
<meta name="theme-color" content="#2979ff">
|
|
|
|
<!-- Add to home screen for Safari on iOS/iPadOS -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="assets">
|
|
<link rel="apple-touch-icon" href="[{[ .StaticURL ]}]/img/icons/apple-touch-icon.png">
|
|
|
|
<!-- Add to home screen for Windows -->
|
|
<meta name="msapplication-TileImage" content="[{[ .StaticURL ]}]/img/icons/mstile-144x144.png">
|
|
<meta name="msapplication-TileColor" content="#2979ff">
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700|Roboto:300,400,500,600,700"
|
|
rel="stylesheet">
|
|
|
|
<!-- Inject Some Variables and generate the manifest json -->
|
|
<script>
|
|
window.FileBrowser = JSON.parse('[{[ .Json ]}]');
|
|
|
|
var fullStaticURL = window.location.origin + window.FileBrowser.StaticURL;
|
|
var dynamicManifest = {
|
|
"name": window.FileBrowser.Name || 'File Browser',
|
|
"short_name": window.FileBrowser.Name || 'File Browser',
|
|
"icons": [
|
|
{
|
|
"src": fullStaticURL + "/img/icons/android-chrome-192x192.png",
|
|
"sizes": "192x192",
|
|
"type": "image/png"
|
|
},
|
|
{
|
|
"src": fullStaticURL + "/img/icons/android-chrome-512x512.png",
|
|
"sizes": "512x512",
|
|
"type": "image/png"
|
|
}
|
|
],
|
|
"start_url": window.location.origin + window.FileBrowser.BaseURL,
|
|
"display": "standalone",
|
|
"background_color": "#ffffff",
|
|
"theme_color": "#455a64"
|
|
}
|
|
|
|
const stringManifest = JSON.stringify(dynamicManifest);
|
|
const blob = new Blob([stringManifest], {type: 'application/json'});
|
|
const manifestURL = URL.createObjectURL(blob);
|
|
document.querySelector('#manifestPlaceholder').setAttribute('href', manifestURL);
|
|
</script>
|
|
|
|
<style>
|
|
#loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #fff;
|
|
z-index: 9999;
|
|
transition: .1s ease opacity;
|
|
-webkit-transition: .1s ease opacity;
|
|
}
|
|
|
|
#loading.done {
|
|
opacity: 0;
|
|
}
|
|
|
|
#loading .spinner {
|
|
width: 70px;
|
|
text-align: center;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
-webkit-transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
#loading .spinner > div {
|
|
width: 18px;
|
|
height: 18px;
|
|
background-color: #333;
|
|
border-radius: 100%;
|
|
display: inline-block;
|
|
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
|
|
}
|
|
|
|
#loading .spinner .bounce1 {
|
|
-webkit-animation-delay: -0.32s;
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
#loading .spinner .bounce2 {
|
|
-webkit-animation-delay: -0.16s;
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
@-webkit-keyframes sk-bouncedelay {
|
|
0%, 80%, 100% {
|
|
-webkit-transform: scale(0)
|
|
}
|
|
40% {
|
|
-webkit-transform: scale(1.0)
|
|
}
|
|
}
|
|
|
|
@keyframes sk-bouncedelay {
|
|
0%, 80%, 100% {
|
|
-webkit-transform: scale(0);
|
|
transform: scale(0);
|
|
}
|
|
40% {
|
|
-webkit-transform: scale(1.0);
|
|
transform: scale(1.0);
|
|
}
|
|
}
|
|
.lds-dual-ring {
|
|
display: block;
|
|
border-radius: 50%;
|
|
animation: lds-dual-ring .8s linear infinite;
|
|
border: 1px solid #232f3e;
|
|
border-color: #232f3e rgb(236, 236, 236);
|
|
}
|
|
|
|
@keyframes lds-dual-ring {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
|
|
.la-line-scale-pulse-out.la-2x > div {
|
|
width: 5px;
|
|
height: 40px;
|
|
margin: 0 2px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.la-line-scale-pulse-out > div:nth-child(1), .la-line-scale-pulse-out > div:nth-child(5) {
|
|
-webkit-animation-delay: -.5s;
|
|
animation-delay: -.5s;
|
|
}
|
|
|
|
.la-line-scale-pulse-out > div:nth-child(2), .la-line-scale-pulse-out > div:nth-child(4) {
|
|
-webkit-animation-delay: -.7s;
|
|
animation-delay: -.7s;
|
|
}
|
|
|
|
.la-line-scale-pulse-out > div:nth-child(3) {
|
|
-webkit-animation-delay: -.9s;
|
|
animation-delay: -.9s;
|
|
}
|
|
|
|
.label-color {
|
|
color: rgba(0, 75, 139, 0.3);
|
|
}
|
|
|
|
.la-line-scale-pulse-out > div {
|
|
display: inline-block;
|
|
float: none;
|
|
background-color: rgba(0, 75, 139, 0.3);
|
|
border: 0 solid rgba(0, 75, 139, 0.3);
|
|
width: 4px;
|
|
height: 32px;
|
|
margin: 0 2px;
|
|
border-radius: 0;
|
|
-webkit-animation: .9s cubic-bezier(.85, .25, .37, .85) infinite line-scale-pulse-out;
|
|
animation: .9s cubic-bezier(.85, .25, .37, .85) infinite line-scale-pulse-out;
|
|
}
|
|
|
|
.la-line-scale-pulse-out, .la-line-scale-pulse-out > div {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
@keyframes line-scale-pulse-out {
|
|
0%, 100% {
|
|
transform: scaley(1)
|
|
}
|
|
50% {
|
|
transform: scaley(.3)
|
|
}
|
|
}
|
|
|
|
.sbl-circ-path {
|
|
width: 25px;
|
|
height: 25px;
|
|
color: rgba(90, 90, 90, 0.2);
|
|
position: relative;
|
|
display: inline-block;
|
|
border: 2px solid;
|
|
border-radius: 50%;
|
|
border-right-color: #232f3e;
|
|
animation: rotate 1s linear infinite;
|
|
}
|
|
|
|
@keyframes rotate {
|
|
0% {
|
|
transform: rotate(0);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
|
|
<div id="loading">
|
|
<div class="utm-spinner d-flex flex-column align-items-center justify-content-center">
|
|
<div class="sbl-circ-path"></div>
|
|
</div>
|
|
</div>
|
|
|
|
[{[ if .Theme -]}]
|
|
<link rel="stylesheet" href="[{[ .StaticURL ]}]/themes/[{[ .Theme ]}].css"/>
|
|
[{[ end ]}]
|
|
[{[ if .CSS -]}]
|
|
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css"/>
|
|
[{[ end ]}]
|
|
</body>
|
|
</html>
|