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
alistair3149
44f9bc0a7c
feat(core): style parenthesis text in FirstHeading differently
...
Parenthesis text in FirstHeading are commonly used for disambiguation purposes
Therefore it does not have to be as prominent as the title
2022-05-07 00:45:51 -04:00
Lens0021
449278f0be
feat: use template data for page tools if available ( #440 )
...
* Use template data for page tools if available
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
* emptyPortlet class is added by the core
* ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
* Update PageTools.php
* Set toolbox to always valid data
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2022-04-14 00:30:33 -04:00
github-actions
0c6f22b10d
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-03-05 23:14:48 +00:00
Jon Robson
3e6a240c48
buildContentNavigationUrls is deprecated
...
Using runOnSkinTemplateNavigationHooks as a short term fix.
On the long term, we're hoping to empower skins to have more
control over menus which will hopefully mean a lot of the code
in Citizen can be simplified.
Fixes : #422
2022-02-23 00:49:34 -05:00
github-actions
446faaf7f4
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-07-30 02:49:04 +00:00
alistair3149
bc59fb82aa
refactor: clean up footer functions
2021-06-20 02:03:43 -04:00
alistair3149
0fa725ad77
refactor: do not load ToC styles when not needed
2021-06-09 13:56:32 -04:00
alistair3149
5fcba674ba
feat: avoid loading unnessecary features
2021-06-09 13:49:55 -04:00
alistair3149
c43e5279dd
feat: remove lazyload modules
...
It is replaced by the core config `$wgNativeImageLazyLoading`
2021-05-17 16:55:11 -04:00
alistair3149
b2bd79196d
feat: rework search module ( #386 )
...
* feat: rewrite search module (WIP)
There are some caveats because it is a WIP
- Messages are not i18n yet
- Missing placeholder suggestion thumbnail
- Only REST mode works
- Missing greeting message when there is no search query
- Code might look like a mess (I learned JS not long ago)
* refactor: remove old search module
* feat: clean up search suggestion styles
* feat: hide overflow for suggestion text
* feat: add action API and various cleanup
* feat: re-add abort controller
* feat: add message support and tweaks
* feat: use virtual config instead of ResourceLoader hook
* fix: missing comma in const definition
* feat: add ARIA attributes
2021-05-17 16:34:14 -04:00
alistair3149
51ac47691e
feat: implement reading preferences
...
allow visitor to adjust theme, font size, and page width
2021-04-27 13:51:03 -04:00
alistair3149
e722cd0560
feat: add shortcut key to page title tooltip
2021-04-26 11:50:04 -04:00
alistair3149
e2b4a4e49a
feat: show page title on header after scroll
...
The page header also acts as a jump to top link
2021-04-26 11:39:27 -04:00
alistair3149
8aafb50886
fix: load ToC module when ToC present but not a content page
2021-04-17 21:24:08 -04:00
github-actions
4ee628dde4
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-04-09 17:08:41 +00:00