diff --git a/web/src/components/proxy-ping.tsx b/web/src/components/proxy-ping.tsx
index 3e1d874..5d2cfab 100644
--- a/web/src/components/proxy-ping.tsx
+++ b/web/src/components/proxy-ping.tsx
@@ -30,11 +30,11 @@ export default function ProxyPing({ accountId }: { accountId: string }) {
>
{isLoading && (
-
+
{(data.ping * 1000).toFixed(0)} ms
)}
diff --git a/web/src/components/proxys.tsx b/web/src/components/proxys.tsx
index 4e69249..a02e953 100644
--- a/web/src/components/proxys.tsx
+++ b/web/src/components/proxys.tsx
@@ -25,6 +25,7 @@ import useSWRMutation from "swr/mutation";
import { request } from "@/lib/api";
import { toast } from "@/hooks/use-toast";
import ProxyPing from "@/components/proxy-ping";
+import { Label } from "./ui/label";
export interface ProxysProps {
enableSelect?: boolean;
@@ -231,34 +232,46 @@ export default function Proxys({
{/* Radio buttons for proxy type */}
- {/* Other input fields */}
-
+
-
+
+
-
- Authentication (optional)
-
+
-
-
+
Password
{
e.preventDefault();
@@ -51,6 +55,24 @@ export default function SettingsForm() {
These settings will be applied to all accounts.
+
+
Your root path
+
+
+ {account?.rootPath}
+
+
+
+
Unique Only
diff --git a/web/src/components/ui/toaster.tsx b/web/src/components/ui/toaster.tsx
index 364b797..deee0d7 100644
--- a/web/src/components/ui/toaster.tsx
+++ b/web/src/components/ui/toaster.tsx
@@ -18,14 +18,14 @@ export function Toaster() {
{toasts.map(function ({ id, title, description, action, ...props }) {
return (
-
+
e.stopPropagation()}>
{title && {title}}
{description && (
{description}
)}
{action}
-
+
e.stopPropagation()} />
);
})}
diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts
index ff08f85..f0c2598 100644
--- a/web/src/lib/types.ts
+++ b/web/src/lib/types.ts
@@ -8,6 +8,7 @@ export type TelegramAccount = {
status: "active" | "inactive";
lastAuthorizationState?: TelegramObject;
proxy?: string;
+ rootPath: string;
};
export type TelegramChat = {