* Returns a list of all themes * @returns {Theme[]}
()
| 29 | * @returns {Theme[]} |
| 30 | */ |
| 31 | function 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 | * |
nothing calls this directly
no test coverage detected