mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
37 lines
967 B
Vue
37 lines
967 B
Vue
<script lang="ts" setup>
|
|
import { storeToRefs } from 'pinia';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
import { useServerStore } from '~/store/server';
|
|
import 'tailwindcss/tailwind.css';
|
|
import '~/assets/main.css';
|
|
|
|
const { t } = useI18n();
|
|
|
|
const serverStore = useServerStore();
|
|
const { authAction, stateData } = storeToRefs(serverStore);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
|
|
<span v-if="stateData.error" class="text-unraid-red font-semibold">
|
|
<h3 class="text-16px mb-8px">{{ t(stateData.heading) }}</h3>
|
|
<span class="text-14px" v-html="t(stateData.message)" />
|
|
</span>
|
|
<span v-if="authAction">
|
|
<BrandButton
|
|
:disabled="authAction?.disabled"
|
|
:icon="authAction.icon"
|
|
:text="t(authAction.text)"
|
|
@click="authAction.click()"
|
|
/>
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="postcss">
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
</style>
|