mirror of https://github.com/veypi/OneAuth.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
// urlParams is null when used for embedding
|
|
window.urlParams = window.urlParams || {};
|
|
|
|
// Public global variables
|
|
window.DOM_PURIFY_CONFIG = window.DOM_PURIFY_CONFIG ||
|
|
{
|
|
ADD_TAGS: ['use'], FORBID_TAGS: ['form'],
|
|
ALLOWED_URI_REGEXP: /^((?!javascript:).)*$/i,
|
|
ADD_ATTR: ['target', 'content']
|
|
};
|
|
// Public global variables
|
|
window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE || 10485760;
|
|
window.MAX_AREA = window.MAX_AREA || 15000 * 15000;
|
|
|
|
// URLs for save and export
|
|
window.EXPORT_URL = window.EXPORT_URL || './drawio';
|
|
window.SAVE_URL = window.SAVE_URL || './drawio';
|
|
window.PROXY_URL = window.PROXY_URL || null;
|
|
window.OPEN_URL = window.OPEN_URL || './drawio';
|
|
window.RESOURCES_PATH = window.RESOURCES_PATH || './drawio/resources';
|
|
window.STENCIL_PATH = window.STENCIL_PATH || './drawio/image/stencils';
|
|
window.IMAGE_PATH = window.IMAGE_PATH || './drawio/image';
|
|
window.STYLE_PATH = window.STYLE_PATH || './drawio/src/css';
|
|
window.CSS_PATH = window.CSS_PATH || './drawio/src/css';
|
|
window.OPEN_FORM = window.OPEN_FORM || './drawio';
|
|
|
|
window.mxBasePath = window.mxBasePath || './drawio/src';
|
|
window.mxLanguage = window.mxLanguage || window.RESOURCES_PATH + '/zh';
|
|
window.mxLanguages = window.mxLanguages || ['zh'];
|