Commit graph

19108 commits

Author SHA1 Message Date
Translation updater bot a2a73aab7d Localisation updates from https://translatewiki.net.
Change-Id: I864345e8072818e4b525bcfce2a3d28e8dbda1cf
2022-03-16 08:08:23 +01:00
jenkins-bot 32d9150762 Merge "Rename ve-mw/init/styles to LESS" 2022-03-15 23:16:32 +00:00
Ed Sanders 38dfa608f8 Simplify ve-mw/init/styles LESS files
Change-Id: I49e05c9680e1fe7db8e01df627a6d5fa2836aac8
2022-03-15 23:10:34 +00:00
Ed Sanders 627bbc4aaf Rename ve-mw/init/styles to LESS
Change-Id: I50969b8798637368942b2d9315e7290f2c579f77
2022-03-15 22:16:59 +00:00
jenkins-bot cada5a3ab8 Merge "Extract template scrollToTop method" 2022-03-15 12:17:50 +00:00
Translation updater bot b1478e8b84 Localisation updates from https://translatewiki.net.
Change-Id: I4680f9e44776042d1e6a205d963d23c32ca293ed
2022-03-15 08:25:58 +01:00
jenkins-bot e3d68ed7d9 Merge "Namespace rest of the extension" 2022-03-15 04:28:44 +00:00
jenkins-bot f63c483b56 Merge "Remove Apex skin files" 2022-03-15 01:12:21 +00:00
Reedy 239fbb64e4 Namespace rest of the extension
Change-Id: I4f3e2793099d81401035ea282f268a3afaa03067
2022-03-14 22:27:15 +00:00
Bartosz Dziewoński b22ba16b14 Update VE core submodule to master (6dd669298)
New changes:
3206d66bb Use $.parseHTML() in tests where appropriate
c99d63f66 Localisation updates from https://translatewiki.net.
cd5798146 Update OOUI to v0.43.2
98c7288fd Fix margin wrapper paragraphs in placeholders too
639d81bd1 FocusableNode: Documentation typo fix
23daa81a0 Localisation updates from https://translatewiki.net.
e84c40a5d ve.ui.Sequence: Put optional arguments in a config object
c79dcf48f Add backtick sequence for <code> formatting

Bug: T299817
Change-Id: I56b77aae31b80e2fdef113d3431740340419d2f0
2022-03-14 22:42:35 +01:00
jenkins-bot 3424cf9c86 Merge "Improve messages about duplicate template parameters" 2022-03-14 13:19:59 +00:00
Translation updater bot 9e47ab1892 Localisation updates from https://translatewiki.net.
Change-Id: I699c55784025b2adad6a0e8c145495ceb6f4c1d0
2022-03-14 08:15:01 +01:00
Ed Sanders 1fdda82b58 Remove Apex skin files
The Apex skin (not to be confused with the Apex OOUI theme)
is abandonware. Keeping files around that pretend to support it
is just maintenance debt.

Change-Id: I176e4e25307ab8ca4166a6e9b55e3bec4f058d05
2022-03-12 14:23:23 +00:00
Ed Sanders 5b92c66e97 Use new config option signature when building sequences
Change-Id: Id93327e9afdad8d761a079b17b47e7bbe32bd5e2
Depends-On: I1011602514f0f21c5764b14563d8213ecc19f49a
2022-03-11 17:12:54 +00:00
WMDE-Fisch 96dc96da8d Extract template scrollToTop method
Also putting the findFirstSelected to where it belongs.

Bug: T302965
Change-Id: Ibc56abfdf84a0b5eade5b6a44903d769f424206d
2022-03-11 12:30:51 +01:00
WMDE-Fisch 824648b32a Streamline hide unused handling
Extracted the state change so we do not need the `internal` var.

Change-Id: I0ce1afab35abf3e0e656ad1a3601513d55406537
2022-03-11 12:02:32 +01:00
jenkins-bot 4a8ca84ecc Merge "Scroll template outline into view when hiding unused" 2022-03-11 10:22:37 +00:00
Translation updater bot 4fa2e2b13f Localisation updates from https://translatewiki.net.
Change-Id: I2b897c2f96aedcebd6e90c8c309103271c19ba64
2022-03-11 08:33:34 +01:00
jenkins-bot 174c7a39f6 Merge "tests: Use ve.test.utils.newMwEnvironment()" 2022-03-10 22:51:26 +00:00
jenkins-bot ecbfa2c19e Merge "Follow-up I560d8080: Fix getTargetDataFromHref to work with different wiki configs" 2022-03-10 22:50:22 +00:00
jenkins-bot beded65e85 Merge "Preserve classes on media wrapper links" 2022-03-10 20:35:59 +00:00
Arlo Breault 79120fc16c Preserve classes on media wrapper links
Parsoid added a class and, without it, we get selser complaining
about wrappers being modified, similar to T214649.

