|
|
@ -59,21 +59,11 @@ export const unescapeHtml = s => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const getSettings = morph.compose(
|
|
|
|
export const getSettings = morph.compose(parse, escapeHtml, morph.get(SETTINGS_KEY))
|
|
|
|
parse,
|
|
|
|
|
|
|
|
escapeHtml,
|
|
|
|
|
|
|
|
morph.get(SETTINGS_KEY)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const getPresets = morph.compose(
|
|
|
|
export const getPresets = morph.compose(parse, morph.get(PRESETS_KEY))
|
|
|
|
parse,
|
|
|
|
|
|
|
|
morph.get(PRESETS_KEY)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const getThemes = morph.compose(
|
|
|
|
export const getThemes = morph.compose(parse, morph.get(THEMES_KEY))
|
|
|
|
parse,
|
|
|
|
|
|
|
|
morph.get(THEMES_KEY)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const clearSettings = () => localStorage.removeItem(SETTINGS_KEY)
|
|
|
|
export const clearSettings = () => localStorage.removeItem(SETTINGS_KEY)
|
|
|
|
|
|
|
|
|
|
|
|