0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/client
Karl Hobley 41b0abc28c Fix performance issue in React explorer when there are many languages
Requesting translations to be nested with each page causes major
performance problems when there are many languages. Mozilla have 61
languages, each with a separate homepage that's a translation of the
others, so the response for this query contains details of 61 * 61 pages
for them.

This isn't actually required since we only need to know the translations
if the user navigates into a page, and the translations are requested
again anyway by the getPageTranslations function.
2020-11-16 17:07:22 +00:00
..
scss Add locale selector to snippet edit 2020-10-22 16:57:32 +01:00
src Fix performance issue in React explorer when there are many languages 2020-11-16 17:07:22 +00:00
tests Add locale indication to the React page explorer 2020-10-23 09:09:52 +01:00
README.md Refactor explorer code with tests using Jest 2017-05-13 23:53:10 +03:00
webpack.config.js Switch from Babel to TypeScript 2020-10-21 12:48:40 +01:00

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.