stubs.js 837 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Test stubs to mirror available global variables.
  3. * Those variables usually come from the back-end via templates.
  4. * See /wagtailadmin/templates/wagtailadmin/admin_base.html.
  5. */
  6. global.wagtailConfig = {
  7. ADMIN_API: {
  8. DOCUMENTS: '/admin/api/v2beta/documents/',
  9. IMAGES: '/admin/api/v2beta/images/',
  10. PAGES: '/admin/api/v2beta/pages/',
  11. EXTRA_CHILDREN_PARAMETERS: '',
  12. },
  13. ADMIN_URLS: {
  14. PAGES: '/admin/pages/',
  15. },
  16. DATE_FORMATTING: {
  17. DATE_FORMAT: 'MMM. D, YYYY',
  18. SHORT_DATE_FORMAT: 'DD/MM/YYYY',
  19. },
  20. STRINGS: {
  21. EDIT: 'Edit',
  22. PAGE: 'Page',
  23. PAGES: 'Pages',
  24. LOADING: 'Loading...',
  25. SERVER_ERROR: 'Server Error',
  26. NO_RESULTS: 'No results',
  27. SEE_CHILDREN: 'See children',
  28. SEE_ALL: 'See all',
  29. CLOSE_EXPLORER: 'Close explorer',
  30. },
  31. };
  32. global.wagtailVersion = '1.6a1';