fix(frontend): update filter examples to use correct wildcard syntax

- Replace wildcard patterns with asterisks (*) with trailing slash notation
- Update directories filter example from "/api/*" to "/api/"
- Update endpoints filter example from "/api/*" to "/api/"
- Update IP addresses filter example from "192.168.1.*" to "192.168.1."
- Update subdomains filter example from "*.test.com" to ".test.com"
- Update vulnerabilities filter example from "/api/*" to "/api/"
- Update websites filter example from "/api/*" to "/api/"
- Standardize filter syntax across all data table components for consistency
This commit is contained in:
yyhuni
2026-01-18 21:41:30 +08:00
parent ba0864ed16
commit bbef6af000
6 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ const DIRECTORY_FILTER_FIELDS: FilterField[] = [
// Directory page filter examples
const DIRECTORY_FILTER_EXAMPLES = [
'url="/admin" && status="200"',
'url="/api/*" || url="/config/*"',
'url="/api/" || url="/config/"',
'status="200" && url!="/index.html"',
]

View File

@@ -20,7 +20,7 @@ const ENDPOINT_FILTER_FIELDS: FilterField[] = [
// Endpoint page filter examples
const ENDPOINT_FILTER_EXAMPLES = [
'url="/api/*" && status="200"',
'url="/api/" && status="200"',
'host="api.example.com" || host="admin.example.com"',
'title="Dashboard" && status!="404"',
'tech="php" || tech="wordpress"',

View File

@@ -18,7 +18,7 @@ const IP_ADDRESS_FILTER_FIELDS: FilterField[] = [
// IP address page filter examples
const IP_ADDRESS_FILTER_EXAMPLES = [
'ip="192.168.1.*" && port="80"',
'ip="192.168.1." && port="80"',
'port="443" || port="8443"',
'host="api.example.com" && port!="22"',
]

View File

@@ -17,7 +17,7 @@ const SUBDOMAIN_FILTER_FIELDS: FilterField[] = [
// Subdomain page filter examples
const SUBDOMAIN_FILTER_EXAMPLES = [
'name="api.example.com"',
'name="*.test.com"',
'name=".test.com"',
]
// Component props type definition

View File

@@ -39,7 +39,7 @@ const VULNERABILITY_FILTER_EXAMPLES = [
'type="xss" || type="sqli"',
'severity="critical" || severity="high"',
'source="nuclei" && severity="high"',
'type="xss" && url="/api/*"',
'type="xss" && url="/api/"',
]

View File

@@ -23,7 +23,7 @@ const WEBSITE_FILTER_FIELDS: FilterField[] = [
const WEBSITE_FILTER_EXAMPLES = [
'host="api.example.com" && status="200"',
'title="Login" || title="Admin"',
'url="/api/*" && status!="404"',
'url="/api/" && status!="404"',
'tech="nginx" || tech="apache"',
]