mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-13 02:26:36 +08:00
chore: format
This commit is contained in:
@@ -181,7 +181,10 @@ export function CertificateApplyDialog({
|
||||
<div className='grid gap-4 md:grid-cols-2'>
|
||||
<div className='space-y-2'>
|
||||
<Label>{t('name')}</Label>
|
||||
<Input placeholder={t('namePlaceholder')} {...form.register('name')} />
|
||||
<Input
|
||||
placeholder={t('namePlaceholder')}
|
||||
{...form.register('name')}
|
||||
/>
|
||||
</div>
|
||||
<div className='space-y-2'>
|
||||
<Label>{t('primaryDomain')}</Label>
|
||||
|
||||
@@ -115,7 +115,10 @@ export function CertificateEditorDialog({
|
||||
<LoadingStateWithBorder description={t('loadingContent')} />
|
||||
) : certificateQuery.isError ? (
|
||||
<ErrorInline
|
||||
message={getErrorMessage(certificateQuery.error, t('requestFailed'))}
|
||||
message={getErrorMessage(
|
||||
certificateQuery.error,
|
||||
t('requestFailed'),
|
||||
)}
|
||||
className='justify-center'
|
||||
/>
|
||||
) : !certificateQuery.data ? (
|
||||
|
||||
@@ -268,15 +268,9 @@ export function QuickCreateZoneDomainDialog({
|
||||
) : (
|
||||
<p className='text-xs text-muted-foreground'>
|
||||
{t.rich('domainExample', {
|
||||
api: (chunks) => (
|
||||
<code className='font-mono'>{chunks}</code>
|
||||
),
|
||||
fqdn: (chunks) => (
|
||||
<code className='font-mono'>{chunks}</code>
|
||||
),
|
||||
apex: (chunks) => (
|
||||
<code className='font-mono'>{chunks}</code>
|
||||
),
|
||||
api: (chunks) => <code className='font-mono'>{chunks}</code>,
|
||||
fqdn: (chunks) => <code className='font-mono'>{chunks}</code>,
|
||||
apex: (chunks) => <code className='font-mono'>{chunks}</code>,
|
||||
})}
|
||||
</p>
|
||||
)}
|
||||
|
||||
@@ -39,7 +39,10 @@ export const defaultFileImportValues: FileImportFormValues = {
|
||||
export function createAcmeApplySchema(t: TranslateFn) {
|
||||
return z.object({
|
||||
name: z.string().trim().min(1, t('validation.nameRequired')).max(255),
|
||||
primary_domain: z.string().trim().min(1, t('validation.primaryDomainRequired')),
|
||||
primary_domain: z
|
||||
.string()
|
||||
.trim()
|
||||
.min(1, t('validation.primaryDomainRequired')),
|
||||
other_domains: z.string(),
|
||||
dns_account_id: z.number().min(1, t('validation.dnsAccountRequired')),
|
||||
acme_account_id: z.number(),
|
||||
|
||||
Reference in New Issue
Block a user