mirror of
https://github.com/unraid/api.git
synced 2026-01-08 01:29:49 -06:00
refactor: uniform line height in web components
This commit is contained in:
@@ -14,7 +14,7 @@ const { authAction, stateData } = storeToRefs(serverStore);
|
||||
|
||||
<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 leading-8">
|
||||
<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>
|
||||
|
||||
@@ -17,7 +17,7 @@ const downloadUrl = computed(() => new URL(`/graphql/api/logs?apiKey=${apiKey.va
|
||||
|
||||
<template>
|
||||
<div class="whitespace-normal flex flex-col gap-y-16px max-w-3xl">
|
||||
<span class="leading-8">
|
||||
<span>
|
||||
{{ t('The primary method of support for Unraid Connect is through our forums and Discord.') }}
|
||||
{{ t('If you are asked to supply logs, please open a support request on our Contact Page and reply to the email message you receive with your logs attached.') }}
|
||||
{{ t('The logs may contain sensitive information so do not post them publicly.') }}
|
||||
|
||||
@@ -3,15 +3,15 @@ import { provide } from 'vue';
|
||||
import { createI18n, I18nInjectionKey } from 'vue-i18n';
|
||||
|
||||
import en_US from '~/locales/en_US.json'; // eslint-disable-line camelcase
|
||||
import ja from '~/locales/ja.json';
|
||||
// import ja from '~/locales/ja.json';
|
||||
|
||||
const defaultLocale = 'ja'; // ja, en_US
|
||||
const defaultLocale = 'en_US'; // ja, en_US
|
||||
const i18n = createI18n<false>({
|
||||
legacy: false, // must set to `false`
|
||||
locale: defaultLocale,
|
||||
messages: {
|
||||
en_US, // eslint-disable-line camelcase
|
||||
ja,
|
||||
// ja,
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user