fix(webui): place web proxy with web access settings

This commit is contained in:
Xubin Ren committed 2026-10-12 17:24:04 +08:00
1 parent 7575269e7a
commit 7a3a0559c4
16 files changed
+71 -14

No files matched your search

@@ -519,7 +519,9 @@ export function SettingsPage({
olostepFeature={featureCatalog.find((feature) => feature.name === "olostep")}
olostepInstalling={nanobotFeatureAction === "enable:olostep"}
capabilityError={nanobotFeaturesError}
/>
>
{settings.runtime_config ? runtimeConfiguration("network") : null}
</WebSettings>
</div>
);
case "channels":
@@ -1,6 +1,6 @@
import { useAutoSave } from "@/components/settings/shared/useAutoSave";
import { SettingsAdvancedOptions } from "@/components/settings/shared/SettingsFeature";
import type { Dispatch, SetStateAction } from "react";
import type { Dispatch, ReactNode, SetStateAction } from "react";
import { Eye, EyeOff, Pencil } from "lucide-react";
import { useTranslation } from "react-i18next";
@@ -96,6 +96,7 @@ export function WebSettings({
olostepFeature,
olostepInstalling,
capabilityError,
children,
}: {
embedded?: boolean;
error?: string;
@@ -118,6 +119,7 @@ export function WebSettings({
olostepFeature?: NanobotFeatureInfo;
olostepInstalling: boolean;
capabilityError: string | null;
children?: ReactNode;
}) {
const { t } = useTranslation();
const tx = (key: string, fallback: string) => t(key, { defaultValue: fallback });
@@ -272,6 +274,7 @@ export function WebSettings({
label={effectiveJinaReader ? tx("settings.values.on", "On") : tx("settings.values.off", "Off")}
/>
</SettingsRow>
{children}
</SettingsAdvancedOptions>
</div>
<RestartSettingsFooter
@@ -9,7 +9,7 @@ export interface RuntimeConfigField {
max?: number;
}
export type RuntimeConfigPage = "memory" | "runtime" | "advanced" | "browser" | "image";
export type RuntimeConfigPage = "memory" | "runtime" | "advanced" | "browser" | "network" | "image";
export const RUNTIME_CONFIG_GROUPS: { id: string; page: RuntimeConfigPage; enabledBy?: string }[] = [
{ id: "identity", page: "runtime" },
@@ -20,7 +20,7 @@ export const RUNTIME_CONFIG_GROUPS: { id: string; page: RuntimeConfigPage; enabl
{ id: "tools", page: "runtime" },
{ id: "web", page: "browser" },
{ id: "shell", page: "advanced", enabledBy: "tools.exec.enable" },
{ id: "network", page: "advanced", enabledBy: "tools.web.enable" },
{ id: "network", page: "network" },
{ id: "safety", page: "advanced" },
{ id: "cli", page: "advanced", enabledBy: "tools.cli_apps.enable" },
{ id: "gateway", page: "advanced" },