-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature: Headscale Service Widget #4247
Conversation
Thanks, please post an example api output. Getting an actual node up is more work than I'd like just to test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another endpoint (same endpoint without the nodeid as the final path parameter) that can be used to query the same data type in an array for all nodes at once and here is a sample output: Using the widget in this mode would reduce the number of API calls to just one. |
That is the endpoint this should have been built with then. |
I couldn't find any info or sample on how to represent multiple nodes in a single widget like the (photoshopped) screenshot i posted. I tried multiple |
Ah, no we dont allow that. There is a |
I've managed to get a widget that can display multiple nodes with a single api call working. I found how to use a div to achieve this look by examining existing widgets that seems to have implemented such code structures in the past (e.g. coinmarketcap, emby, stocks widgets). I believe there is a really valid use case for this type of widget in the context of headscale or similar applications. I can refactor the widget to work in both styles (single or multi node views, filtering by nodeIds or status). Or I can also provide it as another widget if desired. |
There are no widgets that do it like that. as I mentioned there is the |
I've opened a discussion |
Proposed change
Added service widget for headscale, as requested by this discussion.
Closes # (issue)
Type of change
Checklist: