From 8a78ee5df6638c0b2e8281639d9a267e1946c58c Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Fri, 3 Nov 2017 00:13:17 +0000 Subject: [PATCH] Changed export to module.exports --- CliClient/app/app.js | 2 +- CliClient/app/base-command.js | 2 +- CliClient/app/cli-utils.js | 2 +- CliClient/app/help-utils.js | 2 +- CliClient/app/import-enex-md-gen.js | 2 +- CliClient/app/import-enex.js | 2 +- CliClient/app/onedrive-api-node-utils.js | 2 +- CliClient/tests/test-utils.js | 2 +- ReactNativeClient/index.ios.js | 2 +- ReactNativeClient/lib/base-model.js | 2 +- ReactNativeClient/lib/components/action-button.js | 2 +- ReactNativeClient/lib/components/app-nav.js | 2 +- ReactNativeClient/lib/components/base-screen.js | 2 +- ReactNativeClient/lib/components/checkbox.js | 2 +- ReactNativeClient/lib/components/global-style.js | 2 +- ReactNativeClient/lib/components/note-body-viewer.js | 2 +- ReactNativeClient/lib/components/note-item.js | 2 +- ReactNativeClient/lib/components/note-list.js | 2 +- ReactNativeClient/lib/components/screen-header.js | 2 +- ReactNativeClient/lib/components/screens/config.js | 2 +- ReactNativeClient/lib/components/screens/folder.js | 2 +- ReactNativeClient/lib/components/screens/log.js | 2 +- ReactNativeClient/lib/components/screens/note.js | 2 +- ReactNativeClient/lib/components/screens/notes.js | 2 +- ReactNativeClient/lib/components/screens/onedrive-login.js | 2 +- ReactNativeClient/lib/components/screens/search.js | 2 +- ReactNativeClient/lib/components/screens/status.js | 2 +- ReactNativeClient/lib/components/screens/tag.js | 2 +- ReactNativeClient/lib/components/screens/welcome.js | 2 +- ReactNativeClient/lib/components/side-menu-content.js | 2 +- ReactNativeClient/lib/database-driver-node.js | 2 +- ReactNativeClient/lib/database-driver-react-native.js | 2 +- ReactNativeClient/lib/database.js | 2 +- ReactNativeClient/lib/dialogs.js | 2 +- ReactNativeClient/lib/event-dispatcher.js | 2 +- ReactNativeClient/lib/file-api-driver-local.js | 2 +- ReactNativeClient/lib/file-api-driver-memory.js | 2 +- ReactNativeClient/lib/file-api-driver-onedrive.js | 2 +- ReactNativeClient/lib/file-api.js | 2 +- ReactNativeClient/lib/folders-screen-utils.js | 2 +- ReactNativeClient/lib/fs-driver-dummy.js | 2 +- ReactNativeClient/lib/geolocation-node.js | 2 +- ReactNativeClient/lib/geolocation-react.js | 2 +- ReactNativeClient/lib/joplin-database.js | 2 +- ReactNativeClient/lib/locale.js | 2 +- ReactNativeClient/lib/log.js | 2 +- ReactNativeClient/lib/logger.js | 2 +- ReactNativeClient/lib/markdown-utils.js | 2 +- ReactNativeClient/lib/mime-utils.js | 2 +- ReactNativeClient/lib/models/base-item.js | 2 +- ReactNativeClient/lib/models/folder.js | 2 +- ReactNativeClient/lib/models/note-tag.js | 2 +- ReactNativeClient/lib/models/note.js | 2 +- ReactNativeClient/lib/models/resource.js | 2 +- ReactNativeClient/lib/models/setting.js | 2 +- ReactNativeClient/lib/models/tag.js | 2 +- ReactNativeClient/lib/net-utils.js | 2 +- ReactNativeClient/lib/onedrive-api.js | 2 +- ReactNativeClient/lib/parameters.js | 2 +- ReactNativeClient/lib/path-utils.js | 2 +- ReactNativeClient/lib/poor-man-intervals.js | 2 +- ReactNativeClient/lib/promise-utils.js | 2 +- ReactNativeClient/lib/react-logger.js | 2 +- ReactNativeClient/lib/reducer.js | 2 +- ReactNativeClient/lib/registry.js | 2 +- ReactNativeClient/lib/services/back-button.js | 2 +- ReactNativeClient/lib/services/exporter.js | 2 +- ReactNativeClient/lib/services/report.js | 2 +- ReactNativeClient/lib/shim-init-node.js | 2 +- ReactNativeClient/lib/shim-init-react.js | 2 +- ReactNativeClient/lib/shim.js | 2 +- ReactNativeClient/lib/string-utils.js | 2 +- ReactNativeClient/lib/synchronizer.js | 2 +- ReactNativeClient/lib/time-utils.js | 2 +- ReactNativeClient/lib/uuid.js | 2 +- ReactNativeClient/main.js | 2 +- ReactNativeClient/root.js | 2 +- index.html | 2 +- 78 files changed, 78 insertions(+), 78 deletions(-) diff --git a/CliClient/app/app.js b/CliClient/app/app.js index 09a490067b..b3105dd601 100644 --- a/CliClient/app/app.js +++ b/CliClient/app/app.js @@ -652,4 +652,4 @@ function app() { return application_; } -export { app }; \ No newline at end of file +module.exports = { app }; \ No newline at end of file diff --git a/CliClient/app/base-command.js b/CliClient/app/base-command.js index edc3b07383..eb2cc34618 100644 --- a/CliClient/app/base-command.js +++ b/CliClient/app/base-command.js @@ -96,4 +96,4 @@ class BaseCommand { } -export { BaseCommand }; \ No newline at end of file +module.exports = { BaseCommand }; \ No newline at end of file diff --git a/CliClient/app/cli-utils.js b/CliClient/app/cli-utils.js index 0b32dfee99..0bfa510b5f 100644 --- a/CliClient/app/cli-utils.js +++ b/CliClient/app/cli-utils.js @@ -315,4 +315,4 @@ cliUtils.redrawDone = function() { redrawStarted_ = false; } -export { cliUtils }; \ No newline at end of file +module.exports = { cliUtils }; \ No newline at end of file diff --git a/CliClient/app/help-utils.js b/CliClient/app/help-utils.js index bd061ba74c..270eafe69a 100644 --- a/CliClient/app/help-utils.js +++ b/CliClient/app/help-utils.js @@ -108,4 +108,4 @@ function getOptionColWidth(options) { return output; } -export { renderCommandHelp }; \ No newline at end of file +module.exports = { renderCommandHelp }; \ No newline at end of file diff --git a/CliClient/app/import-enex-md-gen.js b/CliClient/app/import-enex-md-gen.js index b27e4a0349..fe81150ba8 100644 --- a/CliClient/app/import-enex-md-gen.js +++ b/CliClient/app/import-enex-md-gen.js @@ -620,4 +620,4 @@ async function enexXmlToMd(stream, resources) { return processMdArrayNewLines(mdLines); } -export { enexXmlToMd, processMdArrayNewLines, NEWLINE, addResourceTag }; \ No newline at end of file +module.exports = { enexXmlToMd, processMdArrayNewLines, NEWLINE, addResourceTag }; \ No newline at end of file diff --git a/CliClient/app/import-enex.js b/CliClient/app/import-enex.js index c657b620be..93d424a580 100644 --- a/CliClient/app/import-enex.js +++ b/CliClient/app/import-enex.js @@ -408,4 +408,4 @@ function importEnex(parentFolderId, filePath, importOptions = null) { }); } -export { importEnex }; \ No newline at end of file +module.exports = { importEnex }; \ No newline at end of file diff --git a/CliClient/app/onedrive-api-node-utils.js b/CliClient/app/onedrive-api-node-utils.js index b139d507a1..b9ba881831 100644 --- a/CliClient/app/onedrive-api-node-utils.js +++ b/CliClient/app/onedrive-api-node-utils.js @@ -119,4 +119,4 @@ class OneDriveApiNodeUtils { } -export { OneDriveApiNodeUtils }; \ No newline at end of file +module.exports = { OneDriveApiNodeUtils }; \ No newline at end of file diff --git a/CliClient/tests/test-utils.js b/CliClient/tests/test-utils.js index 96b84db9f2..7f32fef75a 100644 --- a/CliClient/tests/test-utils.js +++ b/CliClient/tests/test-utils.js @@ -175,4 +175,4 @@ function fileApi() { return fileApi_; } -export { setupDatabase, setupDatabaseAndSynchronizer, db, synchronizer, fileApi, sleep, clearDatabase, switchClient, syncTargetId }; \ No newline at end of file +module.exports = { setupDatabase, setupDatabaseAndSynchronizer, db, synchronizer, fileApi, sleep, clearDatabase, switchClient, syncTargetId }; \ No newline at end of file diff --git a/ReactNativeClient/index.ios.js b/ReactNativeClient/index.ios.js index cefa0f5273..0e8d47283b 100644 --- a/ReactNativeClient/index.ios.js +++ b/ReactNativeClient/index.ios.js @@ -12,7 +12,7 @@ import { View } from 'react-native'; -export default class Joplin extends Component { +module.exports = default class Joplin extends Component {; render() { return ( diff --git a/ReactNativeClient/lib/base-model.js b/ReactNativeClient/lib/base-model.js index fa369b4611..7230239240 100644 --- a/ReactNativeClient/lib/base-model.js +++ b/ReactNativeClient/lib/base-model.js @@ -364,4 +364,4 @@ BaseModel.TYPE_SEARCH = 7; BaseModel.db_ = null; BaseModel.dispatch = function(o) {}; -export { BaseModel }; \ No newline at end of file +module.exports = { BaseModel }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/action-button.js b/ReactNativeClient/lib/components/action-button.js index 7ac38a2fdb..45a9ede298 100644 --- a/ReactNativeClient/lib/components/action-button.js +++ b/ReactNativeClient/lib/components/action-button.js @@ -138,4 +138,4 @@ const ActionButton = connect( } )(ActionButtonComponent) -export { ActionButton }; \ No newline at end of file +module.exports = { ActionButton }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/app-nav.js b/ReactNativeClient/lib/components/app-nav.js index 95da8be5b2..b9a0a11285 100644 --- a/ReactNativeClient/lib/components/app-nav.js +++ b/ReactNativeClient/lib/components/app-nav.js @@ -63,4 +63,4 @@ const AppNav = connect( } )(AppNavComponent) -export { AppNav }; \ No newline at end of file +module.exports = { AppNav }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/base-screen.js b/ReactNativeClient/lib/components/base-screen.js index f0fad156b0..86d94a8a91 100644 --- a/ReactNativeClient/lib/components/base-screen.js +++ b/ReactNativeClient/lib/components/base-screen.js @@ -37,4 +37,4 @@ class BaseScreenComponent extends React.Component { } -export { BaseScreenComponent }; \ No newline at end of file +module.exports = { BaseScreenComponent }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/checkbox.js b/ReactNativeClient/lib/components/checkbox.js index 8e62381bfb..94c312ee52 100644 --- a/ReactNativeClient/lib/components/checkbox.js +++ b/ReactNativeClient/lib/components/checkbox.js @@ -66,4 +66,4 @@ class Checkbox extends Component { } -export { Checkbox }; \ No newline at end of file +module.exports = { Checkbox }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/global-style.js b/ReactNativeClient/lib/components/global-style.js index 09755950ac..e7174a40f3 100644 --- a/ReactNativeClient/lib/components/global-style.js +++ b/ReactNativeClient/lib/components/global-style.js @@ -69,4 +69,4 @@ function themeStyle(theme) { return themeCache_[theme]; } -export { globalStyle, themeStyle } \ No newline at end of file +module.exports = { globalStyle, themeStyle }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/note-body-viewer.js b/ReactNativeClient/lib/components/note-body-viewer.js index 2fb8a19482..748669eadd 100644 --- a/ReactNativeClient/lib/components/note-body-viewer.js +++ b/ReactNativeClient/lib/components/note-body-viewer.js @@ -226,4 +226,4 @@ class NoteBodyViewer extends Component { } -export { NoteBodyViewer }; \ No newline at end of file +module.exports = { NoteBodyViewer }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/note-item.js b/ReactNativeClient/lib/components/note-item.js index b8fae63d4f..3eba815876 100644 --- a/ReactNativeClient/lib/components/note-item.js +++ b/ReactNativeClient/lib/components/note-item.js @@ -129,4 +129,4 @@ const NoteItem = connect( } )(NoteItemComponent) -export { NoteItem } \ No newline at end of file +module.exports = { NoteItem }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/note-list.js b/ReactNativeClient/lib/components/note-list.js index 018d120c4d..6e08e2cd1c 100644 --- a/ReactNativeClient/lib/components/note-list.js +++ b/ReactNativeClient/lib/components/note-list.js @@ -117,4 +117,4 @@ const NoteList = connect( } )(NoteListComponent) -export { NoteList }; \ No newline at end of file +module.exports = { NoteList }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screen-header.js b/ReactNativeClient/lib/components/screen-header.js index eca2f3ac44..bc85a0b006 100644 --- a/ReactNativeClient/lib/components/screen-header.js +++ b/ReactNativeClient/lib/components/screen-header.js @@ -323,4 +323,4 @@ const ScreenHeader = connect( } )(ScreenHeaderComponent) -export { ScreenHeader }; \ No newline at end of file +module.exports = { ScreenHeader }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/config.js b/ReactNativeClient/lib/components/screens/config.js index 23c60c295e..36a9744398 100644 --- a/ReactNativeClient/lib/components/screens/config.js +++ b/ReactNativeClient/lib/components/screens/config.js @@ -149,4 +149,4 @@ const ConfigScreen = connect( } )(ConfigScreenComponent) -export { ConfigScreen }; \ No newline at end of file +module.exports = { ConfigScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/folder.js b/ReactNativeClient/lib/components/screens/folder.js index 4ab4714f8f..1c94a462fd 100644 --- a/ReactNativeClient/lib/components/screens/folder.js +++ b/ReactNativeClient/lib/components/screens/folder.js @@ -129,4 +129,4 @@ const FolderScreen = connect( } )(FolderScreenComponent) -export { FolderScreen }; \ No newline at end of file +module.exports = { FolderScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/log.js b/ReactNativeClient/lib/components/screens/log.js index aedc5694c6..103b068578 100644 --- a/ReactNativeClient/lib/components/screens/log.js +++ b/ReactNativeClient/lib/components/screens/log.js @@ -106,4 +106,4 @@ const LogScreen = connect( } )(LogScreenComponent) -export { LogScreen }; \ No newline at end of file +module.exports = { LogScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/note.js b/ReactNativeClient/lib/components/screens/note.js index ebe179e71b..d9a55fea87 100644 --- a/ReactNativeClient/lib/components/screens/note.js +++ b/ReactNativeClient/lib/components/screens/note.js @@ -570,4 +570,4 @@ const NoteScreen = connect( } )(NoteScreenComponent) -export { NoteScreen }; \ No newline at end of file +module.exports = { NoteScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/notes.js b/ReactNativeClient/lib/components/screens/notes.js index a293063d05..daf04a76ea 100644 --- a/ReactNativeClient/lib/components/screens/notes.js +++ b/ReactNativeClient/lib/components/screens/notes.js @@ -171,4 +171,4 @@ const NotesScreen = connect( } )(NotesScreenComponent) -export { NotesScreen }; \ No newline at end of file +module.exports = { NotesScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/onedrive-login.js b/ReactNativeClient/lib/components/screens/onedrive-login.js index 041fe61574..bd476502cd 100644 --- a/ReactNativeClient/lib/components/screens/onedrive-login.js +++ b/ReactNativeClient/lib/components/screens/onedrive-login.js @@ -107,4 +107,4 @@ const OneDriveLoginScreen = connect( } )(OneDriveLoginScreenComponent) -export { OneDriveLoginScreen }; \ No newline at end of file +module.exports = { OneDriveLoginScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/search.js b/ReactNativeClient/lib/components/screens/search.js index 1b98568d86..47550d9454 100644 --- a/ReactNativeClient/lib/components/screens/search.js +++ b/ReactNativeClient/lib/components/screens/search.js @@ -178,4 +178,4 @@ const SearchScreen = connect( } )(SearchScreenComponent) -export { SearchScreen }; \ No newline at end of file +module.exports = { SearchScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/status.js b/ReactNativeClient/lib/components/screens/status.js index 7fc23d0b31..abb3cd9d76 100644 --- a/ReactNativeClient/lib/components/screens/status.js +++ b/ReactNativeClient/lib/components/screens/status.js @@ -119,4 +119,4 @@ const StatusScreen = connect( } )(StatusScreenComponent) -export { StatusScreen }; \ No newline at end of file +module.exports = { StatusScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/tag.js b/ReactNativeClient/lib/components/screens/tag.js index bd7c3df650..51104a325f 100644 --- a/ReactNativeClient/lib/components/screens/tag.js +++ b/ReactNativeClient/lib/components/screens/tag.js @@ -73,4 +73,4 @@ const TagScreen = connect( } )(TagScreenComponent) -export { TagScreen }; \ No newline at end of file +module.exports = { TagScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/screens/welcome.js b/ReactNativeClient/lib/components/screens/welcome.js index fcecaf25ac..1a51b987d4 100644 --- a/ReactNativeClient/lib/components/screens/welcome.js +++ b/ReactNativeClient/lib/components/screens/welcome.js @@ -61,4 +61,4 @@ const WelcomeScreen = connect( } )(WelcomeScreenComponent) -export { WelcomeScreen }; \ No newline at end of file +module.exports = { WelcomeScreen }; \ No newline at end of file diff --git a/ReactNativeClient/lib/components/side-menu-content.js b/ReactNativeClient/lib/components/side-menu-content.js index a309e30bdb..cb6e818d17 100644 --- a/ReactNativeClient/lib/components/side-menu-content.js +++ b/ReactNativeClient/lib/components/side-menu-content.js @@ -263,4 +263,4 @@ const SideMenuContent = connect( } )(SideMenuContentComponent) -export { SideMenuContent }; \ No newline at end of file +module.exports = { SideMenuContent }; \ No newline at end of file diff --git a/ReactNativeClient/lib/database-driver-node.js b/ReactNativeClient/lib/database-driver-node.js index 4bab53c06c..8027c781d6 100644 --- a/ReactNativeClient/lib/database-driver-node.js +++ b/ReactNativeClient/lib/database-driver-node.js @@ -69,4 +69,4 @@ class DatabaseDriverNode { } -export { DatabaseDriverNode }; \ No newline at end of file +module.exports = { DatabaseDriverNode }; \ No newline at end of file diff --git a/ReactNativeClient/lib/database-driver-react-native.js b/ReactNativeClient/lib/database-driver-react-native.js index f0b7e3cc25..d4669f020f 100644 --- a/ReactNativeClient/lib/database-driver-react-native.js +++ b/ReactNativeClient/lib/database-driver-react-native.js @@ -54,4 +54,4 @@ class DatabaseDriverReactNative { } -export { DatabaseDriverReactNative } \ No newline at end of file +module.exports = { DatabaseDriverReactNative }; \ No newline at end of file diff --git a/ReactNativeClient/lib/database.js b/ReactNativeClient/lib/database.js index 9969e9d9fd..202725e5be 100644 --- a/ReactNativeClient/lib/database.js +++ b/ReactNativeClient/lib/database.js @@ -310,4 +310,4 @@ Database.TYPE_INT = 1; Database.TYPE_TEXT = 2; Database.TYPE_NUMERIC = 3; -export { Database }; \ No newline at end of file +module.exports = { Database }; \ No newline at end of file diff --git a/ReactNativeClient/lib/dialogs.js b/ReactNativeClient/lib/dialogs.js index 6a1304bb91..072d075681 100644 --- a/ReactNativeClient/lib/dialogs.js +++ b/ReactNativeClient/lib/dialogs.js @@ -63,4 +63,4 @@ dialogs.error = (parentComponent, message) => { dialogs.DialogBox = DialogBox -export { dialogs }; \ No newline at end of file +module.exports = { dialogs }; \ No newline at end of file diff --git a/ReactNativeClient/lib/event-dispatcher.js b/ReactNativeClient/lib/event-dispatcher.js index 7385491134..66f1560bb0 100644 --- a/ReactNativeClient/lib/event-dispatcher.js +++ b/ReactNativeClient/lib/event-dispatcher.js @@ -32,4 +32,4 @@ class EventDispatcher { } -export { EventDispatcher }; \ No newline at end of file +module.exports = { EventDispatcher }; \ No newline at end of file diff --git a/ReactNativeClient/lib/file-api-driver-local.js b/ReactNativeClient/lib/file-api-driver-local.js index 403961621b..3c6b605a7d 100644 --- a/ReactNativeClient/lib/file-api-driver-local.js +++ b/ReactNativeClient/lib/file-api-driver-local.js @@ -235,4 +235,4 @@ class FileApiDriverLocal { } -export { FileApiDriverLocal }; \ No newline at end of file +module.exports = { FileApiDriverLocal }; \ No newline at end of file diff --git a/ReactNativeClient/lib/file-api-driver-memory.js b/ReactNativeClient/lib/file-api-driver-memory.js index 89e033dbc6..a7878fe261 100644 --- a/ReactNativeClient/lib/file-api-driver-memory.js +++ b/ReactNativeClient/lib/file-api-driver-memory.js @@ -165,4 +165,4 @@ class FileApiDriverMemory { } -export { FileApiDriverMemory }; \ No newline at end of file +module.exports = { FileApiDriverMemory }; \ No newline at end of file diff --git a/ReactNativeClient/lib/file-api-driver-onedrive.js b/ReactNativeClient/lib/file-api-driver-onedrive.js index 4b7451b7b2..2e9827fa49 100644 --- a/ReactNativeClient/lib/file-api-driver-onedrive.js +++ b/ReactNativeClient/lib/file-api-driver-onedrive.js @@ -274,4 +274,4 @@ class FileApiDriverOneDrive { } -export { FileApiDriverOneDrive }; \ No newline at end of file +module.exports = { FileApiDriverOneDrive }; \ No newline at end of file diff --git a/ReactNativeClient/lib/file-api.js b/ReactNativeClient/lib/file-api.js index 90ee3ddf80..67d32d4df1 100644 --- a/ReactNativeClient/lib/file-api.js +++ b/ReactNativeClient/lib/file-api.js @@ -109,4 +109,4 @@ class FileApi { } -export { FileApi }; \ No newline at end of file +module.exports = { FileApi }; \ No newline at end of file diff --git a/ReactNativeClient/lib/folders-screen-utils.js b/ReactNativeClient/lib/folders-screen-utils.js index f5a2058a10..9832a08a24 100644 --- a/ReactNativeClient/lib/folders-screen-utils.js +++ b/ReactNativeClient/lib/folders-screen-utils.js @@ -13,4 +13,4 @@ class FoldersScreenUtils { } -export { FoldersScreenUtils } \ No newline at end of file +module.exports = { FoldersScreenUtils }; \ No newline at end of file diff --git a/ReactNativeClient/lib/fs-driver-dummy.js b/ReactNativeClient/lib/fs-driver-dummy.js index a916c29c0d..0f32c1bca8 100644 --- a/ReactNativeClient/lib/fs-driver-dummy.js +++ b/ReactNativeClient/lib/fs-driver-dummy.js @@ -7,4 +7,4 @@ class FsDriverDummy { } -export { FsDriverDummy } \ No newline at end of file +module.exports = { FsDriverDummy }; \ No newline at end of file diff --git a/ReactNativeClient/lib/geolocation-node.js b/ReactNativeClient/lib/geolocation-node.js index a28ce9e1c9..6cee970cf9 100644 --- a/ReactNativeClient/lib/geolocation-node.js +++ b/ReactNativeClient/lib/geolocation-node.js @@ -25,4 +25,4 @@ class GeolocationNode { } -export { GeolocationNode }; \ No newline at end of file +module.exports = { GeolocationNode }; \ No newline at end of file diff --git a/ReactNativeClient/lib/geolocation-react.js b/ReactNativeClient/lib/geolocation-react.js index 25b91ae26e..f06f8861f4 100644 --- a/ReactNativeClient/lib/geolocation-react.js +++ b/ReactNativeClient/lib/geolocation-react.js @@ -35,4 +35,4 @@ class GeolocationReact { } -export { GeolocationReact }; \ No newline at end of file +module.exports = { GeolocationReact }; \ No newline at end of file diff --git a/ReactNativeClient/lib/joplin-database.js b/ReactNativeClient/lib/joplin-database.js index 9fc411eb50..4127da1782 100644 --- a/ReactNativeClient/lib/joplin-database.js +++ b/ReactNativeClient/lib/joplin-database.js @@ -304,4 +304,4 @@ Database.TYPE_INT = 1; Database.TYPE_TEXT = 2; Database.TYPE_NUMERIC = 3; -export { JoplinDatabase }; \ No newline at end of file +module.exports = { JoplinDatabase }; \ No newline at end of file diff --git a/ReactNativeClient/lib/locale.js b/ReactNativeClient/lib/locale.js index 0f529f4690..407fba8f4f 100644 --- a/ReactNativeClient/lib/locale.js +++ b/ReactNativeClient/lib/locale.js @@ -296,4 +296,4 @@ function _(s, ...args) { return sprintf(result, ...args); } -export { _, supportedLocales, localeStrings, setLocale, supportedLocalesToLanguages, defaultLocale, closestSupportedLocale, languageCode }; \ No newline at end of file +module.exports = { _, supportedLocales, localeStrings, setLocale, supportedLocalesToLanguages, defaultLocale, closestSupportedLocale, languageCode }; \ No newline at end of file diff --git a/ReactNativeClient/lib/log.js b/ReactNativeClient/lib/log.js index 45975cc71f..54a3dbb32e 100644 --- a/ReactNativeClient/lib/log.js +++ b/ReactNativeClient/lib/log.js @@ -37,4 +37,4 @@ Log.LEVEL_INFO = 10; Log.LEVEL_WARN = 20; Log.LEVEL_ERROR = 30; -export { Log }; \ No newline at end of file +module.exports = { Log }; \ No newline at end of file diff --git a/ReactNativeClient/lib/logger.js b/ReactNativeClient/lib/logger.js index 92b8a7cf9c..36b98089c1 100644 --- a/ReactNativeClient/lib/logger.js +++ b/ReactNativeClient/lib/logger.js @@ -180,4 +180,4 @@ Logger.LEVEL_WARN = 20; Logger.LEVEL_INFO = 30; Logger.LEVEL_DEBUG = 40; -export { Logger }; \ No newline at end of file +module.exports = { Logger }; \ No newline at end of file diff --git a/ReactNativeClient/lib/markdown-utils.js b/ReactNativeClient/lib/markdown-utils.js index 6bb8bdba00..22f83d73d6 100644 --- a/ReactNativeClient/lib/markdown-utils.js +++ b/ReactNativeClient/lib/markdown-utils.js @@ -13,4 +13,4 @@ const markdownUtils = { }; -export { markdownUtils }; \ No newline at end of file +module.exports = { markdownUtils }; \ No newline at end of file diff --git a/ReactNativeClient/lib/mime-utils.js b/ReactNativeClient/lib/mime-utils.js index 5a9bccdcc7..8a53cb6723 100644 --- a/ReactNativeClient/lib/mime-utils.js +++ b/ReactNativeClient/lib/mime-utils.js @@ -20,4 +20,4 @@ const mime = { } -export { mime }; \ No newline at end of file +module.exports = { mime }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/base-item.js b/ReactNativeClient/lib/models/base-item.js index 22cbcbf163..b4195ecc8d 100644 --- a/ReactNativeClient/lib/models/base-item.js +++ b/ReactNativeClient/lib/models/base-item.js @@ -435,4 +435,4 @@ BaseItem.syncItemDefinitions_ = [ { type: BaseModel.TYPE_NOTE_TAG, className: 'NoteTag' }, ]; -export { BaseItem }; \ No newline at end of file +module.exports = { BaseItem }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/folder.js b/ReactNativeClient/lib/models/folder.js index ab580b2886..6ea04b93e8 100644 --- a/ReactNativeClient/lib/models/folder.js +++ b/ReactNativeClient/lib/models/folder.js @@ -152,4 +152,4 @@ class Folder extends BaseItem { } -export { Folder }; \ No newline at end of file +module.exports = { Folder }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/note-tag.js b/ReactNativeClient/lib/models/note-tag.js index 34af3c80b9..19bf6ea995 100644 --- a/ReactNativeClient/lib/models/note-tag.js +++ b/ReactNativeClient/lib/models/note-tag.js @@ -25,4 +25,4 @@ class NoteTag extends BaseItem { } -export { NoteTag }; \ No newline at end of file +module.exports = { NoteTag }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/note.js b/ReactNativeClient/lib/models/note.js index 3c09f8f534..f82f8f3234 100644 --- a/ReactNativeClient/lib/models/note.js +++ b/ReactNativeClient/lib/models/note.js @@ -430,4 +430,4 @@ class Note extends BaseItem { Note.updateGeolocationEnabled_ = true; Note.geolocationUpdating_ = false; -export { Note }; \ No newline at end of file +module.exports = { Note }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/resource.js b/ReactNativeClient/lib/models/resource.js index c0820b9ca7..7e67fd46fa 100644 --- a/ReactNativeClient/lib/models/resource.js +++ b/ReactNativeClient/lib/models/resource.js @@ -80,4 +80,4 @@ class Resource extends BaseItem { Resource.IMAGE_MAX_DIMENSION = 1920; -export { Resource }; \ No newline at end of file +module.exports = { Resource }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/setting.js b/ReactNativeClient/lib/models/setting.js index 449619ffb7..18fd982818 100644 --- a/ReactNativeClient/lib/models/setting.js +++ b/ReactNativeClient/lib/models/setting.js @@ -386,4 +386,4 @@ Setting.constants_ = { tempDir: '', } -export { Setting }; \ No newline at end of file +module.exports = { Setting }; \ No newline at end of file diff --git a/ReactNativeClient/lib/models/tag.js b/ReactNativeClient/lib/models/tag.js index a5c8774d98..f8614bd03f 100644 --- a/ReactNativeClient/lib/models/tag.js +++ b/ReactNativeClient/lib/models/tag.js @@ -89,4 +89,4 @@ class Tag extends BaseItem { } -export { Tag }; \ No newline at end of file +module.exports = { Tag }; \ No newline at end of file diff --git a/ReactNativeClient/lib/net-utils.js b/ReactNativeClient/lib/net-utils.js index 706e8bfd21..07ad502cc7 100644 --- a/ReactNativeClient/lib/net-utils.js +++ b/ReactNativeClient/lib/net-utils.js @@ -30,4 +30,4 @@ netUtils.findAvailablePort = async (possiblePorts, extraRandomPortsToTry = 20) = return port; } -export { netUtils }; \ No newline at end of file +module.exports = { netUtils }; \ No newline at end of file diff --git a/ReactNativeClient/lib/onedrive-api.js b/ReactNativeClient/lib/onedrive-api.js index 939ed85cea..0d9f86ed91 100644 --- a/ReactNativeClient/lib/onedrive-api.js +++ b/ReactNativeClient/lib/onedrive-api.js @@ -287,4 +287,4 @@ class OneDriveApi { } -export { OneDriveApi }; \ No newline at end of file +module.exports = { OneDriveApi }; \ No newline at end of file diff --git a/ReactNativeClient/lib/parameters.js b/ReactNativeClient/lib/parameters.js index 98b7fafb50..34e112550f 100644 --- a/ReactNativeClient/lib/parameters.js +++ b/ReactNativeClient/lib/parameters.js @@ -32,4 +32,4 @@ function parameters() { return output; } -export { parameters } \ No newline at end of file +module.exports = { parameters }; \ No newline at end of file diff --git a/ReactNativeClient/lib/path-utils.js b/ReactNativeClient/lib/path-utils.js index b0e07e8704..e9ce72a90d 100644 --- a/ReactNativeClient/lib/path-utils.js +++ b/ReactNativeClient/lib/path-utils.js @@ -35,4 +35,4 @@ function isHidden(path) { return b[0] === '.'; } -export { basename, dirname, filename, isHidden, fileExtension }; \ No newline at end of file +module.exports = { basename, dirname, filename, isHidden, fileExtension }; \ No newline at end of file diff --git a/ReactNativeClient/lib/poor-man-intervals.js b/ReactNativeClient/lib/poor-man-intervals.js index 6cbe20937f..2aeaebe071 100644 --- a/ReactNativeClient/lib/poor-man-intervals.js +++ b/ReactNativeClient/lib/poor-man-intervals.js @@ -53,4 +53,4 @@ PoorManIntervals.lastUpdateTime_ = 0; PoorManIntervals.intervalId_ = 0; PoorManIntervals.intervals_ = []; -export { PoorManIntervals } \ No newline at end of file +module.exports = { PoorManIntervals }; \ No newline at end of file diff --git a/ReactNativeClient/lib/promise-utils.js b/ReactNativeClient/lib/promise-utils.js index 0dec96e7fc..7f42f25194 100644 --- a/ReactNativeClient/lib/promise-utils.js +++ b/ReactNativeClient/lib/promise-utils.js @@ -34,4 +34,4 @@ function promiseWhile(callback) { }, 100); } -export { promiseChain, promiseWhile } \ No newline at end of file +module.exports = { promiseChain, promiseWhile }; \ No newline at end of file diff --git a/ReactNativeClient/lib/react-logger.js b/ReactNativeClient/lib/react-logger.js index 9fba2c4291..bb9a242d66 100644 --- a/ReactNativeClient/lib/react-logger.js +++ b/ReactNativeClient/lib/react-logger.js @@ -6,4 +6,4 @@ class ReactLogger extends Logger { } -export { ReactLogger } \ No newline at end of file +module.exports = { ReactLogger }; \ No newline at end of file diff --git a/ReactNativeClient/lib/reducer.js b/ReactNativeClient/lib/reducer.js index b9ee56237a..0477e9ca08 100644 --- a/ReactNativeClient/lib/reducer.js +++ b/ReactNativeClient/lib/reducer.js @@ -419,4 +419,4 @@ const reducer = (state = defaultState, action) => { return newState; } -export { reducer, defaultState }; \ No newline at end of file +module.exports = { reducer, defaultState }; \ No newline at end of file diff --git a/ReactNativeClient/lib/registry.js b/ReactNativeClient/lib/registry.js index 39c036a787..2a580e8fa7 100644 --- a/ReactNativeClient/lib/registry.js +++ b/ReactNativeClient/lib/registry.js @@ -223,4 +223,4 @@ reg.db = () => { return reg.db_; } -export { reg } \ No newline at end of file +module.exports = { reg }; \ No newline at end of file diff --git a/ReactNativeClient/lib/services/back-button.js b/ReactNativeClient/lib/services/back-button.js index e0225ee297..846eba9242 100644 --- a/ReactNativeClient/lib/services/back-button.js +++ b/ReactNativeClient/lib/services/back-button.js @@ -40,4 +40,4 @@ class BackButtonService { BackButtonService.defaultHandler_ = null; BackButtonService.handlers_ = []; -export { BackButtonService }; \ No newline at end of file +module.exports = { BackButtonService }; \ No newline at end of file diff --git a/ReactNativeClient/lib/services/exporter.js b/ReactNativeClient/lib/services/exporter.js index 48cfcad2c9..fc33b1d590 100644 --- a/ReactNativeClient/lib/services/exporter.js +++ b/ReactNativeClient/lib/services/exporter.js @@ -93,4 +93,4 @@ class Exporter { } -export { Exporter } \ No newline at end of file +module.exports = { Exporter }; \ No newline at end of file diff --git a/ReactNativeClient/lib/services/report.js b/ReactNativeClient/lib/services/report.js index e503aa678a..bb4081fc1d 100644 --- a/ReactNativeClient/lib/services/report.js +++ b/ReactNativeClient/lib/services/report.js @@ -87,4 +87,4 @@ class ReportService { } -export { ReportService } \ No newline at end of file +module.exports = { ReportService }; \ No newline at end of file diff --git a/ReactNativeClient/lib/shim-init-node.js b/ReactNativeClient/lib/shim-init-node.js index 13edb5b111..a55a105514 100644 --- a/ReactNativeClient/lib/shim-init-node.js +++ b/ReactNativeClient/lib/shim-init-node.js @@ -144,4 +144,4 @@ function shimInit() { } } -export { shimInit } \ No newline at end of file +module.exports = { shimInit }; \ No newline at end of file diff --git a/ReactNativeClient/lib/shim-init-react.js b/ReactNativeClient/lib/shim-init-react.js index b5cc527b21..652e670765 100644 --- a/ReactNativeClient/lib/shim-init-react.js +++ b/ReactNativeClient/lib/shim-init-react.js @@ -70,4 +70,4 @@ function shimInit() { } } -export { shimInit } \ No newline at end of file +module.exports = { shimInit }; \ No newline at end of file diff --git a/ReactNativeClient/lib/shim.js b/ReactNativeClient/lib/shim.js index 83505152fb..2df9012e67 100644 --- a/ReactNativeClient/lib/shim.js +++ b/ReactNativeClient/lib/shim.js @@ -18,4 +18,4 @@ shim.uploadBlob = () => { throw new Error('Not implemented'); } shim.setInterval = setInterval; shim.clearInterval = clearInterval; -export { shim }; \ No newline at end of file +module.exports = { shim }; \ No newline at end of file diff --git a/ReactNativeClient/lib/string-utils.js b/ReactNativeClient/lib/string-utils.js index 321a3faf4d..47c6c6ffed 100644 --- a/ReactNativeClient/lib/string-utils.js +++ b/ReactNativeClient/lib/string-utils.js @@ -122,4 +122,4 @@ function wrap(text, indent, width) { }); } -export { removeDiacritics, escapeFilename, wrap }; \ No newline at end of file +module.exports = { removeDiacritics, escapeFilename, wrap }; \ No newline at end of file diff --git a/ReactNativeClient/lib/synchronizer.js b/ReactNativeClient/lib/synchronizer.js index 62f9ac40e2..ef46fe0d6b 100644 --- a/ReactNativeClient/lib/synchronizer.js +++ b/ReactNativeClient/lib/synchronizer.js @@ -502,4 +502,4 @@ class Synchronizer { } -export { Synchronizer }; \ No newline at end of file +module.exports = { Synchronizer }; \ No newline at end of file diff --git a/ReactNativeClient/lib/time-utils.js b/ReactNativeClient/lib/time-utils.js index ad0a967324..472732a74a 100644 --- a/ReactNativeClient/lib/time-utils.js +++ b/ReactNativeClient/lib/time-utils.js @@ -44,4 +44,4 @@ let time = { } -export { time }; \ No newline at end of file +module.exports = { time }; \ No newline at end of file diff --git a/ReactNativeClient/lib/uuid.js b/ReactNativeClient/lib/uuid.js index c3db1afafd..8805341b26 100644 --- a/ReactNativeClient/lib/uuid.js +++ b/ReactNativeClient/lib/uuid.js @@ -8,4 +8,4 @@ const uuid = { } -export { uuid }; \ No newline at end of file +module.exports = { uuid }; \ No newline at end of file diff --git a/ReactNativeClient/main.js b/ReactNativeClient/main.js index d56116961d..eb5285e1a0 100644 --- a/ReactNativeClient/main.js +++ b/ReactNativeClient/main.js @@ -17,4 +17,4 @@ function main() { // AppComponent.componentDidMount(), when the application is ready. } -export { main } \ No newline at end of file +module.exports = { main }; \ No newline at end of file diff --git a/ReactNativeClient/root.js b/ReactNativeClient/root.js index f518610cf2..f87809ffe2 100644 --- a/ReactNativeClient/root.js +++ b/ReactNativeClient/root.js @@ -293,4 +293,4 @@ class Root extends React.Component { } } -export { Root }; \ No newline at end of file +module.exports = { Root }; \ No newline at end of file diff --git a/index.html b/index.html index dad79fdf39..6761778c46 100644 --- a/index.html +++ b/index.html @@ -348,7 +348,7 @@ exit Exits the application. -export <directory> +module.exports = <directory> Exports Joplin data to the given directory. By default, it will export the complete database including notebooks, notes, tags and resources.