MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / list

Function list

src/theme/list.js:31–42  ·  view source on GitHub ↗

* Returns a list of all themes * @returns {Theme[]}

()

Source from the content-addressed store, hash-verified

29 * @returns {Theme[]}
30 */
31function list() {
32 return Array.from(appThemes.keys()).map((name) => {
33 const { id, type, primaryColor, version } = appThemes.get(name);
34 return {
35 id,
36 type,
37 version,
38 primaryColor,
39 name: name.capitalize(),
40 };
41 });
42}
43
44/**
45 *

Callers

nothing calls this directly

Calls 2

capitalizeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected