Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const currentPageHTMLParser = require( './currentPageHTMLParser' ); const time = require( './time' ); const LanguageInfo = require( './LanguageInfo' ); const currentPage = require( './currentPage' ); const Drawer = require( './Drawer' ); const CtaDrawer = require( './CtaDrawer' ); const lazyImageLoader = require( './lazyImages/lazyImageLoader' ); const icons = require( './icons' ); const PageHTMLParser = require( './PageHTMLParser' ); const showOnPageReload = require( './showOnPageReload' ); const OverlayManager = require( './OverlayManager' ); const View = require( './View' ); const Overlay = require( './Overlay' ); const references = require( './references/references' ); const search = { SearchOverlay: require( './search/SearchOverlay' ), SearchGateway: require( './search/SearchGateway' ) }; const promisedView = require( './promisedView' ); const headers = require( './headers' ); const Skin = require( './Skin' ); const mediaViewer = { overlay: require( './mediaViewer/overlay' ) }; const languageInfoOverlay = require( './languageOverlay/languageInfoOverlay' ); const languageOverlay = require( './languageOverlay/languageOverlay' ); const amcOutreach = require( './amcOutreach/amcOutreach' ); const util = require( './util.js' ); const actionParams = require( './actionParams.js' ); const Icon = require( './Icon.js' ); const IconButton = require( './IconButton.js' ); const MessageBox = require( './MessageBox.js' ); const Section = require( './Section.js' ); const Button = require( './Button.js' ); // Expose chunk to temporary variable which will be deleted and exported via ResourceLoader // package inside mobile.startup.exports. /** * The main library for accessing MobileFrontend's stable APIs. * * @module mobile.startup */ module.exports = { /** * Internal, strictly for use inside MobileFrontend only * * @private */ Section, /** * Internal, strictly for use inside MobileFrontend only * * @private */ MessageBox, /** * Internal, strictly for use inside MobileFrontend only * * @private */ Icon, /** * Internal, strictly for use inside MobileFrontend only * * @private */ IconButton, /** * Internal, strictly for use inside MobileFrontend only * * @private */ Button, /** * Internal, strictly for use inside MobileFrontend only * * @private */ actionParams, /** * Internal, strictly for use inside MobileFrontend only * * @memberof module:mobile.startup * @type module:mobile.startup/util * @private */ util, /** * Internal for use inside Minerva only * * @memberof module:mobile.startup * @type module:mobile.startup/AmcOutreach */ amcOutreach, /** * @private for use inside MobileFrontend only. */ headers, // Internal for use inside GrowthExperiments only. overlayHeader: headers.header, /** * Internal for use inside Minerva, GrowthExperiments only. * * @type module:mobile.startup/Drawer */ Drawer, // Internal for use inside Minerva only. CtaDrawer, /** * Internal for use inside Minerva, ExternalGuidance and Echo only. * * @memberof module:mobile.startup * @type module:mobile.startup/View */ View: View.ClassES5, /** * Internal for use inside Minerva, ExternalGuidance, * GrowthExperiments and Echo only. * * @memberof module:mobile.startup * @type module:mobile.startup/Overlay */ Overlay: Overlay.ClassES5, /** * Internal for use inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/PageHTMLParser */ currentPageHTMLParser, /** * Internal for use inside Minerva, ExternalGuidance and Echo only. * * @memberof module:mobile.startup * @return {module:mobile.startup/OverlayManager} */ getOverlayManager: () => OverlayManager.getSingleton(), /** * Internal for use inside Minerva only. * * @type module:mobile.startup/Page * @memberof module:mobile.startup */ currentPage, /** * Internal for use inside Minerva only. * * @type module:mobile.startup/PageHTMLParser * @memberof module:mobile.startup */ PageHTMLParser, /** * Internal for use inside Minerva only. * * @type module:mobile.startup/Icon * @memberof module:mobile.startup */ spinner: icons.spinner, /** * Internal for use inside MobileFrontend only * * @private */ cancelIcon: icons.cancel, /** * Internal for use inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/mediaViewer */ mediaViewer, /** * Internal for use inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/references */ references, /** * Internal for use inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/search */ search, /** * Internal for use inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/time */ time, // Internal for use inside Echo, GrowthExperiments only. promisedView, /** * Loads all images on the page, stable to call. * * @memberof module:mobile.startup * @return {jQuery.Deferred} */ loadAllImagesInPage: () => lazyImageLoader.loadImages( lazyImageLoader.queryPlaceholders( document.getElementById( 'content' ) ) ), /** * Show a notification on page reload, internal for Minerva * * @memberof module:mobile.startup * @param {string} msg * @return {jQuery.Deferred} */ notifyOnPageReload: ( msg ) => showOnPageReload( msg ), /** * Internal for use inside VisualEditor * * @memberof module:mobile.startup * @return {string|undefined} */ license() { const skin = Skin.getSingleton(); return skin.getLicenseMsg(); }, /** * Internal for use inside Minerva. See {@link module:mobile.startup} for access. * * @module mobile.startup/languages */ /** * Access to language overlays for usage inside Minerva only. * * @memberof module:mobile.startup * @type module:mobile.startup/languages */ languages: { languageOverlay, /** * Shows information about suggested languages. * * @memberof module:mobile.startup/languages * @param {mw.Api} api * @param {boolean} showSuggestedLanguage If the suggested languages section * should be rendered. */ languageInfoOverlay( api, showSuggestedLanguage ) { return languageInfoOverlay( new LanguageInfo( api ), showSuggestedLanguage ); } } }; |