Commit Graph
100 Commits
Author SHA1 Message Date
Niklas Laxströmandjenkins-bot ee42cf07bb Add AwamiNastaliqBold
Fixes: I1a50a699543ad6502e452f7be380419246c3b6b8
Change-Id: I336f137750efd1cfe2a0eb46c2e746d7c116b081
2023-09-17 10:06:21 +00:00
Niklas Laxströmandjenkins-bot f02dd2f72c Use Linux newlines for consistency
Fixes: I86870360f00e5fda48bc1fbc2da47f807318e137
Change-Id: I3db4dcb6b1a413abf1fa5177f19a3e996873bf73
2023-09-14 09:23:22 +00:00
Niklas Laxström 49f42b3daa Remove all TTF font files
The TTF files are not served or used for anything else than converting
them to woff and woff2 formats, so there is no need to store them in the
git repo. In case a new format comes along, we would need to fetch these
from the git history or from upstream sources.

Change-Id: Iedc9162011b3b37587a2a176949afde6878d122d
2023-09-13 14:15:33 +03:00
Niklas Laxström 08645aae8b Update AwamiNastaliq to 3.100
Add bold variant.

Change-Id: I1a50a699543ad6502e452f7be380419246c3b6b8
2023-05-17 12:24:15 +03:00
Niklas Laxström 3ac1c1b9ce Update Junicode to 1.003
Bug: T253006
Change-Id: I34321e7430b04c8a4dcd8cc07015e65e31cc3362
2023-05-17 12:03:08 +03:00
Niklas Laxström 124b1a0ba0 Update instructions for converting ttf files
Change-Id: I51d18bdfd86dcc4b5eb665efa1adeb7062a6f141
2023-05-17 11:39:07 +03:00
Niklas Laxström 744eeae6a1 Update Amiri font to 1.000
Bug: T335231
Change-Id: Ief092bf4ffd6e06f208db14b79a18ce944dc9e1b
2023-05-17 11:37:34 +03:00
Niklas Laxströmandjenkins-bot 7d20f15b17 Remove ULSMobileWebfontsEnabled
To my knowledge never used since it was added in in 2013 with
commit fd885d9881.

Bug: T332837
Change-Id: Ia9ecb3e4dd47b8ce4dfaaa489a1ec5a71c378492
2023-04-05 06:21:40 +00:00
Niklas LaxströmandAmire80 25a5691942 Update language name search index
Incorporates changes from CLDR 42 via the cldr extension update.

Change-Id: I944b159fd128386887dc389ff453dd8e49ff8401
2023-03-04 13:41:23 +00:00
Niklas Laxström c4833878ec Update language name search index
Change-Id: Ic88c976e409a9f1ea0543365fc4493b1e2ef0cf1
2023-01-25 15:54:46 +02:00
Niklas Laxström 4afaa67bea LanguageNameIndexer: Declare extension dependencies
Change-Id: I052f2600902234cfba42c7e7226fc5dcf0c7e2d4
2022-07-26 15:15:53 +03:00
Niklas Laxström f306092156 Update language name search index
Change-Id: I74de81bf5822af9c623d7255749344d72f4b5532
2022-06-13 14:45:39 +03:00
Niklas Laxström 30a9342c01 Update language name search index
Change-Id: I7c5b02b4c31bd07afe1767c9ca45d70c3b16122f
2022-05-31 08:56:39 +03:00
Niklas Laxström 7b50fee222 Update language name search index
Change-Id: I963cbe6a55aab69ae799620b2e343cfd065c72aa
2022-03-14 09:33:59 +02:00
Niklas Laxströmandjenkins-bot 24a921d62c Update language name search data
Change-Id: I3734ae1bc889545e3022d2032291eb56cc3b9f61
2022-02-08 20:16:54 +00:00
Niklas Laxströmandjenkins-bot 10e3f3ebf8 Update language name search index
Change-Id: Ic0b72cc7b4832bbedbd8e8b7394ddf3e5f54bf98
2022-01-07 05:20:54 +00:00
Niklas Laxströmandjenkins-bot 9cf8ca3305 Add apioutput to unsupported skins
There is nothing ULS can do here: there is no entry point to change
language or access settings, there is nothing to type.

