MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / getCustomThemesDir

Function getCustomThemesDir

apps/desktop/src/main/custom-themes.ts:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27import { getConfigDir } from './app-config'
28
29export function getCustomThemesDir(): string {
30 return path.join(getConfigDir(), 'themes')
31}
32
33/** A bare slug/name that resolves to a direct child of the themes dir. */
34function isSafeSlug(slug: unknown): slug is string {

Callers 8

registerIpcFunction · 0.90
ensureCustomThemesDirFunction · 0.85
listCustomThemesFunction · 0.85
resolveThemeAssetPathFunction · 0.85
deleteCustomThemeFunction · 0.85

Calls 1

getConfigDirFunction · 0.90

Tested by

no test coverage detected