mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 13:14:11 +00:00
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:
parent
52cbcfb99e
commit
4fd8a884cc
5 changed files with 3 additions and 4 deletions
|
|
@ -1 +0,0 @@
|
||||||
export { default as HysteriaMasqueradeForm } from './HysteriaMasqueradeForm';
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
export { default as FinalMaskForm } from './FinalMaskForm';
|
export { default as FinalMaskForm } from './FinalMaskForm';
|
||||||
|
export { default as HysteriaMasqueradeForm } from './HysteriaMasqueradeForm';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Form, InputNumber, type FormInstance } from 'antd';
|
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';
|
import type { InboundFormValues } from '@/schemas/forms/inbound-form';
|
||||||
|
|
||||||
export default function HysteriaFields({ form }: { form: FormInstance<InboundFormValues> }) {
|
export default function HysteriaFields({ form }: { form: FormInstance<InboundFormValues> }) {
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,7 @@ import {
|
||||||
Tabs,
|
Tabs,
|
||||||
message,
|
message,
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import { FinalMaskForm } from '@/lib/xray/forms/transport';
|
import { FinalMaskForm, HysteriaMasqueradeForm } from '@/lib/xray/forms/transport';
|
||||||
import { HysteriaMasqueradeForm } from '@/lib/xray/forms/protocols/shared';
|
|
||||||
import { JsonEditor } from '@/components/form';
|
import { JsonEditor } from '@/components/form';
|
||||||
import { Wireguard } from '@/utils';
|
import { Wireguard } from '@/utils';
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue