diff --git a/frontend/src/FilterManager.jsx b/frontend/src/FilterManager.jsx index b28c943..7ae9128 100644 --- a/frontend/src/FilterManager.jsx +++ b/frontend/src/FilterManager.jsx @@ -14,24 +14,18 @@ import { IconTrash, IconCheck, IconX, - IconDatabase, IconRefresh, - IconDownload, - IconUpload, IconAlertTriangle, IconFilter, IconChevronDown, - IconLink, IconCopy, IconEye, IconServer, IconSettings, IconDeviceFloppy, IconHash, - IconRocket, IconSortAscending, IconSortDescending, - IconWorld, IconFileText, IconGripVertical } from '@tabler/icons-react'; @@ -53,15 +47,6 @@ import { import { CSS } from '@dnd-kit/utilities'; import { normalizeGateways, countryToFlag } from './utils/serverUtils.js'; import { usePing } from './contexts/PingContext.jsx'; -import { - AddFilterModal, - EditFilterModal, - DeleteFilterModal, - PreviewConfigModal, - AddFilterServerModal -} from './components/filter/index.js'; - -const API_URL = '/api'; // Компонент автокомплита для выбора Community function CommunityAutocomplete({ label, value, onChange, communities = [], required = false, placeholder = 'Введите или выберите community...', baseAS = '65001' }) { @@ -1759,122 +1744,6 @@ function FilterManager() { } - actions={ -
-
- -
-
- setServerSearch(e.target.value)} - onClick={(e) => e.stopPropagation()} - /> -
-
- {activeServers.length > 0 && ( - <> -
Активные серверы
- {activeServers.map(server => ( - { - e.preventDefault(); - setSelectedServer(server); - }} - > -
- - {server.name} -
-
- ))} - - )} - {inactiveServers.length > 0 && ( - <> -
-
Неактивные серверы
- {inactiveServers.map(server => ( - { - e.preventDefault(); - setSelectedServer(server); - }} - > -
- - {server.name} -
-
- ))} - - )} -
- -
-
- {selectedServer && ( - <> - - - - - - )} -
- } />
@@ -1977,6 +1846,15 @@ function FilterManager() { Сохранить +