mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-12 10:16:37 +08:00
chore: format
This commit is contained in:
@@ -144,9 +144,7 @@ export function InstallCommand({
|
||||
variant='secondary'
|
||||
size='sm'
|
||||
className='h-7 text-xs'
|
||||
onClick={() =>
|
||||
void handleCopy(scriptCommand, t('copiedScript'))
|
||||
}
|
||||
onClick={() => void handleCopy(scriptCommand, t('copiedScript'))}
|
||||
>
|
||||
<Copy className='size-3.5 mr-1' />
|
||||
{t('copyScript')}
|
||||
@@ -157,9 +155,7 @@ export function InstallCommand({
|
||||
variant='secondary'
|
||||
size='sm'
|
||||
className='h-7 text-xs'
|
||||
onClick={() =>
|
||||
void handleCopy(dockerCommand, t('copiedDocker'))
|
||||
}
|
||||
onClick={() => void handleCopy(dockerCommand, t('copiedDocker'))}
|
||||
>
|
||||
<Copy className='size-3.5 mr-1' />
|
||||
{t('copyDocker')}
|
||||
@@ -182,28 +178,20 @@ export function InstallCommand({
|
||||
</div>
|
||||
|
||||
<div className='space-y-2'>
|
||||
<Label htmlFor={`server-url-${variant}`}>
|
||||
{t('serverUrl')}
|
||||
</Label>
|
||||
<Label htmlFor={`server-url-${variant}`}>{t('serverUrl')}</Label>
|
||||
<Input
|
||||
id={`server-url-${variant}`}
|
||||
value={serverUrl}
|
||||
onChange={(event) => setServerUrl(event.target.value)}
|
||||
placeholder='https://openflare.example.com'
|
||||
/>
|
||||
<p className='text-xs text-muted-foreground'>
|
||||
{t('serverUrlHint')}
|
||||
</p>
|
||||
<p className='text-xs text-muted-foreground'>{t('serverUrlHint')}</p>
|
||||
</div>
|
||||
|
||||
{!node.access_token ? (
|
||||
<p className='text-sm text-muted-foreground'>
|
||||
{t('noToken')}
|
||||
</p>
|
||||
<p className='text-sm text-muted-foreground'>{t('noToken')}</p>
|
||||
) : !normalizedServerUrl ? (
|
||||
<p className='text-sm text-muted-foreground'>
|
||||
{t('needServerUrl')}
|
||||
</p>
|
||||
<p className='text-sm text-muted-foreground'>{t('needServerUrl')}</p>
|
||||
) : (
|
||||
<>
|
||||
{scriptCommand && meta.scriptLabel ? (
|
||||
|
||||
@@ -207,7 +207,9 @@ export function NodeEditorDialog({
|
||||
<SelectValue />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
<SelectItem value='edge_node'>{t('editor.typeEdge')}</SelectItem>
|
||||
<SelectItem value='edge_node'>
|
||||
{t('editor.typeEdge')}
|
||||
</SelectItem>
|
||||
<SelectItem value='tunnel_relay'>
|
||||
{t('editor.typeRelay')}
|
||||
</SelectItem>
|
||||
|
||||
@@ -314,9 +314,7 @@ function HealthEventTimeline({
|
||||
))}
|
||||
</>
|
||||
) : (
|
||||
<p className='text-sm text-muted-foreground'>
|
||||
{t('obs.noEvents')}
|
||||
</p>
|
||||
<p className='text-sm text-muted-foreground'>{t('obs.noEvents')}</p>
|
||||
)}
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -41,10 +41,7 @@ export function NodeDetailPageClient() {
|
||||
if (!nodeId) {
|
||||
return (
|
||||
<div className='py-6 px-1'>
|
||||
<EmptyStateWithBorder
|
||||
icon={Server}
|
||||
description={t('missingId')}
|
||||
/>
|
||||
<EmptyStateWithBorder icon={Server} description={t('missingId')} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,9 @@ export function NodesPageClient() {
|
||||
<div className='flex items-center justify-between gap-3'>
|
||||
<div className='flex items-center gap-2'>
|
||||
<Server className='size-5 text-primary' />
|
||||
<h1 className='text-2xl font-semibold tracking-tight'>{t('title')}</h1>
|
||||
<h1 className='text-2xl font-semibold tracking-tight'>
|
||||
{t('title')}
|
||||
</h1>
|
||||
</div>
|
||||
<div className='flex items-center gap-2'>
|
||||
<Button variant='outline' size='sm' className='h-7 text-xs' asChild>
|
||||
|
||||
Reference in New Issue
Block a user