misc: add util page for photon instance
This commit is contained in:
1 parent
f0134dbbcf
commit
683523d32c
3 files changed
+54
-23
No files matched your search
@@ -2,29 +2,45 @@
|
||||
import { goto } from '$app/navigation'
|
||||
import { page } from '$app/stores'
|
||||
import MultiSelect from '$lib/components/input/Switch.svelte'
|
||||
import Tabs from '$lib/components/ui/layout/pages/Tabs.svelte'
|
||||
import { contentPadding } from '$lib/components/ui/layout/Shell.svelte'
|
||||
</script>
|
||||
|
||||
<MultiSelect
|
||||
headless
|
||||
options={[
|
||||
'/util',
|
||||
'/util/photonify',
|
||||
'/util/placeholder',
|
||||
'/util/constants',
|
||||
'/util/functions',
|
||||
]}
|
||||
optionNames={[
|
||||
'Home',
|
||||
'Photonify links',
|
||||
'Placeholders',
|
||||
'Constants',
|
||||
'Functions',
|
||||
]}
|
||||
selected={$page.url.pathname}
|
||||
on:select={(e) => {
|
||||
goto(e.detail)
|
||||
}}
|
||||
/>
|
||||
<div class="mt-4 flex flex-col gap-2">
|
||||
<div class="flex flex-col gap-2">
|
||||
<div
|
||||
class="sticky mx-auto z-50 max-w-full min-w-0 flex items-center gap-2"
|
||||
style="top: max(1.5rem, {$contentPadding.top}px);"
|
||||
>
|
||||
<Tabs
|
||||
routes={[
|
||||
{
|
||||
href: '/util',
|
||||
name: 'Home',
|
||||
},
|
||||
{
|
||||
href: '/util/instance',
|
||||
name: 'Photon instance',
|
||||
},
|
||||
{
|
||||
href: '/util/photonify',
|
||||
name: 'Photonify Links',
|
||||
},
|
||||
{
|
||||
href: '/util/placeholder',
|
||||
name: 'Placeholders',
|
||||
},
|
||||
{
|
||||
href: '/util/constants',
|
||||
name: 'Constants',
|
||||
},
|
||||
{
|
||||
href: '/functions',
|
||||
name: 'Functions',
|
||||
},
|
||||
]}
|
||||
class="overflow-auto"
|
||||
currentRoute={$page.url.toString()}
|
||||
/>
|
||||
</div>
|
||||
<slot />
|
||||
</div>
|
||||
Reference in new issue
Block a user