Commit graph

599 commits

Author SHA1 Message Date
沈澄心 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
Simon Stier 2e3e5feb9b
feat(search): add SMW Ask API as search backend option (#625)
* feat: add SMW Ask API as search backend option
* feat: allow namespace prefix in smw ask query
2023-05-18 13:57:43 -04:00
Simon Stier a7b99d11f0
feat(core): add config var 'wgCitizenTableNowrapClasses' (#621)
* add config var 'wgCitizenTableNowrapClasses'
* refactor: load config via require
2023-05-18 13:53:58 -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 90890de53f
feat(core): add config flag to disable preferences menu 2023-03-27 14:08:38 -04:00
alistair3149 015b1e1b9a
fix(core): 🐛 respect config flag for default theme
This should fix the issue where CitizenThemeDefault is not working
2023-03-20 12:21:46 -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 b04b46d957
feat(core): add icon for urlshortener 2023-02-16 23:50:48 -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 3ec84349b1
feat(core): add support for user-interface-preferences menu
This should also fix the issue of ULS not showing up (#587, #425).
2023-02-15 18:38:02 -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
alistair3149 081a176edc
fix(core): 🐛 handle null exception for user group 2023-02-10 10:06:06 -05:00
github-actions 7a0f3a1294 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-01-31 19:55:38 +00:00
alistair3149 d14ddd99e6
refactor(core): ♻️ simplify page title implementation 2023-01-31 14:54:20 -05:00
CosmicAlpha 8aca2e8b68
refactor(core): ensure that shouldShowPageTools() returns a bool (#573) 2023-01-21 18:11:41 -05:00
alistair3149 a7406d8e32
fix(core): 🐛 default to auto theme unless set 2023-01-20 20:18:58 -05:00
github-actions 7d2e51574c ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-01-18 03:47:37 +00:00
alistair3149 4ae0f0cfcd
refactor(pwa): ♻️ rename manifest classes 2023-01-17 22:45:51 -05:00
alistair3149 68cb9b6c68
fix(pwa): 🐛 declare before adding array 2023-01-17 16:36:56 -05:00
alistair3149 e78ebd7165
fix(pwa): 🐛 incorrect var type 2023-01-17 16:34:02 -05:00
alistair3149 15ed16da2a
refactor(pwa): ♻️ use more approiate function to set maxage 2023-01-17 15:21:39 -05:00
alistair3149 01de2ec5f6
refactor(pwa): ♻️ better naming for manifest 2023-01-17 14:54:11 -05:00
github-actions e8be32f7c5 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2023-01-17 19:43:57 +00:00
alistair3149 d73fa67a31
feat(pwa): use proper manifest type instead of json 2023-01-17 14:42:49 -05:00
alistair3149 e40d4e65fa
fix(pwa): 🐛 syntax error in manifest API 2023-01-17 14:12:47 -05:00
alistair3149 d63025f084
fix(pwa): 🐛 parse error in manifest API 2023-01-17 12:40:18 -05:00
alistair3149 7c552fe763
fix(core): 🐛 more defensive check for logo
Resolve undefined index from wgLogos
2023-01-16 15:58:55 -05:00
alistair3149 e3bf5813c8
fix(core): 🐛 disable ULS-enhanced language button for now
Somehow the ULS popup does not appear after clicking the button.
Disabling it for now until it is fixed
2023-01-15 02:26:34 -05:00
alistair3149 aeed04b860
feat(core): add toolbox icon for CreateRedirect 2023-01-05 01:12:56 -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
alistair3149 203b0b42c3
feat(search): add MediaSearch to typeahead 2022-12-14 10:28:45 -05:00
alistair3149 685a3ad1c4
refactor(core): ♻️ reduce the number of RL modules
It will improve the performance in module registration and also caching
2022-12-09 14:48:17 -05:00
alistair3149 391266c0a7
feat(core): allow the use of custom search suggestion module
defines the search suggestion ResourceLoader module
used by the skin. It deprecates the  config
2022-12-02 17:59:45 -05:00
alistair3149 323acda0b1
feat(core): add icon to all talk page buttons
Talk page keys in the associated page array can vary based on namespace.
This commit will match keys end with 'talk' and match them to the speechBubble icon.
2022-12-01 22:34:29 -05:00
alistair3149 e261abf8b5
fix(core): 🐛 clean up leftover drawer script references (#554)
Drawer sub search was removed earlier in a commit to refactor the drawer,
this commit is to clean up leftover references
2022-11-28 18:59:15 -05:00
alistair3149 ad714dcfed
feat(core): allow collapsible sections with DiscussionTools wrappers on headings
Bug: T314714
2022-11-24 21:36:06 -05:00
alistair3149 81eadf9c8d
perf(core): ️ replace getElementsByTagName() with DOMCompat::querySelectorAll()
Should help with performance quite a bit
Bug: T317070
2022-11-24 21:26:55 -05:00
alistair3149 8710a2b905
feat(core): add icon support for some extensions in toolbox 2022-11-21 17:47:21 -05:00
github-actions 528d0077dc
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:47:20 -05:00
alistair3149 6def7ab990
feat(core): overhaul MW debug styles 2022-11-21 17:47:18 -05:00
github-actions 224c117f65
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:47:03 -05:00
alistair3149 cdb213d8b4
refactor(core): ♻️ only append class instead of replacing it 2022-11-21 17:47:02 -05:00
alistair3149 ab1981d24b
feat(core): migrate VE editsection to WMUI icon module 2022-11-21 17:47:00 -05:00
alistair3149 5c375bb71d
refactor(core): ♻️ use the same code pattern for SkinEditSectionLinks 2022-11-21 17:46:58 -05:00
alistair3149 2ec7da29a5
docs(core): 📚️ add Phabricator task number 2022-11-21 17:46:57 -05:00
github-actions 92e6cfa733
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:46:55 -05:00
alistair3149 e69a74ca29
refactor(core): ♻️ migrate editsection link to WMUI icon module 2022-11-21 17:46:54 -05:00
github-actions f7094d1a72
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:46:50 -05:00
alistair3149 b6defbfb3c
feat(core): add missing page tool icons 2022-11-21 17:46:49 -05:00
alistair3149 997c152a2a
feat(core): migrate collapse icon to RL icon module 2022-11-21 17:43:19 -05:00
alistair3149 f1a85d705a
docs(core): 📚️ add notes on extension icon issue 2022-11-21 17:43:17 -05:00
alistair3149 68c199d1e9
refactor(core): ♻️ handle VE merged edit buttons better 2022-11-21 17:43:16 -05:00
alistair3149 bcd62e5491
refactor(core): ♻️ remove unused variables 2022-11-21 17:43:13 -05:00
alistair3149 4b79b95d15
fix(core): 🐛 remove debug message 2022-11-21 17:43:11 -05:00
alistair3149 b3c2b2f10f
feat(core): add missing user talk icon 2022-11-21 17:43:08 -05:00
github-actions 9eeca3619a
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:43:07 -05:00
alistair3149 efac6f125a
feat(core): migrate sidebar menus to use RL icon module 2022-11-21 17:43:05 -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 b8ca3f8d72
feat(core): migrate views menu to use RL icon module 2022-11-21 17:42:54 -05:00
alistair3149 a2d0d31d2a
feat(core): migrate associated pages menu to use RL icon module 2022-11-21 17:42:52 -05:00
github-actions 0059c2c2ff
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:42:48 -05:00
alistair3149 ea68ce0d25
feat(core): migrate user menu to use RL icon module 2022-11-21 17:42:46 -05:00
alistair3149 f2d1ab3d23
feat(core): migrate user menu to use RL icon module 2022-11-21 17:42:45 -05:00
alistair3149 929fbd7906
feat(pwa): use wgLogos for PWA icons 2022-11-21 17:42:20 -05:00
alistair3149 9232c91352
feat(core): deprecate preconnect
Deprecating due to low usage. It was originally used for external assets
like analytics, but that should really be done through the extension instead
of the skin.
2022-11-21 17:42:16 -05:00
alistair3149 bc1dd38a12
feat(core): add back to top link to toc 2022-11-21 17:41:56 -05:00
alistair3149 622f368d1e
feat(core): add desktop styles for toc 2022-11-21 17:41:45 -05:00
alistair3149 3eaeaa15f7
refactor(core): ♻️ pre-work to allow Citizen to render ToC 2022-11-21 17:41:40 -05:00
alistair3149 5c962ca22f
refactor(core): ♻️ use new ResourceLoader namespace
Related: T308718
2022-11-21 17:41:38 -05:00
alistair3149 f4b4b082e0
refactor(core): ♻️ drop isTOCEnabled in favor of template data 2022-11-21 17:41:37 -05:00
github-actions 0c7c795484
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:35 -05:00
alistair3149 6ab486b82e
feat(core): add styles for temp user in user menu 2022-11-21 17:41:33 -05:00
alistair3149 bb27f801bd
docs(core): 📚️ add draft comments on user menu refactor 2022-11-21 17:41:31 -05:00
alistair3149 7bd34caad5
style(core): 🎨 rename personal menu to user menu 2022-11-21 17:41:30 -05:00
github-actions f12218c0dc
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:25 -05:00
alistair3149 e9677d6b87
refactor(core): ♻️ clean up user menu header 2022-11-21 17:41:23 -05:00
github-actions 2079f760d4
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:21 -05:00
alistair3149 a31babc297
refactor(core): ♻️ drop polyfill related to user menu 2022-11-21 17:41:20 -05:00
github-actions 6be1cb3571
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:15 -05:00
alistair3149 7b311db1a6
refactor(core): ♻️ use user-menu template data instead 2022-11-21 17:41:13 -05:00
github-actions be18ec8f0d
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:11 -05:00
alistair3149 d78ffeadb4
refactor(core): ♻️ use core data for search box 2022-11-21 17:41:10 -05:00
alistair3149 dfbaa67995
refactor(core): ♻️ drop responsive meta tag fallback 2022-11-21 17:41:08 -05:00
alistair3149 a93f373269
refactor(core): ♻️ use core sidebar data 2022-11-21 17:41:06 -05:00
github-actions 7b3e696f7b
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:41:00 -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 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 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
github-actions 7c50ed320d
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:40:46 -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
github-actions cf653a32a0
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-11-21 17:40:34 -05:00
alistair3149 bc246ecf27
refactor(core): ♻️ drop contentNavigationUrls fallback 2022-11-21 17:40:32 -05:00
alistair3149 2acb154164
refactor(core): ♻️ drop Action API fallback 2022-11-21 17:40:30 -05:00
alistair3149 81f3810a7e
refactor: ♻️ drop runOnSkinTemplateNavigationHooks fallback 2022-11-21 17:40:29 -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 bc8d1a320f
feat(pwa): use standalone mode
Now with the loading indicator back in, we can use standalone mode
2022-10-23 14:00:51 -04:00
github-actions 2c3db10bb9 ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-10-23 17:38:49 +00:00
alistair3149 56005ae627
feat(pwa): use wgLogos instead 2022-10-23 13:38:05 -04:00
alistair3149 72dfe31667
fix(pwa): 🐛 missing services variable 2022-10-22 18:59:26 -04:00
github-actions ca244f0bbf ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-10-22 21:37:34 +00:00
alistair3149 ffb4e34443
feat(pwa): add helpful shortcuts to manifest 2022-10-22 17:36:58 -04:00
alistair3149 4c655a2b32
refactor(pwa): ♻️ move icons into separate function 2022-10-22 17:05:19 -04:00
alistair3149 5e2be1d974
feat(pwa): define scope parameter
So that /w/ path will not throw you out of the PWA
2022-10-22 16:49:56 -04:00
alistair3149 d80b91a4a8
refactor(pwa): ♻️ sort parameter by W3 draft
https://www.w3.org/TR/appmanifest/
2022-10-22 16:30:34 -04:00
alistair3149 b51b0c2332
feat(core): use minimal-ui instead of standalone in webapp manifest
This will allow minimal navigation UI for easier navigation
2022-10-22 15:43:55 -04:00
alistair3149 bf66c60f3d
feat(core): tweak body footer styles 2022-10-01 19:36:09 -04:00
alistair3149 aaad2bb92a
feat(core): move footer info into body footer
They are related to the article/page instead of the whole site
2022-10-01 17:25:20 -04:00
alistair3149 5be20a256c
feat(core): add jump to top link to sticky header 2022-09-30 11:24:06 -04:00
CosmicAlpha 6384d02b74
feat: use loose comparison for checking if CitizenShowPageTools is true (#497) 2022-08-02 19:08:00 -04:00
alistair3149 e53afa51dc
fix(core): config CitizenThemeDefault should set theme correctly
Previously the config did set the theme correctly but get overridden by the inline
script to auto, this will fix it.

Closes: #418
2022-06-29 15:29:44 -04: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 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
alistair3149 681f4fd9fa
refactor(core): only get user-related stats when user is registered 2022-06-02 10:46:14 -04:00
alistair3149 756e398242
fix(core): check if user is registered before getting edit count
getEditCount() throws an exception if the user is not registered before 1.37
2022-06-02 10:37:31 -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 53ef5f0543
refactor(core): use core responsive mode for MW 1.36+
Use core responsive mode for MW 1.36+, and polyfill for MW 1.35
2022-05-26 18:12:08 -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 320b28c6d9
fix(core): call to member function null in user tagline 2022-05-24 18:18:23 -04:00
alistair3149 21633dcd3c
feat(core): separate header from personal menu list 2022-05-23 16:10:14 -04:00
alistair3149 eaad65fc3c
feat(core): decorate personal menu for anon users 2022-05-23 15:26:04 -04:00
github-actions c2bde2e6ed ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-22 19:13:26 +00:00
alistair3149 97282a30ba
docs: address various phpcs warnings and errors 2022-05-22 15:12:05 -04:00
github-actions 0256103668 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-22 19:08:18 +00:00
alistair3149 cb6795de0a
refactor(core): clean up inconsistent use of partial variables 2022-05-22 15:06:49 -04:00
github-actions f13bb2ebef ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2022-05-21 20:27:46 +00: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