Commit graph

1441 commits

Author SHA1 Message Date
alistair3149 0c0f4f4ffb
feat(search): strip wikitext link syntax in search 2023-08-25 18:00:55 -07:00
alistair3149 2f2dc3328c
feat(search): search template namespace when template syntax {{}} is used 2023-08-25 17:28:39 -07:00
alistair3149 96f6361851
feat(core): use quiet hover color for menu items 2023-08-25 17:03:38 -07:00
alistair3149 853e9a9190
feat(search): increase description extract character limit to 100 2023-08-24 15:30:03 -07:00
alistair3149 042f2bfbba
feat(search): use square aspect ratio for suggestion thumbnail 2023-08-24 15:23:46 -07:00
alistair3149 2c1940c4bb
fix(search): 🐛 search history URL should not force fulltext 2023-08-23 21:26:34 -07:00
alistair3149 f6d3fc95e3
feat(search): add search history to initial state 2023-08-23 17:44:01 -07:00
alistair3149 bd41516190
fix(search): 🐛 do not add empty term to search history 2023-08-22 14:21:06 -07:00
alistair3149 dc9f6f034c
feat(core): tweak more menu spacing 2023-08-22 14:02:50 -07:00
alistair3149 87886b39a0
fix(core): 🐛 only increase search input font size for mobile 2023-08-14 23:49:01 -04:00
alistair3149 07aa883195
fix(core): 🐛 increase search input font size to 1rem
Closes: #513
2023-08-14 23:48:09 -04:00
alistair3149 1155b72636
refactor(search): ♻️ use forEach loop for better readability 2023-08-12 14:20:53 -04:00
alistair3149 98984efd25
refactor(search): ♻️ avoid unnessecary const declaration 2023-08-12 14:16:29 -04:00
alistair3149 02662315f8
refactor(search): ♻️ minor cleanup 2023-08-12 14:11:06 -04:00
alistair3149 122819b67e
fix(core): 🐛 bump search input font size
It might fix #513 hopefully
2023-08-11 18:45:04 -04:00
alistair3149 c8ba546be8
feat(core): reduce space between section indicator and title 2023-08-07 17:20:40 -04:00
alistair3149 2016e2a30c
refactor(search): ♻️ break down some of the suggestions functions 2023-08-07 17:00:56 -04:00
alistair3149 b015647cc6
fix(search): 🐛 avoid double escape for equal sign 2023-08-07 16:20:36 -04:00
alistair3149 028103799e
fix(search): 🐛 incorrect SMW search result mapping 2023-08-07 16:18:26 -04:00
alistair3149 59ceaf56cf
refactor(search): ♻️ add groundwork needed for search history 2023-08-04 20:02:42 -04:00
alistair3149 29d0f4b1ff
fix(core): 🐛 incorrect value for aria-controls 2023-08-04 17:31:11 -04:00
github-actions 70a003d941 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-08-04 21:25:01 +00:00
alistair3149 283aa86888
refactor(search): ♻️ break down updateTypeahead function 2023-08-04 17:24:22 -04:00
alistair3149 c39a4e6796
refactor(search): ♻️ clean up keydown event 2023-08-04 16:33:17 -04:00
alistair3149 c21348d0c7
refactor(search): ♻️ initial state of the elements should be undefined 2023-08-04 16:27:37 -04:00
alistair3149 0aa776b14c
refactor(search): ♻️ clean up composition events 2023-08-04 16:26:19 -04:00
alistair3149 9921a00c17
fix(search): 🐛 ensure that onFocus event are properly fired 2023-08-04 03:37:28 -04:00
alistair3149 0dd3a82c06
fix(search): 🐛 handle multiple redirect key in Action Search Client 2023-08-03 21:20:47 -04:00
alistair3149 6fb2b1aaf9
fix(search): 🐛 always set label for search clients 2023-08-03 21:01:21 -04:00
alistair3149 4b1a39eb1c
fix(search): 🐛 avoid double encoding conditions and printouts 2023-08-03 20:33:14 -04:00
alistair3149 e24e0e7429
docs(search): 📚️ add jsdoc type to typeahead elements 2023-08-03 19:30:57 -04:00
alistair3149 fd224071db
refactor(search): ♻️ clean up typeahead init and event functions 2023-08-03 19:25:41 -04:00
alistair3149 0afb40fc86
feat(core): adapt typography to user preferences
* Add reduced gradation for dark mode
* Bolder font for prefer high contrast
* Thinner font for prefer low contrast
2023-08-03 17:41:54 -04:00
alistair3149 eec5c6fd64
feat(search): reimplement multi search command experiment
Search commands start withs slash and includes: action, rest, ask
2023-08-02 22:07:41 -04:00
alistair3149 4241f8522d
fix(search): 🐛 exit early if there are no query results 2023-08-02 21:28:39 -04:00
alistair3149 17593b8202
refactor(search): ♻️ separate search query and client from typeahead.js 2023-08-02 20:16:39 -04:00
alistair3149 9862000b11
refactor(search): ♻️ clean up search query handling 2023-08-02 19:56:09 -04:00
alistair3149 51db19938c
feat(search): reimplement SMW Ask API search
Instead of relying on hardcoded config, you can simply type the
conditions as search query (e.g. `[[Has population::1200]][[:+]]`).
2023-08-02 19:02:50 -04:00
alistair3149 431599cb59
refactor(search): ♻️ reimplement and clean up search clients
This should make the search clients more readable and easier to expand
2023-08-02 18:56:08 -04:00
alistair3149 c2431ebeba
refactor(search): ♻️ clean up result fetch functions
Based on Vector implementation
2023-07-31 20:59:50 -04:00
alistair3149 e866edc3a5
fix(toc): 🐛 add null check for link 2023-07-30 19:44:34 -04:00
alistair3149 ba5bea704e
style: 🎨 apply recess order to styles 2023-07-27 21:19:27 -04:00
alistair3149 65fe56d2ac
fix(core): 🐛 incorrect selector for menu backdrop styles 2023-07-27 20:31:04 -04:00
alistair3149 4e931f6812
fix(core): 🐛 add missing hover styles for source element in thumbnails 2023-07-24 15:37:38 -04:00
alistair3149 4f19de3b62
feat: add support for source element in thumbnails
In prepration of supporting Extension:PictureHtmlSupport
2023-07-24 15:36:22 -04:00
github-actions 9abdfe595e ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-07-23 18:18:57 +00:00
沈澄心 6e44db80ef
fix(MediaWiki): break down long filenames for broken files (#698)
* Update content.thumbnails-common.less

* Update content.media-common.less
2023-07-23 14:18:05 -04:00
沈澄心 f0f0a07121
feat(MediaWiki): update bad file styles for bad image list (#697)
* Update content.media-screen.less

* Update content.thumbnails-screen.less

* Update content.thumbnails-screen.less

* Update content.media-screen.less
2023-07-23 14:16:38 -04:00
沈澄心 69a6350de3
fix(VisualEditor): don't merge edit buttons when JS is disabled (#696) 2023-07-23 03:12:30 -04:00
github-actions 8bfa8b5e6a ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-07-20 22:18:16 +00:00
alistair3149 fab4d27273
feat(core): add overflow handling for citizen inner header 2023-07-20 18:17:14 -04:00
github-actions 099b239267 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-07-19 10:01:52 +00:00
alistair3149 c14889f8c0
feat(toc): remove background and color transition from top link
It is expensive and unnecessary
2023-07-19 06:01:04 -04:00
github-actions 9796560793 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-07-19 09:58:48 +00:00
alistair3149 2f64346c25
feat(core): add overlay transition to header menus 2023-07-19 05:57:55 -04:00
alistair3149 a6bc1a8d4b
feat(core): sync input styles with Codex and OOUI 2023-07-16 20:48:37 -04:00
alistair3149 f555f3c832
fix(core): 🐛 only apply hover style to wikitable tbody rows 2023-07-16 20:25:04 -04:00
alistair3149 739fa8504c
fix(core): 🐛 enter key should not clear search input
Use span instead of button element. As button element will make
enter key triggering the clear button.
2023-07-16 16:48:14 -04:00
alistair3149 85f036c2f8
feat(core): remove expensive CSS animation
Avoid paint and layout triggering transitions
2023-07-16 15:32:13 -04:00
alistair3149 1aba52b870
fix(core): 🐛 inconsistent search focus behavior 2023-07-16 03:50:43 -04:00
alistair3149 0e42030d39
fix(core): 🐛 do not insert pseudo elements to input element
It is invalid and does not work in Firefox.

Closes: #689
2023-07-16 02:49:33 -04:00
alistair3149 7ea3b94d23
feat(core): tweak sitestats font size 2023-07-14 21:48:25 -04:00
alistair3149 703fac6294
feat(core): add overlay as affordnance to popup menus 2023-07-14 18:18:18 -04:00
alistair3149 aef94e31cb
fix(toc): 🐛 init observer only when there are headlines 2023-07-11 22:01:04 -04:00
alistair3149 0b65a05556
refactor(core): ♻️ break down main function in skin.js 2023-07-11 21:44:34 -04:00
alistair3149 7136c6e96e
fix(core): 🐛 incorrect spacing within page tools buttons 2023-07-11 01:50:19 -04:00
alistair3149 2bf20397e1
feat(core): use filter-invert CSS variable to flip color
This decouple the filter style from the  class.
Instead, filter-invert can be redefined if needed (e.g. :root.skin-citizen-dark)
2023-07-10 16:56:56 -04:00
alistair3149 6cddf85131
feat(search): add clear button to search box 2023-07-10 16:23:48 -04:00
alistair3149 d0b1b8982c
refactor(search): ♻️ simplify search box structure 2023-07-10 15:13:21 -04:00
alistair3149 25169379a9
fix(core): 🐛 do not underline footer places links 2023-07-07 21:04:22 -04:00
alistair3149 73ff64f7da
fix(mediawiki): 🐛 do not add external link icon to external interwiki 2023-07-07 20:54:27 -04:00
alistair3149 88a5d4de9d
fix(search): 🐛 abort search request if there are no query 2023-07-07 20:44:45 -04:00
alistair3149 4ef5376cab
refactor(core): ♻️ clean up various eslint errors 2023-07-07 18:00:14 -04:00
alistair3149 608a2be932
feat(search): support all existing gateway in multi search 2023-07-07 17:56:01 -04:00
alistair3149 f843f4d1ee
fix(search): 🐛 undefined LESS variables 2023-07-07 17:26:12 -04:00
alistair3149 6adc0d7eab
feat(search): add experimental multi gateway search
This is experiemental and just a proof of concept for further work.
For now, typing `\/ask` in the search query will trigger SMW Ask search
2023-07-07 17:24:34 -04:00
alistair3149 c7e45177cd
feat(core): update menu transition styles and implementation
Same as the previous commit, the transition is now accessible as a CSS variable (transition-menu)
2023-07-07 17:02:27 -04:00
alistair3149 a7f9c55c88
feat(core): update hover transition styles and implementation
The timing and easing function are defined separately than the property.
It is now accessible as a CSS variable (transition-hover)
2023-07-07 16:36:38 -04:00
alistair3149 6874f0a7e2
refactor(core): ♻️ unify Citizen menu styles 2023-07-07 15:26:31 -04:00
alistair3149 45c970e70b
feat(core): increase spacing between menus in drawer 2023-07-06 16:39:04 -04:00
alistair3149 6b1a7d1ece
feat(core): use medium font weight for menu links 2023-07-06 15:00:11 -04:00
alistair3149 462d1dd4ac
feat(core): use consistent spacing for menu elements 2023-07-06 00:55:42 -04:00
github-actions 00f252ae26 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-07-03 12:49:36 +00:00
沈澄心 2891d042cc
fix(core): skin preference support for Safari on iOS < 12.2 (#680)
* Update skins.citizen.preferences.js

* Update skins.citizen.preferences.js

* Update inline.js

* Update SkinHooks.php

* Update skins.citizen.preferences.less

* Update variables.less

* Update theme.less

* Update theme.less

* Update skins.citizen.preferences.js

* Update skins.citizen.preferences.js

* Update skins.citizen.preferences.js

* Update skin.js
2023-07-03 08:48:41 -04:00
H. C. Kruse a1139e7797
fix(Tables): Check if element.parentNode is null (#681)
Happened on the recent changes table. While the added line in TableNowrapClasses also fixes this, I've left it in as a safeguard.
2023-07-03 08:48:15 -04:00
沈澄心 1cd993c664
fix(core): add webkit prefix for sticky to support Safari < 13 (#679)
* Update layout.less

* Update TableOfContents.less

* Update mixins.less

* Update ext.echo.special.less

* Update mediawiki.rcfilters.filters.ui.less

* Update README.md
2023-06-28 13:58:21 -04:00
沈澄心 32ffa7cc23
feat(core): update MediaWiki notification style (#673)
* Update variables.less

* Update cssvariables.less

* Update mediawiki.notification.less

* Update cssvariables.less

* Update variables.less

* Update mediawiki.notification.less

* Update mediawiki.notification.less

* Update mediawiki.notification.less

* Update theme.less
2023-06-26 15:25:12 -04:00
github-actions 94e55cf698 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-06-23 06:32:21 +00:00
沈澄心 1137a374d8
feat(core): add border to message boxes (#672)
* Update Header.php

* Clean up and ucfirst group member name

* Update theme.less

* Update interface-message-box.less

* Update interface-message-box.less

* Update theme.less

* Update interface-message-box.less

---------

Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-06-23 02:31:35 -04:00
沈澄心 a61746bf8e
fix(core): header icon position in older browsers (#670)
* Update Header.less

* Update skins.citizen.preferences.less

* Update Header.less

* Update Header.less
2023-06-22 13:49:26 -04:00
github-actions 657c6cf294 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-06-21 18:31:20 +00:00
沈澄心 89a9957cd4
refactor(core): avoid using ES2020+ methods (#669)
Replace ??, ?., and replaceChildren() for better compatibility; hide pref panel in unsupported browsers 

* Update mixins.less

* Update Sections.less

* Update TableOfContents.less

* Update interface-edit-section-links.less

* Update mixins.less

* Update Sections.less

* Update TableOfContents.less

* Update interface-edit-section-links.less

* Update sections.js

* Update tableOfContents.js

* Update mwRestApi.js

* Update mwRestApi.js

* Update skins.citizen.preferences.js

* Update mwActionApi.js

* Update typeahead.js
2023-06-21 14:30:45 -04:00
alistair3149 f74244ff46
fix(core): 🐛 force section indicator and heading to the start
Extensions like DisucssionTools might add unexpected element to the header.
This should fix the layout issue
2023-06-20 15:02:15 -04:00
github-actions 14db25faac ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-06-20 18:30:08 +00:00
沈澄心 07d7a730b8
fix(core): prevent propagation of click event on .mw-editsection, .mw-editsection-like (#667)
* Update sections.js

* Update sections.js
2023-06-20 14:29:37 -04:00
沈澄心 914b81010e
fix(ooui): fix max-width of OOUI TextInputWidget (#666)
* Update mediawiki.special.search.styles.less

* Update hacks.less

* Update mediawiki.special.search.styles.less
2023-06-20 14:12:15 -04:00
alistair3149 434d2688fc
refactor(core): ♻️ less specific link underline selector 2023-06-15 14:37:07 -04:00
alistair3149 717d16af35
feat(core): display real name in user menu when exists
Closes: #652
Co-authored-by: SimonTaurus <simon.stier@gmx.de>
2023-06-09 21:34:55 -04:00
alistair3149 abe3359c82
refactor(core): simplify tagline separator selector 2023-06-08 16:06:31 -04:00
github-actions a928b278fa ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-06-08 20:04:36 +00:00