commit | 02fe2e471acdfa6a4251a4daee0e0a2aa307cfde | [log] [tgz] |
---|---|---|
author | Translation updater bot <l10n-bot@translatewiki.net> | Mon Jun 30 09:37:17 2025 +0200 |
committer | Translation updater bot <l10n-bot@translatewiki.net> | Mon Jun 30 09:37:17 2025 +0200 |
tree | 6bacf7acf9b07def7c98e492b9a215abc13f9ab5 | |
parent | b66a6798dc7d3581d12cadc6009035aed9969773 [diff] |
Localisation updates from https://translatewiki.net. Change-Id: I5229d13f3ffd9a1bc9b683482fb9d8e3eaeb380b
This dummy extension template is intended to demonstrate how Vue.js can be used within a MediaWiki environment. It is based on the Boilerplate extension.
Download this extension into the extensions
directory of your local MediaWiki instance. Then enable it in LocalSettings.php
by adding:
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 devDependencies
specified in package.json
that may be useful for development and testing.
Once set up, running npm test
and composer test
will run automated code checks.
This extension adds a new special page, Special:VueTest
. This page contains several interactive demos to showcase some of what you can do with Vue, as well as how this tool can be integrated in a MediaWiki environment.
This extension also includes the Codex repository as a submodule dependency. On an older version of Git, you must provide explicit instructions to download the submodule dependency:
git submodule update --init --recursive
Newer versions of Git will do this automatically.
To update the bundled JS and CSS for the Codex component demos, follow these steps:
git submodule update --remote --merge
npm run codex:build-demos
NOTE: If you run into the error missing script: build
you are running an older version of Node.js. Please check the Node version requirements in package.json
import
and export
)createMwApp
wrapper