Skip to content

Commit 6098156

Browse files
chore: change subscriptions url prefix placeholder
1 parent 515ec48 commit 6098156

File tree

5 files changed

+18
-22
lines changed

5 files changed

+18
-22
lines changed

dashboard/public/statics/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@
196196
"title": "General Settings",
197197
"description": "Basic subscription configuration options",
198198
"urlPrefix": "URL Prefix",
199-
"urlPrefixPlaceholder": "sub",
200199
"urlPrefixDescription": "Base URL for subscription links",
201200
"updateInterval": "Update Interval (hours)",
202201
"updateIntervalDescription": "How often clients should check for updates",

dashboard/public/statics/locales/fa.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
"title": "تنظیمات عمومی",
103103
"description": "گزینه‌های پیکربندی پایه اشتراک",
104104
"urlPrefix": "پیشوند آدرس",
105-
"urlPrefixPlaceholder": "sub",
106105
"urlPrefixDescription": "آدرس پایه برای لینک‌های اشتراک",
107106
"updateInterval": "فاصله به‌روزرسانی (ساعت)",
108107
"updateIntervalDescription": "هر چند وقت یکبار کلاینت‌ها باید به‌روزرسانی را بررسی کنند",
@@ -1720,4 +1719,4 @@
17201719
"githubStarsUnit": "ستاره",
17211720
"githubProgress": "پیشرفت ستاره‌ها"
17221721
}
1723-
}
1722+
}

dashboard/public/statics/locales/ru.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
"title": "Общие настройки",
211211
"description": "Основные параметры конфигурации подписки",
212212
"urlPrefix": "Префикс URL",
213-
"urlPrefixPlaceholder": "sub",
214213
"urlPrefixDescription": "Базовый URL для ссылок подписки",
215214
"updateInterval": "Интервал обновления (часы)",
216215
"updateIntervalDescription": "Как часто клиенты должны проверять обновления",

dashboard/public/statics/locales/zh.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
"title": "常规设置",
177177
"description": "配置基本订阅参数",
178178
"urlPrefix": "URL 前缀",
179-
"urlPrefixPlaceholder": "sub",
180179
"urlPrefixDescription": "添加到所有订阅 URL 的前缀",
181180
"updateInterval": "更新间隔(小时)",
182181
"updateIntervalDescription": "订阅自动更新的间隔时间",

dashboard/src/pages/_dashboard.settings.subscriptions.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
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'
63
import { Button } from '@/components/ui/button'
4+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'
75
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
86
import { Input } from '@/components/ui/input'
9-
import { Switch } from '@/components/ui/switch'
107
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
118
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'
1710
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'
2311
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'
2424

2525
// Enhanced validation schema for subscription settings
2626
const subscriptionSchema = z.object({
@@ -854,7 +854,7 @@ export default function SubscriptionSettings() {
854854
{t('settings.subscriptions.general.urlPrefix')}
855855
</FormLabel>
856856
<FormControl>
857-
<Input placeholder={t('settings.subscriptions.general.urlPrefixPlaceholder')} {...field} className="font-mono" />
857+
<Input placeholder="https://example.com" {...field} className="font-mono" />
858858
</FormControl>
859859
<FormDescription className="text-sm text-muted-foreground">{t('settings.subscriptions.general.urlPrefixDescription')}</FormDescription>
860860
<FormMessage />

0 commit comments

Comments
 (0)