One exception would be loading web fonts. But I would argue that
that is a small set of users, who can use Special:ApiSandbox or
the wiki help pages.

Bug: T145186
Change-Id: I71de2a58f007ff03b01c9edc5ed6bed0e6524c4e
2021-11-17 13:14:05 +00:00
Niklas Laxström 9075dc7eea Update LanguageNameSearchData
Change-Id: I9a9360da306c31905ca8be3fc88661bfaa3c5365
2021-11-15 15:36:43 +02:00
Niklas Laxströmandjenkins-bot 6c773eb3f5 Update language name search data
Change-Id: Ib3c7c4d59ea15d1f9e3060b2eeb5bc54c9f0d739
2021-11-15 08:57:06 +00:00
Niklas Laxströmandjenkins-bot caeb7f17bd LanguageNameSearch: Fix typo in a comment
Change-Id: If69eda608eb6a6c9f131448ef3092684bf4af413
2021-10-26 03:45:00 +00:00
Niklas Laxströmandjenkins-bot fba3bf019e Update language name search data
Change-Id: If2bd2366e04c51a7454c7056ed5cdef955587e86
2021-10-25 14:25:10 +00:00
Niklas LaxströmandAbijeet 36d79be608 Remove ULSEnableAnon
I am not aware of anyone using this niche configuration where ULS
visible interface is enabled only for logged in users. Simplify
code and updated comments.

Change-Id: I9f0a5969fdc76ca790d961ee3035fdb27ece9c0c
2021-08-09 23:25:01 +05:30
Niklas Laxströmandjenkins-bot 03d099eddc Fix regressions in ULS entry point setup
* Link in preferences is again opening ULS
* "personal" entry point now works even with compact languages
  preference disabled

I added lots of comments and refactored this code to give things
better names to make this code easier to understand and maintain
and hopefully reduce the amount of bugs in the future.

Bug: T282956
Bug: T286574
Change-Id: I9cd6776ea6664e33fd63c49dfa77c5f004fba799
2021-07-16 19:23:34 +00:00
Niklas Laxström 18b1df166d Remove IRC
Change-Id: If1c3e178feffc1e5a0b2125e7f919853fdacbbfa
2021-06-23 10:18:20 +03:00
Niklas Laxström 0c45465786 Simplify extension.json with ResourceFileModulePaths
Change-Id: I4f00d86456132ed7a852cba0e9ce3e73a7d42193
2021-06-03 15:58:14 +03:00
Niklas Laxströmandjenkins-bot 469fecea14 Update language name search database
Change-Id: I54fc6292b0d2d31941ca12585f635389018b476c
2021-05-04 04:56:20 +00:00
Niklas Laxströmandjenkins-bot c79e0292aa LanguageNameIndexer: Small cleanups
Change-Id: I24509b35c403dcdae94f921ccc9b82c2e9c78aa7
2021-04-21 11:48:16 +00:00
Niklas Laxströmandjenkins-bot 2a044e1e0a Small cleanups and typo fixes
Change-Id: I4faeb4673fd5e903d2931d6071262a893d4009f5
2021-04-21 11:48:15 +00:00
Niklas Laxströmandjenkins-bot 929e707c49 Simplify undo tooltip positioning
OOUI is smart enough to handle this automatically:
https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-position
https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.PopupWidget-cfg-autoFlip

Change-Id: Ib8e4ea0e900b3ea0904b34d82c874227462e342e
2021-04-21 11:48:13 +00:00
Niklas Laxströmandjenkins-bot 97dffe3a9b Quick fix for LanguageNameIndexer
A better fix would be to use JSON directly from language-data.

