MCPcopy Create free account
hub / github.com/FirefoxCSS-Store/FirefoxCSS-Store.github.io / publicTheme

Function publicTheme

src/lib/themes.ts:46–64  ·  view source on GitHub ↗
(theme: Theme)

Source from the content-addressed store, hash-verified

44}
45
46export function publicTheme(theme: Theme) {
47 const { data } = theme
48
49 return {
50 title: data.title,
51 slug: data.slug,
52 description: data.description,
53 repository: data.repository,
54 homepage: data.homepage ?? null,
55 screenshots: data.screenshots.map((screenshot) => ({
56 ...screenshot,
57 src: withBasePath(screenshot.src)
58 })),
59 tags: data.tags,
60 submitterRole: data.submitterRole,
61 status: data.status,
62 stats: data.stats
63 }
64}

Callers

nothing calls this directly

Calls 1

withBasePathFunction · 0.85

Tested by

no test coverage detected