Commit graph

95 commits

Author SHA1 Message Date
alistair3149 dea1628ce3
feat(search): change search text label to advanced search if AdvancedSearch is enabled 2024-10-03 17:06:42 -04:00
alistair3149 3e63a3f6cc
feat(search): show ElasticSearch at search footer if it is enabled 2024-10-03 16:46:28 -04:00
alistair3149 fdc6eaee20
feat(Echo): upgrade Echo buttons for consistency
This is similiar to how it is handled in Vector.
We are forcing the Echo button to render in the same way as it was initially.
This took me so many hours sigh.
2024-07-05 20:37:52 -04:00
alistair3149 c5c47aeb5f
feat(search): use Short URL in search suggestion
This should avoid a bunch of 302 redirects using the old Special:Search links.
2024-07-05 16:21:10 -04:00
alistair3149 e9cdf04c22
fix(hooks): 🐛 add missing icon for talk pages 2024-06-06 14:52:30 -04:00
alistair3149 9556c44183
fix(hooks): 🐛 use arrowPrevious icon for return action on talk page 2024-06-06 14:45:41 -04:00
alistair3149 e372c4b733
fix(hooks): 🐛 add missing article page icon on talk pages
Fixes: #867
2024-06-06 14:43:34 -04:00
alistair3149 ea5524f9e2
fix(hooks): 🐛 always add editsection classes as string
Fixes: #829
2024-06-05 00:04:19 -04:00
alistair3149 3dd50b6475
docs(hooks): fix incorrect typehint 2024-06-04 23:37:16 -04:00
alistair3149 974e6b2750
feat(core): add config to change overflow inherited classes 2024-05-27 17:16:23 -04:00
alistair3149 c17aeab3fd
feat(core): rename wgCitizenTableNowrapClasses to wgCitizenOverflowNowrapClasses
Allow this config to use for more generic elements in the future
2024-05-27 15:54:34 -04:00
alistair3149 f781773cba
fix(core): 🐛 pass namespace key as string
When the namespace key only consists of number, it can cause a TypeError.

Fixes: #849
2024-05-18 19:47:30 -04:00
alistair3149 9110ef1ca3
refactor(core): ♻️ use MainConfigNames constants instead of string literals
Related: T305805
2024-05-07 16:21:01 -04:00
alistair3149 76a93e962f
fix(Echo): 🐛 re-implement nojs Echo buttons 2024-05-06 15:28:56 -04:00
alistair3149 5d59a6d3c0
feat(core): enable caching for inline JS 2024-05-06 14:06:04 -04:00
alistair3149 a81bf1fc16
refactor(core): ♻️ re-implement VE action icon 2024-05-06 13:37:33 -04:00
alistair3149 3eab91ca07
feat(CiteThisPage): update icon to align with master branch 2024-05-03 18:54:16 -04:00
alistair3149 9f3b7dc178
feat(DiscussionTools): add icon to page subscribe button 2024-05-03 18:12:51 -04:00
alistair3149 3aba632382
feat(Cargo): add icon to purge button 2024-05-03 18:06:56 -04:00
alistair3149 4f9ded3c35
feat(core): render Echo icons in skin instead of js 2024-05-03 17:33:50 -04:00
alistair3149 ffa7d76df4
feat(core): change primary action links in user menu into buttons
Link such as sign up and sign in are converted into a button to make it more visible
2024-05-01 20:25:51 -04:00
alistair3149 a09e5e0b34
fix(core): 🐛 add missing file associated page icon 2024-04-27 13:29:23 -04:00
alistair3149 1997f126c0
feat(core): add wikidata icon to wikibase in toolbox 2024-04-27 13:25:37 -04:00
alistair3149 358f172542
feat(core): add qrcode icon to urlshortener in toolbox 2024-04-26 23:56:03 -04:00
alistair3149 52f4bab1a5
feat(core): only load the inline script if EnablePreferences is true 2024-04-25 19:33:11 -04:00
alistair3149 a741639085
feat(core): move theme preferences to clientPrefs
Since clientPrefs and other related features are not avaliable until MW 1.42,
many of them are backported as polyfill. Instead of using cookies, the polyfill
are using localStorage only like Citizen in the past.

