https://dev.kronoz.win/r/marzneshin.git
| 1 |
d636f3f |
Dawsh |
2y ago |
import { |
| 2 |
d636f3f |
Dawsh |
2y ago |
CommonFields, |
| 3 |
4056c66 |
Dawsh |
1y ago |
EarlyDataField, |
| 4 |
d636f3f |
Dawsh |
2y ago |
FragmentField, |
| 5 |
4056c66 |
Dawsh |
1y ago |
HttpHeadersDynamicFields, |
| 6 |
4056c66 |
Dawsh |
1y ago |
MuxSettingsFields, |
| 7 |
4056c66 |
Dawsh |
1y ago |
NoiseField, |
| 8 |
d636f3f |
Dawsh |
2y ago |
SecurityFields, |
| 9 |
4056c66 |
Dawsh |
1y ago |
SplitHttpFields, |
| 10 |
d636f3f |
Dawsh |
2y ago |
} from "../../fields"; |
| 11 |
d636f3f |
Dawsh |
2y ago |
import { |
| 12 |
d636f3f |
Dawsh |
2y ago |
Accordion, |
| 13 |
4056c66 |
Dawsh |
1y ago |
ClearableTextField, |
| 14 |
4056c66 |
Dawsh |
1y ago |
HStack, |
| 15 |
7389ad0 |
Mardin |
2y ago |
} from "@marzneshin/common/components"; |
| 16 |
4056c66 |
Dawsh |
1y ago |
import { SettingSection } from "@marzneshin/modules/hosts"; |
| 17 |
d636f3f |
Dawsh |
2y ago |
import { useTranslation } from "react-i18next"; |
| 18 |
d636f3f |
Dawsh |
2y ago |
|
| 19 |
d636f3f |
Dawsh |
2y ago |
export const GeneralProfileFields = () => { |
| 20 |
d636f3f |
Dawsh |
2y ago |
const { t } = useTranslation(); |
| 21 |
4056c66 |
Dawsh |
1y ago |
|
| 22 |
d636f3f |
Dawsh |
2y ago |
return ( |
| 23 |
d636f3f |
Dawsh |
2y ago |
<div className="space-y-2"> |
| 24 |
d636f3f |
Dawsh |
2y ago |
<CommonFields /> |
| 25 |
d636f3f |
Dawsh |
2y ago |
<Accordion className="space-y-2" type="single" collapsible> |
| 26 |
4056c66 |
Dawsh |
1y ago |
<SettingSection |
| 27 |
4056c66 |
Dawsh |
1y ago |
value="network" |
| 28 |
4056c66 |
Dawsh |
1y ago |
triggerText={t("page.hosts.network-settings")} |
| 29 |
4056c66 |
Dawsh |
1y ago |
> |
| 30 |
d636f3f |
Dawsh |
2y ago |
<HStack> |
| 31 |
4056c66 |
Dawsh |
1y ago |
<ClearableTextField name="host" label={t("host")} /> |
| 32 |
4056c66 |
Dawsh |
1y ago |
<ClearableTextField name="path" label={t("path")} /> |
| 33 |
d636f3f |
Dawsh |
2y ago |
</HStack> |
| 34 |
4056c66 |
Dawsh |
1y ago |
<EarlyDataField /> |
| 35 |
4056c66 |
Dawsh |
1y ago |
<HttpHeadersDynamicFields /> |
| 36 |
4056c66 |
Dawsh |
1y ago |
</SettingSection> |
| 37 |
4056c66 |
Dawsh |
1y ago |
<SettingSection |
| 38 |
4056c66 |
Dawsh |
1y ago |
value="split-http" |
| 39 |
4056c66 |
Dawsh |
1y ago |
triggerText={t("page.hosts.split-http-settings")} |
| 40 |
4056c66 |
Dawsh |
1y ago |
> |
| 41 |
4056c66 |
Dawsh |
1y ago |
<SplitHttpFields /> |
| 42 |
d636f3f |
Dawsh |
2y ago |
</SettingSection> |
| 43 |
4056c66 |
Dawsh |
1y ago |
<SettingSection |
| 44 |
4056c66 |
Dawsh |
1y ago |
value="camouflage" |
| 45 |
4056c66 |
Dawsh |
1y ago |
triggerText={t("page.hosts.camouflage-settings")} |
| 46 |
4056c66 |
Dawsh |
1y ago |
> |
| 47 |
d636f3f |
Dawsh |
2y ago |
<FragmentField /> |
| 48 |
4056c66 |
Dawsh |
1y ago |
<NoiseField /> |
| 49 |
4056c66 |
Dawsh |
1y ago |
</SettingSection> |
| 50 |
4056c66 |
Dawsh |
1y ago |
<SettingSection |
| 51 |
4056c66 |
Dawsh |
1y ago |
value="mux" |
| 52 |
4056c66 |
Dawsh |
1y ago |
triggerText={t("page.hosts.mux-settings")} |
| 53 |
4056c66 |
Dawsh |
1y ago |
> |
| 54 |
4056c66 |
Dawsh |
1y ago |
<MuxSettingsFields /> |
| 55 |
d636f3f |
Dawsh |
2y ago |
</SettingSection> |
| 56 |
4056c66 |
Dawsh |
1y ago |
<SettingSection |
| 57 |
4056c66 |
Dawsh |
1y ago |
value="security" |
| 58 |
4056c66 |
Dawsh |
1y ago |
triggerText={t("page.hosts.security-settings")} |
| 59 |
4056c66 |
Dawsh |
1y ago |
> |
| 60 |
d636f3f |
Dawsh |
2y ago |
<SecurityFields /> |
| 61 |
d636f3f |
Dawsh |
2y ago |
</SettingSection> |
| 62 |
d636f3f |
Dawsh |
2y ago |
</Accordion> |
| 63 |
d636f3f |
Dawsh |
2y ago |
</div> |
| 64 |
4056c66 |
Dawsh |
1y ago |
); |
| 65 |
4056c66 |
Dawsh |
1y ago |
}; |
| 66 |
d636f3f |
Dawsh |
2y ago |
|
| 67 |
d636f3f |
Dawsh |
2y ago |
export * from "./schema"; |
| 68 |
4056c66 |
Dawsh |
1y ago |
export * from "./split-http-settings.schema"; |
| 69 |
d636f3f |
Dawsh |
2y ago |
export * from "./default"; |