mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
perf: ⚡ Performance work, add PWA
This commit is contained in:
parent
7d07e639c8
commit
6e8f4ae8e1
19 changed files with 76 additions and 45 deletions
|
|
@ -1,16 +1,16 @@
|
|||
<template>
|
||||
<div class="from-dark-600 to-dark-900 bg-gradient-to-tl min-h-dvh">
|
||||
<SidebarsNavigation />
|
||||
<LazySidebarsNavigation />
|
||||
<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">
|
||||
<slot />
|
||||
</OverlayScrollbarsComponent>
|
||||
<ClientOnly>
|
||||
<CollapsibleAside v-if="width > 1280 && tokenData" direction="right"
|
||||
<LazySidebarsCollapsibleAside v-if="width > 1280 && tokenData" direction="right"
|
||||
class="max-w-md max-h-dvh overflow-y-auto w-full hidden absolute inset-y-0 xl:flex">
|
||||
<TimelinesTimelineScroller>
|
||||
<TimelinesNotifications />
|
||||
</TimelinesTimelineScroller>
|
||||
<LazyTimelinesTimelineScroller>
|
||||
<LazyTimelinesLocal />
|
||||
</LazyTimelinesTimelineScroller>
|
||||
<!-- <div class="mt-auto prose prose-invert prose-sm flex flex-col gap-4 px-10 pb-10" v-if="!tokenData">
|
||||
<div class="text-center">
|
||||
<strong
|
||||
|
|
@ -33,17 +33,15 @@
|
|||
</ButtonsSecondary>
|
||||
</NuxtLink>
|
||||
</div> -->
|
||||
</CollapsibleAside>
|
||||
</LazySidebarsCollapsibleAside>
|
||||
</ClientOnly>
|
||||
</div>
|
||||
</div>
|
||||
<ComposerModal />
|
||||
<LazyComposerModal />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import CollapsibleAside from "~/components/sidebars/collapsible-aside.vue";
|
||||
import { OverlayScrollbarsComponent } from "#imports";
|
||||
|
||||
const tokenData = useTokenData();
|
||||
const { width } = useWindowSize();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="from-dark-600 to-dark-900 bg-gradient-to-tl min-h-dvh pb-20 md:pb-0">
|
||||
<SidebarsNavigation />
|
||||
<LazySidebarsNavigation />
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue