1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-08 21:41:37 +00:00

clean old codes

This commit is contained in:
Dick Choi
2016-07-14 14:37:26 +09:00
parent 2d46d12628
commit 922ae7a274
5 changed files with 10 additions and 101 deletions

View File

@@ -1,24 +0,0 @@
const electron = require('electron')
const remote = electron.remote
const jetpack = require('fs-jetpack')
const userDataPath = remote.app.getPath('userData')
const configFile = 'config.json'
const defaultConfig = {
'editor-font-size': '14',
'editor-font-family': 'Monaco, Consolas',
'editor-indent-type': 'space',
'editor-indent-size': '4',
'preview-font-size': '14',
'preview-font-family': 'Lato',
'switch-preview': 'blur',
'disable-direct-write': false,
'theme-ui': 'light',
'theme-code': 'xcode',
'theme-syntax': 'xcode'
}
export default function fetchConfig () {
return Object.assign({}, defaultConfig, JSON.parse(jetpack.cwd(userDataPath).read(configFile, 'utf-8')))
}