mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
Fix module export
This commit is contained in:
parent
ddb953da0c
commit
4a6a69e7bc
@ -1,19 +1,11 @@
|
|||||||
//config
|
|
||||||
var domain = ''; // domain name
|
|
||||||
var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
|
|
||||||
//settings
|
|
||||||
var debug = false;
|
|
||||||
|
|
||||||
var GOOGLE_API_KEY = '';
|
|
||||||
var GOOGLE_CLIENT_ID = '';
|
|
||||||
|
|
||||||
var DROPBOX_APP_KEY = '';
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
domain: domain,
|
domain: '', // domain name
|
||||||
urlpath: urlpath,
|
urlpath: '', // sub url path, like: www.example.com/<urlpath>
|
||||||
debug: debug,
|
|
||||||
GOOGLE_API_KEY: GOOGLE_API_KEY,
|
// settings
|
||||||
GOOGLE_CLIENT_ID: GOOGLE_CLIENT_ID,
|
debug: false,
|
||||||
DROPBOX_APP_KEY: DROPBOX_APP_KEY
|
|
||||||
|
GOOGLE_API_KEY: '',
|
||||||
|
GOOGLE_CLIENT_ID: '',
|
||||||
|
DROPBOX_APP_KEY: ''
|
||||||
};
|
};
|
||||||
|
@ -3,6 +3,8 @@ var checkIfAuth = common.checkIfAuth;
|
|||||||
var urlpath = common.urlpath;
|
var urlpath = common.urlpath;
|
||||||
var serverurl = common.serverurl;
|
var serverurl = common.serverurl;
|
||||||
var resetCheckAuth = common.resetCheckAuth;
|
var resetCheckAuth = common.resetCheckAuth;
|
||||||
|
var getLoginState = common.getLoginState;
|
||||||
|
var clearLoginState = common.clearLoginState;
|
||||||
|
|
||||||
var historyModule = require('./history');
|
var historyModule = require('./history');
|
||||||
var parseStorageToHistory = historyModule.parseStorageToHistory;
|
var parseStorageToHistory = historyModule.parseStorageToHistory;
|
||||||
@ -11,6 +13,10 @@ var getStorageHistory = historyModule.getStorageHistory;
|
|||||||
var getHistory = historyModule.getHistory;
|
var getHistory = historyModule.getHistory;
|
||||||
var saveHistory = historyModule.saveHistory;
|
var saveHistory = historyModule.saveHistory;
|
||||||
var removeHistory = historyModule.removeHistory;
|
var removeHistory = historyModule.removeHistory;
|
||||||
|
var postHistoryToServer = historyModule.postHistoryToServer;
|
||||||
|
var deleteServerHistory = historyModule.deleteServerHistory;
|
||||||
|
var parseServerToHistory = historyModule.parseServerToHistory;
|
||||||
|
var saveStorageHistoryToServer = historyModule.saveStorageHistoryToServer;
|
||||||
|
|
||||||
var saveAs = require('file-saver').saveAs;
|
var saveAs = require('file-saver').saveAs;
|
||||||
var List = require('list.js');
|
var List = require('list.js');
|
||||||
@ -196,7 +202,7 @@ function parseHistoryCallback(list, notehistory) {
|
|||||||
$this.addClass('active');
|
$this.addClass('active');
|
||||||
else
|
else
|
||||||
$this.removeClass('active');
|
$this.removeClass('active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, function () {
|
}, function () {
|
||||||
getHistory(function (notehistory) {
|
getHistory(function (notehistory) {
|
||||||
|
@ -1086,5 +1086,7 @@ module.exports = {
|
|||||||
generateToc: generateToc,
|
generateToc: generateToc,
|
||||||
smoothHashScroll: smoothHashScroll,
|
smoothHashScroll: smoothHashScroll,
|
||||||
scrollToHash: scrollToHash,
|
scrollToHash: scrollToHash,
|
||||||
owner: owner
|
owner: owner,
|
||||||
|
updateLastChangeUser: updateLastChangeUser,
|
||||||
|
updateOwner: updateOwner
|
||||||
};
|
};
|
||||||
|
@ -4,6 +4,7 @@ var common = require('./common');
|
|||||||
var checkIfAuth = common.checkIfAuth;
|
var checkIfAuth = common.checkIfAuth;
|
||||||
var urlpath = common.urlpath;
|
var urlpath = common.urlpath;
|
||||||
var serverurl = common.serverurl;
|
var serverurl = common.serverurl;
|
||||||
|
var getLoginState = common.getLoginState;
|
||||||
|
|
||||||
var extra = require('./extra');
|
var extra = require('./extra');
|
||||||
var renderFilename = extra.renderFilename;
|
var renderFilename = extra.renderFilename;
|
||||||
@ -414,5 +415,7 @@ module.exports = {
|
|||||||
removeHistory: removeHistory,
|
removeHistory: removeHistory,
|
||||||
parseStorageToHistory: parseStorageToHistory,
|
parseStorageToHistory: parseStorageToHistory,
|
||||||
postHistoryToServer: postHistoryToServer,
|
postHistoryToServer: postHistoryToServer,
|
||||||
deleteServerHistory: deleteServerHistory
|
deleteServerHistory: deleteServerHistory,
|
||||||
|
parseServerToHistory: parseServerToHistory,
|
||||||
|
saveStorageHistoryToServer: saveStorageHistoryToServer
|
||||||
}
|
}
|
||||||
|
@ -63,9 +63,12 @@ var renderTitle = extra.renderTitle;
|
|||||||
var renderFilename = extra.renderFilename;
|
var renderFilename = extra.renderFilename;
|
||||||
var scrollToHash = extra.scrollToHash;
|
var scrollToHash = extra.scrollToHash;
|
||||||
var owner = extra.owner;
|
var owner = extra.owner;
|
||||||
|
var updateLastChangeUser = extra.updateLastChangeUser;
|
||||||
|
var updateOwner = extra.updateOwner;
|
||||||
|
|
||||||
var historyModule = require('./history');
|
var historyModule = require('./history');
|
||||||
var writeHistory = historyModule.writeHistory;
|
var writeHistory = historyModule.writeHistory;
|
||||||
|
var deleteServerHistory = historyModule.deleteServerHistory;
|
||||||
|
|
||||||
var renderer = require('./render');
|
var renderer = require('./render');
|
||||||
var preventXSS = renderer.preventXSS;
|
var preventXSS = renderer.preventXSS;
|
||||||
@ -1461,6 +1464,7 @@ function onGoogleAPILoaded() {
|
|||||||
.prop('defer', true)
|
.prop('defer', true)
|
||||||
.appendTo('body');
|
.appendTo('body');
|
||||||
}
|
}
|
||||||
|
window.onGoogleAPILoaded = onGoogleAPILoaded;
|
||||||
|
|
||||||
//button actions
|
//button actions
|
||||||
//share
|
//share
|
||||||
|
Loading…
x
Reference in New Issue
Block a user