This project is mirrored from https://github.com/weirdgloop/mediawiki-extensions-MobileFrontend. Pull mirroring updated .
  1. 07 Jan, 2020 1 commit
    • Nicholas Ray's avatar
      List known raw html messages · 312e8ed0
      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
      312e8ed0
  2. 03 Sep, 2019 1 commit
  3. 21 Aug, 2019 1 commit
  4. 09 Aug, 2019 1 commit
  5. 02 Jul, 2019 1 commit
    • Volker E's avatar
      Remove `.background-size()` mixin usage · 112f2497
      Volker E authored
      Removing deprecated LESS `.background-size()` mixin calls.
      Also removing the corresponding stylelint rule.
      
      Bug: T219956
      Change-Id: I5d83835fea6608dee3cda009769b0314b546f4a8
      (cherry picked from commit 14ee15ff)
      112f2497
  6. 11 Jun, 2019 1 commit
  7. 10 Jun, 2019 1 commit
  8. 25 Mar, 2019 1 commit
  9. 23 Mar, 2019 1 commit
  10. 22 Mar, 2019 6 commits
    • jdlrobson's avatar
      Minor changes to NotificationOverlay · 38790bdb
      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
      38790bdb
    • Jdlrobson's avatar
    • jenkins-bot's avatar
    • Nicholas Ray's avatar
      Refactor ImageOverlay into an Overlay with an ImageCarousel · ae5579c8
      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...
      ae5579c8
    • Jdlrobson's avatar
    • jdlrobson's avatar
      Remove broken fade out animation on SearchOverlay · da79c4aa
      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
      da79c4aa
  11. 21 Mar, 2019 7 commits
    • Bartosz Dziewoński's avatar
      MobileFrontendArticleTarget: Merge into upstream code in VisualEditor · eb66046a
      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
      eb66046a
    • jdlrobson's avatar
      Add the AddTopicForm component · 0689208a
      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
      0689208a
    • Bartosz Dziewoński's avatar
      MobileFrontendArticleTarget: Remove getScrollContainer() override · a8de0323
      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
      a8de0323
    • jdlrobson's avatar
      NotificationsOverlay converted to factory function · 0c1f0934
      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
      0c1f0934
    • jdlrobson's avatar
      All events handlers are not part of the prototype · 45bc391e
      jdlrobson authored
      This leaves only the factory function meaning we can easily
      switch to using the Overlay.make pattern
      
      Bug: T217296
      Change-Id: I56b4111518c8440dcb5d9cff2d4b54b263b8ab31
      45bc391e
    • Stephen Niedzielski's avatar
      Hygiene: rename BetaOptinPanel · eb027f76
      Stephen Niedzielski authored
      Fix casing of BetaOptinPanel to BetaOptInPanel.
      
      Bug: T217298
      Change-Id: I6baae9476e062f8507b2b54de567df5bf5019af2
      eb027f76
    • Stephen Niedzielski's avatar
      Hygiene: replace BetaOptinPanel parent · fe5bc738
      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
      fe5bc738
  12. 20 Mar, 2019 4 commits
  13. 19 Mar, 2019 14 commits