Add ability to add notebooks and refactor code
This commit is contained in:
parent
03238ad179
commit
d30477bd9d
12 changed files with 518 additions and 97 deletions
10
app/utils.jsx
Normal file
10
app/utils.jsx
Normal 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')
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue