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

Add user public page #734

Merged
merged 23 commits into from
Mar 19, 2025
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d89a083
Add user public page
mpourismaiel Mar 17, 2025
29756ef
Update user page title and description
mpourismaiel Mar 17, 2025
03678f3
Fix casing of hex color values
mpourismaiel Mar 17, 2025
a16fd93
Add user details in user page
mpourismaiel Mar 17, 2025
570effb
Sort user probes by city-country alphabetically
mpourismaiel Mar 17, 2025
8dcb5fe
Reload probe data in users page every minute
mpourismaiel Mar 18, 2025
c4d9171
Add canonical url
mpourismaiel Mar 18, 2025
dc6e3b5
Fix map load condition
mpourismaiel Mar 18, 2025
fd1551e
Add max tag count to users page
mpourismaiel Mar 18, 2025
aa108c2
Display message when user has no probes available
mpourismaiel Mar 18, 2025
5378849
Fix user info responsive design
mpourismaiel Mar 18, 2025
d4de43c
Set min number for max tag count
mpourismaiel Mar 19, 2025
4f29048
Add data cache to allow easy cache handling
mpourismaiel Mar 19, 2025
f87b388
Remove left over log
mpourismaiel Mar 19, 2025
ed9621f
Update sitemap to include user pages
mpourismaiel Mar 19, 2025
e88535e
Remove test data
mpourismaiel Mar 19, 2025
8b1ae30
Rename users.html to _users.html
mpourismaiel Mar 19, 2025
63dfa12
Match users/:username with actual list of users
mpourismaiel Mar 19, 2025
68bc519
Fix username matching + uniq
MartinKolarik Mar 19, 2025
4cd1fe4
Use cached data
MartinKolarik Mar 19, 2025
5bd0cba
Update sitemap-gp.xml
MartinKolarik Mar 19, 2025
7b3bc42
Filter out v1 tags users
MartinKolarik Mar 19, 2025
786d4bd
Username + no probes message
MartinKolarik Mar 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sort user probes by city-country alphabetically
mpourismaiel committed Mar 17, 2025
commit 570effb9fdc54ff8b29a4e0a7076d70f78a4608f
8 changes: 7 additions & 1 deletion src/views/pages/globalping/users.html
Original file line number Diff line number Diff line change
@@ -203,7 +203,13 @@ <h2 class="page-content_main_section_title">List of probes</h2>
}

let user = `u-${this.get('username')}`.toLowerCase();
let userProbes = response.filter(probe => probe.tags.some(tag => tag.toLowerCase() === user));
let userProbes = response
.filter(probe => probe.tags.some(tag => tag.toLowerCase() === user))
.sort((a, b) => {
let aLocation = `${a.location.country}${a.location.city}`;
let bLocation = `${b.location.country}${b.location.city}`;
return aLocation < bLocation ? -1 : aLocation > bLocation ? 1 : 0;
});

this.set('userProbes', userProbes);