refactor: ♻️ Improve mobile timeline switching

This commit is contained in:
Jesse Wierzbinski 2024-12-26 14:34:59 +01:00
parent 466c1eaaac
commit 3ff674017e
No known key found for this signature in database
10 changed files with 82 additions and 103 deletions

View file

@ -6,7 +6,7 @@
</div>
</template>
<script setup lang="ts">
<script setup lang="tsx">
import Global from "~/components/timelines/global.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
import * as m from "~/paraglide/messages.js";
@ -17,14 +17,5 @@ useHead({
definePageMeta({
layout: "app",
breadcrumbs: () => [
{
text: m.steep_aqua_fox_harbor(),
},
{
text: m.real_tame_moose_greet(),
href: "/global",
},
],
});
</script>
</script>

View file

@ -6,26 +6,17 @@
</div>
</template>
<script setup lang="ts">
<script setup lang="tsx">
import Home from "~/components/timelines/home.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
import * as m from "~/paraglide/messages.js";
useHead({
title: "Home",
title: m.bland_chunky_sparrow_propel(),
});
definePageMeta({
layout: "app",
breadcrumbs: () => [
{
text: m.steep_aqua_fox_harbor(),
},
{
text: m.bland_chunky_sparrow_propel(),
href: "/home",
},
],
requiresAuth: true,
});
</script>
</script>

View file

@ -8,7 +8,7 @@
</template>
<script setup lang="ts">
<script setup lang="tsx">
import Home from "~/components/timelines/home.vue";
import Public from "~/components/timelines/public.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
@ -22,19 +22,5 @@ useHead({
definePageMeta({
layout: "app",
breadcrumbs: () => [
{
text: m.steep_aqua_fox_harbor(),
},
identity.value
? {
text: m.bland_chunky_sparrow_propel(),
href: "/home",
}
: {
text: m.lost_trick_dog_grace(),
href: "/public",
},
],
});
</script>
</script>

View file

@ -7,7 +7,7 @@
</template>
<script lang="ts" setup>
<script lang="tsx" setup>
import Local from "~/components/timelines/local.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
import * as m from "~/paraglide/messages.js";
@ -18,14 +18,5 @@ useHead({
definePageMeta({
layout: "app",
breadcrumbs: () => [
{
text: m.steep_aqua_fox_harbor(),
},
{
text: m.crazy_game_parrot_pave(),
href: "/local",
},
],
});
</script>
</script>

View file

@ -6,25 +6,16 @@
</div>
</template>
<script setup lang="ts">
<script setup lang="tsx">
import Public from "~/components/timelines/public.vue";
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
import * as m from "~/paraglide/messages.js";
useHead({
title: "Public",
title: m.lost_trick_dog_grace(),
});
definePageMeta({
layout: "app",
breadcrumbs: () => [
{
text: m.steep_aqua_fox_harbor(),
},
{
text: m.lost_trick_dog_grace(),
href: "/public",
},
],
});
</script>
</script>