mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
450a395f95
* When wikipage.tableOfContents is executed, the table of contents has been replaced so we should update the sections associated with the section observer as the old sections no longer exist in theDOM. * If VisualEditor repaints the page, we should update the elements associated with the table of contents as the body-content element no longer exists in the page. * When VisuaLEditor is active we should disable the intersection observer as there is no table of contents to update. Minor changes: * Light refactor of large function in main.js * reloadTableOfContents returns a promise and now fires a new hook wikipage.tableOfContents.vector to signal when it is finished which has also been requested by community members. This allows the code in main.js to update elements at relevant point in time * Add FIXME note (doing this would have been considerable work) * I've added a call to mw.log.warn which would have saved me considerable debugging time for this issue to diagnose the issue. Bug: T316037 Bug: T316025 Change-Id: Ib42d532d4e900c01061e1c5e39c03b17f0619c46
51 lines
2.3 KiB
JSON
51 lines
2.3 KiB
JSON
{
|
|
"opts": {
|
|
"destination": "docs/js",
|
|
"package": "package.json",
|
|
"pedantic": true,
|
|
"readme": "README.md",
|
|
"recurse": true,
|
|
"template": "node_modules/jsdoc-wmf-theme"
|
|
},
|
|
"source": {
|
|
"include": [ "resources" ]
|
|
},
|
|
"templates": {
|
|
"cleverLinks": true,
|
|
"default": {
|
|
"useLongnameInNav": true
|
|
},
|
|
"wmf": {
|
|
"linkMap": {
|
|
"\"addEventListener\"": "https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener",
|
|
"jQuery": "https://api.jquery.com",
|
|
"AbortSignal": "https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal",
|
|
"Document": "https://developer.mozilla.org/docs/Web/API/Document",
|
|
"Element": "https://developer.mozilla.org/docs/Web/API/Element",
|
|
"Event": "https://developer.mozilla.org/docs/Web/API/Event",
|
|
"EventTarget": "https://developer.mozilla.org/docs/Web/API/EventTarget",
|
|
"HTMLElement": "https://developer.mozilla.org/docs/Web/API/HTMLElement",
|
|
"IntersectionObserver": "https://developer.mozilla.org/docs/Web/API/IntersectionObserver",
|
|
"IntersectionObserverEntry": "https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry",
|
|
"MediaQueryList": "https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList",
|
|
"MediaQueryListEvent": "https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent",
|
|
"Node": "https://developer.mozilla.org/docs/Web/API/Node",
|
|
"NodeList": "https://developer.mozilla.org/docs/Web/API/NodeList",
|
|
"HTMLInputElement": "https://developer.mozilla.org/docs/Web/API/HTMLInputElement",
|
|
"\"removeEventListener\"": "https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener",
|
|
"Window": "https://developer.mozilla.org/docs/Web/API/Window",
|
|
"CheckboxHack": "https://doc.wikimedia.org/mediawiki-core/master/js",
|
|
"MediaWikiPageReadyModule": "https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.plugin.page.ready",
|
|
"MW": "https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw",
|
|
"MwMap": "https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Map",
|
|
"RequestInit": "https://developer.mozilla.org/en-US/docs/Web/API/Request/Request",
|
|
"JQueryStatic": "https://api.jquery.com",
|
|
"JQuery.Promise": "https://api.jquery.com/promise/",
|
|
"VectorResourceLoaderVirtualConfig": "#",
|
|
"void": "#",
|
|
"Vue.VNode": "https://vuejs.org/v2/api/#VNode-Interface"
|
|
}
|
|
}
|
|
}
|
|
}
|