Commit Graph

910 Commits

Author SHA1 Message Date
Pl217
54a466ee52 Merge pull request #283 from santhoshtr/keydown-simplify
Simplify key press event handlers
2018-02-06 11:19:45 +01:00
Pl217
9a98bbe561 Merge pull request #294 from santhoshtr/icon-color
Change the language icon color to gray and optimize
2018-02-06 00:22:55 +01:00
Santhosh Thottingal
d3921afeac Change the language icon color to gray and optimize
Changed the color to #54595d
2018-02-05 14:49:51 +05:30
Santhosh Thottingal
3161b34b2b language-data update: Add Western Armenian to known languages 2018-02-02 11:55:54 +05:30
Niklas Laxström
bb8b48aa38 Stop rendering languages twice on initial display
The resultHandler is responsible for updating the `LanguageCategoryDisplay`, so we should not call `render` separately in `search` when there is no search query.

https://phabricator.wikimedia.org/T185086
2018-01-31 16:52:23 +05:30
Niklas Laxström
104bf1c026 Merge pull request #293 from santhoshtr/no-results-styling
Style adjustments for no-results
2018-01-30 12:25:42 +02:00
Kartik Mistry
4b63f4337f package.json : maintenance updates
* Update minimum node.js engine to 6.11.1, stable LTS.
* http -> https
2018-01-30 02:19:40 -08:00
Santhosh Thottingal
081310b45e Style adjustments for no-results
* 20px spacing above and below the "No results found" message.
* 12px spacing above and below the search indications ("You can search by...")
* Adjusting the text color to use Base20 (#54595D)
* Adjust the background to use the same background color as the area above it (#FCFCFC).
* Add a top border in Base80 (#EAECF0) to separate both areas.

See https://phabricator.wikimedia.org/T175235
2018-01-30 12:52:47 +05:30
translatewiki.net
1e13a60eb3 Localisation updates from https://translatewiki.net. 2018-01-18 08:41:00 +01:00
Santhosh Thottingal
d122f371e3 Update documentation for no-results template (#289) 2018-01-16 16:10:53 +02:00
Pl217
4545872983 Use unidirection language icon
* Use single language icon for both LTR and RTL.
* Reduce padding between icon and autonym language name.
2018-01-16 17:39:32 +05:30
Niklas Laxström
d349937772 Do not group search results by region
* Documentation updates
* Do not group search results by region
* Disable grouping by script when region grouping is disabled
* Add docs, clarify names per code review
* Fix bool -> boolean for consistency
2018-01-16 17:04:29 +05:30
Pl217
fd41bbe5e1 - Replace ULS trigger icon with monochromatic one.
- Reduce left padding between icon and language autonym name.

Phab ID: T175769
2018-01-12 19:20:11 +01:00
Santhosh Thottingal
2aa43148bb Custom no-results message support (#286)
* Custom no-results message support
* Refactoring and clean up for LanguageCategoryDisplay class
* Document the options for LanguageCategoryDisplay class
* Reduce the spreading of no results handler code
* Add an option to accept no results template
* Remove unwanted, unused constructor too
* Use CSS to hide or show the no-results view
* Remove the unwanted noresults method in jquery.uls.core, directly
  call the same method of lcd.
* Add an example
* Support a function returning jquery element as the no-result handler
2018-01-12 16:05:11 +02:00
translatewiki.net
84e82520c8 Localisation updates from https://translatewiki.net. 2018-01-11 08:03:28 +01:00
Santhosh Thottingal
d3ff6f09f2 Upgrade jquery in the example to 3.2.1 2018-01-10 15:58:50 +02:00
Santhosh Thottingal
37c9d66a2b Use .siblings to locate the suggestions, clear elements for efficiency (#285) 2018-01-10 09:13:56 +02:00
Santhosh Thottingal
bccf103900 Removing assigned ids to elements that are not guaranteed to be unique (#284)
It is a bad practice to assign id attributes when there is no guarantee
about the uniqueness of element. ULS should function even if there are
more than one instance of it is present in a page.
2018-01-09 09:47:47 +02:00
translatewiki.net
12a872dd7b Localisation updates from https://translatewiki.net. 2018-01-08 09:10:44 +01:00
Santhosh Thottingal
f46aad0a01 Use .on('event', handler) pattern instead of .event(handler) 2018-01-08 12:22:02 +05:30
Santhosh Thottingal
e67e1e42ee Simplify key press event handlers
Remove eventSupported checks and just rely on jquery.keydown
2018-01-05 15:00:31 +05:30
Santhosh Thottingal
2a77df6c41 Use eslint and stylelint, fix all errors (#282)
* Use eslint and stylelint, fix all errors

* Remove jshint, jsbeautify
* Use Object.keys directly since that is available in all major browsers
* Fixes for eslint, stylelint errors
* stylelint is not included in grunt test yet because jquery.uls.mobile.css
  has so many !important and need to figure out whether they are really needed
2018-01-04 15:58:35 +02:00
translatewiki.net
ddadf086c5 Localisation updates from https://translatewiki.net. 2017-12-21 08:37:38 +01:00
translatewiki.net
2601f8e1b6 Localisation updates from https://translatewiki.net. 2017-12-14 08:34:52 +01:00
Niklas Laxström
1c649d6f24 Merge pull request #281 from santhoshtr/languagedata-update-december07
Update language data
2017-12-07 13:03:26 +02:00
Santhosh Thottingal
63e1b06514 Update language data
* Make Spanish available under the Oceania region
* Add the Kumyk language
2017-12-07 16:05:33 +05:30
translatewiki.net
cafaf7ea93 Localisation updates from https://translatewiki.net. 2017-12-04 09:31:07 +01:00
Niklas Laxström
98fff1b5a2 Merge pull request #280 from santhoshtr/remove-autonym
Remove autonym font and example based on it
2017-11-29 13:24:25 +02:00
Santhosh Thottingal
0da69818b9 Remove autonym font and example based on it 2017-11-29 16:36:47 +05:30
James D. Forrester
f47692a390 Drop -webkit-linear-gradient image CSS fallback
This reduces the payload of CSS slightly (and in the few cases where these
were not just present but @embed'ed, significantly), at a cost of giving
those user agents which don't support the un-prefixed rule the icons as
PNGs rather than SVGs (i.e. Chrome < 25, Safari < 6.1, Android < 4.4).

We made this change for MediaWiki back in November 2015 in T118815. This
repo is not alone in not having noticed. :-)

Change-Id: I1469bce3dd6c6eed0d291a0cb8a19eceeaff4c10
2017-11-29 15:56:04 +05:30
Santhosh Thottingal
3a453ad545 Merge pull request #276 from wikimedia/search
Improve search code
2017-11-29 15:51:16 +05:30
Niklas Laxström
7119bdff5c Ensure autofillLabel is undefined if searchApi fails 2017-11-29 10:31:55 +02:00
Kartik Mistry
9a5b3d9c36 Merge pull request #279 from wikimedia/nodejs
Update nodejs to a newer, supported version
2017-11-29 12:30:12 +05:30
Niklas Laxström
08ff5a7e18 Update nodejs to a newer, supported version 2017-11-29 08:39:22 +02:00
Niklas Laxström
82eee93dbd Improve search code
* Always use searchAPI if provided
* Clean up code flow to be easier to follow

https://phabricator.wikimedia.org/T73891
2017-11-27 14:22:01 +01:00
translatewiki.net
2f459c6f36 Localisation updates from https://translatewiki.net. 2017-11-16 11:01:07 +01:00
translatewiki.net
333c58765b Localisation updates from https://translatewiki.net. 2017-11-13 09:16:31 +01:00
translatewiki.net
74834be582 Localisation updates from https://translatewiki.net. 2017-11-06 09:08:18 +01:00
translatewiki.net
6f58e60ba8 Localisation updates from https://translatewiki.net. 2017-10-19 09:09:06 +02:00
translatewiki.net
bf8d0aa09a Localisation updates from https://translatewiki.net. 2017-10-16 10:39:31 +02:00
Niklas Laxström
aaee50ed1c Merge pull request #274 from Volker-E/master
Update `.uls-lcd-region-title` to conform to WCAG level AA
2017-10-13 10:07:51 +03:00
Niklas Laxström
2fd96dd684 Merge pull request #271 from santhoshtr/language-data-node-module
Use wikimedia/language-data node module for data
2017-10-12 14:48:27 +03:00
translatewiki.net
aefb46fe6f Localisation updates from https://translatewiki.net. 2017-10-12 08:43:04 +02:00
Santhosh Thottingal
74a4426778 Remove all tests that are already covered by language-data 2017-10-11 16:04:09 +05:30
Volker E
18a2006708 Update .uls-lcd-region-title to conform to WCAG level AA
Updating `.uls-lcd-region-title` to be on the safe side with color contrast, 
conforming to WCAG level AA no matter what `background-color` grey or `font-size`.
2017-10-09 19:45:07 -07:00
Volker E
06db9e0ff7 Merge pull request #1 from wikimedia/master
Update from origin master
2017-10-09 19:42:51 -07:00
translatewiki.net
2bcbd17e1c Localisation updates from https://translatewiki.net. 2017-10-05 07:53:45 +02:00
translatewiki.net
082ba26c47 Localisation updates from https://translatewiki.net. 2017-09-21 09:27:23 +02:00
translatewiki.net
c17d0417ae Localisation updates from https://translatewiki.net. 2017-09-18 13:25:20 +02:00
translatewiki.net
1c1dd1aa4d Localisation updates from https://translatewiki.net. 2017-09-14 07:23:49 +02:00