mirror of https://github.com/status-im/codimd.git
parent
747502e694
commit
ae3e1b972b
|
@ -8,7 +8,7 @@ var DROPBOX_APP_KEY = config.DROPBOX_APP_KEY;
|
||||||
|
|
||||||
//common
|
//common
|
||||||
var port = window.location.port;
|
var port = window.location.port;
|
||||||
var serverurl = window.location.protocol + '//' + (domain ? domain : window.location.hostname) + (port ? ':' + port : '') + (urlpath ? '/' + urlpath : '');
|
window.serverurl = window.location.protocol + '//' + (domain ? domain : window.location.hostname) + (port ? ':' + port : '') + (urlpath ? '/' + urlpath : '');
|
||||||
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];
|
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];
|
||||||
var noteurl = serverurl + '/' + noteid;
|
var noteurl = serverurl + '/' + noteid;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
var common = require('./common');
|
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 resetCheckAuth = common.resetCheckAuth;
|
var resetCheckAuth = common.resetCheckAuth;
|
||||||
var getLoginState = common.getLoginState;
|
var getLoginState = common.getLoginState;
|
||||||
var clearLoginState = common.clearLoginState;
|
var clearLoginState = common.clearLoginState;
|
||||||
|
|
|
@ -544,7 +544,6 @@ function exportToRawHTML(view) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var common = require('./common.js');
|
var common = require('./common.js');
|
||||||
var serverurl = common.serverurl;
|
|
||||||
//extract markdown body to html and compile to template
|
//extract markdown body to html and compile to template
|
||||||
function exportToHTML(view) {
|
function exportToHTML(view) {
|
||||||
var title = renderTitle(ui.area.markdown);
|
var title = renderTitle(ui.area.markdown);
|
||||||
|
|
|
@ -3,7 +3,6 @@ var store = require('store');
|
||||||
var common = require('./common');
|
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 getLoginState = common.getLoginState;
|
var getLoginState = common.getLoginState;
|
||||||
|
|
||||||
var extra = require('./extra');
|
var extra = require('./extra');
|
||||||
|
|
|
@ -21,7 +21,6 @@ var urlpath = common.urlpath;
|
||||||
var noteid = common.noteid;
|
var noteid = common.noteid;
|
||||||
var debug = common.debug;
|
var debug = common.debug;
|
||||||
var version = common.version;
|
var version = common.version;
|
||||||
var serverurl = common.serverurl;
|
|
||||||
var GOOGLE_API_KEY = common.GOOGLE_API_KEY;
|
var GOOGLE_API_KEY = common.GOOGLE_API_KEY;
|
||||||
var GOOGLE_CLIENT_ID = common.GOOGLE_CLIENT_ID;
|
var GOOGLE_CLIENT_ID = common.GOOGLE_CLIENT_ID;
|
||||||
var DROPBOX_APP_KEY = common.DROPBOX_APP_KEY;
|
var DROPBOX_APP_KEY = common.DROPBOX_APP_KEY;
|
||||||
|
|
|
@ -14,7 +14,6 @@ var urlpath = commonModule.urlpath;
|
||||||
var noteid = commonModule.noteid;
|
var noteid = commonModule.noteid;
|
||||||
var debug = commonModule.debug;
|
var debug = commonModule.debug;
|
||||||
var version = commonModule.version;
|
var version = commonModule.version;
|
||||||
var serverurl = commonModule.serverurl;
|
|
||||||
var GOOGLE_API_KEY = commonModule.GOOGLE_API_KEY;
|
var GOOGLE_API_KEY = commonModule.GOOGLE_API_KEY;
|
||||||
var GOOGLE_CLIENT_ID = commonModule.GOOGLE_CLIENT_ID;
|
var GOOGLE_CLIENT_ID = commonModule.GOOGLE_CLIENT_ID;
|
||||||
var DROPBOX_APP_KEY = commonModule.DROPBOX_APP_KEY;
|
var DROPBOX_APP_KEY = commonModule.DROPBOX_APP_KEY;
|
||||||
|
|
Loading…
Reference in New Issue