You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
silverwind 2774671584
Fix heatmap first color being unused (#22157)
vue3-calendar-heatmap has the behaviour that the first and second colors
are mapped to values null and 0, meaning the second color was not used
as intended for values > 0. I think this is a behaviour change from
previous vue2 version that was missed during the upgrade.

This change makes first and second values the same, so the heatmap can
now use one additional color for meaningful values.

Before:
<img width="710" alt="Screenshot 2022-12-18 at 09 17 58"
src="https://user-images.githubusercontent.com/115237/208288347-df4973af-8ebd-4582-b828-bec948ffdf60.png">

After:
<img width="709" alt="Screenshot 2022-12-18 at 09 18 15"
src="https://user-images.githubusercontent.com/115237/208288350-e0b85aa2-6925-4a37-83d2-89e2518c91ce.png">

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
components Fix heatmap first color being unused (#22157) 2 years ago
features Change ID pattern of raw content container for issue (#21966) 2 years ago
markup Fix markdown anchor re-clicking (#21931) 2 years ago
modules Improvements for Content Copy (#21842) 2 years ago
standalone Add new JS linter rules (#17699) 3 years ago
test Switch from jest to vitest (#21444) 2 years ago
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2 years ago
index.js Improvements for Content Copy (#21842) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 5 years ago
svg.js Multiple improvements for comment edit diff (#21990) 2 years ago
svg.test.js Remove vitest globals (#21505) 2 years ago
utils.js Fixes #21895: standardize UTC tz for util tests (#21897) 2 years ago
utils.test.js Improvements for Content Copy (#21842) 2 years ago