Stackedit/public/res/config.js

78 lines
3.3 KiB
JavaScript
Raw Permalink Normal View History

2013-10-27 22:43:37 +00:00
var VERSION = "2.2.3";
2013-09-03 10:37:59 +00:00
2013-10-08 00:34:15 +00:00
var MAIN_URL = "https://stackedit.io/";
2013-06-10 21:22:32 +00:00
var GOOGLE_ANALYTICS_ACCOUNT_ID = "UA-39556145-1";
2013-05-04 00:05:58 +00:00
var GOOGLE_API_KEY = "AIzaSyAeCU8CGcSkn0z9js6iocHuPBX4f_mMWkw";
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-05-02 00:02:57 +00:00
var BITLY_ACCESS_TOKEN = "317e033bfd48cf31155a68a536b1860013b09c4c";
2013-04-02 18:42:47 +00:00
var DEFAULT_FILE_TITLE = "Title";
2013-08-11 00:52:05 +00:00
var DEFAULT_FOLDER_NAME = "New folder";
2013-04-02 18:42:47 +00:00
var GDRIVE_DEFAULT_FILE_TITLE = "New Markdown document";
2013-09-15 17:10:14 +00:00
var EDITOR_DEFAULT_PADDING = 15;
2013-05-13 23:10:02 +00:00
var CHECK_ONLINE_PERIOD = 120000;
var AJAX_TIMEOUT = 30000;
var ASYNC_TASK_DEFAULT_TIMEOUT = 60000;
2013-06-02 00:38:23 +00:00
var ASYNC_TASK_LONG_TIMEOUT = 180000;
2013-04-07 15:22:13 +00:00
var SYNC_PERIOD = 180000;
2013-05-29 19:55:23 +00:00
var USER_IDLE_THRESHOLD = 300000;
2013-06-16 10:47:35 +00:00
var IMPORT_FILE_MAX_CONTENT_SIZE = 100000;
2013-07-16 23:54:56 +00:00
var IMPORT_IMG_MAX_CONTENT_SIZE = 10000000;
2013-05-26 22:59:03 +00:00
var TEMPORARY_FILE_INDEX = "file.tempIndex";
2013-04-27 23:16:38 +00:00
var WELCOME_DOCUMENT_TITLE = "Welcome document";
2013-10-08 00:34:15 +00:00
var DOWNLOAD_PROXY_URL = "https://stackedit-download-proxy.herokuapp.com/";
var PICASA_PROXY_URL = "https://stackedit-picasa-proxy.herokuapp.com/";
var SSH_PROXY_URL = "https://stackedit-ssh-proxy.herokuapp.com/";
2013-10-12 19:13:29 +00:00
var HTMLTOPDF_URL = "https://stackedit-htmltopdf.herokuapp.com/";
2013-04-02 18:42:47 +00:00
// Use by Google's client.js
var delayedFunction = undefined;
function runDelayedFunction() {
2013-05-29 19:55:23 +00:00
if(delayedFunction !== undefined) {
delayedFunction();
}
2013-04-02 18:42:47 +00:00
}
2013-04-13 13:15:27 +00:00
// Site dependent
2013-10-08 00:34:15 +00:00
var BASE_URL = "http://localhost/";
2013-04-13 13:15:27 +00:00
var GOOGLE_CLIENT_ID = '241271498917-lev37kef013q85avc91am1gccg5g8lrb.apps.googleusercontent.com';
var GITHUB_CLIENT_ID = 'e47fef6055344579799d';
2013-10-08 00:34:15 +00:00
var GATEKEEPER_URL = "https://stackedit-gatekeeper-localhost.herokuapp.com/";
var TUMBLR_PROXY_URL = "https://stackedit-tumblr-proxy-local.herokuapp.com/";
var WORDPRESS_CLIENT_ID = '23361';
var WORDPRESS_PROXY_URL = "https://stackedit-io-wordpress-proxy.herokuapp.com/";
2013-04-13 13:15:27 +00:00
2013-10-08 00:34:15 +00:00
if(location.hostname.indexOf("stackedit.io") === 0) {
2013-05-29 19:55:23 +00:00
BASE_URL = MAIN_URL;
2013-10-08 00:34:15 +00:00
GOOGLE_CLIENT_ID = '241271498917-t4t7d07qis7oc0ahaskbif3ft6tk63cd.apps.googleusercontent.com';
GITHUB_CLIENT_ID = '710fc67886ab1ae8fee6';
GATEKEEPER_URL = "https://stackedit-io-gatekeeper.herokuapp.com/";
TUMBLR_PROXY_URL = "https://stackedit-io-tumblr-proxy.herokuapp.com/";
2013-10-08 00:34:15 +00:00
}
if(location.hostname.indexOf("benweet.github.io") === 0) {
BASE_URL = 'http://benweet.github.io/stackedit/';
2013-05-29 19:55:23 +00:00
GOOGLE_CLIENT_ID = '241271498917-jpto9lls9fqnem1e4h6ppds9uob8rpvu.apps.googleusercontent.com';
GITHUB_CLIENT_ID = 'fa0d09514da8377ee32e';
2013-10-08 00:34:15 +00:00
GATEKEEPER_URL = "https://stackedit-gatekeeper.herokuapp.com/";
TUMBLR_PROXY_URL = "https://stackedit-tumblr-proxy.herokuapp.com/";
WORDPRESS_CLIENT_ID = '3185';
WORDPRESS_PROXY_URL = "https://stackedit-wordpress-proxy.herokuapp.com/";
2013-04-13 13:15:27 +00:00
}
2013-05-21 22:34:42 +00:00
2013-08-23 23:50:14 +00:00
if(location.hostname.indexOf("benweet.insomnia247.nl") === 0) {
BASE_URL = "http://benweet.insomnia247.nl/stackedit/";
GOOGLE_CLIENT_ID = '241271498917-52hae7a08hv7ltenv7km8h7lghno9sk3.apps.googleusercontent.com';
GITHUB_CLIENT_ID = 'd2943d6074b2d9c4a830';
2013-10-08 00:34:15 +00:00
GATEKEEPER_URL = "https://stackedit-gatekeeper-insomnia.herokuapp.com/";
TUMBLR_PROXY_URL = "https://stackedit-tumblr-proxy-beta.herokuapp.com/";
2013-08-23 23:50:14 +00:00
}
2013-05-21 22:34:42 +00:00
var THEME_LIST = {
2013-08-19 20:44:13 +00:00
"default": "Default",
2013-05-29 19:55:23 +00:00
"blue-gray": "Blue-Gray",
2013-09-16 23:14:17 +00:00
"night": "Night",
"school": "School",
2013-05-21 22:34:42 +00:00
};