refactor(frontend): simplify routing paths for certificates, dns-accounts and ip-groups

- Remove /websites prefix from TLS certificates and DNS accounts routes.
- Remove /waf prefix from IP groups route.
- Correct relative import paths for shared components.
This commit is contained in:
ryan
2026-06-22 10:56:40 +08:00
parent 3a2878d070
commit 7b14e15afb
5 changed files with 20 additions and 18 deletions
+5 -5
View File
@@ -23,11 +23,11 @@ import {LoadingStateWithBorder} from '@/components/layout/loading';
import type {WAFIPGroup, WAFIPGroupAutoTestResult, WAFIPGroupPayload,} from '@/lib/services/openflare';
import {WafService} from '@/lib/services/openflare';
import {buildIPGroupPayloadFromGroup, getErrorMessage, parseAutomaticConfig} from '../components/helpers';
import {IPGroupDialog} from '../components/ip-group-dialog';
import {IPGroupTestDialog} from '../components/ip-group-test-dialog';
import {IPGroupViewDialog} from '../components/ip-group-view-dialog';
import {IPGroupsTable} from '../components/ip-groups-table';
import {buildIPGroupPayloadFromGroup, getErrorMessage, parseAutomaticConfig} from '../waf/components/helpers';
import {IPGroupDialog} from '../waf/components/ip-group-dialog';
import {IPGroupTestDialog} from '../waf/components/ip-group-test-dialog';
import {IPGroupViewDialog} from '../waf/components/ip-group-view-dialog';
import {IPGroupsTable} from '../waf/components/ip-groups-table';
const ipGroupsQueryKey = ['openflare', 'waf', 'ip-groups'];