mirror of https://github.com/status-im/codimd.git
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 = {
|
||||
domain: domain,
|
||||
urlpath: urlpath,
|
||||
debug: debug,
|
||||
GOOGLE_API_KEY: GOOGLE_API_KEY,
|
||||
GOOGLE_CLIENT_ID: GOOGLE_CLIENT_ID,
|
||||
DROPBOX_APP_KEY: DROPBOX_APP_KEY
|
||||
domain: '', // domain name
|
||||
urlpath: '', // sub url path, like: www.example.com/<urlpath>
|
||||
|
||||
// settings
|
||||
debug: false,
|
||||
|
||||
GOOGLE_API_KEY: '',
|
||||
GOOGLE_CLIENT_ID: '',
|
||||
DROPBOX_APP_KEY: ''
|
||||
};
|
||||
|
|
|
@ -3,6 +3,8 @@ var checkIfAuth = common.checkIfAuth;
|
|||
var urlpath = common.urlpath;
|
||||
var serverurl = common.serverurl;
|
||||
var resetCheckAuth = common.resetCheckAuth;
|
||||
var getLoginState = common.getLoginState;
|
||||
var clearLoginState = common.clearLoginState;
|
||||
|
||||
var historyModule = require('./history');
|
||||
var parseStorageToHistory = historyModule.parseStorageToHistory;
|
||||
|
@ -11,6 +13,10 @@ var getStorageHistory = historyModule.getStorageHistory;
|
|||
var getHistory = historyModule.getHistory;
|
||||
var saveHistory = historyModule.saveHistory;
|
||||
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 List = require('list.js');
|
||||
|
|
|
@ -1086,5 +1086,7 @@ module.exports = {
|
|||
generateToc: generateToc,
|
||||
smoothHashScroll: smoothHashScroll,
|
||||
scrollToHash: scrollToHash,
|
||||
owner: owner
|
||||
owner: owner,
|
||||
updateLastChangeUser: updateLastChangeUser,
|
||||
updateOwner: updateOwner
|
||||
};
|
||||
|
|
|
@ -4,6 +4,7 @@ var common = require('./common');
|
|||
var checkIfAuth = common.checkIfAuth;
|
||||
var urlpath = common.urlpath;
|
||||
var serverurl = common.serverurl;
|
||||
var getLoginState = common.getLoginState;
|
||||
|
||||
var extra = require('./extra');
|
||||
var renderFilename = extra.renderFilename;
|
||||
|
@ -414,5 +415,7 @@ module.exports = {
|
|||
removeHistory: removeHistory,
|
||||
parseStorageToHistory: parseStorageToHistory,
|
||||
postHistoryToServer: postHistoryToServer,
|
||||
deleteServerHistory: deleteServerHistory
|
||||
deleteServerHistory: deleteServerHistory,
|
||||
parseServerToHistory: parseServerToHistory,
|
||||
saveStorageHistoryToServer: saveStorageHistoryToServer
|
||||
}
|
||||
|
|
|
@ -63,9 +63,12 @@ var renderTitle = extra.renderTitle;
|
|||
var renderFilename = extra.renderFilename;
|
||||
var scrollToHash = extra.scrollToHash;
|
||||
var owner = extra.owner;
|
||||
var updateLastChangeUser = extra.updateLastChangeUser;
|
||||
var updateOwner = extra.updateOwner;
|
||||
|
||||
var historyModule = require('./history');
|
||||
var writeHistory = historyModule.writeHistory;
|
||||
var deleteServerHistory = historyModule.deleteServerHistory;
|
||||
|
||||
var renderer = require('./render');
|
||||
var preventXSS = renderer.preventXSS;
|
||||
|
@ -1461,6 +1464,7 @@ function onGoogleAPILoaded() {
|
|||
.prop('defer', true)
|
||||
.appendTo('body');
|
||||
}
|
||||
window.onGoogleAPILoaded = onGoogleAPILoaded;
|
||||
|
||||
//button actions
|
||||
//share
|
||||
|
|
Loading…
Reference in New Issue