IP 管理添加白名单字段并优化展示格式

This commit is contained in:
2025-05-23 14:51:42 +08:00
parent dc83c83cfb
commit 07fcc24cd1
3 changed files with 3 additions and 6 deletions

View File

@@ -1,10 +1,6 @@
## TODO
整合多类型的产品支付流程
支付页面组件的布局组件复用,不同产品只提供不同数据
整合多类型的产品提取流程
IP 管理按长短效分页
调整页面大小优化:如果单页大小不超过预期大小,不需要刷新数据
翻页优化:调整页面大小后检查是否需要重置页面到最后一页(需要后端实现)

View File

@@ -161,7 +161,7 @@ export default function ChannelsPage(props: ChannelsPageProps) {
return <div className={`flex flex-col gap-1`}>
{row.original.auth_ip && (<>
<span className={`text-weak`}>IP </span>
<span>{row.original.user_host}</span>
<span>{row.original.whitelists.replaceAll(",", ", ")}</span>
</>)}
{row.original.auth_pass && (<>
<span className={`text-weak`}></span>

View File

@@ -78,6 +78,7 @@ export type Channel = {
user_host: string
node_host: string
auth_ip: boolean
whitelists: string
auth_pass: boolean
protocol: number
username: string