mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(dashboard): post-release UI and proxy connection regressions
This commit is contained in:
@@ -856,7 +856,7 @@ async function getCodexUsage(accessToken, providerSpecificData: Record<string, u
|
||||
quotas,
|
||||
};
|
||||
} catch (error) {
|
||||
throw new Error(`Failed to fetch Codex usage: ${error.message}`);
|
||||
return { message: `Failed to fetch Codex usage: ${(error as Error).message}` };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3847,10 +3847,9 @@ function ConnectionRow({
|
||||
{connection.lastError && connection.isActive !== false && (
|
||||
<span
|
||||
className={`text-xs truncate max-w-[300px] ${statusPresentation.errorTextClass}`}
|
||||
title={connection.lastError}
|
||||
>
|
||||
{connection.lastError}
|
||||
</span>
|
||||
title={connection.lastError.replace(/<[^>]*>?/gm, "")}
|
||||
dangerouslySetInnerHTML={{ __html: connection.lastError }}
|
||||
/>
|
||||
)}
|
||||
<span className="text-xs text-text-muted">#{connection.priority}</span>
|
||||
{connection.globalPriority && (
|
||||
|
||||
@@ -9,6 +9,8 @@ type ProxyItem = {
|
||||
type: string;
|
||||
host: string;
|
||||
port: number;
|
||||
username?: string | null;
|
||||
password?: string | null;
|
||||
region?: string | null;
|
||||
notes?: string | null;
|
||||
status?: string;
|
||||
@@ -211,6 +213,8 @@ export default function ProxyRegistryManager() {
|
||||
type: item.type || "http",
|
||||
host: item.host,
|
||||
port: String(item.port || 8080),
|
||||
username: item.username,
|
||||
password: item.password,
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user