Go to file
jdlrobson ed7fd252cd Refactor: Replace PHP complexity with JS simplicity
In PHP we add collapsible classes to all elements except watchstar
so that certain tabs can be collapsed under the more menu in JS.
This adds unnecessary complexity to our codebase and is not used
if JS is disabled.

To simplify this and bring Vector's PHP consistency with core this
logic is moved to JavaScript.

Bug: T259372
Change-Id: I2acbf7089198118626368ee8a37615d2de062f83
2020-07-31 22:15:08 +00:00
.phan
.storybook
dev-scripts [dev][Storybook] move to start script; report errors not status 2020-05-12 13:42:01 -07:00
i18n Localisation updates from https://translatewiki.net. 2020-07-31 08:48:02 +02:00
includes Refactor: Replace PHP complexity with JS simplicity 2020-07-31 22:15:08 +00:00
resources Refactor: Replace PHP complexity with JS simplicity 2020-07-31 22:15:08 +00:00
screenshots
skinStyles Replace deprecated @colorFieldBorder variable and use others 2020-04-28 01:42:09 +00:00
stories Cleanup: Drop unnecessary isLegacy checks 2020-07-30 15:10:57 -07:00
tests Refactor: Replace PHP complexity with JS simplicity 2020-07-31 22:15:08 +00:00
.eslintignore Replace Grunt tasks with npm scripts in package.json 2020-02-27 16:32:12 +01:00
.eslintrc.json [dev] [JS] Move JavaScript to package modules 2020-04-10 09:39:25 -06:00
.gitignore Drop wgVectorResponsive support from modern Vector 2020-07-02 22:08:37 +03:00
.gitreview
.phpcs.xml
.stylelintignore Replace Grunt tasks with npm scripts in package.json 2020-02-27 16:32:12 +01:00
.stylelintrc.json
.svgo.yml build: Add 'svgo', SVG minifier script and unify SVGO rules 2020-03-07 19:47:58 -08:00
bundlesize.config.json Refactor: Replace PHP complexity with JS simplicity 2020-07-31 22:15:08 +00:00
CODE_OF_CONDUCT.md
composer.json build: Updating npm dependencies 2020-06-12 05:51:50 +00:00
COPYING
Doxyfile docs: Generate documentation with Doxygen 2020-02-24 16:49:38 +00:00
jsdoc.json [feature] add menu button to toggle panel visibility 2020-05-28 02:14:13 +00:00
package-lock.json build: Updating elliptic to 6.5.3 2020-07-29 23:19:53 +00:00
package.json build: Update devDependencies 2020-07-01 14:43:39 -07:00
README.md [doc] Add link in readme to hooks.txt 2020-04-28 09:29:52 -06:00
skin.json Merge SkinVector and VectorTemplate (step 2/2) 2020-07-30 12:20:13 -07:00
tsconfig.json [JavaScript] Validate types 2020-03-16 09:10:08 -06:00
variables.less less: Remove duplicated variables from mediawiki.ui 2020-07-15 17:55:59 -07:00

Vector Skin

Installation

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

Configuration options

See skin.json.

Development

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.

Hooks

See hooks.txt.