diff --git a/ElectronClient/app/app.js b/ElectronClient/app/app.js index 9a4b810a2f..e15195f792 100644 --- a/ElectronClient/app/app.js +++ b/ElectronClient/app/app.js @@ -304,25 +304,6 @@ class Application extends BaseApplication { } }, { type: 'separator', - // }, { - // label: _('Import Evernote notes'), - // click: () => { - // const filePaths = bridge().showOpenDialog({ - // properties: ['openFile', 'createDirectory'], - // filters: [ - // { name: _('Evernote Export Files'), extensions: ['enex'] }, - // ] - // }); - // if (!filePaths || !filePaths.length) return; - - // this.dispatch({ - // type: 'NAV_GO', - // routeName: 'Import', - // props: { - // filePath: filePaths[0], - // }, - // }); - // } }, { label: _('Import'), submenu: importItems, diff --git a/ElectronClient/app/gui/NoteList.jsx b/ElectronClient/app/gui/NoteList.jsx index 87e4617eba..374e59ea97 100644 --- a/ElectronClient/app/gui/NoteList.jsx +++ b/ElectronClient/app/gui/NoteList.jsx @@ -94,11 +94,22 @@ class NoteListComponent extends React.Component { } }})); - menu.append(new MenuItem({label: _('Export'), click: async () => { - const ioService = new InteropService(); - const module = ioService.moduleByFormat_('exporter', 'jex'); - await InteropServiceHelper.export(this.props.dispatch.bind(this), module, { sourceNoteIds: noteIds }); - }})); + const exportMenu = new Menu(); + + const ioService = new InteropService(); + const ioModules = ioService.modules(); + for (let i = 0; i < ioModules.length; i++) { + const module = ioModules[i]; + if (module.type !== 'exporter') continue; + + exportMenu.append(new MenuItem({ label: module.format + ' - ' + module.description , click: async () => { + await InteropServiceHelper.export(this.props.dispatch.bind(this), module, { sourceNoteIds: noteIds }); + }})); + } + + const exportMenuItem = new MenuItem({label: _('Export'), submenu: exportMenu}); + + menu.append(exportMenuItem); } menu.append(new MenuItem({label: _('Delete'), click: async () => { diff --git a/LICENSE_fr b/LICENSE_fr deleted file mode 100644 index 0d10b98ee4..0000000000 --- a/LICENSE_fr +++ /dev/null @@ -1,9 +0,0 @@ -License MIT - -Copyright (c) 2016-2018 Laurent Cozic - -L'autorisation est accordée, gracieusement, à toute personne acquérant une copie de ce logiciel et des fichiers de documentation associés (le "Logiciel"), de commercialiser le Logiciel sans restriction, notamment les droits d'utiliser, de copier, de modifier, de fusionner, de publier, de distribuer, de sous-licencier et/ou de vendre des copies du Logiciel, ainsi que d'autoriser les personnes auxquelles le Logiciel est fourni à le faire, sous réserve des conditions suivantes : - -La déclaration de copyright ci-dessus et la présente autorisation doivent être incluses dans toutes copies ou parties substantielles du Logiciel. - -LE LOGICIEL EST FOURNI "TEL QUEL", SANS GARANTIE D'AUCUNE SORTE, EXPLICITE OU IMPLICITE, NOTAMMENT SANS GARANTIE DE QUALITÉ MARCHANDE, D’ADÉQUATION À UN USAGE PARTICULIER ET D'ABSENCE DE CONTREFAÇON. EN AUCUN CAS, LES AUTEURS OU TITULAIRES DU DROIT D'AUTEUR NE SERONT RESPONSABLES DE TOUT DOMMAGE, RÉCLAMATION OU AUTRE RESPONSABILITÉ, QUE CE SOIT DANS LE CADRE D'UN CONTRAT, D'UN DÉLIT OU AUTRE, EN PROVENANCE DE, CONSÉCUTIF À OU EN RELATION AVEC LE LOGICIEL OU SON UTILISATION, OU AVEC D'AUTRES ÉLÉMENTS DU LOGICIEL. \ No newline at end of file diff --git a/ReactNativeClient/lib/MdToHtml.js b/ReactNativeClient/lib/MdToHtml.js index 855339cf3d..256794f438 100644 --- a/ReactNativeClient/lib/MdToHtml.js +++ b/ReactNativeClient/lib/MdToHtml.js @@ -451,7 +451,7 @@ class MdToHtml { position: relative; top: .5em; text-decoration: none; - width: 1.2em; + width: 1.15em; height: 1.5em; margin-right: 0.4em; background-color: ` + style.htmlColor + `; @@ -501,7 +501,7 @@ class MdToHtml { } `; - const styleHtml = ''; //+ ''; + const styleHtml = ''; const output = styleHtml + renderedBody; diff --git a/prettier.config.js b/prettier.config.js deleted file mode 100644 index 1dca79b377..0000000000 --- a/prettier.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - printWidth: 50000, // Don't need to see base64 encode data over multiple lines - useTabs: true, - trailingComma: "es5", -};