Previously, ResourceLoader's CodexModule class was using a hard-coded list of message keys to add to the payload any time Codex components get used. But now we can get the list of messages directly from Codex. This change replaces the hardcoded list of strings with a call to file_get_contents(). The list of messages is defined in a file called "messageKeys.json" in the Codex package. In the next release of Codex, this file will be pulled in via foreign-resources.yml; for now it has been added manually to the Codex files in resources/lib. Bug: T371330 Change-Id: Ib7ca66d67153dfba72d8d49b0181d49b007eedce |
||
|---|---|---|
| .. | ||
| mixins | ||
| modules | ||
| CHANGELOG.md | ||
| codex.cjs | ||
| codex.js | ||
| codex.style-rtl.css | ||
| codex.style.css | ||
| codex.umd.cjs | ||
| LICENSE | ||
| messageKeys.json | ||
| README.md | ||
@wikimedia/codex
Codex is the design system for Wikimedia.
This package contains Codex components implemented in two variants:
- Vue 3 components
- CSS-only components
See the components overview documentation for links to a complete list of components with demos and guidelines.
Usage
See the installation and using components documentation for information about how to use Codex components in your application.