(theme: Theme)
| 44 | } |
| 45 | |
| 46 | export 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 | } |
nothing calls this directly
no test coverage detected