Go to file
Bartosz Dziewoński 3e5a67010f Use module.exports/require() rather than mw.dt namespace for defining classes
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
2019-12-10 22:47:40 +01:00
i18n Localisation updates from https://translatewiki.net. 2019-12-10 09:29:32 +01:00
includes Don't load DT on edit pages 2019-12-09 14:43:39 +00:00
maintenance Handle timestamps in daylight saving time 2019-10-22 16:33:21 +02:00
modules Use module.exports/require() rather than mw.dt namespace for defining classes 2019-12-10 22:47:40 +01:00
tests Identify comments by username+timestamp+seq 2019-12-09 13:45:31 +00:00
.eslintrc.json Highlight comment after saving 2019-12-03 16:40:35 +00:00
.gitignore Add .gitignore file 2019-10-10 21:21:00 +01:00
.gitreview Add .gitreview 2019-10-09 21:18:34 +00:00
.stylelintrc Add required files for an extension 2019-10-10 19:42:56 +01:00
CODE_OF_CONDUCT.md Add required files for an extension 2019-10-10 19:42:56 +01:00
composer.json build: Upgrade mediawiki-codesniffer to v28.0.0 2019-10-12 17:56:36 +01:00
COPYING Add required files for an extension 2019-10-10 19:42:56 +01:00
extension.json Use module.exports/require() rather than mw.dt namespace for defining classes 2019-12-10 22:47:40 +01:00
Gruntfile.js Add unit tests for parser#getTimestampRegexp 2019-10-24 23:21:29 +02:00
package-lock.json build: Update linters 2019-10-28 12:29:56 +00:00
package.json build: Update linters 2019-10-28 12:29:56 +00:00