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
github-actions
54835b1695
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-06-02 18:31:46 +00:00
alistair3149
403a109cc2
fix(core): 🐛 undefined items variable in drawer
2023-06-02 14:21:55 -04:00
alistair3149
54c8717d45
refactor(core): ♻️ simplify menu header implementation
2023-02-22 14:47:32 -05:00
alistair3149
33e37f5857
refactor(core): ♻️ reset sidebar index after for loop
2023-02-16 13:42:20 -05:00
alistair3149
c8d5a6e5f4
fix(core): 🐛 reset array index after removing toolbox from sidebar
...
This should fix the issue where SidebarBeforeOutput is not working in some scenario.
Fix : #580
2023-02-15 15:40:13 -05:00
github-actions
aacf10b20c
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-01-04 00:28:23 +00:00
alistair3149
8c4bd54d32
feat(core): ✨ only add upload link when it is enabled
...
Citizen should not add upload link to drawer when $wgEnableUploads is
false.
2023-01-03 19:26:43 -05:00
github-actions
ce25c752b6
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-11-21 17:42:58 -05:00
alistair3149
7eae7c6b14
feat(core): ✨ migrate sitestats to use RL icon module
2022-11-21 17:42:57 -05:00
alistair3149
a93f373269
refactor(core): ♻️ use core sidebar data
2022-11-21 17:41:06 -05:00
alistair3149
2bc022aba2
feat(core): ✨ rename $wgCitizenSiteToolsPorlet
to $wgCitizenGlobalToolsPorlet
2022-11-21 17:40:54 -05:00
alistair3149
fb9b17108d
style(core): 🎨 rename site tools to global tools
...
So that it aligns with the naming scheme from Desktop Improvements
2022-11-21 17:40:53 -05:00
alistair3149
bd07799a67
refactor(core): ♻️ drop getPorletData usage in drawer
2022-11-21 17:40:41 -05:00
alistair3149
00e1f57bad
feat(core): add config to use numberformatter without disabling sitestats
...
Add the ability to disable numberformatter independently from sitestats
Due to an upstream issue, numberforrmatter can throw an exception in some
instances (#474 ). This will help to mitigate the issue.
2022-06-14 15:56:03 -04:00
alistair3149
11c50a5669
refactor(core): remove redundant message keys
2022-05-26 17:57:57 -04: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
github-actions
8c0819c276
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2022-05-19 18:50:30 +00:00
alistair3149
c0cae44d41
feat(core): improve handling of number formatter for site stats
...
* The lack of PECL intl would not trigger an excpetion anymore,
instead it will default back to the regular PHP number format
* NumberFormatter will be based on user locale now instead of en_US
2022-05-19 14:46:35 -04:00
alistair3149
851356f3d9
feat(core): rename $wgCitizenPortalAttach
to $wgCitizenSiteToolsPortlet
...
The previous name was not self-explanatory.
2022-05-18 19:54:08 -04:00
alistair3149
148f2eeefd
docs: add missing param doc
2022-05-18 19:47:52 -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
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
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
alistair3149
7756c3447f
refactor(core): clean up SkinMustache polyfill for 1.35
2022-05-15 21:37:39 -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
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
88aed73f5c
feat: format sitestats with separators
2021-03-23 10:38:30 -04:00
github-actions
ad899801ff
ci: lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2021-03-22 21:01:56 +00:00
alistair3149
bbbcaba94d
feat: add site stats to drawer
2021-03-22 17:01:08 -04:00
alistair3149
b8fc3018ff
feat: implement wordmark in header
2021-03-04 15:08:32 -05:00
alistair3149
00448a095d
feat: add drawer subsearch part 2
2021-02-03 15:47:32 -05:00
H. C. Kruse
407d367e37
feat: add drawer subsearch ( #264 )
...
* bug: Fix display of theme toggle button if set to auto
* feat: Add subsearch script to drawer
An input in the drawer allows to search portal headings and links for matching text
- Hides all portals / links based on the search value
Feature can be enabled by setting `$wgCitizenEnableDrawerSubSearch = true;` in LocalSettings.
* bug: Fix subsearch
2021-02-03 15:01:50 -05:00
Hannes
876f2da4bb
feat: Allow to choose the link append portal
2021-01-29 21:49:01 +01:00
alistair3149
96a98da021
feat: use flexbox for overlay menu
2021-01-29 14:54:42 -05:00
Hannes
4275a4c7df
refactor: Use UploadWizard link if available
2021-01-28 15:54:18 -05:00
alistair3149
190d00dd0f
fix: fix mismatched alias for toolbox links
2021-01-28 14:53:07 -05:00
Hannes
ff49d0c9be
refactor: Create base partial class
2021-01-28 20:34:46 +01:00
Hannes
c1086c9295
refactor: Lint code
2021-01-28 12:27:55 +01:00
Hannes
75965bec27
refactor: Lint code
2021-01-28 12:21:58 +01:00
Hannes
32c8dc01d7
refactor: Split SkinCitizen into partials
2021-01-28 12:19:50 +01:00