wiki.techinc.nl/includes/diff
Tim Starling 2b608a35ed Add an API-only user preference for diff type
* Add an API-only user preference for diff type
* Retain query parameter stickiness but fix it so that the diff-type
  from user preferences does not leak into the query string. So the
  no-JS control continues to work. If a no-JS user has the inline
  preference set, respect it on the initial load, but add an explicit
  diff-type=table to the query string of the table link so that the
  preference can be overridden.
* Get the diff type from the initial state of the no-JS button. Infuse
  the widget to access the active property using the OOUI public API.
* For a logged-in user, when the JS toggle is clicked, fetch the new
  diff body and update the user preference.
* For an anonymous user, when the JS toggle is clicked, update the
  prev/next links to include the correct diff-type query parameter.

Bug: T336713
Change-Id: Ie409d79ac8222dfa6ec8fd170b76be088be80b3a
2023-07-25 10:49:51 +10:00
..
Hook diff: Move SlotDiffRenderer::getTablePrefix() parts assembly up to DifferenceEngine 2023-06-26 11:28:59 +10:00
TextDiffer Restore DifferenceEngine::localiseLineNumbers() 2023-07-19 12:26:43 +02:00
DifferenceEngine.php Add an API-only user preference for diff type 2023-07-25 10:49:51 +10:00
DifferenceEngineSlotDiffRenderer.php
IncompatibleDiffTypesException.php Improve handling of diffs between incompatible content models 2023-06-23 19:09:59 +00:00
SlotDiffRenderer.php Add SlotDiffRenderer::localizeDiff() 2023-07-20 10:09:42 +10:00
TextSlotDiffRenderer.php Add an API-only user preference for diff type 2023-07-25 10:49:51 +10:00
UnsupportedSlotDiffRenderer.php Reorg: Move HTML-related classes out of includes/ to Html/ 2023-02-16 20:40:01 +01:00