mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-14 02:46:37 +08:00
chore: format
This commit is contained in:
@@ -162,9 +162,7 @@ export function AuthSection({
|
||||
<SelectItem value='basic'>Basic Auth</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<FormDescription>
|
||||
{t('powHint')}
|
||||
</FormDescription>
|
||||
<FormDescription>{t('powHint')}</FormDescription>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
|
||||
@@ -286,7 +286,9 @@ export function CacheSection({
|
||||
<SelectItem value='path_prefix'>
|
||||
{t('policyPrefix')}
|
||||
</SelectItem>
|
||||
<SelectItem value='path_exact'>{t('policyExact')}</SelectItem>
|
||||
<SelectItem value='path_exact'>
|
||||
{t('policyExact')}
|
||||
</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<FormMessage />
|
||||
|
||||
@@ -349,7 +349,9 @@ export function ProxySection({
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value='none'>{t('pleaseSelect')}</SelectItem>
|
||||
<SelectItem value='none'>
|
||||
{t('pleaseSelect')}
|
||||
</SelectItem>
|
||||
{tunnelClients.map((tunnel) => (
|
||||
<SelectItem key={tunnel.id} value={String(tunnel.id)}>
|
||||
{tunnel.name} (
|
||||
@@ -426,7 +428,9 @@ export function ProxySection({
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value='none'>{t('pleaseSelect')}</SelectItem>
|
||||
<SelectItem value='none'>
|
||||
{t('pleaseSelect')}
|
||||
</SelectItem>
|
||||
{pagesProjects.map((project) => (
|
||||
<SelectItem
|
||||
key={project.id}
|
||||
@@ -454,9 +458,7 @@ export function ProxySection({
|
||||
<FormControl>
|
||||
<Input placeholder='origin.example.internal' {...field} />
|
||||
</FormControl>
|
||||
<FormDescription>
|
||||
{t('originHostHint')}
|
||||
</FormDescription>
|
||||
<FormDescription>{t('originHostHint')}</FormDescription>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
)}
|
||||
|
||||
@@ -153,7 +153,9 @@ export function RouteHeader({ route }: RouteHeaderProps) {
|
||||
<AlertDialogDescription>{t('publishDesc')}</AlertDialogDescription>
|
||||
</AlertDialogHeader>
|
||||
<AlertDialogFooter>
|
||||
<AlertDialogCancel disabled={publishing}>{tc('cancel')}</AlertDialogCancel>
|
||||
<AlertDialogCancel disabled={publishing}>
|
||||
{tc('cancel')}
|
||||
</AlertDialogCancel>
|
||||
<Button onClick={() => void handlePublish()} disabled={publishing}>
|
||||
{publishing ? (
|
||||
<Loader2 className='size-4 animate-spin' />
|
||||
|
||||
Reference in New Issue
Block a user