There are many changes behind the scene, but the most important one being that
`skin-citizen-*` theme classes are now soft-deprecated, and replaced by the
standardized `skin-theme-clientpref-*` classes. There will be sufficient
time before the hard deprecation.

Related: #780
2024-04-24 20:23:54 -04:00
alistair3149 30ee7c1dd1
refactor(core): ♻️ use ResourceLoader to minify inline JS 2024-04-24 17:47:33 -04:00
github-actions 59aa0a9103 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-04-24 02:55:42 +00:00
alistair3149 ff3acf3b71
fix(core): 🐛 use runOnSkinTemplateNavigationHooks instead
This should somewhat ensure Citizen gets to run its hook after all the extensions.
Hopefully it will resolve various issues regarding hook load orders.

Closes: #812
2024-04-23 22:55:16 -04:00
alistair3149 3a73bdc640
fix(core): 🐛 deprecate more old ResourceLoader classes 2024-02-04 15:17:34 -05:00
alistair3149 d62bdca69c
refactor(core): ♻️ update title class to use the newer standard 2023-08-25 16:52:58 -07:00
H. C. Kruse 661ad61486
ci: add PHPUnit tests (#712)
* ci: WIP add PHP Unit Tests

* ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details

* ci: Add phpunit tests

---------

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2023-08-25 14:39:37 -07:00
alistair3149 69163bee55
fix(search): 🐛 undefined wgScript config 2023-08-03 20:37:24 -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 eecd21db76
feat(core): add icon for Email this user 2023-07-06 15:02:14 -04: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
github-actions 2c5539900c ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-06-12 02:13:23 +00:00
沈澄心 e771c728e1
fix(core): add menu icons for "Special pages" and "Upload file" (#664)
* Update SkinHooks.php

* Update Drawer.php

* Update skin.json
2023-06-11 22:12:50 -04:00
Simon Stier 2e3e5feb9b
feat(search): add SMW Ask API as search backend option (#625)
* feat: add SMW Ask API as search backend option
* feat: allow namespace prefix in smw ask query
2023-05-18 13:57:43 -04:00
Simon Stier a7b99d11f0
feat(core): add config var 'wgCitizenTableNowrapClasses' (#621)
* add config var 'wgCitizenTableNowrapClasses'
* refactor: load config via require
2023-05-18 13:53:58 -04:00
alistair3149 90890de53f
feat(core): add config flag to disable preferences menu 2023-03-27 14:08:38 -04:00
alistair3149 015b1e1b9a
fix(core): 🐛 respect config flag for default theme
This should fix the issue where CitizenThemeDefault is not working
2023-03-20 12:21:46 -04:00
alistair3149 b04b46d957
feat(core): add icon for urlshortener 2023-02-16 23:50:48 -05:00
alistair3149 3ec84349b1
feat(core): add support for user-interface-preferences menu
This should also fix the issue of ULS not showing up (#587, #425).
2023-02-15 18:38:02 -05:00
alistair3149 a7406d8e32
fix(core): 🐛 default to auto theme unless set 2023-01-20 20:18:58 -05:00
alistair3149 aeed04b860
feat(core): add toolbox icon for CreateRedirect 2023-01-05 01:12:56 -05:00
alistair3149 203b0b42c3
feat(search): add MediaSearch to typeahead 2022-12-14 10:28:45 -05:00
alistair3149 391266c0a7
feat(core): allow the use of custom search suggestion module
defines the search suggestion ResourceLoader module
used by the skin. It deprecates the  config
2022-12-02 17:59:45 -05:00
alistair3149 323acda0b1
feat(core): add icon to all talk page buttons
Talk page keys in the associated page array can vary based on namespace.
This commit will match keys end with 'talk' and match them to the speechBubble icon.
2022-12-01 22:34:29 -05:00
alistair3149 8710a2b905
feat(core): add icon support for some extensions in toolbox 2022-11-21 17:47:21 -05:00