mediawiki-extensions-Multim.../resources
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
..
mmv Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
mmv.bootstrap Use mw.msg shortcut 2024-05-29 05:14:01 +00:00
mmv.bootstrap.autostart Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.head Remove IIFE 2024-05-21 22:31:15 +02:00
mmv.ui.restriction Extract mmv.ui.restriction module 2024-05-17 20:51:05 +00:00
mmv.ui.reuse Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00
.eslintrc.json Remove FileRepoInfo API and Repo model 2024-05-31 08:13:08 +02:00