2023-06-13 21:57:05 +00:00
|
|
|
/* eslint-disable no-jquery/no-jquery-constructor */
|
2020-07-14 13:07:09 +00:00
|
|
|
/** @interface MediaWikiPageReadyModule */
|
2023-04-11 17:22:58 +00:00
|
|
|
const
|
2020-05-11 21:29:56 +00:00
|
|
|
collapsibleTabs = require( './collapsibleTabs.js' ),
|
2020-07-14 13:07:09 +00:00
|
|
|
/** @type {MediaWikiPageReadyModule} */
|
|
|
|
pageReady = require( /** @type {string} */( 'mediawiki.page.ready' ) ),
|
2023-07-26 21:05:16 +00:00
|
|
|
portlets = require( './portlets.js' ),
|
2023-09-28 09:24:04 +00:00
|
|
|
vector = require( './vector.js' ),
|
|
|
|
teleportTarget = /** @type {HTMLElement} */require( /** @type {string} */ ( 'mediawiki.page.ready' ) ).teleportTarget;
|
2020-05-11 21:29:56 +00:00
|
|
|
|
|
|
|
function main() {
|
|
|
|
collapsibleTabs.init();
|
|
|
|
$( vector.init );
|
2023-07-26 21:05:16 +00:00
|
|
|
portlets.main();
|
2020-07-14 13:07:09 +00:00
|
|
|
pageReady.loadSearchModule( 'mediawiki.searchSuggest' );
|
2023-09-28 09:24:04 +00:00
|
|
|
teleportTarget.classList.add( 'vector-body' );
|
2020-05-11 21:29:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
main();
|