Compare commits

..
Author SHA1 Message Date
CopilotDaanSelencopilot-swe-agent[bot] <[email protected]>
dec86ad222 Add traffic sorting to the WG user page (#1409)
* Initial plan

* Add peer traffic sorting

Co-authored-by: DaanSelen <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: DaanSelen <[email protected]>
2026-11-04 12:01:12 +01:00
CopilotDaanSelencopilot-swe-agent[bot] <[email protected]>
e547a83776 Show peer endpoint (IP:port) on peer card and in Details panel (#1408)
* Initial plan

* Apply remaining changes

Co-authored-by: DaanSelen <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: DaanSelen <[email protected]>
2026-11-04 11:59:09 +01:00
daanselen f8bb750d5d chore: update security.md 2026-11-03 09:59:06 +01:00
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -4,5 +4,5 @@
| Version | Supported |
| ------- | ------------------ |
| 4.3 | :white_check_mark: |
| > 4.3 | :white_check_mark: |
| < 4.3 | :x: |
@@ -191,6 +191,12 @@ const searchPeers = computed(() => {
wireguardConfigurationStore.Filter.ShowAllPeersWhenHiddenTags || (!wireguardConfigurationStore.Filter.ShowAllPeersWhenHiddenTags && taggedPeers.value.includes(x.id))
));
if (dashboardStore.Configuration.Server.dashboard_sort === "traffic"){
return result.sort((a, b) => {
return (b.total_data + b.cumu_data) - (a.total_data + a.cumu_data)
}).slice(0, showPeersCount.value);
}
if (dashboardStore.Configuration.Server.dashboard_sort === "restricted"){
return result.sort((a, b) => {
if ( a[dashboardStore.Configuration.Server.dashboard_sort]
@@ -24,6 +24,7 @@ export default {
status: GetLocale("Status"),
name: GetLocale("Name"),
allowed_ip: GetLocale("Allowed IPs"),
traffic: GetLocale("Total Usage"),
restricted: GetLocale("Restricted")
},
interval: {