You've already forked AstralRinth
forked from didirus/AstralRinth
2aabcf36ee
* refactor: migrate to common eslint+prettier configs * fix: prettier frontend * feat: config changes * fix: lint issues * fix: lint * fix: type imports * fix: cyclical import issue * fix: lockfile * fix: missing dep * fix: switch to tabs * fix: continue switch to tabs * fix: rustfmt parity * fix: moderation lint issue * fix: lint issues * fix: ui intl * fix: lint issues * Revert "fix: rustfmt parity" This reverts commit cb99d2376c321d813d4b7fc7e2a213bb30a54711. * feat: revert last rs
40 lines
923 B
Vue
40 lines
923 B
Vue
<template>
|
|
<div class="flex h-full w-full items-center justify-center gap-6 p-20">
|
|
<FileIcon class="size-28" />
|
|
<div class="flex flex-col gap-2">
|
|
<h3 class="text-red-500 m-0 text-2xl font-bold">{{ title }}</h3>
|
|
<p class="m-0 text-sm text-secondary">
|
|
{{ message }}
|
|
</p>
|
|
<div class="flex gap-2">
|
|
<ButtonStyled>
|
|
<button size="sm" @click="$emit('refetch')">
|
|
<UiServersIconsLoadingIcon class="h-5 w-5" />
|
|
Try again
|
|
</button>
|
|
</ButtonStyled>
|
|
<ButtonStyled>
|
|
<button size="sm" @click="$emit('home')">
|
|
<HomeIcon class="h-5 w-5" />
|
|
Go to home folder
|
|
</button>
|
|
</ButtonStyled>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { FileIcon, HomeIcon } from '@modrinth/assets'
|
|
import { ButtonStyled } from '@modrinth/ui'
|
|
|
|
defineProps<{
|
|
title: string
|
|
message: string
|
|
}>()
|
|
|
|
defineEmits<{
|
|
(e: 'refetch' | 'home'): void
|
|
}>()
|
|
</script>
|