The "image" class is removed since Parsoid never added it (although it
now has "mw-file-description" for a similar purpose) and the legacy
parser doesn't apply it indiscriminately.

It doesn't seem like VE supports editing the |link= media option; it
just tries to roundtrip what's there and drops it on edit.  The patch
here works with that limitation.

Galleries are found to drop href's, breaking selser, and should be fixed
in a follow up.

Bug: T292657
Bug: T303469
Change-Id: I92359048b42d32fe8a0f2cb79cd348cf5f2c56cc
2022-03-10 10:41:14 -05:00
jenkins-bot 35e1f36b7b Merge "ApiVisualEditor: Remove $wgTitle hack, set page for {{PAGENAME}} when needed" 2022-03-10 13:07:10 +00:00
Translation updater bot f26359933c Localisation updates from https://translatewiki.net.
Change-Id: Id81c93d432af3fc66f7a222c6fb36720e5cdb182
2022-03-10 08:19:56 +01:00
Ed Sanders bc0e96f78a tests: Use ve.test.utils.newMwEnvironment()
This calls "parent" methods automatically, and allow us to
pass a config parameter for MW config.

Change-Id: I571d4599d7fca55727070bcac6083d1232b1f61c
2022-03-10 01:44:11 +00:00
Ed Sanders 77719b873c Follow-up I560d8080: Fix getTargetDataFromHref to work with different wiki configs
Change-Id: I8324a72418080beb3944314decc6792850392812
2022-03-10 01:10:45 +00:00
WMDE-Fisch 037e7ad0b2 Scroll template outline into view when hiding unused
Due to the stickyness we need to scroll the header and the first
visible item from the parameter list to have the best result in all
cases.

We also only want to scroll when the user triggered hiding the
fields. Not when the template outline view is initialized.

Bug: T302965
Change-Id: I84d293888a7dbf13ec655c293c0fc3a79edca698
2022-03-09 19:45:07 +01:00
jenkins-bot b26d62072e Merge "Fix missing padding on inline descriptions" 2022-03-09 13:13:24 +00:00
jenkins-bot d99a49d150 Merge "Use $.parseHTML() in tests where appropriate" 2022-03-09 13:13:22 +00:00
WMDE-Fisch e5277dd838 Fix missing padding on inline descriptions
Bug: T303386
Change-Id: Id0567102d9c8d7f0f3740085027713a2574141ef
2022-03-09 13:08:52 +01:00
Translation updater bot 96ea0c5b5c Localisation updates from https://translatewiki.net.
Change-Id: Ib8f60f24b9f6cc0ce850594a8622ea46b7e5687d
2022-03-09 08:10:21 +01:00
Bartosz Dziewoński 94633fd165 Use $.parseHTML() in tests where appropriate
It removes some indirection.

* Find:          \$\( '<.+?' \)\.toArray\(\)
* Replace with:  $.parseHTML( \1 )

