alistair3149
06d10b99ce
fix(core): 🐛 check if page content model and whether the title can exist before formatting
2024-05-29 12:24:07 -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
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
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
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
69ba5d1e34
refactor(core): ♻️ avoid unnessecary declarations
2023-12-29 17:23:48 -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
github-actions
43b7ce4717
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-09-11 18:05:27 +00:00
alistair3149
672740a23a
fix(core): 🐛 check for mw-heading wrapper first before mw-parser-output
...
The current implementation will fail with the new mw-heading wrapper
2023-09-11 14:04:43 -04:00
github-actions
7b349faa73
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-09-11 00:52:03 +00:00
alistair3149
45a726d77f
fix(core): 🐛 stricter selector for collasible headers in formatter
2023-09-10 20:51:28 -04:00
alistair3149
a6a9fe27e4
fix(core): 🐛 stricter selector for collapsible header
2023-09-10 19:19:31 -04:00
alistair3149
2f40541bc4
feat(core): ✨ prefix citizen section classes
2023-09-10 19:00:52 -04:00
alistair3149
d62bdca69c
refactor(core): ♻️ update title class to use the newer standard
2023-08-25 16:52:58 -07:00
H. C. Kruse
661ad61486
ci: add PHPUnit tests ( #712 )
...
* ci: WIP add PHP Unit Tests
* ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
* ci: Add phpunit tests
---------
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2023-08-25 14:39:37 -07:00
github-actions
4b1128b3b7
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-08-25 00:57:30 +00:00
alistair3149
b350660f4c
refactor(core): ♻️ use namespaced title class
...
Bumped minimum MW requirements to 1.39.4 as it is nessecary.
Related: T166010, T338114
2023-08-24 17:56:42 -07:00
alistair3149
1cfe3cdfc8
fix(core): 🐛 catch IntlException for NumberFormatter
...
This should at least avoid Citizen throwing an exception.
However, it won't address the root cause of the issue.
Closes #474
2023-08-24 14:58:10 -07:00
alistair3149
8605c6c6dc
fix(core): 🐛 deprecate User::idFromName
2023-07-17 17:59:28 -04:00
沈澄心
4f6e34e05b
fix(core): undefined $msgGender error in Tagline.php ( #684 )
...
* Update Tagline.php
* Update Tagline.php
2023-07-04 23:19:36 -04:00
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
alistair3149
717d16af35
feat(core): ✨ display real name in user menu when exists
...
Closes : #652
Co-authored-by: SimonTaurus <simon.stier@gmx.de>
2023-06-09 21:34:55 -04:00
alistair3149
c793959416
feat(core): ✨ use gender symbol instead of pronoun in user tagline
...
Related: #657
2023-06-09 01:40:15 -04:00
github-actions
a928b278fa
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-06-08 20:04:36 +00:00
沈澄心
25d25e381b
feat(core): expand user page tagline and allow citizen-tagline to be parsed ( #657 )
...
* Add registration date to user tagline
* Add contribution link to edit count in user tagline
* Add gender to user tagline
* Allow `citizen-tagline` to be fully parsed
---------
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-06-08 16:03:48 -04:00
沈澄心
9a0ffcc186
feat(core): use member names instead of group names in user menu ( #656 )
...
* Update Header.php
* Clean up and ucfirst group member name
---------
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-06-05 13:30:57 -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
github-actions
350041c5f7
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-04-05 17:51:09 +00:00
alistair3149
fe4f4a91d2
feat(core): ✨ only apply title transform to content namespaces
2023-04-05 13:50:14 -04:00
alistair3149
497f2e6058
refactor(core): ♻️ deprecate wfExpandUrl in favor of UrlUtils
...
Related: T319340
2023-03-27 14:45:08 -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
33e37f5857
refactor(core): ♻️ reset sidebar index after for loop
2023-02-16 13:42:20 -05:00
github-actions
1f718ce6e1
ci: 👷 lint code to MediaWiki standards
...
Check commit and GitHub actions for more details
2023-02-16 17:24:12 +00:00
alistair3149
0c23e50d62
feat(core): ✨ convert tagline to langauage variant when appliable
2023-02-16 12:23:17 -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