Commit 1515d598 authored by Eric Gardner's avatar Eric Gardner
Browse files

Update README and App.vue now that Codex is in RL

Now that the alpha version of Codex has been added to
ResourceLoader, no additional patch needs to be checked
out to use this extension.

Documentation has been updated accordingly.
parent adb44745
......@@ -7,10 +7,11 @@ extension.
## Installation
Download this extension into the `extensions` directory of your local
MediaWiki instance. Make sure that you've also checked out this patch in MW
Core:
MediaWiki instance. Then enable it in `LocalSettings.php` by adding:
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/753858
```php
wfLoadExtension( 'VueTest' );
```
All Vue.js code is meant to be handled by ResourceLoader at runtime, so
running `npm install` is not necessary. However, there are a number of
......
......@@ -135,7 +135,22 @@
</template>
<script>
const Codex = require( 'codex' );
// Codex is available from ResourceLoader at runtime
// and is available without needing a build step.
const {
CdxButton,
CdxCheckbox,
CdxIcon,
CdxRadio,
CdxSelect,
CdxTextInput
} = require( 'codex' );
// Codex Icons are also available from ResourceLoader.
// To avoid loading all of them, you will probably want
// to use a RL callback so that only the specified icons
// are delivered; see this project's extension.json file
// for an example.
const icons = require( './icons.json' );
const options = [
......@@ -148,12 +163,12 @@ const options = [
module.exports = exports = {
name: 'App',
components: {
CdxButton: Codex.CdxButton,
CdxCheckbox: Codex.CdxCheckbox,
CdxIcon: Codex.CdxIcon,
CdxRadio: Codex.CdxRadio,
CdxSelect: Codex.CdxSelect,
CdxTextInput: Codex.CdxTextInput
CdxButton,
CdxCheckbox,
CdxIcon,
CdxRadio,
CdxSelect,
CdxTextInput
},
data() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment