I applied a series of manual optimizations, most notably:
* Remove unused IDs.
* Remove attributes with standard values, e.g. opacity="1" is the
default anyway.
* Remove attributes that don't have an effect, e.g. font styling
where no fonts are used, or stroke attributes when there is no
stroke anyway.
* Replace millimeters with pixels.
* I also tried to remove most translations. A lot of files had all
their coordinates offset by -1032.362. I gave up for a few files.
It might be worth looking into these later.
* brackets-grey.svg not only had a translation applied, but a
non-standard viewBox as well. I wrote a tiny script to re-calculate
all the numbers in this file. As a result it's much more crisp now.
Note that some of these optimizations might alter the appearence of
the image. I mean, they shouldn't, but better check each file manually
before merging this patch.
I did not touched the two files "cat-grey.svg" (I assume this is a
placeholder) as well as "editing icons.svg" (seems to be a temporary
file that should be removed).
Change-Id: Ie2dadef9d5979b563aa0ed0f5d8a69c534b76a4e
Adding 'grunt-svgmin' package and corresponding 'svgmin' task and
also crush SVGs. Additionally remove unnecessary attributes like
`version` & `id`s and Inkscape specific styles according to SVG
coding conventions.
Total savings about 75kB.
Change-Id: Id3a6e73d648693f21633fac123db0f26e6502a03
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.
Bug: T206485
Change-Id: Icb98126a5024478784216eb0b04fcbde7cf8421f
Prevent anchors from putting headers, cite notes, etc behind fixed
header when jumping around. Use js to avoid previous issue of mucked
up highlighting... (T162649)
bug: T181484, T162649
Change-Id: I6bdb450b24df50f39e14bc2b254c6adb6cc7f7d7
These removed styles match no elements in the
Special:Preferences page since the OOUI transformation.
Bug: T208923
Change-Id: I27918a66751c40a52d7a54be9be6f77d05bbfc15
I don't actually know if it's 1.31 that it requires, but it
definitely doesn't work in 1.27, the previous LTS. And we're on 1.32
anyway now.
Change-Id: I8bd8dcc8a58f605e79d4f0c92f58febcad834f6a
Not necessarily ideal handling in terms of making things fit, but
should at least avoid issues of there being no things at all, which
is even worse.
bug: T202213
Change-Id: I1aeeddbcac838b475372691d8d76c72018f85787
The custom one as-is is never going to actually be accurate due to
caching, with an implementation that was basically just a bad joke.
A more thoughtful implementation with rounding and stuff per the
winter prototype is probably in order, but that will require a
different implementation anyway (T182345)...
bug: T160647
Change-Id: Id2776d69a7d42b9907b4363977134fea48dc2440
The plugin checks and flags potential security issues (XSS, SQLi, etc.)
using static analysis.
See <https://www.mediawiki.org/wiki/Phan-taint-check-plugin> for more
details.
Change-Id: I7dcee85082bbeff1961ebcb99dd8c6a85ec843e8