('[data-connection-field]')
+ ?.dataset.connectionField
+ : undefined
+ const preferredKind =
+ field === 'process'
+ ? 'process'
+ : field === 'source'
+ ? 'source'
+ : field === 'remoteDestination'
+ ? 'destination'
+ : 'domain'
+ onShowDetail(row.id, preferredKind)
+ },
[onShowDetail, row.id],
)
const snapshot = getSnapshot(row)
@@ -295,6 +311,7 @@ const RowComponent = memo(
{columns.map((column) => (
void
+ onShowDetail: (id: string, preferredKind?: ConnectionRuleKind) => void
columnManagerOpen: boolean
onCloseColumnManager: () => void
}
@@ -343,7 +360,8 @@ export const ConnectionTable = (props: Props) => {
const onShowDetailRef = useRef(rawOnShowDetail)
onShowDetailRef.current = rawOnShowDetail
const onShowDetail = useCallback(
- (id: string) => onShowDetailRef.current(id),
+ (id: string, preferredKind?: ConnectionRuleKind) =>
+ onShowDetailRef.current(id, preferredKind),
[],
)
const { t } = useTranslation()
diff --git a/src/locales/ar/connections.json b/src/locales/ar/connections.json
index c5bcd0057..ad0bd1a91 100644
--- a/src/locales/ar/connections.json
+++ b/src/locales/ar/connections.json
@@ -30,5 +30,41 @@
"title": "الأعمدة",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "النطاق الرئيسي وجميع نطاقاته الفرعية ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/de/connections.json b/src/locales/de/connections.json
index 5f5b62dff..b7d71ac66 100644
--- a/src/locales/de/connections.json
+++ b/src/locales/de/connections.json
@@ -30,5 +30,41 @@
"title": "Spalten",
"dragHandle": "Ziehpunkt"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Hauptdomain und alle Subdomains ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/en/connections.json b/src/locales/en/connections.json
index 82b3cebac..59b805648 100644
--- a/src/locales/en/connections.json
+++ b/src/locales/en/connections.json
@@ -30,5 +30,41 @@
"title": "Columns",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Root domain and all its subdomains ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/es/connections.json b/src/locales/es/connections.json
index 1b49bc17c..8513d7c9c 100644
--- a/src/locales/es/connections.json
+++ b/src/locales/es/connections.json
@@ -30,5 +30,41 @@
"title": "Columnas",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Dominio principal y todos sus subdominios ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/fa/connections.json b/src/locales/fa/connections.json
index a8c8687e7..631da6cd1 100644
--- a/src/locales/fa/connections.json
+++ b/src/locales/fa/connections.json
@@ -30,5 +30,41 @@
"title": "ستونها",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "دامنهٔ اصلی و همهٔ زیردامنههای آن ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/id/connections.json b/src/locales/id/connections.json
index 29748ccf9..0c2722dca 100644
--- a/src/locales/id/connections.json
+++ b/src/locales/id/connections.json
@@ -30,5 +30,41 @@
"title": "Kolom",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Domain utama dan semua subdomainnya ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/jp/connections.json b/src/locales/jp/connections.json
index 25fb84e8a..375fb277d 100644
--- a/src/locales/jp/connections.json
+++ b/src/locales/jp/connections.json
@@ -30,5 +30,41 @@
"title": "列",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "メインドメインとすべてのサブドメイン({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/ko/connections.json b/src/locales/ko/connections.json
index 88173f6ac..08d78156e 100644
--- a/src/locales/ko/connections.json
+++ b/src/locales/ko/connections.json
@@ -30,5 +30,41 @@
"title": "열",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "기본 도메인 및 모든 하위 도메인 ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/pt/connections.json b/src/locales/pt/connections.json
index 8034e7599..47d10af19 100644
--- a/src/locales/pt/connections.json
+++ b/src/locales/pt/connections.json
@@ -30,5 +30,41 @@
"title": "Colunas",
"dragHandle": "Alça de arrastar"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Domínio principal e todos os seus subdomínios ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/ru/connections.json b/src/locales/ru/connections.json
index 37b8adaef..e7e7ff3e3 100644
--- a/src/locales/ru/connections.json
+++ b/src/locales/ru/connections.json
@@ -30,5 +30,41 @@
"title": "Столбцы",
"dragHandle": "Маркер перетаскивания"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Основной домен и все его поддомены ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/tr/connections.json b/src/locales/tr/connections.json
index b8f85292a..5f9d2f372 100644
--- a/src/locales/tr/connections.json
+++ b/src/locales/tr/connections.json
@@ -30,5 +30,41 @@
"title": "Sütunlar",
"dragHandle": "Sürükleme tutamacı"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Ana alan adı ve tüm alt alan adları ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/tt/connections.json b/src/locales/tt/connections.json
index 48a28d4b8..39a84800b 100644
--- a/src/locales/tt/connections.json
+++ b/src/locales/tt/connections.json
@@ -30,5 +30,41 @@
"title": "Баганалар",
"dragHandle": "Drag handle"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "Төп домен һәм аның барлык субдоменнары ({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/locales/zh/connections.json b/src/locales/zh/connections.json
index 33a447813..c81584a76 100644
--- a/src/locales/zh/connections.json
+++ b/src/locales/zh/connections.json
@@ -30,5 +30,41 @@
"title": "列设置",
"dragHandle": "拖拽控件"
}
+ },
+ "ruleDialog": {
+ "title": "添加规则…",
+ "matchBy": "匹配对象",
+ "domain": "域名",
+ "unavailable": "未获取",
+ "destination": "添加到「{{name}}」的前置规则。",
+ "newConnections": "新建立的连接将按更新后的配置匹配。",
+ "processPathHint": "匹配此路径对应进程访问的所有目标。",
+ "processNameHint": "匹配所有同名进程访问的所有目标。",
+ "ruleModeHint": "规则分流在规则模式下生效。",
+ "addAndApply": "添加并应用",
+ "profileChanged": "当前订阅已切换,请关闭弹窗后重新添加规则。",
+ "applyFailed": "规则未能应用,已保留当前选择。",
+ "unsupportedValue": "此内容包含快捷规则不支持的字符。",
+ "saved": "规则已保存,配置已应用。",
+ "noMetadata": "此连接没有可用于设置规则的域名、进程或 IP 信息。",
+ "noProfile": "当前没有可编辑规则扩展的活动订阅。",
+ "entry": "设置规则…",
+ "modifyTitle": "修改规则",
+ "domainScope": "域名匹配范围",
+ "exactDomain": "仅此域名",
+ "allSubdomains": "此域名及所有子域名",
+ "rootDomain": "主域名及所有子域名({{domain}})",
+ "policyUnavailable": "此策略已不可用,请选择其他策略。",
+ "editDestination": "修改「{{name}}」中的现有规则,保留排序。",
+ "saveAndApply": "保存并应用",
+ "sourceIp": "源 IP",
+ "destinationIp": "目标 IP",
+ "sourceHint": "匹配来自此 IP 或网段的所有请求,可能包含其他应用,不限定端口。",
+ "destinationHint": "匹配访问此目标 IP 或网段的请求,覆盖所有域名,不限定端口。",
+ "fullPath": "完整路径",
+ "connectionHost": "当前连接域名:{{host}}",
+ "invalidDomain": "请输入当前连接域名或其父域名,父域名至少包含两级。",
+ "matchingDomain": "匹配域名",
+ "invalidIp": "请输入有效的 IP/前缀长度,IPv4 为 0–32,IPv6 为 0–128。"
}
}
diff --git a/src/locales/zhtw/connections.json b/src/locales/zhtw/connections.json
index 520f3a855..fd3a67849 100644
--- a/src/locales/zhtw/connections.json
+++ b/src/locales/zhtw/connections.json
@@ -30,5 +30,41 @@
"title": "欄位設定",
"dragHandle": "拖曳以移動"
}
+ },
+ "ruleDialog": {
+ "title": "Add rule…",
+ "matchBy": "Match by",
+ "domain": "Domain",
+ "unavailable": "Not available",
+ "destination": "Add to the prepend rules of “{{name}}”.",
+ "newConnections": "New connections will match the updated configuration.",
+ "processPathHint": "Matches all destinations accessed by processes at this path.",
+ "processNameHint": "Matches all destinations accessed by processes with this name.",
+ "ruleModeHint": "Rule-based routing takes effect in Rule mode.",
+ "addAndApply": "Add and apply",
+ "profileChanged": "The active profile changed. Close this dialog and add the rule again.",
+ "applyFailed": "The rule could not be applied. Your selection has been kept.",
+ "unsupportedValue": "This value contains characters that cannot be used in a quick rule.",
+ "saved": "Rule saved and configuration applied.",
+ "noMetadata": "This connection has no domain, process or IP information for configuring a rule.",
+ "noProfile": "No active profile with an editable rule extension is available.",
+ "entry": "Configure rule…",
+ "modifyTitle": "Modify rule",
+ "domainScope": "Domain scope",
+ "exactDomain": "Only this domain",
+ "allSubdomains": "This domain and all its subdomains",
+ "rootDomain": "主網域及所有子網域({{domain}})",
+ "policyUnavailable": "This policy is no longer available. Choose another policy.",
+ "editDestination": "Update the existing rule in “{{name}}”, keeping its position.",
+ "saveAndApply": "Save and apply",
+ "sourceIp": "Source IP",
+ "destinationIp": "Destination IP",
+ "sourceHint": "Matches all requests from this IP or subnet, including requests from other applications. No port filtering.",
+ "destinationHint": "Matches this destination IP or subnet across all domains. No port filtering.",
+ "fullPath": "Full path",
+ "connectionHost": "Current connection domain: {{host}}",
+ "invalidDomain": "Enter the current domain or a parent domain with at least two labels.",
+ "matchingDomain": "Matching domain",
+ "invalidIp": "Enter a valid IP/prefix length: 0–32 for IPv4 or 0–128 for IPv6."
}
}
diff --git a/src/pages/connections.tsx b/src/pages/connections.tsx
index 7a11a1497..80df49cb8 100644
--- a/src/pages/connections.tsx
+++ b/src/pages/connections.tsx
@@ -35,6 +35,7 @@ import {
getConnectionStartTime,
useConnectionRowViews,
} from '@/components/connection/connection-row-view'
+import type { ConnectionRuleKind } from '@/components/connection/connection-rule'
import { ConnectionTable } from '@/components/connection/connection-table'
import { useConnectionData } from '@/hooks/use-connection-data'
import { useConnectionSetting } from '@/hooks/use-connection-setting'
@@ -161,10 +162,14 @@ const ConnectionsPage = () => {
)
const showDetailById = useCallback(
- (id: string) => {
+ (id: string, preferredKind: ConnectionRuleKind = 'domain') => {
const connection = filterConn.find((item) => item.id === id)
if (connection) {
- detailRef.current?.open(connection, connectionsType === 'closed')
+ detailRef.current?.open(
+ connection,
+ connectionsType === 'closed',
+ preferredKind,
+ )
}
},
[connectionsType, filterConn],
diff --git a/src/types/generated/i18n-keys.ts b/src/types/generated/i18n-keys.ts
index 4444480a2..879684130 100644
--- a/src/types/generated/i18n-keys.ts
+++ b/src/types/generated/i18n-keys.ts
@@ -22,6 +22,40 @@ export const translationKeys = [
'connections.components.actions.closeConnection',
'connections.components.columnManager.title',
'connections.components.columnManager.dragHandle',
+ 'connections.ruleDialog.title',
+ 'connections.ruleDialog.matchBy',
+ 'connections.ruleDialog.domain',
+ 'connections.ruleDialog.unavailable',
+ 'connections.ruleDialog.destination',
+ 'connections.ruleDialog.newConnections',
+ 'connections.ruleDialog.processPathHint',
+ 'connections.ruleDialog.processNameHint',
+ 'connections.ruleDialog.ruleModeHint',
+ 'connections.ruleDialog.addAndApply',
+ 'connections.ruleDialog.profileChanged',
+ 'connections.ruleDialog.applyFailed',
+ 'connections.ruleDialog.unsupportedValue',
+ 'connections.ruleDialog.saved',
+ 'connections.ruleDialog.noMetadata',
+ 'connections.ruleDialog.noProfile',
+ 'connections.ruleDialog.entry',
+ 'connections.ruleDialog.modifyTitle',
+ 'connections.ruleDialog.domainScope',
+ 'connections.ruleDialog.exactDomain',
+ 'connections.ruleDialog.allSubdomains',
+ 'connections.ruleDialog.rootDomain',
+ 'connections.ruleDialog.policyUnavailable',
+ 'connections.ruleDialog.editDestination',
+ 'connections.ruleDialog.saveAndApply',
+ 'connections.ruleDialog.sourceIp',
+ 'connections.ruleDialog.destinationIp',
+ 'connections.ruleDialog.sourceHint',
+ 'connections.ruleDialog.destinationHint',
+ 'connections.ruleDialog.fullPath',
+ 'connections.ruleDialog.connectionHost',
+ 'connections.ruleDialog.invalidDomain',
+ 'connections.ruleDialog.matchingDomain',
+ 'connections.ruleDialog.invalidIp',
'home.page.tooltips.lightweightMode',
'home.page.tooltips.manual',
'home.page.tooltips.settings',
diff --git a/src/types/generated/i18n-resources.ts b/src/types/generated/i18n-resources.ts
index ed1a2bdc2..2eff3d7e6 100644
--- a/src/types/generated/i18n-resources.ts
+++ b/src/types/generated/i18n-resources.ts
@@ -36,6 +36,42 @@ export interface TranslationResources {
page: {
title: string
}
+ ruleDialog: {
+ addAndApply: string
+ allSubdomains: string
+ applyFailed: string
+ connectionHost: string
+ destination: string
+ destinationHint: string
+ destinationIp: string
+ domain: string
+ domainScope: string
+ editDestination: string
+ entry: string
+ exactDomain: string
+ fullPath: string
+ invalidDomain: string
+ invalidIp: string
+ matchBy: string
+ matchingDomain: string
+ modifyTitle: string
+ newConnections: string
+ noMetadata: string
+ noProfile: string
+ policyUnavailable: string
+ processNameHint: string
+ processPathHint: string
+ profileChanged: string
+ rootDomain: string
+ ruleModeHint: string
+ saveAndApply: string
+ saved: string
+ sourceHint: string
+ sourceIp: string
+ title: string
+ unavailable: string
+ unsupportedValue: string
+ }
}
home: {
components: {