alistair3149
974e6b2750
feat(core): ✨ add config to change overflow inherited classes
2024-05-27 17:16:23 -04:00
alistair3149
c17aeab3fd
feat(core): ✨ rename wgCitizenTableNowrapClasses to wgCitizenOverflowNowrapClasses
...
Allow this config to use for more generic elements in the future
2024-05-27 15:54:34 -04:00
alistair3149
8ba6b55770
refactor(core): ♻️ clean up section functions
2024-05-25 23:51:50 -04:00
alistair3149
593c6406fb
refactor(core): ♻️ simplify section handling
2024-05-21 18:46:19 -04:00
alistair3149
f781773cba
fix(core): 🐛 pass namespace key as string
...
When the namespace key only consists of number, it can cause a TypeError.
Fixes : #849
2024-05-18 19:47:30 -04:00
alistair3149
c5e8c2bfc8
fix(core): 🐛 incorrect label text when edit count contains separator
2024-05-17 16:43:35 -04:00
alistair3149
e5fef2ac09
fix(core): 🐛 turn message into string before str_replace
2024-05-15 10:08:20 -04:00
alistair3149
84a65a303b
fix(core): 🐛 only pass string into str replace
2024-05-15 09:40:25 -04:00
github-actions
1827a1b5c9
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-15 06:44:12 +00:00
alistair3149
d4d71dc34a
fix(core): 🐛 incorrect try catch block
2024-05-15 02:43:50 -04:00
github-actions
c1aad746c3
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-15 06:31:31 +00:00
alistair3149
0006db65a2
fix(components): catch MalformedTitleException in titleFromText
2024-05-15 02:31:00 -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
049366aaa9
fix(core): 🐛 add missing var
2024-05-08 16:44:40 -04:00
alistair3149
f2393a74b8
feat(core): ✨ use relative time for sidebar last mod
...
Closes : #700
2024-05-08 16:39:47 -04:00
alistair3149
c2c95f0fda
feat(core): ✨ only show date in last mod sidebar
2024-05-08 15:55:27 -04:00
alistair3149
ed54bbfc33
fix(core): 🐛 hide sidebar lastmod on tablet
...
It is duplicated with footer
2024-05-08 15:36:04 -04:00
github-actions
d1101dd326
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-05-08 19:31:37 +00:00
alistair3149
89b5ff1b12
feat(core): ✨ add last modified to sidebar
2024-05-08 15:30:36 -04:00
alistair3149
9110ef1ca3
refactor(core): ♻️ use MainConfigNames constants instead of string literals
...
Related: T305805
2024-05-07 16:21:01 -04:00
alistair3149
76a93e962f
fix(Echo): 🐛 re-implement nojs Echo buttons
2024-05-06 15:28:56 -04:00
alistair3149
5d59a6d3c0
feat(core): ✨ enable caching for inline JS
2024-05-06 14:06:04 -04:00
alistair3149
a81bf1fc16
refactor(core): ♻️ re-implement VE action icon
2024-05-06 13:37:33 -04:00
alistair3149
3eab91ca07
feat(CiteThisPage): ✨ update icon to align with master branch
2024-05-03 18:54:16 -04:00
alistair3149
9f3b7dc178
feat(DiscussionTools): ✨ add icon to page subscribe button
2024-05-03 18:12:51 -04:00
alistair3149
3aba632382
feat(Cargo): ✨ add icon to purge button
2024-05-03 18:06:56 -04:00
alistair3149
4f9ded3c35
feat(core): ✨ render Echo icons in skin instead of js
2024-05-03 17:33:50 -04:00
alistair3149
ffa7d76df4
feat(core): ✨ change primary action links in user menu into buttons
...
Link such as sign up and sign in are converted into a button to make it more visible
2024-05-01 20:25:51 -04:00
alistair3149
00157436a5
fix(core): 🐛 stricter match for title parenthesis
...
* Only match the parenthesis at the end of the title
* Only match when a whitespace is before the opening parenthesis
2024-05-01 19:31:21 -04:00
alistair3149
a09e5e0b34
fix(core): 🐛 add missing file associated page icon
2024-04-27 13:29:23 -04:00
alistair3149
1997f126c0
feat(core): ✨ add wikidata icon to wikibase in toolbox
2024-04-27 13:25:37 -04:00
alistair3149
358f172542
feat(core): ✨ add qrcode icon to urlshortener in toolbox
2024-04-26 23:56:03 -04:00
alistair3149
52f4bab1a5
feat(core): ✨ only load the inline script if EnablePreferences is true
2024-04-25 19:33:11 -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
405eef0b9a
fix(core): 🐛 incorrect class of auto theme on page output
2024-04-25 15:19:51 -04:00
alistair3149
a741639085
feat(core): ✨ move theme preferences to clientPrefs
...
Since clientPrefs and other related features are not avaliable until MW 1.42,
many of them are backported as polyfill. Instead of using cookies, the polyfill
are using localStorage only like Citizen in the past.
There are many changes behind the scene, but the most important one being that
`skin-citizen-*` theme classes are now soft-deprecated, and replaced by the
standardized `skin-theme-clientpref-*` classes. There will be sufficient
time before the hard deprecation.
Related: #780
2024-04-24 20:23:54 -04:00
alistair3149
30ee7c1dd1
refactor(core): ♻️ use ResourceLoader to minify inline JS
2024-04-24 17:47:33 -04:00
github-actions
59aa0a9103
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2024-04-24 02:55:42 +00: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
alistair3149
3a73bdc640
fix(core): 🐛 deprecate more old ResourceLoader classes
2024-02-04 15:17:34 -05:00
alistair3149
69ba5d1e34
refactor(core): ♻️ avoid unnessecary declarations
2023-12-29 17:23:48 -05: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
alistair3149
0da7d8fe33
fix(core): 🐛 check for read access before attaching manifest
...
Since the manifest is generated by the MW API, users lacking read access
would not be able to access the manifest.
Closes : #747
2023-12-13 17:47:01 -05:00
alistair3149
c50a0cd0c1
refactor(core): ♻️ remove unnessecary params
2023-11-15 15:54:21 -05:00
David Lynch
6f5b761fe7
fix(core): let makeSections xpath query cope with multiple classes ( #733 )
...
* Let makeSections xpath query cope with multiple classes
As-of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/939783 in mediawiki-core, this class attribute is going to contain multiple classes. This would break the section-creation. This change to the query is backwards-compatible, so this should just inoculate the skin against future updates.
* Shorten line for mediawiki-lint compatibility
* fix: update html selector for parser output
Related: T350627
---------
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-11-15 15:15:25 -05:00