mirror of
https://github.com/luckjiawei/podux.git
synced 2026-11-30 01:46:47 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54e1b343cc | ||
|
|
b2b6f129e6 |
No files matched your search
@@ -35,6 +35,8 @@
|
||||
<a href="https://github.com/luckjiawei/podux/issues">🐛 Report Bug</a>
|
||||
·
|
||||
<a href="https://github.com/luckjiawei/podux/issues">✨ Request Feature</a>
|
||||
·
|
||||
<a href="#community"><strong>💬 Community</strong></a>
|
||||
</p>
|
||||
|
||||
<br />
|
||||
@@ -65,6 +67,24 @@
|
||||
- 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)
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
<a href="https://github.com/luckjiawei/podux/issues">🐛 提交 Bug</a>
|
||||
·
|
||||
<a href="https://github.com/luckjiawei/podux/issues">✨ 需求建议</a>
|
||||
·
|
||||
<a href="#社区"><strong>💬 交流群</strong></a>
|
||||
</p>
|
||||
|
||||
<br />
|
||||
@@ -65,6 +67,24 @@
|
||||
- 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)
|
||||
|
||||
@@ -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/script.js', 'data-website-id': '8af0f36e-650c-45b5-a17e-e104b918f63f' }]
|
||||
['script', { defer: '', src: 'https://umami.jwinks.com:9443/script.js', 'data-website-id': '7a64c0ad-6d82-484c-88d3-5d9a6c2a1fff' }]
|
||||
],
|
||||
metaChunk: true,
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 272 KiB |
@@ -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 Access",
|
||||
"remotePortOrDomain": "Remote Port / Domain",
|
||||
"selectServer": "Select Server",
|
||||
"selectServerPlaceholder": "Select a server",
|
||||
"noServersAvailable": "No servers available",
|
||||
@@ -488,4 +488,4 @@
|
||||
"settingsCreateFailed": "Failed to initialize system settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -286,7 +286,7 @@
|
||||
"totalProxies": "代理总数",
|
||||
"confirmDeletion": "确认删除",
|
||||
"deleteConfirmMessage": "您确定要删除此代理吗?此操作无法撤消。",
|
||||
"remotePortOrDomain": "远程访问",
|
||||
"remotePortOrDomain": "远程端口 / 域名",
|
||||
"selectServer": "选择服务器",
|
||||
"selectServerPlaceholder": "选择一个服务器",
|
||||
"noServersAvailable": "没有可用的服务器",
|
||||
@@ -488,4 +488,4 @@
|
||||
"settingsCreateFailed": "初始化系统设置失败"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -314,38 +314,26 @@ export function ProxiesView({
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
const remotePort = proxy.remotePort ? String(proxy.remotePort) : "";
|
||||
if (!remotePort)
|
||||
const displayText = proxy.remotePort ? String(proxy.remotePort) : "";
|
||||
if (!displayText)
|
||||
return <Text size="2" color="gray">-</Text>;
|
||||
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];
|
||||
const copyKey = `${proxy.id}-port`;
|
||||
const isCopied = copiedId === copyKey;
|
||||
return (
|
||||
<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
|
||||
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>
|
||||
);
|
||||
})()}
|
||||
|
||||
@@ -474,26 +474,17 @@ export function ServerDetailPage() {
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
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];
|
||||
const displayText = proxy.remotePort || "-";
|
||||
if (displayText === "-") return <Text size="2" color="gray">-</Text>;
|
||||
const copyKey = `${proxy.id}-port`;
|
||||
const isCopied = copiedId === copyKey;
|
||||
return (
|
||||
<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 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>
|
||||
);
|
||||
})()}
|
||||
|
||||
Reference in new issue
Block a user