Commit graph

184 commits

Author SHA1 Message Date
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
alistair3149 a20e0dc5b2
fix(core): define template path in constructor instead
1.35 seems to not like relative path inside skin.json
2022-06-02 11:07:55 -04:00
github-actions da03fa550a ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-28 18:30:36 +00:00
alistair3149 0a68a178cc
refactor(core): use array_merge to get sidebar for toolbox
Spread syntax is not supported before PHP 7.4
2022-05-28 14:26:32 -04:00
alistair3149 c49b8a8594
refactor(core): define templateDirectory in skin.json instead 2022-05-26 18:05:21 -04:00
github-actions ba8f4fa865 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-26 21:59:04 +00:00
alistair3149 11c50a5669
refactor(core): remove redundant message keys 2022-05-26 17:57:57 -04:00
alistair3149 4d7fecc299
refactor(core): clean up polyfilled Mustache template data
Clean up Mustache-related polyfill for 1.35 against 1.39,
in preparation of the 1.39 refactor
2022-05-26 17:33:59 -04:00
github-actions 52d6e0afd5 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-26 21:00:50 +00:00
alistair3149 58d85ff426 refactor(core): normalize PHP namespaces used in Citizen
Related: T303102
2022-05-26 16:58:14 -04:00
alistair3149 cb6795de0a
refactor(core): clean up inconsistent use of partial variables 2022-05-22 15:06:49 -04:00
alistair3149 1df970eb41
feat(core): intergrate firstHeading changes from MW 1.39
* It is a temporary backport until we move to minimum 1.39
* Add support for blanking title introduced from 1.38
2022-05-21 16:24:35 -04:00
github-actions 0fbac154a7 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-18 23:45:19 +00:00
alistair3149 082b70f7e5
refactor(core): clean up drawer code
* Make it a bit more readable
* Define function return type
* Change default of CitizenPortalAttach to an empty string
* Site tools now attach to the first portlet when CitizenPortalAttach is empty
2022-05-18 19:43:50 -04:00
alistair3149 93087a4fbe
refactor(core): clean up personal menu implementation 2022-05-16 22:52:04 -04:00
github-actions a24d6daa85 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-17 01:45:15 +00:00
alistair3149 d030c22810
fix(core): add missing SkinAfterPorlet hook 2022-05-16 21:44:11 -04:00
github-actions e725efa531 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-16 01:39:00 +00:00
alistair3149 7756c3447f
refactor(core): clean up SkinMustache polyfill for 1.35 2022-05-15 21:37:39 -04:00
alistair3149 508c96ae9d
refactor(core): merge ToC script into core scripts 2022-05-12 17:18:39 -04:00
alistair3149 e0d5eb9657
feat(core): set toc-enabled through Mustache template
Since somewhere around MW 1.37, buildSkinFeatures() no longer have access to OutputPage.
That causes $out->isTOCenabled always return null, which makes ToC
broken for any wikis since 1.37. This should fix the issue for now.
More optimizations on the loading behavior will come soon.
2022-05-12 17:01:01 -04:00