reality.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { useTranslation } from 'react-i18next';
  2. import { Input, Select } from 'antd';
  3. import { FormField } from '@/components/form/rhf';
  4. import { UTLS_OPTIONS } from '../outbound-form-constants';
  5. export default function RealityForm() {
  6. const { t } = useTranslation();
  7. return (
  8. <>
  9. <FormField
  10. label="SNI"
  11. name={['streamSettings', 'realitySettings', 'serverName']}
  12. >
  13. <Input />
  14. </FormField>
  15. <FormField
  16. label="uTLS"
  17. name={['streamSettings', 'realitySettings', 'fingerprint']}
  18. >
  19. <Select options={UTLS_OPTIONS} />
  20. </FormField>
  21. <FormField
  22. label={t('pages.xray.outboundForm.shortId')}
  23. name={['streamSettings', 'realitySettings', 'shortId']}
  24. >
  25. <Input />
  26. </FormField>
  27. <FormField
  28. label={t('pages.inbounds.form.spiderX')}
  29. name={['streamSettings', 'realitySettings', 'spiderX']}
  30. >
  31. <Input />
  32. </FormField>
  33. <FormField
  34. label={t('pages.inbounds.publicKey')}
  35. name={['streamSettings', 'realitySettings', 'publicKey']}
  36. >
  37. <Input.TextArea autoSize={{ minRows: 2 }} />
  38. </FormField>
  39. <FormField
  40. label={t('pages.inbounds.form.mldsa65Verify')}
  41. name={['streamSettings', 'realitySettings', 'mldsa65Verify']}
  42. >
  43. <Input.TextArea autoSize={{ minRows: 2 }} />
  44. </FormField>
  45. </>
  46. );
  47. }