mirror of
https://github.com/WGDashboard/WGDashboard.git
synced 2026-12-01 17:07:47 +00:00
Compare commits
3
Commits
main
...
dec86ad222
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dec86ad222 | ||
|
|
e547a83776 | ||
|
|
f8bb750d5d |
+1
-1
@@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
| Version | Supported |
|
| Version | Supported |
|
||||||
| ------- | ------------------ |
|
| ------- | ------------------ |
|
||||||
| 4.3 | :white_check_mark: |
|
| > 4.3 | :white_check_mark: |
|
||||||
| < 4.3 | :x: |
|
| < 4.3 | :x: |
|
||||||
|
|||||||
@@ -101,6 +101,14 @@ export default {
|
|||||||
<samp>{{Peer.allowed_ip}}</samp>
|
<samp>{{Peer.allowed_ip}}</samp>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
<div :class="{'d-flex gap-2 align-items-center' : dashboardStore.Configuration.Server.dashboard_peer_list_display === 'list'}">
|
||||||
|
<small class="text-muted">
|
||||||
|
<LocaleText t="Endpoint"></LocaleText>
|
||||||
|
</small>
|
||||||
|
<small class="d-block">
|
||||||
|
<samp>{{Peer.endpoint && Peer.endpoint !== 'N/A' ? Peer.endpoint : '(none)'}}</samp>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
<div class="d-flex align-items-center gap-1"
|
<div class="d-flex align-items-center gap-1"
|
||||||
:class="{'ms-auto': dashboardStore.Configuration.Server.dashboard_peer_list_display === 'list'}"
|
:class="{'ms-auto': dashboardStore.Configuration.Server.dashboard_peer_list_display === 'list'}"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -88,6 +88,16 @@ defineEmits(['close'])
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="word-break: break-all" class="col-12 col-lg-6">
|
||||||
|
<div class="card rounded-3 bg-transparent h-100">
|
||||||
|
<div class="card-body py-2 d-flex flex-column justify-content-center">
|
||||||
|
<p class="mb-0 text-muted"><small>
|
||||||
|
<LocaleText t="Endpoint"></LocaleText>
|
||||||
|
</small></p>
|
||||||
|
<samp>{{selectedPeer.endpoint && selectedPeer.endpoint !== 'N/A' ? selectedPeer.endpoint : '(none)'}}</samp>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div style="word-break: break-all" class="col-12 col-lg-6">
|
<div style="word-break: break-all" class="col-12 col-lg-6">
|
||||||
<div class="card rounded-3 bg-transparent h-100">
|
<div class="card rounded-3 bg-transparent h-100">
|
||||||
<div class="card-body py-2 d-flex flex-column justify-content-center">
|
<div class="card-body py-2 d-flex flex-column justify-content-center">
|
||||||
|
|||||||
@@ -191,6 +191,12 @@ const searchPeers = computed(() => {
|
|||||||
wireguardConfigurationStore.Filter.ShowAllPeersWhenHiddenTags || (!wireguardConfigurationStore.Filter.ShowAllPeersWhenHiddenTags && taggedPeers.value.includes(x.id))
|
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"){
|
if (dashboardStore.Configuration.Server.dashboard_sort === "restricted"){
|
||||||
return result.sort((a, b) => {
|
return result.sort((a, b) => {
|
||||||
if ( a[dashboardStore.Configuration.Server.dashboard_sort]
|
if ( a[dashboardStore.Configuration.Server.dashboard_sort]
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export default {
|
|||||||
status: GetLocale("Status"),
|
status: GetLocale("Status"),
|
||||||
name: GetLocale("Name"),
|
name: GetLocale("Name"),
|
||||||
allowed_ip: GetLocale("Allowed IPs"),
|
allowed_ip: GetLocale("Allowed IPs"),
|
||||||
|
traffic: GetLocale("Total Usage"),
|
||||||
restricted: GetLocale("Restricted")
|
restricted: GetLocale("Restricted")
|
||||||
},
|
},
|
||||||
interval: {
|
interval: {
|
||||||
|
|||||||
Reference in New Issue
Block a user