Commit graph

286 commits

Author SHA1 Message Date
alistair3149 c795578dad
feat: merge namespace and variant links into more menu 2021-02-26 16:21:11 -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
alistair3149 6633f89033
fix: fix display of theme toggle button if set to auto (#261)
Co-authored-by: Hannes <hannes@octofox.de>
2021-01-31 12:38:37 -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
Hannes 97850860b7
fix: Fatal error 2021-01-28 21:09:52 +01:00
alistair3149 190d00dd0f
fix: fix mismatched alias for toolbox links 2021-01-28 14:53:07 -05:00
Hannes cdb05ec7fd
refactor: Move footer and page links/tools 2021-01-28 20:35:31 +01:00
Hannes ff49d0c9be
refactor: Create base partial class 2021-01-28 20:34:46 +01:00
Hannes 24a2a38b4b
feat: Convert hooks to HookHandler interface 2021-01-28 12:46:27 +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
H. C. Kruse ea3c2daa4c
feat: move some toolbox links into the drawer (#241)
* feat: Move some toolbox links into the drawer

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-27 16:53:01 -05:00
alistair3149 e142800957
feat: move toolbox to page more menu 2021-01-27 14:52:49 -05:00
H. C. Kruse da9cfd8dcf
fix: Removing User Page if user has no groups 2021-01-26 21:55:46 +01:00
alistair3149 bf91a7f83c
feat: tweak indicator styles 2021-01-26 15:38:27 -05:00
alistair3149 d88f933771
fix: Fix incorrect layout on recent changes page 2021-01-26 14:56:11 -05:00
alistair3149 6081341418
feat: integrate page tools into page header 2021-01-26 14:25:46 -05:00
alistair3149 f995756747
feat: add user groups to personal menu (#233)
* feat: Add user groups to personal menu

* feat: tweak user group styles

Co-authored-by: Hannes <hannes@octofox.de>
2021-01-21 19:16:21 -05:00
alistair3149 f65bf157bd
feat: move personal menu to header (#231)
* fix: fix header background bleeding in VE

* feat: move personal menu out of drawer to header

* feat: update personal menu styles in smaller breakpoints

* fix: fix typo in qqq documentation

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* feat: add title text to personal menu button

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-19 15:56:42 -05:00
alistair3149 2c93c68cb2
feat: add support for different logo configurations and variants (#229)
* feat: add support for different logo configurations and variants

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-19 11:46:17 -05:00
alistair3149 4beb15e43d
feat: update layout in different breakpoints (#227)
* feat: update layout in different breakpoints

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* feat: remove negative margin for namespace and catlinks

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-18 15:18:39 -05:00
alistair3149 f64a047bda
refactor: clean up header structure and styles 2021-01-15 19:56:59 -05:00
alistair3149 b8e6d0d5d1
feat: use wordmark for footer and aside 2021-01-13 15:23:44 -05:00
Hannes 36d6885b34
refactor: use this over self 2021-01-13 10:23:10 +01:00
github-actions 5231c3444e ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-01-13 08:39:35 +00:00
Hannes 9fb094a3c0
refactor: add theme class through php 2021-01-13 09:38:26 +01:00
alistair3149 9d3df250de
refactor: merge CSS variables in core styles 2021-01-12 14:31:35 -05:00
H. C. Kruse dde77d19dc
fix: fix incorrect files from rebased PR (#203)
* refactor: Fix switching theme

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

* refactor: Fix bad rebase

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-11 20:12:14 -05:00
H. C. Kruse b4488f8ddb
fix: fix theme switcher logic (#202)
* refactor: Fix switching theme

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-01-11 17:13:01 -05:00
github-actions 70b74107de ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-01-11 18:47:47 +00:00
alistair3149 e9d9015d63
docs: add missing parameter 2021-01-11 13:47:21 -05:00
alistair3149 83bac9e4f6
refactor: separate theme toggle styles from core module 2021-01-11 13:31:49 -05:00
alistair3149 22980f9302
style: rename theme switcher RL module 2021-01-11 13:12:49 -05:00
alistair3149 603a50b7d2
refactor: move theme toggle before search 2021-01-11 12:22:32 -05:00
github-actions 90e1826134 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-01-11 17:17:37 +00:00
H. C. Kruse e30e6ce52c
feat: implement theme toggle (#201) 2021-01-11 12:13:59 -05:00
alistair3149 5a8c15f3c2
refactor: move theme preference underneath skin preferences 2021-01-10 17:38:11 -05:00
alistair3149 88ecd756e2
refactor: make theme handler more versatile 2021-01-10 15:40:25 -05:00
github-actions 002240b384 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-01-09 22:15:47 +00:00
Hannes 7a8a60a853
test: Fix CI 2021-01-09 23:07:05 +01:00
Hannes dde580e2de
Merge remote-tracking branch 'upstream/master' into feature/darkmode-switch 2021-01-09 23:03:23 +01:00
Hannes 028169ea42
feature: Make color scheme configurable 2021-01-09 22:58:43 +01:00
alistair3149 2110aa8d55
Add search loading indicator 2020-10-16 15:23:15 -04:00
Kodiak 195c0d6e0a
Naming Capitalization issue fix
Naming Capitalization issue fix
2020-10-08 23:17:46 -07:00
github-actions ff4349601a Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-21 19:49:31 +00:00
alistair3149 e0fe0b88eb
Simplify get config method in skin hook 2020-08-21 15:48:23 -04:00
alistair3149 331d7c9508
Disable core search module using search config 2020-08-21 15:38:11 -04:00
alistair3149 0b87fa8641
Remove low quality image placeholder for lazyload
The original implementation is not robust and make assumptions about a wiki configuration
2020-08-20 12:36:50 -04:00
github-actions c04d4b102e Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 f816fdb830 Remove unused config variable 2020-08-12 12:59:57 -04:00
alistair3149 a413f5bd21 Update comment format in SkinCitizen 2020-08-12 12:59:57 -04:00
alistair3149 58789b9034 Add null check for last modified message 2020-08-12 12:59:57 -04:00
github-actions be0ada233c Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 a96925b031 Use SkinMustache and merge CitizenTemplate into SkinCitizen 2020-08-12 12:59:57 -04:00
alistair3149 193c027eb4 Separate language portal from other portals in sidebar 2020-08-12 12:59:57 -04:00
alistair3149 22832841da Use standalone for display in Webapp manifest 2020-08-12 12:59:57 -04:00
alistair3149 fc0692f62d Merge footer functions 2020-08-12 12:59:57 -04:00
github-actions 0e67691569 Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:57 -04:00
alistair3149 f0110cbd7a Sync with MobileFrontend 2020-08-12 12:59:57 -04:00
alistair3149 91aaec57a1 Migrate some Mustache parameter to SkinCitizen 2020-08-12 12:59:57 -04:00
alistair3149 5b33a497e4 Clean up search props function 2020-08-12 12:59:57 -04:00
alistair3149 eb491f7465 Clean up Mustache param name for SkinMustache merge 2020-08-12 12:59:57 -04:00
github-actions 4cab9be57d Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-08-12 12:59:56 -04:00
alistair3149 01f43fc4cc Undo skin check for lazyload 2020-08-12 12:59:56 -04:00
alistair3149 143ecb98e7 Add additional check to avoid lazyload hook affect other skin 2020-08-12 12:59:56 -04:00
alistair3149 0cc5b9a9e8 Replace addModule with getDefaultModules 2020-08-12 12:59:56 -04:00
alistair3149 1e012eb101
Default image lazyload to false due to leak 2020-07-22 17:07:15 -04:00
Hannes Kruse 557c8577c1
Update PHPDoc and make some comparisons strict
Signed-off-by: Hannes Kruse <hannes@octofox.de>
2020-07-05 14:37:44 +02:00
Hannes Kruse 1550ee8658
Default lazyloading to true on ConfigException
Signed-off-by: Hannes Kruse <hannes@octofox.de>
2020-07-05 14:37:06 +02:00
Hannes Kruse 8df68d6393
Use getHttpRequestFactory instead of deprecated MWHttpRequest
MWHttpRequest was deprecated in 1.34, getHttpRequestFactory was introduced in 1.31

Signed-off-by: Hannes Kruse <hannes@octofox.de>
2020-07-05 14:36:31 +02:00
github-actions 1fa405871c Make a dinner reservation - MediaWiki CI
I clean up code to MediaWiki standards
2020-06-17 02:56:40 +00:00
alistair3149 8263f86df1
Add license header to PHP files 2020-06-16 22:56:19 -04:00
alistair3149 f72af5e76d
Improve CI and code clean up (#143)
* Replace existing grunt linter

* Fix stylesheet issues picked up by stylelint

* Update the git workflow

* Fix incorrect slash in workflow file

* Github CI lint - eslint/stylelint

* Clean up composer

* Fix phpcb error

* MediaWiki CI

* Change commit message

* Update status badge

* Add JSDoc

* Add SVGO

* Make a dinner reservation - MediaWiki CI

I clean up code to MediaWiki standards

* Optimize SVG files with SVGO

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-16 22:49:41 -04:00
alistair3149 aa9508b41b
Drop support for SkinTemplateToolboxEnd 2020-06-15 23:03:02 -04:00
alistair3149 3d497156a0 Add documentation and license header 2020-06-15 22:52:30 -04:00
github-actions eeb3962ae6 Github CI lint - phpcbf 2020-06-16 02:41:54 +00:00
alistair3149 3736489118 Load lazyload modules with skin modules if needed 2020-06-15 22:41:56 -04:00
github-actions 105bcd52ed Github CI lint - phpcbf 2020-06-16 02:33:05 +00:00
alistair3149 32a0af35d4
Separate ToC from core module 2020-06-15 22:32:55 -04:00
alistair3149 96d7c90b21
Separate lazyload styles from common 2020-06-12 14:02:23 -04:00
alistair3149 d087db2cad
Set autocomplete off for the entire search form 2020-06-12 13:39:31 -04:00
alistair3149 21c03c718c
Add content ID back for VE compatibility (#128) 2020-06-10 01:36:50 -04:00
alistair3149 9d6f97cae6
Added config to disable lazyload (#121) 2020-06-09 01:28:50 -04:00
alistair3149 ffb0916c6d
Added shortcut key tooltip to search toggle (#120) 2020-06-09 00:55:31 -04:00
alistair3149 345af04010
Added random button to search bar 2020-06-08 21:58:35 -04:00
alistair3149 b964eef276
Fixed php error when page tools condition is set to login 2020-06-08 21:05:33 -04:00
alistair3149 c009b8726c
Simplified search bar
The last one didn't stage all the files
2020-06-08 19:12:03 -04:00
alistair3149 8e9bbdbbad
Removed search button 2020-06-08 16:51:48 -04:00
alistair3149 4ad5056fc4
Add config to enable or disable rich search suggestions 2020-06-07 17:16:45 -04:00
alistair3149 a7e364aa72
Cleaned up search modules 2020-06-07 15:54:42 -04:00
alistair3149 4ab77674e4
Reorganized file structure for a few ResourceLoader modules 2020-06-07 15:02:52 -04:00
alistair3149 3aa075df94
Added new ResourceLoader module for fonts 2020-06-07 02:17:07 -04:00
alistair3149 bc15fd916e
Removed unused bottom bar 2020-06-07 02:07:30 -04:00
alistair3149 72b41df5ce
Refactor header DOM structure
- Reduced unnessecary HTML elements
- Stanardized class and IDs
- Switch to fix header due to performance concern
- Rewrote over-qualified CSS selectors
- Started rework on file organizations
2020-06-07 01:30:54 -04:00
alistair3149 09116cd568
Changed header from mw-header-container to mw-header 2020-06-06 15:51:51 -04:00
alistair3149 ce9c9a27a9
Use standard class and ID for search box 2020-06-06 14:47:03 -04:00