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(Peers): Show client, peer_id, and i18n strings #1579

Merged
merged 5 commits into from May 1, 2024

Conversation

Z4HD
Copy link
Contributor

@Z4HD Z4HD commented Mar 16, 2024

feat(Peers): Show client, peer_id, and i18n strings

Improve peers info display, including:

  • Show client type and peer_id.
  • Show i18n strings correctly.

See screenshot for details.

vt-diff

PR Checklist

  • I've started from master
  • I've only committed changes related to this PR
  • All tests pass
  • I've removed all commented code

@Z4HD Z4HD requested a review from WDaan as a code owner March 16, 2024 02:50
Copy link
Collaborator

@Larsluph Larsluph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution!
Although I would use interpolation for fields to better handle locale format
https://vue-i18n.intlify.dev/guide/essentials/syntax.html#interpolations

@keocheung
Copy link

I don't think it's a good idea to hide the flag and client divs when the values are empty. Empty flags and clients are also useful infomation.

@Larsluph
Copy link
Collaborator

I don't think it's a good idea to hide the flag and client divs when the values are empty. Empty flags and clients are also useful infomation.

Totally agree with that, I was referring to a i18n feature that allows to replace "variable" data into i18n messages. I included a link so that you can see the syntax.

@WDaan
Copy link
Collaborator

WDaan commented Apr 15, 2024

Anything left on this one? 🤔

@WDaan WDaan requested a review from Larsluph April 29, 2024 08:12
@Larsluph
Copy link
Collaborator

Larsluph commented May 1, 2024

Updated UI to make it stand out.

image

@Larsluph Larsluph merged commit de8bb9d into VueTorrent:master May 1, 2024
1 check passed
Larsluph added a commit that referenced this pull request May 1, 2024
Co-authored-by: Z4HD <Z4HD@outlook.com>
Co-authored-by: Larsluph <22910497+Larsluph@users.noreply.github.com>
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.

None yet

4 participants