(also replaced a few by hand that weren't caught by that regexp)

Change-Id: I2639cc4a26bc960046a189504dd8058344e14d60
2022-03-09 01:07:57 +01:00
Ed Sanders 24973a2928 Update VE core submodule to master (15c1efdc2)
New changes:
cf7b2a9c4 Restore margin between wrapper paragraphs and document edge
629109b6b ve.ce.Surface tests: Sometimes assert originalDomElements in paste tests
3a5bd323c Use wrapper paragraphs in fixUpInsertion

Local changes:
* Update tests to ignore some internal properties

Bug: T299815
Bug: T299817
Change-Id: Ie52348f62320eb135c2f950ac78a77d9c665fef2
2022-03-09 01:05:15 +01:00
jenkins-bot 854318d569 Merge "Update VE core submodule to master (914dc192e)" 2022-03-08 21:29:40 +00:00
Bartosz Dziewoński 3a9fb4c31b Update VE core submodule to master (914dc192e)
New changes:
a1045091e ve.dm.BlockImageNode: Fix typo in generating empty caption
ca56286be Use parseFloat to parse numbers in standalone demo
914dc192e Localisation updates from https://translatewiki.net.

Change-Id: I8f78d82b550548aac13406b4be3445c739b871d9
2022-03-08 22:09:29 +01:00
jenkins-bot 2544d5cfa8 Merge "MWEntityNode: Remove now-unnecessary allowedRdfaTypes" 2022-03-08 21:09:02 +00:00
David Lynch d09c241549 MWEntityNode: Remove now-unnecessary allowedRdfaTypes
This was added back in 2020 so mw:DisplaySpace would work while the
RESTBase cache still contained old data. It's been two years, it should
be good now.

Follow-up to ed3579245e

Change-Id: I65665231b78198633682d52c48068c89807df55e
2022-03-08 11:27:29 -06:00
Bartosz Dziewoński 39e0e865e8 Fix handling of disabled 'mobileformat'
Boolean parameters must be omitted completely if they're false.

Bug: T303262
Change-Id: I007640b59cf0f7861c72804109e09c118c250e7c
2022-03-08 14:00:34 +01:00
jenkins-bot 278676f15b Merge "Replace deprecated Sanitizer::removeHTMLtags() with safer ::removeSomeTags()" 2022-03-08 10:44:42 +00:00
Translation updater bot afde13a965 Localisation updates from https://translatewiki.net.
Change-Id: Ic41522d1cdb4cff7150808bc3bd9ce08b88c3b3a
2022-03-07 08:11:54 +01:00
C. Scott Ananian d8b3ea9561 Replace deprecated Sanitizer::removeHTMLtags() with safer ::removeSomeTags()
This also matches the current code in OutputPage::setPageTitle()

Depends-On: Ic864c01471c292f11799c4fbdac4d7d30b8bc50f
Change-Id: I018b34bb5f6e113056da9b04cc72d4318422adce
2022-03-04 14:30:47 -05:00
jenkins-bot abeebbff62 Merge "mw.libs.ve.getTargetDataFromHref: Don't check for internal links twice" 2022-03-04 18:24:16 +00:00
jenkins-bot 80f89ccdcd Merge "DesktopArticleTarget tests: Mock config using QUnit.newMwEnvironment" 2022-03-04 18:22:50 +00:00
gerritbot 3f5108fd1e Change use of deprecated getLazyConnectionRef
Bug: T255493
Change-Id: Ic323d820547c126e91bf82cd884db9d28ffbad41
2022-03-04 17:24:00 +01:00
Ed Sanders fae8aece16 mw.libs.ve.getTargetDataFromHref: Don't check for internal links twice
Once we determined a link is internal from the first regex, we don't to
check if it matches the wgScript path as well. This would cause
"/index.php/Article" style paths to be detected as external as they failed
this second check.

Change-Id: I560d8080c513c523c68f2750be332e9fd91de192
2022-03-04 13:44:14 +00:00
Ed Sanders 3b2dc7bbfb DesktopArticleTarget tests: Mock config using QUnit.newMwEnvironment
Also mock some additional config to prevent the page from trying
to reload on teardown.

Change-Id: Ib20c1f5277c5d5a99f5117c82b7cbdeab75d3279
2022-03-04 13:36:22 +00:00
Translation updater bot 93c969c766 Localisation updates from https://translatewiki.net.
Change-Id: Icf603c23a4dc811074a3f67195642b2f6634343d
2022-03-04 08:30:42 +01:00
jenkins-bot fdbad92e47 Merge "Update VE core submodule to master (4eacee1c5)" 2022-03-03 23:27:07 +00:00
jenkins-bot 96c32dcfb7 Merge "Allow auto-save recovery notifications to be suppressed" 2022-03-03 23:25:41 +00:00
Bartosz Dziewoński 0d9d4029d8 Update VE core submodule to master (4eacee1c5)
New changes:
ee207db24 Localisation updates from https://translatewiki.net.
03e6e3022 build: Update QUnit from 2.16.0 to 2.18.0
53881dfac Localisation updates from https://translatewiki.net.
616754593 Fix some missed instances of var declarations that can be moved inline
4eacee1c5 Simplify done() calls in tests

Change-Id: If9ed1ad849e41ada2dda3b108ea93a6cb8c09357
2022-03-04 00:11:36 +01:00