mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
chore: ⬆️ Upgrade to Nuxt 4
Some checks failed
Some checks failed
This commit is contained in:
parent
8debe97f63
commit
7f7cf20311
386 changed files with 2376 additions and 2332 deletions
28
app/components/errors/AuthRequired.vue
Normal file
28
app/components/errors/AuthRequired.vue
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<template>
|
||||
<Alert layout="button">
|
||||
<LogIn />
|
||||
<AlertTitle>{{ m.sunny_quick_lionfish_flip() }}</AlertTitle>
|
||||
<AlertDescription>
|
||||
{{ m.brave_known_pelican_drip() }}
|
||||
</AlertDescription>
|
||||
<Button
|
||||
variant="secondary"
|
||||
class="w-full"
|
||||
@click="signInAction"
|
||||
>
|
||||
{{ m.fuzzy_sea_moth_absorb() }}
|
||||
</Button>
|
||||
</Alert>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { LogIn } from "lucide-vue-next";
|
||||
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
||||
import { Button } from "~/components/ui/button";
|
||||
import * as m from "~~/paraglide/messages.js";
|
||||
|
||||
const appData = useAppData();
|
||||
const signInAction = async () => signIn(appData, await askForInstance());
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
15
app/components/errors/NoPosts.vue
Normal file
15
app/components/errors/NoPosts.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<Alert>
|
||||
<AlertTitle>{{ m.fine_arable_lemming_fold() }}</AlertTitle>
|
||||
<AlertDescription>
|
||||
{{ m.petty_honest_fish_stir() }}
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
||||
import * as m from "~~/paraglide/messages.js";
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
15
app/components/errors/NotFound.vue
Normal file
15
app/components/errors/NotFound.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<Alert>
|
||||
<AlertTitle>{{ m.empty_awful_lark_dart() }}</AlertTitle>
|
||||
<AlertDescription>
|
||||
{{ m.clean_even_mayfly_tap() }}
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
||||
import * as m from "~~/paraglide/messages.js";
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
15
app/components/errors/ReachedEnd.vue
Normal file
15
app/components/errors/ReachedEnd.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<Alert>
|
||||
<AlertTitle>{{ m.steep_suave_fish_snap() }}</AlertTitle>
|
||||
<AlertDescription>
|
||||
{{ m.muddy_bland_shark_accept() }}
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert";
|
||||
import * as m from "~~/paraglide/messages.js";
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
26
app/components/errors/noscript.vue
Normal file
26
app/components/errors/noscript.vue
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<script setup lang="ts">
|
||||
import SquarePattern from "../graphics/square-pattern.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="grid min-h-screen place-items-center px-6 py-24 sm:py-32 lg:px-8 fixed inset-0 z-[1000000] bg-dark-900">
|
||||
<SquarePattern />
|
||||
<div class="prose prose-invert max-w-lg">
|
||||
<h1 class="mt-4 text-3xl font-bold tracking-tight text-gray-100 sm:text-5xl">JavaScript is disabled
|
||||
</h1>
|
||||
<p class="mt-6 text-base leading-7 text-gray-400">
|
||||
This website requires JavaScript to function properly. Please enable JavaScript in your browser
|
||||
settings.
|
||||
</p>
|
||||
<p class="mt-6 text-base leading-7 text-gray-400">
|
||||
If you are using a browser that does not support JavaScript, please consider using a modern browser
|
||||
like <a href="https://www.mozilla.org/firefox/new/" class="underline">Firefox</a> or <a
|
||||
href="https://www.google.com/chrome/" class="underline">Chrome</a>.
|
||||
</p>
|
||||
<p class="mt-6 text-base leading-7 text-gray-400">
|
||||
This application does not track you, collect user data, use cookies of any kind or send requests to
|
||||
servers outside of your account's instance.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue