Commit graph

204 commits

Author SHA1 Message Date
alistair3149 4e48a19503
refactor(core): ♻️ fix various phpcs issues 2024-11-04 18:42:57 -05:00
alistair3149 06b6f6c194
feat(header): add microinteraction to wiki logo/home button 2024-10-23 19:46:15 -04:00
alistair3149 9660faaa25
feat(core): backport class from MW core
This class is used to indicate whether a page is a main page.
It is not present in MW 1.39 and we have a use case for that.
2024-10-23 16:59:34 -04:00
alistair3149 a874e45560
refactor(core): ♻️ move toc flag to skin.json
It is just a simplet toggle so we should put it in skin.json instead.
2024-10-23 16:49:29 -04:00
alistair3149 404106f182
refactor(pageTools): ♻️ refactor pageTools into component 2024-10-23 16:08:58 -04:00
alistair3149 a213f1d6a0
feat(search): add keyboard hint to search card 2024-09-26 17:47:19 -04:00
alistair3149 f0d1176f2a
feat(pref): add clientpref to disable auto-hide navigation
Closes #841
2024-07-10 13:59:03 -04:00
github-actions 5d990f836e ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-06-05 19:28:35 +00:00
alistair3149 bfc4b30902
docs(skin): add doc on why runOnSkinTemplateNavigationHooks is needed 2024-06-05 15:28:25 -04:00
alistair3149 03da361b97
feat(components): rewrite template data partials into CitizenComponent components (#846)
- Refactor existing template data-related partials into CitizenComponent components
- Re-implement user menu header as UserInfo
- Add description text for anon and temp user in UserMenu
---------

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2024-05-15 01:24:43 -04:00
alistair3149 ce5532eb8c
refactor(core): ♻️ rename sidebar data to main menu 2024-05-08 16:47:46 -04:00
alistair3149 89b5ff1b12
feat(core): add last modified to sidebar 2024-05-08 15:30:36 -04:00
alistair3149 efe11ed410
refactor(prefs): ♻️ use literal values instead of integers in clientPref features 2024-04-25 17:51:54 -04:00
alistair3149 241dc96cfe
feat(prefs): move page width to clientPrefs
Now all of the existing prefs are migrated to clientPrefs,
we can discard the code from the old system.
2024-04-25 17:41:22 -04:00
github-actions 2d936d01c3 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2024-04-25 21:07:23 +00:00
alistair3149 0d52046523
feat(prefs): migrate font size to client preferences 2024-04-25 17:06:09 -04:00
alistair3149 5768ccc25b
feat(core): add pure black mode for dark theme 2024-04-25 15:45:24 -04: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
Eisa Ahmed e985f863bc
feat(ar): add support for Arabic fonts through Noto Arabic (#755)
* Added support for Arabic fonts through Noto Naskh Arabic.

* Added Noto Sans Arabic
2023-12-15 00:41:45 -05: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 fe4f4a91d2
feat(core): only apply title transform to content namespaces 2023-04-05 13:50:14 -04:00
alistair3149 51a11f336c
refactor(core): ♻️ simplify body formatter implementation
- Use Mustache body content instead of building from scratch
- SubHeadings should only be created when sections can be created
- Remove wrapHTMLPublic as it is no longer needed
2023-02-28 16:21:50 -05:00
alistair3149 54c8717d45
refactor(core): ♻️ simplify menu header implementation 2023-02-22 14:47:32 -05:00
alistair3149 d14ddd99e6
refactor(core): ♻️ simplify page title implementation 2023-01-31 14:54:20 -05:00
alistair3149 685a3ad1c4
refactor(core): ♻️ reduce the number of RL modules
It will improve the performance in module registration and also caching
2022-12-09 14:48:17 -05:00
alistair3149 e261abf8b5
fix(core): 🐛 clean up leftover drawer script references (#554)
Drawer sub search was removed earlier in a commit to refactor the drawer,
this commit is to clean up leftover references
2022-11-28 18:59:15 -05:00
github-actions 528d0077dc
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:47:20 -05:00
alistair3149 6def7ab990
feat(core): overhaul MW debug styles 2022-11-21 17:47:18 -05:00
alistair3149 997c152a2a
feat(core): migrate collapse icon to RL icon module 2022-11-21 17:43:19 -05:00
alistair3149 bc1dd38a12
feat(core): add back to top link to toc 2022-11-21 17:41:56 -05:00
alistair3149 622f368d1e
feat(core): add desktop styles for toc 2022-11-21 17:41:45 -05:00
alistair3149 3eaeaa15f7
refactor(core): ♻️ pre-work to allow Citizen to render ToC 2022-11-21 17:41:40 -05:00
alistair3149 f4b4b082e0
refactor(core): ♻️ drop isTOCEnabled in favor of template data 2022-11-21 17:41:37 -05:00
github-actions 2079f760d4
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:21 -05:00
alistair3149 a31babc297
refactor(core): ♻️ drop polyfill related to user menu 2022-11-21 17:41:20 -05:00
alistair3149 d78ffeadb4
refactor(core): ♻️ use core data for search box 2022-11-21 17:41:10 -05:00
alistair3149 a93f373269
refactor(core): ♻️ use core sidebar data 2022-11-21 17:41:06 -05:00
alistair3149 ac12ff0444
refactor(core): ♻️ use MW footer data and add onto it 2022-11-21 17:40:58 -05:00
alistair3149 4c9aa17bb2
refactor(core): ♻️ drop footer mustache fallback 2022-11-21 17:40:56 -05:00
alistair3149 4f74f0b4ad
refactor(core): ♻️ drop getFooterIcons 2022-11-21 17:40:49 -05:00
alistair3149 273df31b4d
refactor(core): ♻️ drop contentNavigationUrls 2022-11-21 17:40:48 -05:00
alistair3149 0ddd1ebf80
refactor(core): ♻️ clean up page tools implementation 2022-11-21 17:40:44 -05:00
alistair3149 05e3c6762d
refactor(core): ♻️ drop getPortletData usage in notifications 2022-11-21 17:40:43 -05:00
alistair3149 bd07799a67
refactor(core): ♻️ drop getPorletData usage in drawer 2022-11-21 17:40:41 -05:00
alistair3149 a123c64efa
refactor(core): ♻️ drop mediawiki.toc remover fallback
mediawiki.toc does not exist in 1.39 anymore.
2022-11-21 17:40:39 -05:00
alistair3149 de362b6f24
refactor(core): ♻️ drop logos fallback 2022-11-21 17:40:36 -05:00
alistair3149 bc246ecf27
refactor(core): ♻️ drop contentNavigationUrls fallback 2022-11-21 17:40:32 -05:00
alistair3149 04808c9abe
refactor: ♻️ do not manually specify templateDirectory
There is no need in 1.39 anymore
2022-11-21 17:40:27 -05:00
alistair3149 b89873d99c
feat(fonts): add Noto Sans CJK font support
This is by default disabled since it is only used for wikis with CJK language,
and also it adds around 100kb to the startup stylesheet. The fonts are subsetted
with Google Fonts slicing pattern, so it should be performance friendly
2022-10-27 16:53:12 -04:00
alistair3149 5be20a256c
feat(core): add jump to top link to sticky header 2022-09-30 11:24:06 -04:00