mediawiki-extensions-Multim.../tests/qunit/mmv
Simon Legner 21438d2b22 Remove FileRepoInfo API and Repo model
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
2024-05-31 08:13:08 +02:00
..
logging Improve variable declarations in JavaScript 2023-11-06 23:11:23 +00:00
model build: Updating dependencies 2024-02-13 02:13:29 +00:00
provider Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
ui Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
index.js Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
mmv.bootstrap.test.js Improve variable declarations in JavaScript 2023-11-06 23:11:23 +00:00
mmv.Config.test.js Merge "Public API to Check Wikimedia Media Viewer Extension Status" 2024-02-15 19:21:24 +00:00
mmv.EmbedFileFormatter.test.js Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
mmv.HtmlUtils.test.js Use jQuery.data in favour of jQuery.attr 2024-05-15 20:28:58 +02:00
mmv.lightboximage.test.js Revert "Revert "Add position handling to URLs"" 2024-05-21 19:09:16 +00:00
mmv.lightboxinterface.test.js Improve variable declarations in JavaScript 2023-11-06 23:11:23 +00:00
mmv.test.js Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
mmv.testhelpers.js Don't use mw.Map(), use a native Map() instead 2024-02-08 20:21:20 +00:00
mmv.ThumbnailWidthCalculator.test.js Improve variable declarations in JavaScript 2023-11-06 23:11:23 +00:00