mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Improve mobile timeline switching
This commit is contained in:
parent
466c1eaaac
commit
3ff674017e
10 changed files with 82 additions and 103 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue