forked from akosbalasko/yarle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close akosbalasko#623
- Loading branch information
Showing
9 changed files
with
47 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import { NoteData } from './../models'; | ||
import { EvernoteNoteData, NoteData } from './../models'; | ||
import { RuntimePropertiesSingleton } from './../runtime-properties'; | ||
import { writeFile } from './file-utils'; | ||
import { getMdFilePath } from './folder-utils'; | ||
import { loggerInfo } from './loggerInfo'; | ||
|
||
export const saveMdFile = (noteContent: string, note: NoteData) => { | ||
|
||
const absMdFilePath = getMdFilePath(note); | ||
export const saveMdFile = (noteContent: string, note: NoteData, pureNote: EvernoteNoteData) => { | ||
const absMdFilePath = getMdFilePath(pureNote); | ||
const runtimeProps = RuntimePropertiesSingleton.getInstance(); | ||
runtimeProps.setCurrentNotePath(absMdFilePath); | ||
writeFile(absMdFilePath, noteContent, note); | ||
writeFile(absMdFilePath, noteContent, pureNote); | ||
loggerInfo(`Note saved to ${absMdFilePath}`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters