MCPcopy
hub / github.com/lowlighter/metrics / color

Function color

source/app/web/statics/insights/script.js:197–205  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

195 if (this.metrics?.rendered.plugins?.calendar) {
196 return Object.assign(this.metrics?.rendered.plugins?.calendar, {
197 color(c) {
198 return {
199 "#ebedf0": "var(--color-calendar-graph-day-bg)",
200 "#9be9a8": "var(--color-calendar-graph-day-L1-bg)",
201 "#40c463": "var(--color-calendar-graph-day-L2-bg)",
202 "#30a14e": "var(--color-calendar-graph-day-L3-bg)",
203 "#216e39": "var(--color-calendar-graph-day-L4-bg)",
204 }[c] ?? c
205 },
206 })
207 }
208 return null

Callers 2

pieFunction · 0.85
index.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected