Add sites view

This commit is contained in:
Melon 2023-10-31 17:17:11 +00:00
parent 4993a31fe6
commit 4e223c3b56
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
2 changed files with 23 additions and 0 deletions

View File

@ -4,6 +4,7 @@
import RoutesView from "./views/RoutesView.svelte"; import RoutesView from "./views/RoutesView.svelte";
import RedirectsView from "./views/RedirectsView.svelte"; import RedirectsView from "./views/RedirectsView.svelte";
import CertificatesView from "./views/CertificatesView.svelte"; import CertificatesView from "./views/CertificatesView.svelte";
import SitesView from "./views/SitesView.svelte";
import {loginStore, parseJwt, type LoginStore} from "./stores/login"; import {loginStore, parseJwt, type LoginStore} from "./stores/login";
import {openLoginPopup} from "./utils/login-popup"; import {openLoginPopup} from "./utils/login-popup";
import {domainOption} from "./stores/domain-option"; import {domainOption} from "./stores/domain-option";
@ -13,6 +14,7 @@
{name: "Routes", view: RoutesView}, {name: "Routes", view: RoutesView},
{name: "Redirects", view: RedirectsView}, {name: "Redirects", view: RedirectsView},
{name: "Certificates", view: CertificatesView}, {name: "Certificates", view: CertificatesView},
{name: "Sites", view: SitesView},
]; ];
let sidebarSelection: {name: string; view: typeof SvelteComponent<{}>} = sidebarOptions[0]; let sidebarSelection: {name: string; view: typeof SvelteComponent<{}>} = sidebarOptions[0];

View File

@ -0,0 +1,21 @@
<script>
import {getBearer} from "../stores/login";
</script>
<div class="sites-panel">
<iframe src="https://sites.1f349.net/panel.php?token={getBearer()}" title="" />
</div>
<style lang="scss">
.sites-panel {
width: 100%;
height: 100%;
overflow: hidden;
iframe {
border: 0;
width: 100%;
height: 100%;
}
}
</style>