Stackedit/js/config.js

46 lines
1.8 KiB
JavaScript
Raw Normal View History

2013-04-10 18:14:59 +00:00
var GOOGLE_SCOPES = [ "https://www.googleapis.com/auth/drive.install",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/blogger" ];
2013-04-06 00:57:52 +00:00
var GOOGLE_DRIVE_APP_ID = "241271498917";
2013-04-07 15:22:13 +00:00
var DROPBOX_APP_KEY = "lq6mwopab8wskas";
var DROPBOX_APP_SECRET = "851fgnucpezy84t";
2013-04-02 18:42:47 +00:00
var DEFAULT_FILE_TITLE = "Title";
var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document";
var CHECK_ONLINE_PERIOD = 60000;
2013-04-03 22:52:29 +00:00
var AJAX_TIMEOUT = 10000;
2013-04-02 18:42:47 +00:00
var ASYNC_TASK_DEFAULT_TIMEOUT = 30000;
2013-04-20 00:14:20 +00:00
var ASYNC_TASK_LONG_TIMEOUT = 90000;
2013-04-07 15:22:13 +00:00
var SYNC_PERIOD = 180000;
2013-04-10 18:14:59 +00:00
var USER_IDLE_THRESHOLD = 300000;
2013-04-14 13:24:29 +00:00
var PROVIDER_BLOGGER = "blogger";
2013-04-16 15:02:24 +00:00
var PROVIDER_DROPBOX = "dropbox";
2013-04-20 00:14:20 +00:00
var PROVIDER_GDRIVE = "gdrive";
2013-04-16 15:02:24 +00:00
var PROVIDER_GITHUB = "github";
2013-04-28 22:33:17 +00:00
var PROVIDER_TUMBLR = "tumblr";
2013-04-27 23:16:38 +00:00
var WELCOME_DOCUMENT_TITLE = "Welcome document";
2013-04-02 18:42:47 +00:00
// Use by Google's client.js
var delayedFunction = undefined;
function runDelayedFunction() {
2013-04-10 18:14:59 +00:00
if (delayedFunction !== undefined) {
delayedFunction();
}
2013-04-02 18:42:47 +00:00
}
2013-04-13 13:15:27 +00:00
// Site dependent
var BASE_URL = "http://localhost/";
var GOOGLE_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw";
var GOOGLE_CLIENT_ID = '241271498917-lev37kef013q85avc91am1gccg5g8lrb.apps.googleusercontent.com';
var GITHUB_CLIENT_ID = 'e47fef6055344579799d';
var GATEKEEPER_URL = "http://stackedit-gatekeeper-localhost.herokuapp.com/";
2013-04-28 22:33:17 +00:00
var TUMBLR_PROXY_URL = "http://stackedit-tumblr-proxy-local.herokuapp.com/";
2013-04-13 13:15:27 +00:00
if(location.hostname.indexOf("benweet.github.io") === 0) {
BASE_URL = "http://benweet.github.io/stackedit/";
GOOGLE_KEY = "AIzaSyB1Bc1wI_YUWkkOR-5Gri5BFuypgZl0Sxc";
GOOGLE_CLIENT_ID = '241271498917-jpto9lls9fqnem1e4h6ppds9uob8rpvu.apps.googleusercontent.com';
GITHUB_CLIENT_ID = 'fa0d09514da8377ee32e';
GATEKEEPER_URL = "http://stackedit-gatekeeper.herokuapp.com/";
2013-04-28 22:33:17 +00:00
TUMBLR_PROXY_URL = "http://stackedit-tumblr-proxy.herokuapp.com/";
2013-04-13 13:15:27 +00:00
}