Bug: T279971
Change-Id: Iaaf936c4ba46069df2a4855056e613d62f8d7118
2021-04-21 11:00:47 +00:00
Niklas Laxströmandjenkins-bot 50b345c83d Avoid JavaScript errors for tipsy if no entry point on the page
Bug: T278313
Change-Id: I48011eec9f7d876b914550012cc76e2209fc783c
2021-04-14 23:41:54 +00:00
Niklas Laxström 3af22f60d4 Fix ULS dialog positioning in some cases
In development environment, ev.currentTarget is the button.
In Beta Cluster, however, once ext.uls.mediawiki is loaded,
it is now the document (the event has bubbled up). I do not
know what causes the difference, but we can use the target.

Bug: T276255
Change-Id: Ie4c425510293a6f2ce81e4bf4a353f2c8d86d412
2021-03-24 10:32:08 +01:00
Niklas LaxströmandJdlrobson e8747a022d Avoid content language selector dialog resize shortly after opening
Small dialogs were resizing after loading when display and input
setting buttons were added to it. Now delay showing the dialog until
they are loaded.

Bug: T276248
Change-Id: I7033903737afedbd4be908c84d07656c468ce801
2021-03-22 18:21:16 +00:00
Niklas Laxström 8c835588f2 Fix positioning of input/display settings for new language selector
Unrelated behavior change: ULS language selection dialog is hidden while
display or input settings is open.

Also simplified dead code in addDisplaySettings.

Bug: T276248
Change-Id: Ia91a2b83e7ad4072016649230e2376b0793cbbff
2021-03-22 12:11:39 +00:00
Niklas Laxström ffc9c20fdb Update jquery.uls to 5c7ff63
* Support for onPosition callback

Change-Id: Ia877ce3dfcd1aa382b12470c378a65b36cc9abd5
2021-03-22 13:10:51 +01:00
Niklas Laxströmandjenkins-bot 6ac655fa9f Update jquery.uls to 835947c
* Remove explicit widths from dialogs
* Updated search icon

Change-Id: I8be38f4854b1f7f9181e974fbb10247d89f64153
2021-03-18 10:03:53 +00:00
Niklas Laxströmandjenkins-bot 0a692b227a Increase z-index for undo tooltip
When interface language selector is at the top, the undo tooltip
may appear under new Vector search box and other user tool links.

Change-Id: I36ac01511e590896afb0382c17ae90d01ba57314
2021-03-18 09:29:59 +00:00
Niklas Laxströmandjenkins-bot d3a3ac082b ULS: Avoid JS error for undo tooltip with new language button
Change-Id: Ib571152ff14754e186a3e7dd9e1c08bc22239032
2021-03-18 08:43:06 +00:00
Niklas Laxström 03547c68e3 Improve positioning for content language selector on narrow screens
Reported in
https://github.com/wikimedia/jquery.uls/pull/383#pullrequestreview-613761459

Instead of checking the left edge of the trigger, check the midpoint.
This is more reliable and does not cause the dialog to incorrectly
swap sides in narrow screens in LTR direction,

This patch does not touch the compact language links variant.

Bug: T276248
Change-Id: Ic734abb7b350852f8c5c10ced8456bf146df62d8
2021-03-17 10:29:18 +01:00
Niklas Laxströmandjenkins-bot dd8842517e Change ULS content language selector positioning
New Vector introduced a new content language selector trigger. This
code was hardcoding a behavior that works for compact language links
but is not so appropriate for other uses in the skin, which are out
of our control.

This patch aims to be a minimal change to allow other kinds of
behavior without changing the amount of tech debt. This changes
the default ULS dialog behavior to match the requirements shown
in the task. Compact language links specific behavior is retained but
only enabled for the compact language links trigger. The behavior
is chosen depending on the value of isUsingStandaloneLanguageButton().

