refactor(frontend): move HysteriaMasqueradeForm to lib/xray/forms/transport

The hysteria masquerade form edits streamSettings.hysteriaSettings.masquerade (a transport/stream concept) and is rendered identically by both modals, so it belongs next to FinalMaskForm in lib/xray/forms/transport/ rather than protocols/shared/. Moved the file, updated the transport barrel + both consumers (inbound hysteria protocol form, outbound modal), and removed the now-empty protocols/shared/ folder. Pure relocation; snapshots unchanged, typecheck/lint/build green.
This commit is contained in:
MHSanaei 2026-05-30 20:05:57 +02:00
parent 52cbcfb99e
commit 4fd8a884cc
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
5 changed files with 3 additions and 4 deletions

View file

@ -1 +0,0 @@
export { default as HysteriaMasqueradeForm } from './HysteriaMasqueradeForm';

View file

@ -1 +1,2 @@
export { default as FinalMaskForm } from './FinalMaskForm';
export { default as HysteriaMasqueradeForm } from './HysteriaMasqueradeForm';

View file

@ -1,7 +1,7 @@
import { useTranslation } from 'react-i18next';
import { Form, InputNumber, type FormInstance } from 'antd';
import { HysteriaMasqueradeForm } from '@/lib/xray/forms/protocols/shared';
import { HysteriaMasqueradeForm } from '@/lib/xray/forms/transport';
import type { InboundFormValues } from '@/schemas/forms/inbound-form';
export default function HysteriaFields({ form }: { form: FormInstance<InboundFormValues> }) {

View file

@ -13,8 +13,7 @@ import {
Tabs,
message,
} from 'antd';
import { FinalMaskForm } from '@/lib/xray/forms/transport';
import { HysteriaMasqueradeForm } from '@/lib/xray/forms/protocols/shared';
import { FinalMaskForm, HysteriaMasqueradeForm } from '@/lib/xray/forms/transport';
import { JsonEditor } from '@/components/form';
import { Wireguard } from '@/utils';
import {