mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-05 03:46:04 +00:00
Adjust language
This commit is contained in:
@@ -2389,7 +2389,7 @@
|
|||||||
"remoteExitNodeId": "ID",
|
"remoteExitNodeId": "ID",
|
||||||
"remoteExitNodeSecretKey": "Secret",
|
"remoteExitNodeSecretKey": "Secret",
|
||||||
"remoteExitNodeNetworkingTitle": "Network Settings",
|
"remoteExitNodeNetworkingTitle": "Network Settings",
|
||||||
"remoteExitNodeNetworkingDescription": "Configure how this remote exit node routes traffic and which sites prefer to connect through it.",
|
"remoteExitNodeNetworkingDescription": "Configure how this remote exit node routes traffic and which sites prefer to connect through it. Advanced features to be used with backhaul networking configurations.",
|
||||||
"remoteExitNodeNetworkingSave": "Save Settings",
|
"remoteExitNodeNetworkingSave": "Save Settings",
|
||||||
"remoteExitNodeNetworkingSaveSuccessTitle": "Network settings saved",
|
"remoteExitNodeNetworkingSaveSuccessTitle": "Network settings saved",
|
||||||
"remoteExitNodeNetworkingSaveSuccessDescription": "Network settings have been updated successfully.",
|
"remoteExitNodeNetworkingSaveSuccessDescription": "Network settings have been updated successfully.",
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
|||||||
const t = await getTranslations();
|
const t = await getTranslations();
|
||||||
|
|
||||||
const navItems = [
|
const navItems = [
|
||||||
{
|
|
||||||
title: "Networking",
|
|
||||||
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/networking"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: t("credentials"),
|
title: t("credentials"),
|
||||||
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/credentials"
|
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/credentials"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Networking",
|
||||||
|
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/networking"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -143,9 +143,7 @@ export default function NetworkingPage() {
|
|||||||
setSaving(true);
|
setSaving(true);
|
||||||
try {
|
try {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
api.post<
|
api.post<AxiosResponse<SetRemoteExitNodeResourcesResponse>>(
|
||||||
AxiosResponse<SetRemoteExitNodeResourcesResponse>
|
|
||||||
>(
|
|
||||||
`/org/${orgId}/remote-exit-node/${remoteExitNode.remoteExitNodeId}/resources`,
|
`/org/${orgId}/remote-exit-node/${remoteExitNode.remoteExitNodeId}/resources`,
|
||||||
{ destinations: subnets.map((s) => s.text) }
|
{ destinations: subnets.map((s) => s.text) }
|
||||||
),
|
),
|
||||||
@@ -158,9 +156,7 @@ export default function NetworkingPage() {
|
|||||||
]);
|
]);
|
||||||
toast({
|
toast({
|
||||||
title: t("remoteExitNodeNetworkingSaveSuccessTitle"),
|
title: t("remoteExitNodeNetworkingSaveSuccessTitle"),
|
||||||
description: t(
|
description: t("remoteExitNodeNetworkingSaveSuccessDescription")
|
||||||
"remoteExitNodeNetworkingSaveSuccessDescription"
|
|
||||||
)
|
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
toast({
|
toast({
|
||||||
@@ -184,6 +180,15 @@ export default function NetworkingPage() {
|
|||||||
</SettingsSectionTitle>
|
</SettingsSectionTitle>
|
||||||
<SettingsSectionDescription>
|
<SettingsSectionDescription>
|
||||||
{t("remoteExitNodeNetworkingDescription")}
|
{t("remoteExitNodeNetworkingDescription")}
|
||||||
|
<a
|
||||||
|
href="https://docs.pangolin.net/placeholder"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="text-primary hover:underline inline-flex items-center gap-1"
|
||||||
|
>
|
||||||
|
{t("learnMore")}
|
||||||
|
<ExternalLink className="size-3.5 shrink-0" />
|
||||||
|
</a>
|
||||||
</SettingsSectionDescription>
|
</SettingsSectionDescription>
|
||||||
</SettingsSectionHeader>
|
</SettingsSectionHeader>
|
||||||
<SettingsSectionBody>
|
<SettingsSectionBody>
|
||||||
@@ -221,15 +226,6 @@ export default function NetworkingPage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
)}{" "}
|
)}{" "}
|
||||||
<a
|
|
||||||
href="https://docs.pangolin.net/placeholder"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
className="text-primary hover:underline inline-flex items-center gap-1"
|
|
||||||
>
|
|
||||||
{t("learnMore")}
|
|
||||||
<ExternalLink className="size-3.5 shrink-0" />
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</SettingsFormCell>
|
</SettingsFormCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user