mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 01:46:24 +01:00
41b0abc28c
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. |
||
---|---|---|
.. | ||
scss | ||
src | ||
tests | ||
README.md | ||
webpack.config.js |
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:
- React DevTools – React developer tools integrated into Chrome.
- Redux DevTools – Redux developer tools integrated into Chrome.
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
.