Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added peers sorting on views #302

Merged
merged 3 commits into from
Sep 23, 2024
Merged

feat: Added peers sorting on views #302

merged 3 commits into from
Sep 23, 2024

Conversation

bonddim
Copy link
Contributor

@bonddim bonddim commented Sep 19, 2024

Resolves #296

  • Sorts connected peers first on Interface and Profile views by default.
  • Added RX/TX column with sorting by total amount of bytes on peer.

image
image

Also enables sorting on table fields - NAME, USER, IP'S , STATUS

image
image

@bonddim bonddim changed the title Added peers sorting on views feat: Added peers sorting on views Sep 22, 2024
frontend/src/helpers/utils.js Outdated Show resolved Hide resolved
@BliNeR-KeY
Copy link

looks really nice..
pls can add also on the CURRENT VPN PEERS also TRAFFIC..

NAME, USER, IP'S , STATUS and TRAFFIC

like wireguard app RX / TX. i hope not in bytes ..

it nned only float code for rx_bytes, tx_bytes

@BliNeR-KeY
Copy link

It works.
i buils standalone
Thank you a lot... is really important.

image

@bonddim
Copy link
Contributor Author

bonddim commented Sep 22, 2024

It works.
i buils standalone
Thank you a lot... is really important.

image

Yep, and, as mentioned, you may sort on other columns also

@bonddim
Copy link
Contributor Author

bonddim commented Sep 23, 2024

looks really nice.. pls can add also on the CURRENT VPN PEERS also TRAFFIC..

NAME, USER, IP'S , STATUS and TRAFFIC

like wireguard app RX / TX. i hope not in bytes ..

it nned only float code for rx_bytes, tx_bytes

Upd: Done

  • Size will be adjusted automatically to "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB".
  • Sorting on this column will use total amount of RX/TX on peer.

image

@BliNeR-KeY
Copy link

hahha looks very nice tank youuuuuuu i will build soon.
thank you a lot.

i have more one request...
but not too important... as isee module RX/TX already here.

wat you think add all WG interface RX/TX on the top ?

explain better
now RX/TX are only a peer..

wat you think add all WG interface RX/TX on the top ?

@bonddim
Copy link
Contributor Author

bonddim commented Sep 23, 2024

Sounds good.
@h44z , what do you think about adding extra property to interface?

@h44z
Copy link
Owner

h44z commented Sep 23, 2024

Sounds good. @h44z , what do you think about adding extra property to interface?

why not =) but lets make another PR for that feature

@h44z h44z merged commit 3196010 into h44z:master Sep 23, 2024
1 check passed
@bonddim bonddim deleted the peers-sorting branch September 23, 2024 20:01
@BliNeR-KeY
Copy link

@bonddim if you need any idea..

only for sample...
oVPN UI. work it everything well.
as well you know nothing to compare openvpn ws wireguard about performance
here have a nice code in GO. i'm not good in GO. i love python.
https://github.com/d3vilh/openvpn-ui
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ Feature Request ] - v2
3 participants