1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Changed export to module.exports

This commit is contained in:
Laurent Cozic 2017-11-03 00:13:17 +00:00
parent 7781fbad76
commit 8a78ee5df6
78 changed files with 78 additions and 78 deletions

View File

@ -652,4 +652,4 @@ function app() {
return application_;
}
export { app };
module.exports = { app };

View File

@ -96,4 +96,4 @@ class BaseCommand {
}
export { BaseCommand };
module.exports = { BaseCommand };

View File

@ -315,4 +315,4 @@ cliUtils.redrawDone = function() {
redrawStarted_ = false;
}
export { cliUtils };
module.exports = { cliUtils };

View File

@ -108,4 +108,4 @@ function getOptionColWidth(options) {
return output;
}
export { renderCommandHelp };
module.exports = { renderCommandHelp };

View File

@ -620,4 +620,4 @@ async function enexXmlToMd(stream, resources) {
return processMdArrayNewLines(mdLines);
}
export { enexXmlToMd, processMdArrayNewLines, NEWLINE, addResourceTag };
module.exports = { enexXmlToMd, processMdArrayNewLines, NEWLINE, addResourceTag };

View File

@ -408,4 +408,4 @@ function importEnex(parentFolderId, filePath, importOptions = null) {
});
}
export { importEnex };
module.exports = { importEnex };

View File

@ -119,4 +119,4 @@ class OneDriveApiNodeUtils {
}
export { OneDriveApiNodeUtils };
module.exports = { OneDriveApiNodeUtils };

View File

@ -175,4 +175,4 @@ function fileApi() {
return fileApi_;
}
export { setupDatabase, setupDatabaseAndSynchronizer, db, synchronizer, fileApi, sleep, clearDatabase, switchClient, syncTargetId };
module.exports = { setupDatabase, setupDatabaseAndSynchronizer, db, synchronizer, fileApi, sleep, clearDatabase, switchClient, syncTargetId };

View File

@ -12,7 +12,7 @@ import {
View
} from 'react-native';
export default class Joplin extends Component {
module.exports = default class Joplin extends Component {;
render() {
return (
<View style={styles.container}>

View File

@ -364,4 +364,4 @@ BaseModel.TYPE_SEARCH = 7;
BaseModel.db_ = null;
BaseModel.dispatch = function(o) {};
export { BaseModel };
module.exports = { BaseModel };

View File

@ -138,4 +138,4 @@ const ActionButton = connect(
}
)(ActionButtonComponent)
export { ActionButton };
module.exports = { ActionButton };

View File

@ -63,4 +63,4 @@ const AppNav = connect(
}
)(AppNavComponent)
export { AppNav };
module.exports = { AppNav };

View File

@ -37,4 +37,4 @@ class BaseScreenComponent extends React.Component {
}
export { BaseScreenComponent };
module.exports = { BaseScreenComponent };

View File

@ -66,4 +66,4 @@ class Checkbox extends Component {
}
export { Checkbox };
module.exports = { Checkbox };

View File

@ -69,4 +69,4 @@ function themeStyle(theme) {
return themeCache_[theme];
}
export { globalStyle, themeStyle }
module.exports = { globalStyle, themeStyle };

View File

@ -226,4 +226,4 @@ class NoteBodyViewer extends Component {
}
export { NoteBodyViewer };
module.exports = { NoteBodyViewer };

View File

@ -129,4 +129,4 @@ const NoteItem = connect(
}
)(NoteItemComponent)
export { NoteItem }
module.exports = { NoteItem };

View File

@ -117,4 +117,4 @@ const NoteList = connect(
}
)(NoteListComponent)
export { NoteList };
module.exports = { NoteList };

View File

@ -323,4 +323,4 @@ const ScreenHeader = connect(
}
)(ScreenHeaderComponent)
export { ScreenHeader };
module.exports = { ScreenHeader };

View File

@ -149,4 +149,4 @@ const ConfigScreen = connect(
}
)(ConfigScreenComponent)
export { ConfigScreen };
module.exports = { ConfigScreen };

View File

@ -129,4 +129,4 @@ const FolderScreen = connect(
}
)(FolderScreenComponent)
export { FolderScreen };
module.exports = { FolderScreen };

View File

@ -106,4 +106,4 @@ const LogScreen = connect(
}
)(LogScreenComponent)
export { LogScreen };
module.exports = { LogScreen };

View File

@ -570,4 +570,4 @@ const NoteScreen = connect(
}
)(NoteScreenComponent)
export { NoteScreen };
module.exports = { NoteScreen };

View File

@ -171,4 +171,4 @@ const NotesScreen = connect(
}
)(NotesScreenComponent)
export { NotesScreen };
module.exports = { NotesScreen };

