Skip to content

Commit

Permalink
fix: configs picked up from the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Apr 19, 2021
2 parents 98bae3b + 32f885a commit 21d27e5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yarle-evernote-to-md",
"version": "4.0.5",
"version": "4.0.6",
"description": "Yet Another Rope Ladder from Evernote",
"keywords": [
"evernote",
Expand Down Expand Up @@ -31,7 +31,7 @@
"publish": "electron-forge publish",
"css-build": "node-sass --omit-source-map-url ./src/ui/sass/purecss.scss ./src/ui/css/purecss.css",
"css-watch": "npm run css-build -- --watch",
"publish-npm": "npm run build && npm publish",
"publish-npm": "npm run compile && npm publish",
"package-mac": "electron-packager . --overwrite --asar --platform=darwin --arch=x64 --icon=./src/ui/assets/icons/mac/icon.icns --prune=true --out=release-builds --darwinDarkModeSupport=true",
"package-win": "electron-packager . electron-tutorial-app --overwrite --asar --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Yarle\"",
"package-linux": "electron-packager . electron-tutorial-app --overwrite --asar --platform=linux --arch=x64 --icon=assets/icons/png/512x512.png --prune=true --out=release-builds",
Expand Down
Binary file added src/ui/assets/icons/png/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/ui/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ ipcMain.on('selectOutputFolder', () => {

ipcMain.on('configurationUpdated', (event: any, data: any) => {

console.log("this is the firstname from the form ->", data)
// console.log("this is the firstname from the form ->", data)
store.set(data.id, data.value);
loggerInfo(`config: ${JSON.stringify(store.get(data.id))}`);

Expand Down
11 changes: 10 additions & 1 deletion src/ui/settingsMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ export const mapSettingsToYarleOptions = (): YarleOptions => {
keepMDCharactersOfENNotes: store.get('keepMDCharactersOfENNotes') as boolean,
monospaceIsCodeBlock: store.get('monospaceIsCodeBlock') as boolean,
keepOriginalHtml: store.get('keepOriginalHtml') as boolean,
currentTemplate: store.get('currentTemplate') as string
currentTemplate: store.get('currentTemplate') as string,
nestedTags: {
separatorInEN: store.get('separatorInEN') as string,
replaceSeparatorWith: store.get('replaceSeparatorWith') as string,
replaceSpaceWith: store.get('replaceSpaceWith') as string,
},
dateFormat: store.get('dateFormat') as string,
keepImageSize: store.get('keepImageSize') as OutputFormat,
keepOriginalAmountOfNewlines: store.get('keepOriginalAmountOfNewlines') as boolean,
addExtensionToInternalLinks: store.get('addExtensionToInternalLinks') as boolean,
}
}
2 changes: 1 addition & 1 deletion src/yarle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const setOptions = (options: YarleOptions): void => {

yarleOptions.currentTemplate = template;

// loggerInfo(`Current config is: ${JSON.stringify(yarleOptions)}`);
loggerInfo(`Current config is: ${JSON.stringify(yarleOptions)}`);
/*}*/
};

Expand Down

0 comments on commit 21d27e5

Please sign in to comment.