Custom Vector theme/skin for GolemWiki, our instance of MediaWiki
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
giomba 05fa07d6ec fork 7 months ago
.phan Upgrade to newer phan 3 years ago
.storybook Reorganize LESS files to match ResourceLoader conventions 8 months ago
dev-scripts Language button is quiet with focus, active and hover states 9 months ago
i18n Localisation updates from https://translatewiki.net. 7 months ago
includes Refactor: Clarify functions that return booleans and template booleans 7 months ago
resources fork 7 months ago
screenshots Add skin screenshot for the installer 4 years ago
skinStyles Reorganize LESS files to match ResourceLoader conventions 8 months ago
stories LanguageButton story should load mediawiki ui button styles 7 months ago
tests Create A/B test harness for Language in header feature 7 months ago
.eslintignore Replace Grunt tasks with npm scripts in package.json 2 years ago
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 9 months ago
.gitignore [Storybook] Fix PNG/SVG asset resolution. 1 year ago
.gitreview Use track=1 instead of defaultbranch=master in .gitreview 5 years ago
.nvmrc build: Switch node version to 10.24.0 now CI is on buster 7 months ago
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 1 year ago
.stylelintignore Replace Grunt tasks with npm scripts in package.json 2 years ago
.stylelintrc.json build: Bump devDependencies to latest 4 years ago
.svgo.config.js build: Update SVGO to latest v2.2.2 and re-crush SVGs 8 months ago
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 3 years ago
COPYING Use the plain-text GPL and fix 'license-name' to match SPDX conventions 7 years ago
Doxyfile docs: Generate documentation with Doxygen 2 years ago
README.md Add nvm to README 1 year ago
bundlesize.config.json Round up to nearest kb 10 months ago
composer.json build: Updating composer dependencies 7 months ago
jsdoc.json Integrate WVUI search into Vector 12 months ago
package-lock.json build: Updating composer dependencies 7 months ago
package.json build: Update 'svgo' to latest 7 months ago
skin.json fork 7 months ago
tsconfig.json build: Updating eslint-config-wikimedia to 0.19.0 9 months ago

README.md

Vector Skin

Installation

See https://www.mediawiki.org/wiki/Skin:Vector.

Configuration options

See skin.json.

Development

Node version

It is recommended to use nvm to use the version of node defined in .nvmrc during local development. This ensures consistency amongst development environments.

Coding conventions

We strive for compliance with MediaWiki conventions:

https://www.mediawiki.org/wiki/Manual:Coding_conventions

Additions and deviations from those conventions that are more tailored to this project are noted at:

https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions

URL query parameters

Skin preferences

Vector defines skin-specific user preferences. These are exposed on Special:Preferences when the VectorShowSkinPreferences configuration is enabled. The user's preference state for skin preferences is used for skin previews and any other operation unless specified otherwise.

Version

Vector defines a "version" preference to enable users who prefer the December 2019 version of Vector to continue to do so without any visible changes. This version is called "Legacy Vector." The related preference defaults are configurable via the configurations prefixed with VectorDefaultSkinVersion. Version preference and configuration may be overridden by the useskinversion URL query parameter.

Pre-commit tests

A pre-commit hook is installed when executing npm install. By default, it runs npm test which is useful for automatically validating everything that can be in a reasonable amount of time. If you wish to defer these tests to be executed by continuous integration only, set the PRE_COMMIT environment variable to 0:

$ export PRE_COMMIT=0
$ git commit

Or more succinctly:

$ PRE_COMMIT=0 git commit

Skipping the pre-commit tests has no impact on Gerrit change identifier hooks.

Hooks

See hooks.txt.