mediawiki-extensions-Popups/src/gateway
WMDE-Fisch 0d2d6d4c9b Move getPreviewType form gateway to model
The method itself has not much to do with gateways as such, it's
more about the general preview type selection. Since the preview
types "live" in the model, I thought it might good to move it there.

Doing that the "original" getPreviewType method in the model was renamed
to avoid conflicts. If I get this right, that method is quite specific to
page previews, since it processes the output from the TextExtracts API-
request. - Therefore I also removed the TYPE_REFERENCE there, because this
code path will never be reached with that type afaik.

Inspired by the comments in Id1fa7dad59d8fe80bc60c1e2d7c3fb4087e52d1f and
as preparation for that patch.

Bug: T215420
Change-Id: Ic9e24a73e945c7d56435c656ecfdb42b65601d22
2019-03-12 08:28:46 -06:00
..
index.js Move getPreviewType form gateway to model 2019-03-12 08:28:46 -06:00
mediawiki.js Rename getPageSummary to fetchPreviewForTitle 2019-01-23 17:50:19 +01:00
page.js Move gateway typedefs to gateway index 2019-02-07 16:29:04 +01:00
reference.js Bring reference type detection in sync with RESTbased endpoint 2019-02-26 14:51:53 +01:00
rest.js Mark optional elements in the PreviewModel specification as such 2019-02-01 11:50:43 +01:00
restFormatters.js Hygiene: favor const 2018-03-21 10:44:24 +00:00