Commit graph

2422 commits

Author SHA1 Message Date
Translation updater bot c60c154b38 Localisation updates from https://translatewiki.net.
Change-Id: I16777128785750d1f870ce6b80cab42de982ec1c
2019-10-28 16:33:43 +01:00
Ed Sanders ccb631eedc Separate DiscussionToolsData from DiscussionToolsHooks
Change-Id: Icb15cc7d118ac20bcf131f6862095b4481d1c882
2019-10-28 12:29:56 +00:00
Ed Sanders a9340f0c84 build: Update linters
Change-Id: Iee2e91b24218c6120f4a20d6ea38ea03c6292ef0
2019-10-28 12:29:56 +00:00
Bartosz Dziewoński 37c9f49cff Re-add debug highlighter
We removed it in c40c112514 when we added
a more practical use for the parser, but I keep wishing I had it to
experiment with the parser code.

Now it's off by default and can be used by adding &dtdebug=1 to the URL.

Change-Id: I6a92bfe7f55af0949b391606b04c3cfa0f996f2a
2019-10-24 23:21:40 +02:00
Bartosz Dziewoński 9efe8b1dd4 Add unit tests for parser#getTimestampRegexp
Depends-On: I6c3d186de1877f73d4a4e3fec7d6d632a5d5fa83
Change-Id: Icdb44f793a8f5e56666ec635bb8b0125041b5aab
2019-10-24 23:21:29 +02:00
Ed Sanders 396b76dc14 Separate parser from init so it can be loaded separate
e.g. for unit tests

Change-Id: I711427721915193e070e1590ab1afc07425840a9
2019-10-23 13:44:49 +01:00
Bartosz Dziewoński 97ce480767 Document methods in parser.js
Change-Id: I9272a619770f805f36686d722eebba586d2650e4
2019-10-22 14:38:53 +00:00
Bartosz Dziewoński 96af61bbc4 Minor naming and comment cleanup after re-reading the code
Change-Id: I5d0309329e56034697070ebadf551ac704323d5c
2019-10-22 14:38:46 +00:00
Bartosz Dziewoński db80e48933 Handle timestamps in daylight saving time
Add the Moment Timezone library. Add a script for managing libraries,
like in MediaWiki core.

Depends-On: I9a59a6ad01850b30327e4215f2be61b8d1c41277
Change-Id: I64bc79e7d0ccdf42b006e5a225c8aa70ea5f4e15
2019-10-22 16:33:21 +02:00
Bartosz Dziewoński 3dc5d79b20 Fix regexp for HTML heading tags
Change-Id: I91b8c2626e76d340da83b9e36a655c3f5158ac3c
2019-10-20 17:18:01 +00:00
Bartosz Dziewoński 282cf3c386 Escape regexp special characters in date formats
For example, the default date format for Japanese (ja) is
"Y年n月j日 (D) H:i", which contains parentheses.

Change-Id: I4fce11f2913959dad06b3846d03df1da1e84e435
2019-10-20 17:17:55 +00:00
Ed Sanders c40c112514 Create simple reply widget demo
Change-Id: I03a98495364babf1b80bf64121efb09097ebe85a
2019-10-20 16:51:07 +00:00
Bartosz Dziewoński b105bf7ded Detect and parse timestamps, signatures, comments and threads
Bug: T232780
Bug: T234404
Change-Id: Ie9c80121089742cfc7cd7c04d694c2e0fe8d6a98
2019-10-18 13:59:07 +02:00
Bartosz Dziewoński 5153cdc881 Add "npm test" script
We need it for the Wikimedia CI to run our ESLint and stuff.

Change-Id: I5f27e108558bbfd24c54f0e9e4cf99c180f25e7d
2019-10-15 04:13:50 +02:00
Ed Sanders 53fae97723 Add an empty hook to load discussion tools on talk pages
Change-Id: Iafa24ed41c06d4bd8b9a7a684b986fdb37aa87c7
2019-10-12 17:14:28 +00:00
Ed Sanders 0e518553aa Add hard dependency on VE
* For the proof of concept, VE will be used to write comments
  with no fallback.
* Parsoid will be required for parsing pages

At some point in the future we may have a non-VE comment widget
fallback and Parsoid may be part of core, in which case we can
re-evaluate this hard dependency.

Change-Id: Ib694f2a4b2a640bb29b564056d9279e53fff6c9c
2019-10-12 17:05:37 +00:00
Ed Sanders 3bceff526e Add MW version dependency and use manifest_version 2
Change-Id: I276a1b6883b0e95d1a136a09f11f99d04fec389b
2019-10-12 17:05:31 +00:00
Reedy 6f8185a7d4 build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Ib93a3fe44e7fa6c8141b445ce4b32c2ca88c6d68
2019-10-12 17:56:36 +01:00
Ed Sanders 41e810f65e Add .gitignore file
Change-Id: I3d06e083ca8af279cae78c97afdf413fb4bfd782
2019-10-10 21:21:00 +01:00
Ed Sanders fe0a05ad49 Add required files for an extension
Change-Id: I626e607e6ae7efc2521f9dd1da83c6fd90b0767d
2019-10-10 19:42:56 +01:00
MarcoAurelio 7c0abd30c9 Add .gitreview
Change-Id: I0c6dccdc4535fe3583b7fc3abe1798d2bb881bc1
2019-10-09 21:18:34 +00:00
MarcoAurelio b8378471d5 Initial empty repository 2019-10-09 20:58:48 +00:00