From 1bc1eb334c6153b096ffcc8df25f65fa852b7db2 Mon Sep 17 00:00:00 2001 From: tbphp Date: Sat, 1 Aug 2026 21:01:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor(import):=20=E7=A7=BB=E9=99=A4=E6=97=A7?= =?UTF-8?q?=E9=A2=84=E8=AE=BE=E5=85=BC=E5=AE=B9=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/features/import/channel-presets.ts | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/web/src/features/import/channel-presets.ts b/web/src/features/import/channel-presets.ts index f250f11d..048a18c8 100644 --- a/web/src/features/import/channel-presets.ts +++ b/web/src/features/import/channel-presets.ts @@ -102,26 +102,3 @@ export function isProviderPresetID(value: unknown): value is ProviderPresetID { export function findProviderPreset(id: ProviderPresetID): RegisteredProviderPreset | undefined { return providerPresetRegistry.find((preset) => preset.id === id) } - -// Temporary compatibility for the legacy stepped components removed by Task 6. -export interface ChannelPreset { - id: ProviderPresetID - labelKey: string - upstream_url: string - protocols: readonly GroupProtocol[] -} - -export const channelPresets: readonly ChannelPreset[] = [ - ...providerPresetRegistry.map((preset) => ({ - id: preset.id, - labelKey: preset.nameKey, - upstream_url: preset.upstream_url, - protocols: preset.protocols, - })), - { - id: 'custom', - labelKey: 'import.presets.custom.name', - upstream_url: '', - protocols: [], - }, -]