| commit | b7f0a9e0c798ca9096f317cfde7bd646d8390321 | [log] [tgz] |
|---|---|---|
| author | Translation updater bot <l10n-bot@translatewiki.net> | Mon Nov 12 22:12:54 2018 +0100 |
| committer | Translation updater bot <l10n-bot@translatewiki.net> | Mon Nov 12 22:12:54 2018 +0100 |
| tree | 5ee7d9523800edb44aaf7f7e17fe5fe7631a867f | |
| parent | fa8af07513a605b965e6fdf48b3270cc86a748bc [diff] |
Localisation updates from https://translatewiki.net. Change-Id: Ie7eb4531cffee9534136779d5b64b8cd1eefb18d
See https://www.mediawiki.org/wiki/Extension:Popups for more information about what it does.
Popups uses an asset bundler so when developing for the extension you'll need to run a script to assemble the frontend assets.
You can find the frontend source files in src/, the compiled sources in resources/dist/, and other frontend assets managed by resource loader in resources/*.
After an npm install:
npm start Will run the bundler in watch mode, re-assembling the files on file change. Additionally, this builds debug-friendly assets and enables Redux DevTools debugging.npm run build Will compile the assets just once, ready for deployment. You must run this step before sending the patch or CI will fail (so that sources and built assets are in sync).npm test To run the linting tools and the tests.tests/qunit/tests/node-qunit/, which you can run with npm run test:nodenodemon to watch sources and auto run linting and tests.npm install -g nodemonnodemon -w src/ --exec "grunt lint:all && npm run test:node"npm run coveragecoverage/ folderDevelopers are likely to work with local MediaWiki instances that do not have content to test with. To reduce this pain, you can create a single page with a list of links that point to an existing and external wiki by using the following config flag:
$wgPopupsGateway = 'restbaseHTML'; $wgPopupsRestGatewayEndpoint = 'https://en.wikipedia.org/api/rest_v1/page/summary/';
Popups works with a local copy of the Mobile Content Service too:
$wgPopupsGateway = 'restbaseHTML'; $wgPopupsRestGatewayEndpoint = 'http://localhost:6927/en.wikipedia.org/v1/page/summary/';
$($0).trigger('mouseenter').npm start enables Redux DevTools functionality. In production builds, this same functionality can be enabled by setting a debug=true query. E.g., https://en.wikipedia.org/wiki/Popup?debug=true.