mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 09:58:17 +00:00
3e5a67010f
The packageFiles system makes it easier to export site config data from PHP to JS, which we need a lot of, but it's awkward when mixing it with defining and accessing classes via a namespace like mw.dt. The only thing remaining in mw.dt is mw.dt.pageThreads, which is described to be "for debugging", so we should keep it easy to type. Also we still use the namespace for documenting classes. Everything else can be reached by require()'ing a ResourceLoader module, for example instead of `mw.dt.ui.ReplyWidget` you'd do `require( 'ext.discussionTools.ReplyWidget' )`. (When debugging from browser console, use `mw.loader.require` instead.) Change-Id: I6496abcf58c21658d6fd0f3fc1db1f7380a89df7 |
||
---|---|---|
.. | ||
lib | ||
.eslintrc.json | ||
controller.js | ||
dt.debug.js | ||
dt.init.js | ||
dt.init.less | ||
dt.ui.ReplyWidget.js | ||
dt.ui.ReplyWidget.less | ||
highlighter.css | ||
highlighter.js | ||
modifier.js | ||
parser.js |