forgejo/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>
2022-12-19 16:14:49 -05:00
..
components Fix heatmap first color being unused (#22157) 2022-12-19 16:14:49 -05:00
features Change ID pattern of raw content container for issue (#21966) 2022-12-10 00:25:32 +08:00
markup Fix markdown anchor re-clicking (#21931) 2022-11-26 19:15:44 +08:00
modules Improvements for Content Copy (#21842) 2022-11-21 17:59:42 +08:00
standalone Add new JS linter rules (#17699) 2021-11-22 16:19:01 +08:00
test Switch from jest to vitest (#21444) 2022-10-14 21:36:16 +08:00
bootstrap.js Quick fixes monaco-editor error: "vs.editor.nullLanguage" (#21734) 2022-11-09 18:02:19 +08:00
index.js Improvements for Content Copy (#21842) 2022-11-21 17:59:42 +08:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Multiple improvements for comment edit diff (#21990) 2022-12-02 11:42:34 +02:00
svg.test.js Remove vitest globals (#21505) 2022-10-19 14:50:19 +08:00
utils.js Fixes #21895: standardize UTC tz for util tests (#21897) 2022-11-22 16:46:29 +08:00
utils.test.js Improvements for Content Copy (#21842) 2022-11-21 17:59:42 +08:00