For future changes, I propose that mw-interlanguage-selector class will
not have any styles attached to it. Whoever creates the trigger would
be in charge of styling it. Ideally that code would also define the
positioning and other behavior, but it is less clear how that can be
abstracted in a nice and decoupled way.

Bug: T276248
Change-Id: I52da6c2f5a1f25d64f322a3c8f6105da3b244b66
2021-03-16 22:36:18 +00:00
Niklas Laxströmandjenkins-bot 95b1137a57 ext.uls.interface: clarify code
Changes to comments, naming and code to increase clarity of the code
and explain better what it does and why. No change in behavior.

Change-Id: I998fcfd620c2ee737618c3ab8f41fb6dfdd2c99a
2021-03-16 22:36:16 +00:00
Niklas Laxströmandjenkins-bot 099f1f37c8 Add mw.uls.setLanguage
Translate's pagetranslation.uls module needs to override the action
that happens after language code is set. Currently it uses setlang
url parameter, which (no longer) works with Special:MyLanguage.

After this patch, it can use mw.uls.setLanguage and does not need
to reimplement it's functionality.

Turned mw.uls.changeLanguage into simple utility that calls
location.reload when the promise is resolved.

Change-Id: I9a648b146188dd252c239085bbe276165dc5f393
2021-03-16 10:16:06 +00:00
Niklas Laxströmandjenkins-bot 2172c8c1b2 CompactLinks: Update performance summary
Change-Id: I310fea3dbdd8cd232a0204ffd17e3a02c6723c8a
2021-02-11 08:00:48 +00:00
Niklas Laxströmandjenkins-bot 8b6d8f6898 Remove CompactInterlanguageList.prototype.getInterlanguageList
Unused since e3569d32a7

Change-Id: I2a0f74972b8f566d6462fa261231dbafe9a66665
2021-02-11 07:51:26 +00:00
Niklas Laxström b385d58aca Remove CompactInterlanguageList.prototype.getCommonLanguages
Unused since fcfa36ac77.

Change-Id: Ifae139d989fb6cb21fc3e19006306ed597d058e6
2021-02-10 14:39:25 +01:00
Nikerabbitandjenkins-bot 3ac9853220 Simplify ext.uls.preferences module
This is updated version of 61f1a9863a
which was reverted due to compatability issues which are no longer
present.

Change-Id: I05333ddc288171b6d867dce8a1d3efc1e1450e0a
2021-01-21 08:08:15 +00:00
Niklas Laxström 4fc7bc9200 Handle corrupted values in input preferences
Bug: T246370
Change-Id: I13c730a6d584ad2f73807e11d5ceadfcb16a6040
2021-01-19 08:45:05 +00:00
Niklas Laxströmandjenkins-bot 4387bb9d61 CompactLinks: Better handling of opening links to new tab/window
* Check for any of Shift, Ctrl or Meta
* Only do it for links
* Support both mouse and keyboard

Change-Id: I0b331b802e1d96ae0e0511746d6b42663db924b1
2020-11-16 14:51:47 +00:00
Niklas Laxströmandjenkins-bot 79a038f166 Handle Apply button little bit more sanely
Change-Id: I55d48de703662f139549d764bf7c1f235111d5ab
2020-11-02 11:08:25 +00:00
Niklas LaxströmandAbijeet Patro 5cb2aec0a1 Fix language switching using the undo tooltip
Introduced in I740600d18859422b2f98a5ef92d0321f6e9615a2.

We need to prevent the default action (navigating a link) so that
our custom code has a chance to run. Before it was synchronous so
it called location.href before default action had a chance to execute.
When it was made asynchronous, the default action got executed before
our custom code.

Change-Id: I292f99aa5f5ff536d8197174c317018462685866
2020-10-28 11:44:33 +00:00
Niklas Laxström 094c30bc1c Fix language selection using [...] button
Introduced in I740600d18859422b2f98a5ef92d0321f6e9615a2.

When onSelect was called for the new language, it set dirty to true.
Then the, now delayed, render function reset the dirty status to false.