View File

@ -107,4 +107,4 @@ const OneDriveLoginScreen = connect(
}
)(OneDriveLoginScreenComponent)
export { OneDriveLoginScreen };
module.exports = { OneDriveLoginScreen };

View File

@ -178,4 +178,4 @@ const SearchScreen = connect(
}
)(SearchScreenComponent)
export { SearchScreen };
module.exports = { SearchScreen };

View File

@ -119,4 +119,4 @@ const StatusScreen = connect(
}
)(StatusScreenComponent)
export { StatusScreen };
module.exports = { StatusScreen };

View File

@ -73,4 +73,4 @@ const TagScreen = connect(
}
)(TagScreenComponent)
export { TagScreen };
module.exports = { TagScreen };

View File

@ -61,4 +61,4 @@ const WelcomeScreen = connect(
}
)(WelcomeScreenComponent)
export { WelcomeScreen };
module.exports = { WelcomeScreen };

View File

@ -263,4 +263,4 @@ const SideMenuContent = connect(
}
)(SideMenuContentComponent)
export { SideMenuContent };
module.exports = { SideMenuContent };

View File

@ -69,4 +69,4 @@ class DatabaseDriverNode {
}
export { DatabaseDriverNode };
module.exports = { DatabaseDriverNode };

View File

@ -54,4 +54,4 @@ class DatabaseDriverReactNative {
}
export { DatabaseDriverReactNative }
module.exports = { DatabaseDriverReactNative };

View File

@ -310,4 +310,4 @@ Database.TYPE_INT = 1;
Database.TYPE_TEXT = 2;
Database.TYPE_NUMERIC = 3;
export { Database };
module.exports = { Database };

View File

@ -63,4 +63,4 @@ dialogs.error = (parentComponent, message) => {
dialogs.DialogBox = DialogBox
export { dialogs };
module.exports = { dialogs };

View File

@ -32,4 +32,4 @@ class EventDispatcher {
}
export { EventDispatcher };
module.exports = { EventDispatcher };

View File

@ -235,4 +235,4 @@ class FileApiDriverLocal {
}
export { FileApiDriverLocal };
module.exports = { FileApiDriverLocal };

View File

@ -165,4 +165,4 @@ class FileApiDriverMemory {
}
export { FileApiDriverMemory };
module.exports = { FileApiDriverMemory };

View File

@ -274,4 +274,4 @@ class FileApiDriverOneDrive {
}
export { FileApiDriverOneDrive };
module.exports = { FileApiDriverOneDrive };

View File

@ -109,4 +109,4 @@ class FileApi {
}
export { FileApi };
module.exports = { FileApi };

View File

@ -13,4 +13,4 @@ class FoldersScreenUtils {
}
export { FoldersScreenUtils }
module.exports = { FoldersScreenUtils };

View File

@ -7,4 +7,4 @@ class FsDriverDummy {
}
export { FsDriverDummy }
module.exports = { FsDriverDummy };

View File

@ -25,4 +25,4 @@ class GeolocationNode {
}
export { GeolocationNode };
module.exports = { GeolocationNode };

View File

@ -35,4 +35,4 @@ class GeolocationReact {
}
export { GeolocationReact };
module.exports = { GeolocationReact };

View File

@ -304,4 +304,4 @@ Database.TYPE_INT = 1;
Database.TYPE_TEXT = 2;
Database.TYPE_NUMERIC = 3;
export { JoplinDatabase };
module.exports = { JoplinDatabase };

View File

@ -296,4 +296,4 @@ function _(s, ...args) {
return sprintf(result, ...args);
}
export { _, supportedLocales, localeStrings, setLocale, supportedLocalesToLanguages, defaultLocale, closestSupportedLocale, languageCode };
module.exports = { _, supportedLocales, localeStrings, setLocale, supportedLocalesToLanguages, defaultLocale, closestSupportedLocale, languageCode };

View File

@ -37,4 +37,4 @@ Log.LEVEL_INFO = 10;
Log.LEVEL_WARN = 20;
Log.LEVEL_ERROR = 30;
export { Log };
module.exports = { Log };

View File

@ -180,4 +180,4 @@ Logger.LEVEL_WARN = 20;
Logger.LEVEL_INFO = 30;
Logger.LEVEL_DEBUG = 40;
export { Logger };
module.exports = { Logger };

View File

@ -13,4 +13,4 @@ const markdownUtils = {
};
export { markdownUtils };
module.exports = { markdownUtils };

View File

@ -20,4 +20,4 @@ const mime = {
}
export { mime };
module.exports = { mime };

View File

@ -435,4 +435,4 @@ BaseItem.syncItemDefinitions_ = [
{ type: BaseModel.TYPE_NOTE_TAG, className: 'NoteTag' },
];
export { BaseItem };
module.exports = { BaseItem };

View File

@ -152,4 +152,4 @@ class Folder extends BaseItem {
}
export { Folder };
module.exports = { Folder };

View File

@ -25,4 +25,4 @@ class NoteTag extends BaseItem {
}
export { NoteTag };
module.exports = { NoteTag };

View File

@ -430,4 +430,4 @@ class Note extends BaseItem {
Note.updateGeolocationEnabled_ = true;
Note.geolocationUpdating_ = false;
export { Note };
module.exports = { Note };

View File

@ -80,4 +80,4 @@ class Resource extends BaseItem {
Resource.IMAGE_MAX_DIMENSION = 1920;
export { Resource };
module.exports = { Resource };

View File

@ -386,4 +386,4 @@ Setting.constants_ = {
tempDir: '',
}
export { Setting };
module.exports = { Setting };

View File

@ -89,4 +89,4 @@ class Tag extends BaseItem {
}
export { Tag };
module.exports = { Tag };

View File

@ -30,4 +30,4 @@ netUtils.findAvailablePort = async (possiblePorts, extraRandomPortsToTry = 20) =
return port;
}
export { netUtils };
module.exports = { netUtils };

View File

@ -287,4 +287,4 @@ class OneDriveApi {
}
export { OneDriveApi };
module.exports = { OneDriveApi };

View File

@ -32,4 +32,4 @@ function parameters() {
return output;
}
export { parameters }
module.exports = { parameters };

View File

@ -35,4 +35,4 @@ function isHidden(path) {
return b[0] === '.';
}
export { basename, dirname, filename, isHidden, fileExtension };
module.exports = { basename, dirname, filename, isHidden, fileExtension };

View File

@ -53,4 +53,4 @@ PoorManIntervals.lastUpdateTime_ = 0;
PoorManIntervals.intervalId_ = 0;
PoorManIntervals.intervals_ = [];
export { PoorManIntervals }
module.exports = { PoorManIntervals };

View File

@ -34,4 +34,4 @@ function promiseWhile(callback) {
}, 100);
}
export { promiseChain, promiseWhile }
module.exports = { promiseChain, promiseWhile };

