mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-08 02:36:37 +08:00
fix: restore copy functionality for entry/target fields in non-compact table view and hide redundant tunnel name in grouped card view (#325)
This commit is contained in:
@@ -724,7 +724,6 @@ const SortableTableRow = ({
|
|||||||
handleDelete,
|
handleDelete,
|
||||||
handleDiagnose,
|
handleDiagnose,
|
||||||
showAddressModal,
|
showAddressModal,
|
||||||
hasMultipleAddresses,
|
|
||||||
formatFlow,
|
formatFlow,
|
||||||
}: any) => {
|
}: any) => {
|
||||||
const {
|
const {
|
||||||
@@ -786,15 +785,11 @@ const SortableTableRow = ({
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`w-full truncate rounded-md bg-default-100/50 px-2.5 py-1.5 text-left font-mono text-xs font-medium text-default-700 transition-all ${
|
className="w-full truncate rounded-md bg-default-100/50 px-2.5 py-1.5 text-left font-mono text-xs font-medium text-default-700 transition-all hover:bg-default-200 hover:shadow-sm cursor-pointer"
|
||||||
hasMultipleAddresses(forward.inIp) ? "hover:bg-default-200 hover:shadow-sm cursor-pointer" : "cursor-default"
|
|
||||||
}`}
|
|
||||||
title={formatInAddress(forward.inIp, forward.inPort)}
|
title={formatInAddress(forward.inIp, forward.inPort)}
|
||||||
onClick={() => {
|
onClick={() =>
|
||||||
if (hasMultipleAddresses(forward.inIp)) {
|
showAddressModal(forward.inIp, forward.inPort, "入口端口")
|
||||||
showAddressModal(forward.inIp, forward.inPort, "入口端口");
|
}
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{formatInAddress(forward.inIp, forward.inPort)}
|
{formatInAddress(forward.inIp, forward.inPort)}
|
||||||
</button>
|
</button>
|
||||||
@@ -804,15 +799,11 @@ const SortableTableRow = ({
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`w-full truncate rounded-md bg-default-100/50 px-2.5 py-1.5 text-left font-mono text-xs font-medium text-default-700 transition-all ${
|
className="w-full truncate rounded-md bg-default-100/50 px-2.5 py-1.5 text-left font-mono text-xs font-medium text-default-700 transition-all hover:bg-default-200 hover:shadow-sm cursor-pointer"
|
||||||
hasMultipleAddresses(forward.remoteAddr) ? "hover:bg-default-200 hover:shadow-sm cursor-pointer" : "cursor-default"
|
|
||||||
}`}
|
|
||||||
title={formatRemoteAddress(forward.remoteAddr)}
|
title={formatRemoteAddress(forward.remoteAddr)}
|
||||||
onClick={() => {
|
onClick={() =>
|
||||||
if (hasMultipleAddresses(forward.remoteAddr)) {
|
showAddressModal(forward.remoteAddr, null, "目标地址")
|
||||||
showAddressModal(forward.remoteAddr, null, "目标地址");
|
}
|
||||||
}
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{formatRemoteAddress(forward.remoteAddr)}
|
{formatRemoteAddress(forward.remoteAddr)}
|
||||||
</button>
|
</button>
|
||||||
@@ -3652,10 +3643,11 @@ export default function ForwardPage() {
|
|||||||
{forward.name}
|
{forward.name}
|
||||||
</h3>
|
</h3>
|
||||||
<div className="text-xs text-default-500 truncate flex items-center mt-0.5">
|
<div className="text-xs text-default-500 truncate flex items-center mt-0.5">
|
||||||
{/* 倍率 */}
|
{viewMode === "direct" && (
|
||||||
<span className="truncate">
|
<span className="truncate">
|
||||||
{normalizeForwardTunnelName(forward.tunnelName)}
|
{normalizeForwardTunnelName(forward.tunnelName)}
|
||||||
</span>
|
</span>
|
||||||
|
)}
|
||||||
<span className="text-success font-bold text-[12px] mr-1">
|
<span className="text-success font-bold text-[12px] mr-1">
|
||||||
‾{formatTunnelTrafficRatio(forward.tunnelTrafficRatio)}
|
‾{formatTunnelTrafficRatio(forward.tunnelTrafficRatio)}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user