mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
35 lines
837 B
JavaScript
35 lines
837 B
JavaScript
/**
|
|
* Test stubs to mirror available global variables.
|
|
* Those variables usually come from the back-end via templates.
|
|
* See /wagtailadmin/templates/wagtailadmin/admin_base.html.
|
|
*/
|
|
|
|
global.wagtailConfig = {
|
|
ADMIN_API: {
|
|
DOCUMENTS: '/admin/api/v2beta/documents/',
|
|
IMAGES: '/admin/api/v2beta/images/',
|
|
PAGES: '/admin/api/v2beta/pages/',
|
|
EXTRA_CHILDREN_PARAMETERS: '',
|
|
},
|
|
ADMIN_URLS: {
|
|
PAGES: '/admin/pages/',
|
|
},
|
|
DATE_FORMATTING: {
|
|
DATE_FORMAT: 'MMM. D, YYYY',
|
|
SHORT_DATE_FORMAT: 'DD/MM/YYYY',
|
|
},
|
|
STRINGS: {
|
|
EDIT: 'Edit',
|
|
PAGE: 'Page',
|
|
PAGES: 'Pages',
|
|
LOADING: 'Loading...',
|
|
SERVER_ERROR: 'Server Error',
|
|
NO_RESULTS: 'No results',
|
|
SEE_CHILDREN: 'See children',
|
|
SEE_ALL: 'See all',
|
|
CLOSE_EXPLORER: 'Close explorer',
|
|
},
|
|
};
|
|
|
|
global.wagtailVersion = '1.6a1';
|