Wikibase
MediaWiki Wikibase extension
|
The Wikidata Bridge (formerly known as “client editing”) is a project aiming to make it possible to edit Wikidata’s data directly from Wikipedia.
This uses the values from .env
for configuration - create a .env.local
file if you desire diverging values.
CSR_PORT
is the port at which you can reach the development server on your machine to live-preview changes to the application. This allows development outside of MediaWiki, using a simulated environment as configured in src/dev-entry.ts
.NODE_ENV
is the environment to set for node.jsBridge is built with Vue's modern mode to ship light-weight JavaScript to capable browsers. MediaWiki chooses one or the other distribution using client/resources/wikibase.client.data-bridge.app.js
.
Jest can watch the filesystem and run the tests affecting your files changed after the last commit with:
To automatically resolve merge conflicts within dist/
by doing a rebuild, run the following command:
This is very useful when rebasing unmerged changes, for example.
To automatically prefix messages of Bridge-related commits with the keyword “bridge:”, put the following in .git/hooks/prepare-commit-msg
and ensure the file is executable:
Bridge augments MediaWiki pages and uses some of its modules to do its work. It uses mw.track
to publish analytics events (under the MediaWiki.wikibase.client.databridge
topic) which can be collected as statistics.
For debugging of a specific scenario you can also subscribe to those events locally in your browser via e.g.
Data Bridge used to contain Storybook stories. Due to providing little value outside of active development but causing significant cost upgrading the dependencies, they were deleted in Id062a14693c10c5300f7f4509db529d65b03175d. If needed, they can be restored from git.