This project is mirrored from https://github.com/weirdgloop/mediawiki-extensions-MobileFrontend.
Pull mirroring updated .
- 07 Jan, 2020 1 commit
-
-
Nicholas Ray authored
Per https://www.mediawiki.org/wiki/Manual:$wgRawHtmlMessages/en, we are supposed to list raw html messages that don't undergo further escaping in this list for access control purposes. This list is certainly not complete yet (finding all of these is actually rather tedious), but it represents an improvement and includes all the known ones from T240502. Bug: T240502 Change-Id: I301aee4093fe2b0e8f6dfe5422226bb80af1de20
-
- 03 Sep, 2019 1 commit
-
- 21 Aug, 2019 1 commit
-
-
sbassett authored
Sanitizer::stripAllTags() is assumed to return safe HTML even though it's documented as HTML-unsafe. Bug: T230576 Change-Id: If4e91093c676de3391e6dde415c8c91c1f582998
-
- 09 Aug, 2019 1 commit
-
-
Max Semenik authored
Sanitizer::stripAllTags() is assumed to return safe HTML even though it's documented as HTML-unsafe. Bug: T229541 Change-Id: I0cb918f8148d1782882e104d127f08cbfa23e542
-
- 02 Jul, 2019 1 commit
-
- 11 Jun, 2019 1 commit
-
-
Dayllan Maza authored
This is a clean up after collecting the necessary data related to blocks and how often users see the block notices See: https://phabricator.wikimedia.org/T189724 Bug: T214214 Bug: T225359 Change-Id: I047587c064e63e8bd4b933351edfec298f7c7956
-
- 10 Jun, 2019 1 commit
-
-
James D. Forrester authored
Change-Id: Iccb5d53ff0b5e3e89d9aacfcae2b48df4566098a
-
- 25 Mar, 2019 1 commit
-
-
Derick Alangi authored
Change-Id: I0e4ad2232759b909ef3326484a887e60634b4670
-
- 23 Mar, 2019 1 commit
-
-
https://translatewiki.netTranslation updater bot authored
Change-Id: I946e860a3a4c54dafc4869b00e8b22334b3d8c22
-
- 22 Mar, 2019 6 commits
-
-
jdlrobson authored
* change function signature: mw.echo is loaded inside the mw.notification.overlay The title of the overlay must be moved to mobile.startup as it renders before this dependency is pulled down. * Do not show a spinner for the mark all as read button for consistency with the current rendering * include the notification message string so the notification overlay can be rendered without the mobile.notifications.overlay module Bug: T217296 Change-Id: Id595b1158b86db9dc7725c8e3c0fb9cc35f49134
-
Jdlrobson authored
-
jenkins-bot authored
-
Nicholas Ray authored
* The onSlide method of ImageCarousel was changed to handle routing. Previously, OverlayManager created a new instance of ImageOverlay with each slide. Now, ImageCarousel makes a call to router and replaces itself. * A local reference to this.$el was created in ImageOverlay's postRender method so that multiple promises resolving on the same slide would not try to add an image to the same $el element. This was occurring when rapidly advancing slides while the previous one was loading. Additionally, in the onSlide event, a new $el reference is created and the current instance is set to this reference to support this. * Removes carousel.less, imageDetails.less, caorusel.js, imageDetails.js and their associated tests that were meant for the changes related to I549add34101d58439b25265473a3a611c3324154. Maybe these will be useful someday, but right now my focus is to make the minimum possible changes to remove the inheritance and satisfy T216198. The...
-
Jdlrobson authored
-
jdlrobson authored
SearchOverlay extends the `hide` method of Overlay to add an animation delay. This doesn't seem to have been working for some time as the animations class is on the body tag. We can restore this later using onBeforeExit if we so desire once the OverlayManager system is more sane to deal with. Change-Id: I01a2e46a04958b4a68650040a55f8f5ece2132aa
-
- 21 Mar, 2019 7 commits
-
-
Bartosz Dziewoński authored
It will be easier for us to maintain this way. The code I'm moving had a lot of comments saying that it should be moved there. See VisualEditor change I908e035ec245a9b190f05e64c35dbb29936434de. Bug: T218946 Change-Id: Ibe192360bdecab86519de1781f66f90a3441c551
-
jdlrobson authored
* a makePanel helper function is added * Originally I repurposed talkSectionAdd.hogan as AddTopicForm.hogan however eventually I removed the need for templates all together for the new component by using postRender to generate the textareas * a makeAddTopicForm helper makes sure that text is autosigned internally if necessary in preparation for saving to take that responsibility away from TalkSectionAddOverlay Use the new component inside the TalkSectionAddOverlay Bug: T217102 Change-Id: I45d774d7834ebc223cd7e153066a5e99a64a1542
-
Bartosz Dziewoński authored
We no longer use a different scroll container on iOS, after all the scrolling workarounds were ditched recently. Trying to scroll it did nothing, so scrolling to selection was broken. Selection is now correctly scrolled into view after closing a dialog (e.g. link insertion). Bug: T218635 Depends-On: I02ec12d8dddacdd0efa88a6094d77ad8d8236fbd Change-Id: I3e534a300e4b1286bb1a05c75834a93fc3cf5dec
-
jdlrobson authored
* A notifications list component is split out from this work. * the overlay component is loaded inside mobile.startup for instant loading Review notes: The changes here might look large, however they are quite minimal and complicated by file renames. Actual changes are best demonstrated by this gist: https://gist.github.com/jdlrobson/a2e9755f1555fe3b6d4e6980c92a29be Bug: T217296 Change-Id: Ic31345d56b3294656de3757bb98b3422c7aeb88a
-
jdlrobson authored
This leaves only the factory function meaning we can easily switch to using the Overlay.make pattern Bug: T217296 Change-Id: I56b4111518c8440dcb5d9cff2d4b54b263b8ab31
-
Stephen Niedzielski authored
Fix casing of BetaOptinPanel to BetaOptInPanel. Bug: T217298 Change-Id: I6baae9476e062f8507b2b54de567df5bf5019af2
-
Stephen Niedzielski authored
- Replace parent from a Panel to a View. There are no outsider callers of Panel functionality and internal usage only demands the ability to dismiss itself. Copying the onCancel implementation is much simpler than reasoning about what even is a Panel. We never call show so the fancy timeout logic appears unnecessary. - Replace 'hide' event with onCancel callback. The API usage in mobile.init.js is updated. - Prefix some local methods with underscores to clarify privates. Testing: 1 Enable beta opt-in from LocalSettings.php: $wgMFExperiments['betaoptin'] = array( "name" => "betaoptin", 'buckets' => [ 'control' => 0, 'A' => 1, ], 'enabled' => true, ); 2 Visit an article 3 Reset LocalStorage from Dev Tools: localStorage.setItem('mobile-betaoptin-token', undefined) 4 Refresh 5 Tap ok or cancel Bug: T217298 Change-Id: I74f37b2c97720f1e41303ab74b12636f96ec6de0
-
- 20 Mar, 2019 4 commits
-
-
https://translatewiki.netTranslation updater bot authored
Change-Id: I251bb4b52f5e11480314aff2066c069c00d2c75e
-
Bartosz Dziewoński authored
Follow-up to 7b9dbbfa. Change-Id: Ic6c18be1e08c11ca16dfe227e66070d93259422a
-
Bartosz Dziewoński authored
When recovering autosaved changes, the promise returned by mw.libs.ve.targetLoader.requestPageData() is not actually abortable, causing loading to fail. Change-Id: I46764da4e6523e215d8c19ef02f1c88743de2b59
-
jdlrobson authored
Change-Id: I37f89eba69d511fa7a09fa8f1e337c4803f8c535
-
- 19 Mar, 2019 14 commits
-
-
jenkins-bot authored
-
jenkins-bot authored
-
https://translatewiki.netTranslation updater bot authored
Change-Id: I1db59a7dac5f43e99dea5f43bd681938c37e6608
-
Nicholas Ray authored
Intead of specifying in the jsdoc that false is required to not render something, let's make all the children not render by default. This will enable clients to only add keys to the props of children they actually want to render. Tests were modified to ensure that no children are rendered by default which removed the need for some redundant tests. Bug: T216198 Change-Id: I3a9d0b11bb958608775cc27a07380176b83497a1
-
jdlrobson authored
We can avoid these entirely now by only binding events at the correct times in the lifecycle Bug: T217296 Change-Id: I8ae7b4c9cf9d17663557f13736cf2efc832db2bd
-
jenkins-bot authored
-
Derick Alangi authored
Per tickets such as T183901, T191104 etc, it was agreed to reword Save to Publish on public wikis. Mobile sites are also included hence this change. The button to write edits to database on mobile sites is now labeled "Publish" and the flash on success also uses the word "published" in its text. Bug: T191104 Change-Id: I6f6c7c139335f8b126630f31d064eb33b9393098
-
jdlrobson authored
As implemented onBeforeExit only runs if you click on the close icon. This change ensures we keep backwards compatibility with the editor overlay and ensure users of the onBeforeExit function will continue to work. The editor will need to make use of onBeforeExit to enjoy the same functionality (I2668b6e54a6d54e820d60e4b56028338908ad55f) Additional changes: * force parameter is no longer a parameter to hide. It doesn't seem to be used. Test is updated accordingly Bug: T218173 Change-Id: Ife5ccf7a4a55efab64ef528b7aa28b963d195674
-
jdlrobson authored
Bug: T217296 Change-Id: I9313528fca89d6b073aefcfdde9781ef5719b5e1
-
jenkins-bot authored
-
jenkins-bot authored
-
Piotr Miazga authored
Apply 'mobile edit' and 'mobile web edit' if applicable to all log entries. MobileFrontend will apply tags to all log entries only when user is browsing Wikipedia in the mobile mode. Bug: T215477 Change-Id: I3037171e6ba3ec5cbf05cc5a6e0df251f290377f
-
jenkins-bot authored
-
Piotr Miazga authored
If user enabled the 'Advanced Mobile Contributions' mode we would like to tag all log entries with the 'advanced mobile edit' tag. Bug: T215477 Depends-On: Ia4c019db8ca6f37ce0f86bf7d134d6f1713daf56 Depends-On: I747eded4bc5406cd5d4676fc93b0bb55c99f9a4d Change-Id: Idb8d92c14524caa16b484855d6095205168909ff
-