mirror of
https://github.com/1f349/admin.1f349.com.git
synced 2024-11-09 22:32:57 +00:00
Add sites view
This commit is contained in:
parent
4993a31fe6
commit
4e223c3b56
@ -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];
|
||||||
|
|
||||||
|
21
src/views/SitesView.svelte
Normal file
21
src/views/SitesView.svelte
Normal 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>
|
Loading…
Reference in New Issue
Block a user