There is no need to set dirty to false on render, so moved it to the
constructor.

Change-Id: Ibfa23f545c9d358e7e03fb299c238182ea449d7c
2020-10-28 09:29:47 +01:00
Niklas Laxströmandjenkins-bot 8d5d63b996 Regular update of language name search database
Change-Id: I7325d18a2da7f3a84f3d43efcc84029586319acd
2020-10-20 08:17:48 +00:00
Niklas Laxström 67ac68a412 Update jquery.webfonts
https://github.com/wikimedia/jquery.webfonts/commit/23dc38d05940d53c56ef2018b7111c17c74b2667

Bug: T265325
Change-Id: I56ada1b32b9c68c286abfc503ed7f9aec49c76e8
2020-10-19 09:02:36 +02:00
Nikerabbitandjenkins-bot fe6ae65c98 Revert "Update jquery.webfonts"
This reverts commit e0e69d35b2.

Reason for revert: causes more JS errors

Change-Id: Iceef32eb2f858d7b28e1e173d63c060c4407c2bd
2020-10-14 15:27:49 +00:00
Niklas Laxströmandjenkins-bot 98f0bb42bd Remove ULSCompactLinksForNewAccounts and ULSCompactLinksEnableAnon
These are disabled by default and on production. They are only enabled
in the beta cluster, which is not needed.

Change-Id: Ifa847fd8a1f3d7d2695a7c1c4a1a93f136091604
2020-10-14 13:02:25 +00:00
Niklas Laxström e0e69d35b2 Update jquery.webfonts
https://github.com/wikimedia/jquery.webfonts/commit/95ff58e089

Bug: T265325
Change-Id: Id28fbfa12dc7a9aba21c26cafb5427db8b052d0f
2020-10-13 13:35:32 +02:00
Niklas LaxströmandAmire80 d3b07d2ef0 Update language name search database
Change-Id: I2aaa0f975fc80ea42d88092f3bebfd505a48d253
2020-09-17 08:33:24 +00:00
Niklas Laxström 6e93ccfb2e Minimal fix for broken language trigger in ContentTranslation
Bug: T255331
Change-Id: If81613f6a9784535e25feef56335afb290023749
2020-06-16 09:39:02 +02:00
Niklas Laxström 6f11324b98 Update language name search database
Change-Id: Idec931027ae52e8f93dd989760466157d4880c22
2020-05-26 13:39:25 +02:00
Niklas Laxströmandjenkins-bot 61f1a9863a Simplify ext.uls.preferences module
Related to T246370

Change-Id: Iedef79c75ef0ab9c1baff5a0e6f1953c3c56ac91
2020-03-03 11:38:23 +00:00
Niklas Laxströmandjenkins-bot 81e7f9a888 Update language name search index with CLDR 36 data
Change-Id: I2a9ff49eb64917a4e11938e654b8d4d387f9a7c8
2019-11-26 10:58:19 +00:00
Niklas Laxströmandjenkins-bot d4786e5797 Update language name search index
Change-Id: I81fd17aa8d66a77b077f436c308702563b2b6693
2019-09-04 14:49:28 +00:00
Niklas Laxströmandjenkins-bot 379f4e940a Update language name search index
Change-Id: I621dcbe7ec2b60543d6842834c2d8419c4512875
2019-08-26 07:15:24 +00:00
Niklas Laxström ec20e81a37 Fix test failures by updating the failing test case
Change-Id: Ie0207d595f4c482e8d9b5ebbea641804bd3a55cc
2019-07-08 08:57:10 +02:00
Niklas Laxström cd5f6724c7 Update language name search index using CLDR 35.1
Change-Id: Iced51611124c59d29f2d5cd7f62cf6941af88d51
2019-05-27 10:14:21 +02:00
Niklas Laxström 6939354e16 Update language name search index
I noticed some language names are not searchable. I made it so
that autonyms from language-data are added to the search index.
Without this, languages not present in Names.php or in the CLDR
extension are not searchable via the API except by language code.

