2016-06-17 15:48:33 +02:00
|
|
|
/**
|
|
|
|
* Test stubs to mirror available global variables.
|
|
|
|
* Those variables usually come from the back-end via templates.
|
|
|
|
* See /wagtailadmin/templates/wagtailadmin/admin_base.html.
|
|
|
|
*/
|
|
|
|
|
2016-02-26 22:10:54 +01:00
|
|
|
global.wagtailConfig = {
|
2016-06-17 15:48:33 +02:00
|
|
|
ADMIN_API: {
|
|
|
|
DOCUMENTS: '/admin/api/v2beta/documents/',
|
|
|
|
IMAGES: '/admin/api/v2beta/images/',
|
|
|
|
PAGES: '/admin/api/v2beta/pages/',
|
2017-02-12 16:29:56 +01:00
|
|
|
EXTRA_CHILDREN_PARAMETERS: '',
|
2016-06-17 15:48:33 +02:00
|
|
|
},
|
|
|
|
ADMIN_URLS: {
|
|
|
|
PAGES: '/admin/pages/',
|
|
|
|
},
|
2017-02-09 16:52:07 +01:00
|
|
|
DATE_FORMATTING: {
|
|
|
|
DATE_FORMAT: 'MMM. D, YYYY',
|
|
|
|
SHORT_DATE_FORMAT: 'DD/MM/YYYY',
|
|
|
|
},
|
2016-06-17 15:48:33 +02:00
|
|
|
STRINGS: {
|
2017-02-12 16:29:56 +01:00
|
|
|
EDIT: 'Edit',
|
|
|
|
PAGE: 'Page',
|
|
|
|
PAGES: 'Pages',
|
2016-06-17 15:48:33 +02:00
|
|
|
LOADING: 'Loading...',
|
2017-02-12 16:29:56 +01:00
|
|
|
SERVER_ERROR: 'Server Error',
|
2016-06-17 15:48:33 +02:00
|
|
|
NO_RESULTS: 'No results',
|
2017-02-12 16:29:56 +01:00
|
|
|
SEE_CHILDREN: 'See children',
|
|
|
|
SEE_ALL: 'See all',
|
|
|
|
CLOSE_EXPLORER: 'Close explorer',
|
2016-02-26 22:10:54 +01:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
global.wagtailVersion = '1.6a1';
|