mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-17 18:30:52 +00:00
21438d2b22
Repo was only used in two locations: 1. StripeButtons.set for `isCommons` - can be replaced by `descriptionUrl.includes('//commons.wikimedia.org/')` 2. EmbedFileFormatter.getSiteLink (unused) Furthermore: - Simplify StripeButtons (we only have one button) - Unwrap info objects consisting of `ImageModel` and `Repo` - Remove unused EmbedFileFormatter.getSiteLink - Inline EmbedFileFormatter.getCaption and EmbedFileFormatter.getLinkUrl - Fix JSDoc type `ImageModel` Reduces mmv bundle size from 28012 to 27246. Bug: T77349 Change-Id: Ia4388fe4d5e1d6112a992e826453cd5799a6a4b4
33 lines
502 B
JSON
33 lines
502 B
JSON
{
|
|
"modules": [
|
|
{
|
|
"resourceModule": "mmv",
|
|
"maxSize": "26.8 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.ui.restriction",
|
|
"maxSize": "9.1 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.codex",
|
|
"maxSize": "5.1 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.ui.reuse",
|
|
"maxSize": "5.7 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.bootstrap",
|
|
"maxSize": "5.9 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.bootstrap.autostart",
|
|
"maxSize": "1 kB"
|
|
},
|
|
{
|
|
"resourceModule": "mmv.head",
|
|
"maxSize": "1 kB"
|
|
}
|
|
]
|
|
}
|