Add speedtest page

This commit is contained in:
2024-02-19 19:49:34 +01:00
parent a9d685424f
commit 2e5f17d867
11 changed files with 353 additions and 5 deletions

View File

@@ -525,7 +525,6 @@ select:focus {
color: var(--input_text);
text-decoration: none;
background: var(--input_hover_background);
}
button:active,
@@ -564,7 +563,7 @@ select.disabled {
color: var(--input_disabled_text);
box-shadow: none;
transition: none;
padding: 4px 5px 4px 5px;
padding: 5px 5px 5px 5px;
cursor: not-allowed;
background: var(--input_background);
}

View File

@@ -27,6 +27,7 @@
<a href="/about">About</a>
<a href="/apps">Apps</a>
<a href="/appearance">Theme</a>
<a href="/speedtest">Speedtest</a>
<a href="/api">API</a>
<a href="/filesystem">Filesystem Guide</a>
<a href="/acknowledgements">Acknowledgements</a>

View File

@@ -0,0 +1,21 @@
{{define "speedtest"}}
<!DOCTYPE html>
<html lang="en">
<head>
{{template "meta_tags" "Speedtest"}}
<script>
window.api_endpoint = '{{.APIEndpoint}}';
window.user = {{.User}};
window.server_hostname = "{{.Hostname}}";
</script>
<link rel='stylesheet' href='/res/svelte/speedtest.css?v{{cacheID}}'>
<script defer src='/res/svelte/speedtest.js?v{{cacheID}}'></script>
</head>
<body>
{{template "menu" .}}
<div id="page_body" class="page_body"></div>
{{template "analytics"}}
</body>
</html>
{{end}}