1 Commits
Author SHA1 Message Date
刘嘉伟 2985e192a4 feat: show remote access addresses for tcp and udp 2026-09-08 15:26:04 +08:00
9 changed files with 54 additions and 73 deletions

No files matched your search

-20
View File
@@ -35,8 +35,6 @@
<a href="https://github.com/luckjiawei/podux/issues">🐛 Report Bug</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/podux/issues">✨ Request Feature</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="#community"><strong>💬 Community</strong></a>
</p>
<br />
@@ -67,24 +65,6 @@
- 2026-03-26: Released v0.1.5
- 2026-03-31: Released v0.1.6
## Community
No advertisements allowed!
### Telegram
Join the Telegram group for announcements, tips and general discussion:
👉 [https://t.me/+Tv7AcgbLn21hMDA1](https://t.me/+Tv7AcgbLn21hMDA1)
### WeChat Group
Scan the QR code to join the open source project discussion group.
If the group is full, scan the official account QR code on the right and follow it to get an invitation.
<img src="screenshot/wechat-qr.png" alt="WeChat Group QR Code" width="200"> <img src="screenshot/mp-qr.jpg" alt="Official Account QR Code" width="200">
## License
[Apache 2.0](LICENSE)
-20
View File
@@ -35,8 +35,6 @@
<a href="https://github.com/luckjiawei/podux/issues">🐛 提交 Bug</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="https://github.com/luckjiawei/podux/issues">✨ 需求建议</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
<a href="#社区"><strong>💬 交流群</strong></a>
</p>
<br />
@@ -67,24 +65,6 @@
- 2026-03-26: 发布 v0.1.5
- 2026-03-31: 发布 v0.1.6
## 社区
禁止广告!
### Telegram
欢迎加入 Telegram 群,获取项目动态、使用技巧并参与交流:
👉 [https://t.me/+Tv7AcgbLn21hMDA1](https://t.me/+Tv7AcgbLn21hMDA1)
### 微信群
扫描微信二维码加入开源项目交流群。
若群已满,请扫描右侧公众号二维码,关注后获取入群方式。
<img src="screenshot/wechat-qr.png" alt="微信群二维码" width="200"> <img src="screenshot/mp-qr.jpg" alt="公众号二维码" width="200">
## License
[Apache 2.0](LICENSE)
+1 -1
View File
@@ -8,7 +8,7 @@ export default defineConfig({
head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }],
['script', { defer: '', src: 'https://umami.jwinks.com:9443/script.js', 'data-website-id': '7a64c0ad-6d82-484c-88d3-5d9a6c2a1fff' }]
['script', { defer: '', src: 'https://umami.jwinks.com/script.js', 'data-website-id': '8af0f36e-650c-45b5-a17e-e104b918f63f' }]
],
metaChunk: true,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

+2 -2
View File
@@ -286,7 +286,7 @@
"totalProxies": "Total Proxies",
"confirmDeletion": "Confirm Deletion",
"deleteConfirmMessage": "Are you sure you want to delete this proxy? This action cannot be undone.",
"remotePortOrDomain": "Remote Port / Domain",
"remotePortOrDomain": "Remote Access",
"selectServer": "Select Server",
"selectServerPlaceholder": "Select a server",
"noServersAvailable": "No servers available",
@@ -488,4 +488,4 @@
"settingsCreateFailed": "Failed to initialize system settings"
}
}
}
}
+2 -2
View File
@@ -286,7 +286,7 @@
"totalProxies": "代理总数",
"confirmDeletion": "确认删除",
"deleteConfirmMessage": "您确定要删除此代理吗?此操作无法撤消。",
"remotePortOrDomain": "远程端口 / 域名",
"remotePortOrDomain": "远程访问",
"selectServer": "选择服务器",
"selectServerPlaceholder": "选择一个服务器",
"noServersAvailable": "没有可用的服务器",
@@ -488,4 +488,4 @@
"settingsCreateFailed": "初始化系统设置失败"
}
}
}
}
+30 -18
View File
@@ -314,26 +314,38 @@ export function ProxiesView({
</Flex>
);
}
const displayText = proxy.remotePort ? String(proxy.remotePort) : "";
if (!displayText)
const remotePort = proxy.remotePort ? String(proxy.remotePort) : "";
if (!remotePort)
return <Text size="2" color="gray">-</Text>;
const copyKey = `${proxy.id}-port`;
const isCopied = copiedId === copyKey;
const serverAddr =
(proxy as { expand?: { serverId?: { serverAddr?: string } } }).expand?.serverId?.serverAddr || "";
const items = proxy.proxyType === "tcp" || proxy.proxyType === "udp"
? [remotePort, serverAddr ? `${serverAddr}:${remotePort}` : ""].filter(Boolean)
: [remotePort];
return (
<Flex
align="center"
gap="1"
style={{ cursor: "pointer" }}
onClick={() => handleCopy(displayText, copyKey)}
title={isCopied ? t("common.copied") : t("common.clickToCopy")}
>
<Text size="2">{displayText}</Text>
<Icon
icon={isCopied ? "lucide:check" : "lucide:copy"}
width="12"
height="12"
color={isCopied ? "var(--green-9)" : "var(--gray-8)"}
/>
<Flex direction="column" gap="1">
{items.map((item, i) => {
const copyKey = `${proxy.id}-remote-${i}`;
const isCopied = copiedId === copyKey;
return (
<Flex
key={item}
align="center"
gap="1"
style={{ cursor: "pointer" }}
onClick={() => handleCopy(item, copyKey)}
title={isCopied ? t("common.copied") : t("common.clickToCopy")}
>
<Text size="2">{item}</Text>
<Icon
icon={isCopied ? "lucide:check" : "lucide:copy"}
width="12"
height="12"
color={isCopied ? "var(--green-9)" : "var(--gray-8)"}
/>
</Flex>
);
})}
</Flex>
);
})()}
@@ -474,17 +474,26 @@ export function ServerDetailPage() {
</Flex>
);
}
const displayText = proxy.remotePort || "-";
if (displayText === "-") return <Text size="2" color="gray">-</Text>;
const copyKey = `${proxy.id}-port`;
const isCopied = copiedId === copyKey;
const remotePort = proxy.remotePort || "";
if (!remotePort) return <Text size="2" color="gray">-</Text>;
const items = proxy.proxyType === "tcp" || proxy.proxyType === "udp"
? [remotePort, server?.serverAddr ? `${server.serverAddr}:${remotePort}` : ""].filter(Boolean)
: [remotePort];
return (
<Flex align="center" gap="1" style={{ cursor: "pointer" }}
onClick={() => handleCopy(displayText, copyKey)}
title={isCopied ? t("common.copied") : t("common.clickToCopy")}>
<Text size="2">{displayText}</Text>
<Icon icon={isCopied ? "lucide:check" : "lucide:copy"} width="12" height="12"
color={isCopied ? "var(--green-9)" : "var(--gray-8)"} />
<Flex direction="column" gap="1">
{items.map((item, i) => {
const copyKey = `${proxy.id}-remote-${i}`;
const isCopied = copiedId === copyKey;
return (
<Flex key={item} align="center" gap="1" style={{ cursor: "pointer" }}
onClick={() => handleCopy(item, copyKey)}
title={isCopied ? t("common.copied") : t("common.clickToCopy")}>
<Text size="2">{item}</Text>
<Icon icon={isCopied ? "lucide:check" : "lucide:copy"} width="12" height="12"
color={isCopied ? "var(--green-9)" : "var(--gray-8)"} />
</Flex>
);
})}
</Flex>
);
})()}