2024-04-26 07:54:02 +02:00
|
|
|
<template>
|
|
|
|
|
<div class="from-dark-600 to-dark-900 bg-gradient-to-tl min-h-dvh">
|
|
|
|
|
<SidebarsNavigation />
|
2024-05-12 07:26:29 +02:00
|
|
|
<div class="relative md:pl-20 min-h-dvh flex flex-row overflow-hidden justify-center xl:justify-between">
|
|
|
|
|
<OverlayScrollbarsComponent :defer="true" class="w-full max-h-dvh overflow-y-auto">
|
2024-05-08 14:15:21 +02:00
|
|
|
<slot />
|
2024-05-12 07:26:29 +02:00
|
|
|
</OverlayScrollbarsComponent>
|
2024-05-08 14:15:21 +02:00
|
|
|
<ClientOnly>
|
|
|
|
|
<CollapsibleAside v-if="width > 1280 && tokenData" direction="right"
|
2024-05-12 07:26:29 +02:00
|
|
|
class="max-w-md max-h-dvh overflow-y-auto w-full hidden absolute inset-y-0 xl:flex">
|
2024-05-08 14:15:21 +02:00
|
|
|
<TimelinesTimelineScroller>
|
2024-04-27 03:28:12 +02:00
|
|
|
<TimelinesNotifications />
|
2024-05-01 10:40:33 +02:00
|
|
|
</TimelinesTimelineScroller>
|
2024-05-08 14:15:21 +02:00
|
|
|
<!-- <div class="mt-auto prose prose-invert prose-sm flex flex-col gap-4 px-10 pb-10" v-if="!tokenData">
|
2024-05-01 10:40:33 +02:00
|
|
|
<div class="text-center">
|
|
|
|
|
<strong
|
|
|
|
|
class="bg-gradient-to-tr from-pink-300 via-purple-300 to-indigo-400 text-transparent bg-clip-text">Lysand
|
|
|
|
|
{{ instance?.lysand_version ?? instance?.version }}</strong> • <a
|
|
|
|
|
href="https://github.com/lysand-org/lysand" target="_blank">Source Code</a>• <a
|
|
|
|
|
href="https://github.com/lysand-org/lysand/issues" target="_blank">Report an Issue</a>
|
|
|
|
|
</div>
|
2024-04-26 07:54:02 +02:00
|
|
|
|
|
|
|
|
|
2024-05-01 10:40:33 +02:00
|
|
|
<NuxtLink href="https://github.com/lysand-org/lysand" target="_blank">
|
|
|
|
|
<ButtonsSecondary class="w-full">
|
|
|
|
|
Create your own instance
|
|
|
|
|
</ButtonsSecondary>
|
|
|
|
|
</NuxtLink>
|
2024-04-26 07:54:02 +02:00
|
|
|
|
2024-05-01 10:40:33 +02:00
|
|
|
<NuxtLink href="/about/apps">
|
|
|
|
|
<ButtonsSecondary class="w-full">
|
|
|
|
|
Mobile Apps
|
|
|
|
|
</ButtonsSecondary>
|
|
|
|
|
</NuxtLink>
|
2024-05-08 14:15:21 +02:00
|
|
|
</div> -->
|
|
|
|
|
</CollapsibleAside>
|
|
|
|
|
</ClientOnly>
|
2024-04-26 07:54:02 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-04-28 07:02:27 +02:00
|
|
|
<ComposerModal />
|
2024-04-26 07:54:02 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-05-08 14:15:21 +02:00
|
|
|
import CollapsibleAside from "~/components/sidebars/collapsible-aside.vue";
|
2024-05-12 07:26:29 +02:00
|
|
|
import { OverlayScrollbarsComponent } from "#imports";
|
2024-04-26 07:54:02 +02:00
|
|
|
|
2024-04-27 06:50:30 +02:00
|
|
|
const tokenData = useTokenData();
|
2024-05-01 10:40:33 +02:00
|
|
|
const { width } = useWindowSize();
|
2024-04-26 07:54:02 +02:00
|
|
|
|
2024-04-28 07:02:27 +02:00
|
|
|
const { n } = useMagicKeys();
|
|
|
|
|
|
2024-05-12 06:34:03 +02:00
|
|
|
watchEffect(async () => {
|
2024-04-28 07:02:27 +02:00
|
|
|
if (n.value) {
|
2024-05-12 06:34:03 +02:00
|
|
|
// Wait 50ms
|
|
|
|
|
await new Promise((resolve) => setTimeout(resolve, 50));
|
2024-04-28 07:02:27 +02:00
|
|
|
useEvent("composer:open");
|
|
|
|
|
}
|
|
|
|
|
});
|
2024-04-26 07:54:02 +02:00
|
|
|
</script>
|