Change-Id: I51a9e2eb15fb40963e6edbf1db76133d84de7291
2019-05-21 17:21:21 +02:00
Niklas Laxström 4e5a1d2173 Remove extra empty line in css
Change-Id: I05245d755423e2ed4d7642e68c35d0d9662d728b
2019-01-09 09:06:42 +01:00
Niklas Laxströmandjenkins-bot e93e1bc845 Remove disabling of max-len rule and fix violations
Change-Id: I39ec2e572e569a05c11929dd17241653abf954ef
2018-12-15 17:12:18 +00:00
Niklas Laxströmandjenkins-bot dd390d2ec0 Do not precompute href or autonym in #getInterlanguageList
Only store reference to the element, where they can easily be read
when needed.

Also removed one unnecessary use of `self` as an alias.

Change-Id: I39fa897002037a6d6478a3fb1f40ac60833e392e
2018-10-11 13:07:25 +00:00
Niklas Laxströmandjenkins-bot 5ed2ff7d8f Update some outdated comments
Change-Id: I73c7b0549d7335019a1919229afa2e45a92ffacd
2018-10-10 16:14:05 +00:00
Niklas Laxströmandjenkins-bot d3cd069f7e Correct alignment of cog in interlanguage links in Vector skin
Bug: T162381
Change-Id: Ieaa75507d9c73eccbadc03d915bb7107e728fe0f
2018-09-17 18:44:47 +00:00
Niklas LaxströmandKrinkle 1857627c2f Drop support for discontinued freegeoip.net
There is a new service called ipstack, but their free option does
not support https, so by default there will not be any geoip service.

Bug: T199106
Change-Id: I9f4e59d736b50760f50c6214e2d191e72406d0d9
2018-09-07 19:45:21 +00:00
Niklas Laxströmandjenkins-bot 51d86ad5bb Move now static ext.uls.compactlinks to extension.json
Change-Id: Ie074918ca58de4c62a6ba44caa48d429e561bb6b
2018-09-06 05:43:53 +00:00
Niklas Laxströmandjenkins-bot fa9cea4627 Support UI language change when global preferences are present
Notable changes:
* First query global preferences to detect if global language setting
  is in use. If there is no global language setting, or if GlobalPreferences
  extension is not installed, it will fall back to changing the language
  as usual. If global language setting is found, it will add an override
  instead.
* If a local override is added, the undo tooltip is different and links to
  the global preferences page. The task design shows mw.notify style popup
  located on a bottom right corner (LTR). I deviate from the design and
  re-use the old undo tooltip with a different message instead, for
  consistency. The message is chosen depending on whether local storage
  value `uls-gp` is set to '1' (set in mw.uls.changeLanguage).
* I removed one use of deprecated mediawiki.api.options module. One other
  use still remains.
* I changed tooltip text generation from html acrobatics to use
  mw.message.parseDom. Because of that I also had to move the click handler
  to avoid buildup of click handlers.
* In message documentation fixed acronym -> autonym.

Bug: T198206
Change-Id: Ie2ed792e222be919522bd1cdea98042515a0619d
2018-08-30 22:40:17 +00:00
Niklas Laxström 677ec1fe01 Update jquery.ime to 4b92dee
Bug: T188767
Change-Id: I4308f8fc4f03122225f71db991d15f36c4d19f6f
2018-08-15 15:54:38 +02:00
Niklas Laxströmandjenkins-bot 99f5945704 Add Kartik Mistry to CREDITS and sync with extension.json
Change-Id: I38c00b9e4c18d2b0684c00984961811ccfd7334b
2018-04-12 08:15:18 +00:00
Niklas Laxström 3a70d258d5 Lock postcss-less to 1.1.3
Both 1.1.4 and 1.1.5 fail. Because of the dotdotdor issue it is
impossibly to know whether the 1.1.5 failures are legitimate.

