mwstake/mediawiki-component-rel135vue3shim

Provides VueJS version 3 vor MediaWiki 1.35 only

1.0 2022-02-18 15:54 UTC

This package is auto-updated.

Last update: 2024-11-21 19:57:30 UTC


README

REL1_35-VueJS3-Shim for MediaWiki

This code is meant to be executed within the MediaWiki application context. No standalone usage is intended.

This component is only meant to be used with MediaWiki 1.35!

Use in a MediaWiki extension

Add "mwstake/mediawiki-component-rel135vue3shim": "~1.0" to the require section of your composer.json file.

Explicit initialization is required. This can be archived by

  • either adding "callback": "mwsInitComponents" to your extension.json/skin.json
  • or calling mwsInitComponents(); within you extensions/skins custom callback method

See also mwstake/mediawiki-componentloader.

Only MediaWiki 1.35

This component must only be used in MW 1.35 context. Make sure it is used in a very isolated context (e.g. on a SpecialPage). There is some risk of VueJS version collision!

The code located in resources/ is basically just a copy of the files that are currently in wikimedia/mediawiki@wmf/1.38.0-wmf.22. Same is true for boostrap.php, which mimics incldues/Resources.php from that version. Some minor adjustments were made to make it compatible to wikimedia/mediawiki@REL1_35 the ResourceLoader implementation.