Add ability to add notebooks and refactor code

This commit is contained in:
Joey Payne 2016-02-24 17:38:15 -07:00
commit d30477bd9d
12 changed files with 518 additions and 97 deletions

10
app/utils.jsx Normal file
View file

@ -0,0 +1,10 @@
import path from 'path-extra'
export function getAppDataPath(){
return path.datadir(APP_NAME)
}
export function getNotebookPath(notebook){
var notePath = getAppDataPath()
return path.join(notePath, notebook.uuid+'.qvnotebook')
}