|
1 | | -import { useForm, useFieldArray } from 'react-hook-form' |
2 | | -import { zodResolver } from '@hookform/resolvers/zod' |
3 | | -import { z } from 'zod' |
4 | | -import { useTranslation } from 'react-i18next' |
5 | | -import { useEffect, useState } from 'react' |
| 1 | +import { SortableApplication } from '@/components/apps/sortable-application' |
| 2 | +import { Badge } from '@/components/ui/badge' |
6 | 3 | import { Button } from '@/components/ui/button' |
| 4 | +import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog' |
7 | 5 | import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form' |
8 | 6 | import { Input } from '@/components/ui/input' |
9 | | -import { Switch } from '@/components/ui/switch' |
10 | 7 | import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' |
11 | 8 | import { Separator } from '@/components/ui/separator' |
12 | | -import { Badge } from '@/components/ui/badge' |
13 | | -import { Plus, Trash2, Filter, FileText, Link, Clock, HelpCircle, User, Settings, Code, FileCode2, Sword, Shield, Lock, GripVertical, RotateCcw, Megaphone, ExternalLink } from 'lucide-react' |
14 | | -import { useSettingsContext } from './_dashboard.settings' |
15 | | -import { ConfigFormat } from '@/service/api' |
16 | | -import { toast } from 'sonner' |
| 9 | +import { Switch } from '@/components/ui/switch' |
17 | 10 | import { VariablesPopover } from '@/components/ui/variables-popover' |
18 | | -import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors, DragEndEvent } from '@dnd-kit/core' |
19 | | -import { SortableContext, sortableKeyboardCoordinates, useSortable, rectSortingStrategy } from '@dnd-kit/sortable' |
20 | | -import { CSS } from '@dnd-kit/utilities' |
21 | | -import { SortableApplication } from '@/components/apps/sortable-application' |
22 | | -import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog' |
23 | 11 | import useDirDetection from '@/hooks/use-dir-detection' |
| 12 | +import { ConfigFormat } from '@/service/api' |
| 13 | +import { closestCenter, DndContext, DragEndEvent, KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core' |
| 14 | +import { rectSortingStrategy, SortableContext, sortableKeyboardCoordinates, useSortable } from '@dnd-kit/sortable' |
| 15 | +import { CSS } from '@dnd-kit/utilities' |
| 16 | +import { zodResolver } from '@hookform/resolvers/zod' |
| 17 | +import { Clock, Code, ExternalLink, FileCode2, FileText, Filter, GripVertical, HelpCircle, Link, Lock, Megaphone, Plus, RotateCcw, Settings, Shield, Sword, Trash2, User } from 'lucide-react' |
| 18 | +import { useEffect, useState } from 'react' |
| 19 | +import { useFieldArray, useForm } from 'react-hook-form' |
| 20 | +import { useTranslation } from 'react-i18next' |
| 21 | +import { toast } from 'sonner' |
| 22 | +import { z } from 'zod' |
| 23 | +import { useSettingsContext } from './_dashboard.settings' |
24 | 24 |
|
25 | 25 | // Enhanced validation schema for subscription settings |
26 | 26 | const subscriptionSchema = z.object({ |
@@ -854,7 +854,7 @@ export default function SubscriptionSettings() { |
854 | 854 | {t('settings.subscriptions.general.urlPrefix')} |
855 | 855 | </FormLabel> |
856 | 856 | <FormControl> |
857 | | - <Input placeholder={t('settings.subscriptions.general.urlPrefixPlaceholder')} {...field} className="font-mono" /> |
| 857 | + <Input placeholder="https://example.com" {...field} className="font-mono" /> |
858 | 858 | </FormControl> |
859 | 859 | <FormDescription className="text-sm text-muted-foreground">{t('settings.subscriptions.general.urlPrefixDescription')}</FormDescription> |
860 | 860 | <FormMessage /> |
|
0 commit comments