View File

@ -6,4 +6,4 @@ class ReactLogger extends Logger {
}
export { ReactLogger }
module.exports = { ReactLogger };

View File

@ -419,4 +419,4 @@ const reducer = (state = defaultState, action) => {
return newState;
}
export { reducer, defaultState };
module.exports = { reducer, defaultState };

View File

@ -223,4 +223,4 @@ reg.db = () => {
return reg.db_;
}
export { reg }
module.exports = { reg };

View File

@ -40,4 +40,4 @@ class BackButtonService {
BackButtonService.defaultHandler_ = null;
BackButtonService.handlers_ = [];
export { BackButtonService };
module.exports = { BackButtonService };

View File

@ -93,4 +93,4 @@ class Exporter {
}
export { Exporter }
module.exports = { Exporter };

View File

@ -87,4 +87,4 @@ class ReportService {
}
export { ReportService }
module.exports = { ReportService };

View File

@ -144,4 +144,4 @@ function shimInit() {
}
}
export { shimInit }
module.exports = { shimInit };

View File

@ -70,4 +70,4 @@ function shimInit() {
}
}
export { shimInit }
module.exports = { shimInit };

View File

@ -18,4 +18,4 @@ shim.uploadBlob = () => { throw new Error('Not implemented'); }
shim.setInterval = setInterval;
shim.clearInterval = clearInterval;
export { shim };
module.exports = { shim };

View File

@ -122,4 +122,4 @@ function wrap(text, indent, width) {
});
}
export { removeDiacritics, escapeFilename, wrap };
module.exports = { removeDiacritics, escapeFilename, wrap };

View File

@ -502,4 +502,4 @@ class Synchronizer {
}
export { Synchronizer };
module.exports = { Synchronizer };

View File

@ -44,4 +44,4 @@ let time = {
}
export { time };
module.exports = { time };

View File

@ -8,4 +8,4 @@ const uuid = {
}
export { uuid };
module.exports = { uuid };

View File

@ -17,4 +17,4 @@ function main() {
// AppComponent.componentDidMount(), when the application is ready.
}
export { main }
module.exports = { main };

View File

@ -293,4 +293,4 @@ class Root extends React.Component {
}
}
export { Root };
module.exports = { Root };

View File

@ -348,7 +348,7 @@ exit
Exits the application.
export &lt;directory&gt;
module.exports = &lt;directory&gt;
Exports Joplin data to the given directory. By default, it will export the
complete database including notebooks, notes, tags and resources.