mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +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 |
||
---|---|---|
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.stylelintrc | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json |