httpupgrade.tsx 800 B

12345678910111213141516171819202122232425262728293031
  1. import { useTranslation } from 'react-i18next';
  2. import { Input } from 'antd';
  3. import { HeaderMapEditor } from '@/components/form';
  4. import { FormField } from '@/components/form/rhf';
  5. export default function HttpUpgradeForm() {
  6. const { t } = useTranslation();
  7. return (
  8. <>
  9. <FormField
  10. label={t('host')}
  11. name={['streamSettings', 'httpupgradeSettings', 'host']}
  12. >
  13. <Input />
  14. </FormField>
  15. <FormField
  16. label={t('path')}
  17. name={['streamSettings', 'httpupgradeSettings', 'path']}
  18. >
  19. <Input />
  20. </FormField>
  21. <FormField
  22. label={t('pages.inbounds.form.headers')}
  23. name={['streamSettings', 'httpupgradeSettings', 'headers']}
  24. >
  25. <HeaderMapEditor mode="v1" />
  26. </FormField>
  27. </>
  28. );
  29. }