MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / stemMeta

Function stemMeta

static/mobile/app.js:19–21  ·  view source on GitHub ↗
(name, idx)

Source from the content-addressed store, hash-verified

17};
18const FALLBACK_COLORS = ["#f0506e", "#f5862b", "#f5c518", "#3fcf6e", "#9b6cf0", "#4a9bf5", "#2bd4c4", "#c44ad0"];
19function stemMeta(name, idx) {
20 return STEM_META[name] || { label: name.charAt(0).toUpperCase() + name.slice(1), color: FALLBACK_COLORS[idx % FALLBACK_COLORS.length] };
21}
22
23// Stem chips shown on the (still-mock) Extract screen.
24const EXTRACT_STEMS = Object.entries(STEM_META).map(([id, m]) => ({ id, name: m.label, color: m.color }));

Callers 1

openTrackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected