feat: show urlPattern option when needed

This commit is contained in:
ReaJason
2025-05-28 01:22:54 +08:00
parent ddfa273938
commit 18c0920c27
6 changed files with 30 additions and 43 deletions
+14
View File
@@ -47,3 +47,17 @@ export function formatBytes(bytes: number) {
const kbValue = Number.parseFloat((bytes / k ** 1).toFixed(1));
return `${kbValue} ${sizes[1]}`;
}
export function shouldHidden(shellType: string | undefined) {
if (shellType === undefined) {
return false;
}
return (
shellType.endsWith("Listener") ||
shellType.endsWith("Valve") ||
shellType.startsWith("Agent") ||
shellType.endsWith("Interceptor") ||
shellType.endsWith("NettyHandler") ||
shellType.endsWith("WebFilter")
);
}