Change-Id: I813d4767c27ef16bd6fc67577fe722548406cce2
2018-03-26 16:32:18 +02:00
Niklas Laxström 9a6e8a2bc9 Fix custom no results again
Since we added .i18n() call to upstream, it started overwriting
our text from the default data-i18n. Change data-i18n instead.

Bug: T188860
Change-Id: Ib7e9fb9590ace9c2a4ce2e2afb5a740ae4346be6
2018-03-05 14:17:12 +01:00
Niklas Laxström 9fc7ad5d84 Use a replica dedicated to slow queries (if available)
Bug: T187880
Change-Id: I2987b5ae9446cb0bf503978ee62861f2f969b1df
2018-02-21 16:11:08 +01:00
Niklas Laxströmandpetarpetkovic fca9b5c0e6 Make ULS trigger and settings more keyboard accessible
It's now possible to tab to "display settings" and "input settings"
and access them with enter or space. Also escape can now be used
to close the settings screen.

The ULS trigger in interlanguage position is a button to get
native accessibility features.

Also removed `mw.hook( 'mw.uls.settings.open' ).fire( 'uls' );` as
it didn't seem very useful and there wasn't immediately obvious
place to put it. The existing click handler could be removed because
the settings dialog themselves place event listeners.

The patch is a bit longer than strictly necessary because the CSS
was mess (rules in different modules, poorly organized) and I had
to bring related rules together to understand them.

Bug: T52793
Change-Id: Id37c2665b1c97b81ef57be27a1abfae0db6b34d5
2018-02-12 17:57:04 +01:00
Niklas Laxström e9051e2d3f Don't apply CLL to pages with the noexternallanglinks magic word
There is actually a magic word and a parser function. This checks
if all links are excluded (*).

Bug: T186590
Change-Id: Iaf860683f6e3bc9b00d5e8f19b8be7c0f1b20f5b
2018-02-07 20:13:46 +01:00
Niklas Laxström 1e15341fd1 Use dash as separator for non-prefix matches in language name search
Bug: T186480
Change-Id: Ib785e2b070e0c5a218b236be194417f0b1fbd102
2018-02-06 17:26:21 +01:00
Niklas Laxström 3a0f01643b Update packages
I was getting the following warning message:
npm WARN grunt-stylelint@0.8.0 requires a peer of stylelint@^7.8.0 but none was installed.

Change-Id: I5e671c5d89d315c3ee691dacda4c85ff3ff710a2
2018-01-31 15:58:38 +01:00
Niklas Laxström c2f0e297f5 Update jquery.uls to 98fff1b
* Translation updates
* Change for SVG background image styles
* Use searchAPI always when provided

Change-Id: I5a90d76d5acc1939cc7b670df43c4ea3347dfcb3
2017-11-29 14:11:17 +01:00
Niklas Laxström e87dd20cdd Improve ULS language search api
* Store prefixes and infixes separately in the data
* First match language code, then prefixes, then infixes
* Try to use suggestion either in user language or autonym first
* use formatversion=2 to avoid escaping Unicode

Using Language::fetchLanguageName might can have a small
performance impact. On the other hand there is now check
to skip languages we already found, avoiding some fuzzy
matching.

This is in a preparation for a change in jquery.uls to use
the search API more, while trying to reduce the amount of
weird autocompletion suggestions we show to the user.

Bug: T73891
Change-Id: Id94c5352d9a591969bf90144d1d2d5e758d08301
2017-11-27 14:57:42 +01:00
Niklas LaxströmandAmire80 a353c5ab65 Perform search on every word of language name
See e.g. T132021. This favours coverage over quality.

