alistair3149
1df223abfa
feat(core): update menu to be more inlined with MW core
...
* Use label instead of h3 for menu headings
* Rename portals to portlets according to core
* Replace label-class with heading-class
* Use has-label to hide labels instead of adding screen reader class
2022-05-18 17:14:24 -04:00
github-actions
5411a9e81a
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-05-18 18:23:24 +00:00
alistair3149
bbf7fa8b34
fix(core): don't use getActionName
< MW 1.38
...
getActionName does not exist before MW 1.38, use getAction instead
Bug: #459
2022-05-18 14:20:51 -04:00
alistair3149
176adba1fb
fix(core): decoratePersonalMenu should only return array
2022-05-18 02:56:15 -04:00
alistair3149
2ec20bae5d
fix(core): header function can return null ( #459 )
2022-05-18 02:54:16 -04:00
alistair3149
59607905be
fix(core): incorrect folder name for PSR-4 autoloader
...
The folder `Api` was not renamed correctly in previous commit, causing webapp
manifest to fail because MW can't locate the correct class.
2022-05-17 22:20:22 -04:00
alistair3149
4710d1e59a
refactor(core): remove MW version check for ULS
...
The selector is present in MLEB builds that supports 1.35. So we don't need
to exclude 1.35 anymore.
2022-05-17 09:54:31 -04:00
alistair3149
73c61e9b37
feat(core): use ULS for interwiki language menu if possible
2022-05-17 09:42:34 -04:00
github-actions
9ef2aab8b4
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-05-17 02:53:14 +00: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
29cd22fd7c
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-05-16 23:32:53 +00:00
alistair3149
9926140281
feat(core): add language count badge
...
Now the language button will have a badge indicating avaliable languages for the page
2022-05-16 19:31:11 -04:00
github-actions
b8976790e5
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-05-16 04:53:33 +00:00
alistair3149
442f241641
feat(core): add language menu to page tools
...
In other language menu and language variant menu are merged into a singular menu
with a toggle in page tools. This is the first step towards having better language
handling in the skin.
2022-05-16 00:50:00 -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
5614d2abdf
refactor(core): make api/ directory to use PSR-4 autoloading
...
Also make use of the correct namespace
2022-05-11 18:34:25 -04:00
alistair3149
5ccfbcfdeb
refactor(core): clean up drawer implementation
...
This is a part of the site header refactor
* Use relative units
* Add title to toggle button
* Remove unnessecary CSS
* Rewrite HTML classes
* Temporary remove drawer subsearch, it will be re-explored in a later patch
2022-05-10 10:52:36 -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
alistair3149
76a84d9e00
feat(core): add ARIA support to collaspible sections
...
* Also renamed toggle to indicator since it is misleading. The whole heading is the toggle itself.
2022-04-30 14:48:09 -04:00
Lens0021
2787d49a96
fix: find toolbox explicitly ( #448 )
...
The last item in the sidebar is not always the toolbox in some wikis, as result, a wrong portlet is displayed.
2022-04-30 02:54:13 -04:00
alistair3149
8eaaecf957
feat: do not format body content if MobileFrontend is active ( #409 )
...
MobileFrontend formats body content to enable features such as collasible headers.
Citizen should not attempt to format it as it will break features in MF.
2022-04-27 15:58:16 -04:00
alistair3149
2c79c061c4
feat: pass styles as style element instead of inline
2022-04-25 20:34:40 -04:00
alistair3149
7dbbc6b777
fix: add null check for user tagline
...
$editCount can return as null sometimes and throw an error
2022-04-25 02:03:13 -04:00
alistair3149
f05295195a
feat: move discussion to the top of the more menu
...
Also clean up some related-styles
2022-04-24 01:53:47 -04:00
github-actions
2cd9efa4d9
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-04-24 00:27:06 +00:00
alistair3149
3c729928d2
feat: sitestats should show exact number when it is <10000
2022-04-23 20:26:05 -04:00
github-actions
673445c718
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-04-23 05:32:12 +00:00
alistair3149
a8485ac76a
fix: remove unused debug code
2022-04-23 01:31:22 -04:00
alistair3149
6efff7f5da
feat: revamp drawer header
...
* wgLogo is always visible in the drawer
* Increase the size of wiki name
* Sitestats will now format large numbers into human readable formats (e.g. 12.2K, 3M, etc.)
* Sitestats now use icons instead of text as labels
* Remove wordmark for now, will revisit later
2022-04-23 01:30:02 -04:00
alistair3149
f770e250df
refactor: remove unused method
2022-04-19 18:20:06 -04:00
alistair3149
047f830d1a
fix: FOUC of light theme when user is using auto theme and prefer dark
...
The prefer-dark script was previously deferred which causes a delay to detect and switch theme for the user. It is now inlined to prevent the delay.
2022-04-19 18:17:53 -04:00
alistair3149
7ecf3a81eb
feat: depreciate theme preferences in MW user preferences
...
Just local storage is good enough
2022-04-19 17:31:23 -04:00
Lens0021
cebc35fd4b
feat: show footer desc and tagline in the content language ( #444 )
2022-04-17 12:23:43 -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
alistair3149
42df59f2b4
refactor!: drop security header support
2021-08-31 13:20:51 -04:00
alistair3149
f5a2a831d1
feat: add user customizable line height
2021-08-05 11:24:52 -04: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
d6968e9383
fix: undefined userPage variable
2021-06-22 11:23:42 -04:00
github-actions
c0ce609cd4
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-06-20 06:04:43 +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
82d48ac4e8
refactor: depreciate User->isLoggedIn (T270450)
2021-06-09 13:48:16 -04:00