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: Badge Generator #2915
Feat: Badge Generator #2915
Conversation
That's pretty amazing that someone added that functionality ❤️ |
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.
Fix lint.
Co-authored-by: Nelson Chan <3271800+chakflying@users.noreply.github.com>
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.
Thanks for fix it!
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.
I'm not a fan of the original icon-only toggle for the public link, it's not easy to understand. But at least this is in line with the current UI.
What is holding up this PR? |
</select> | ||
</div> | ||
|
||
<div v-if=" (parameters[badge.type || 'null'] || [] ).includes('duration') " class="mb-3"> |
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.
This v-if
statement seems very ugly (and used more than once).
Have you considered a computed property for this usecase?
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Tested this pr, it is working. I agree with @chakflying. The icons in the list is a bit strange. I am thinking maybe we can make them into a 3dot button. |
What if we create another modal and merge 2 current buttons to this modal like this? |
Yes, it would be better. |
The behaviour of the model is a little bit strange. When I incidentally drag it or try to highlight some text inside, it will disappear. |
already fix |
I think we need to add the clickable link strings to |
I can add in |
Yes. |
Add i18n variable for Badge Generator #2915
Apologies if I'm being dumb, but how do you access this option within Uptime Kuma? I've successfully upgraded to Version: 1.22.0-beta.0 but cannot find this awesome feature anywhere. Thanks |
@mbh-dev See these images. |
Edit: A couple of questions that I believe would be helpful for many after the recent update. In the next release, some examples would be great or an instruction page on Github could be helpful also. Have not figured out the answer to this yet. Edit: HEX code I think this might be based on the interval of the monitor. Edit: After testing this looks like hours rather than based on the interval of the monitor. |
I too can't see this feature on any page after upgrading to 1.22.0 |
The Badge generator can be found on the status page |
Did you try clicking "Edit Status Page"? |
The "Open Badge Generator" button can be seen by clicking the Gear icon to the right of your monitor "Galexia BOS". |
Brilliant thank you! I've got it now. That's very tucked away. |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
In PR: #1119 Badges have been added but there's no telling if this feature exists and there's no way to use it other than reading the PR, I'd like to make a Badge Generator to make it easier to use.
Type of change
Please delete any options that are not relevant.
Checklist
(including JSDoc for methods)
Screenshots (if any)