Change-Id: I3fc8fb1702802bc002c3d7e2941563840914f325
2017-11-23 09:14:10 +00:00
Niklas Laxström 56d3f2af43 Make output of LanguageNameIndexer more consistent
Change-Id: I13f06b9b1c65068206f1728f8a427c4ca46f28ec
2017-10-31 16:25:01 +01:00
Niklas Laxström 546d0cd3d9 Update jquery.uls to 34df56f
* Translation updates, including new languages
* Improved styling to match WikimediaUI style guide
* Improved handling of "no search results"

Change-Id: Ic74025dad4b81f0377af217ed6ba2f88264dca2f
2017-09-12 08:23:29 +02:00
Niklas Laxström aebe0ea7c2 Update version used in ULS_VERSION to match extension.json
Change-Id: Icced77930c4355de2db349ef95ad24416928f5b4
2017-08-25 15:11:55 +02:00
Niklas Laxström 4f65980301 Fix tooltip positioning in older MediaWiki versions
Bug: T164052
Change-Id: I931dff9d027bf8d8b54ed87816e2cb23c8a25f00
2017-04-28 08:30:40 +00:00
Niklas Laxström cb9493640a Update QUnit test for modern standards
* expect is no longer needed
* start/stop is deprecated, replaced with async/done

Change-Id: I8275af21df73f1c35a51f9a0dcf5a1811cf73ad8
2017-02-22 08:26:52 +01:00
Niklas Laxström 404d7a1241 Fix site picks: missing from globals
The isset was hiding this

Change-Id: If0301026e62e7d2b7249af68e336de4ff2ce3f54
2017-02-21 15:41:40 +01:00
Niklas Laxström 7baa3c4a3b Fix broken site picks feature for compact language links
Ref T153900#3011037 and T155995

Change-Id: I429cdf330b6bf70d1710cd5a041c782e6617cb39
2017-02-16 08:29:14 +01:00
Niklas LaxströmandAmire80 af37b31b8a Provide link to compact language links info page
Bug: T157344
Change-Id: Ib0d14ee0bdd639c14805412b1754f0f69f6daa63
2017-02-15 12:16:00 +00:00
Niklas Laxström eda6eb8e6c Start showing warnings for deprecated PHP entry point
Change-Id: I0ef9a614048ec139f15353eac554a91500119eca
2016-12-21 08:29:51 +01:00
NikerabbitandGerrit Code Review 69b902556e Merge "Update for API error i18n" 2016-11-30 12:42:07 +00:00
Niklas Laxström b0a1430705 ext.uls.compactlinks: add explicit dependency to mediawiki.jqueryMsg
This should fix the unparsed plural syntax shown in the sidebar
in the Wikipedias (only in production).

Bug: T148117
Change-Id: Idcbecd606e11d23a341421224b3f21fe03bf509e
2016-10-14 07:54:07 +02:00
Niklas Laxström 41f9a6f994 Undo tooltip: position when shown, not when created
Especially on Special:CX, where page layout changes soon after load
(for example scrollbars get added when more content loads), the tooltip
would be positioned incorrectly. Now it is more likely to be positioned
correctly, and will get re-positioned again if it is shown again after
being hidden.

Bug: T145483
Change-Id: I527fc62b196e55101950cffcc6ec43926f63aa4a
2016-09-15 08:06:40 +00:00
Niklas LaxströmandAmire80 3499b0a1b9 Update jquery.uls to a9dc11b
* Brings new design improvements.
* Also removed some local style overrides in the extension that are
  no longer needed and added new ones.
* Localisation updates

Bug: T138235
Bug: T137870
Change-Id: Iecec180ca01a40f0333e5b75914dcdb0c390f6b8
2016-09-06 11:27:07 +00:00
Niklas Laxström a94ffa4b21 Do not use tipsy class with new popup
The tipsy class has CSS styling from the tipsy module which do
not work with the OO.ui.PopupWidget. If the tipsy module gets
loaded for some other reason, the display will be slightly broken.
Fixed by renaming the class.

Bug: T96648
Change-Id: Ib0e11098506560f4de1c6402b8c980ad3ebc3879
2016-08-31 10:21:36 +02:00