Commit graph

471 commits

Author SHA1 Message Date
alistair3149 bd3eac63bb
refactor: move Mustache templates to root directory 2021-04-09 11:47:48 -04:00
H. C. Kruse 0e63bb6aef
bug: fix changing theme through UPO (#340) 2021-04-06 08:40:15 -04:00
alistair3149 abffe590b5
refactor: remove cookie theme for local storage
Co-authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-04-05 14:24:18 -04:00
alistair3149 f8dbbe01a8
fix: move inline theme script into hook
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-04-05 09:56:44 -04:00
alistair3149 83c6735cda
bug: fix parsing raw html (#334)
Co-authored-by: Hannes Kruse <hannes@octofox.de>
2021-04-04 11:39:57 -04:00
alistair3149 bc1c1c9001
Merge pull request #329 from octfx/dev
refactor: Don't create sections if they are disabled
2021-03-26 08:36:00 -04:00
Hannes 88912f71b3
refactor: Don't create sections if they are disabled 2021-03-26 08:00:14 +01:00
alistair3149 41a0793ae1
refactor: use isRegistered instead of isLoggedIn
isLoggedIn is depreciated in 1.36
2021-03-25 15:06:54 -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
github-actions 373ba3b50c ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-03-18 16:36:39 +00:00
alistair3149 fd931a13d5
feat: add debug styles 2021-03-18 12:35:18 -04:00
alistair3149 2bed65ee2c
fix: missing doc and file from previous commit 2021-03-16 13:10:54 -04:00
alistair3149 65a7ffd927
feat: add short description support 2021-03-16 13:08:47 -04:00
alistair3149 5ee951c1f8
feat: support wikitext in footer description and tagline 2021-03-13 13:15:41 -05:00
alistair3149 062cdd91a1
feat: add option to use REST API as search suggestion source
Co-authored-by: Hannes <hannes@octofox.de>
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-03-12 14:25:32 -05:00
alistair3149 4fb5005bd0 feat: move ULS button back to personal menu 2021-03-11 21:09:43 -05:00
github-actions 1a72f99dd5 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-03-12 01:44:25 +00:00
alistair3149 b0f7acd6f0
fix: missing edit count for users without expllict groups 2021-03-11 20:43:36 -05:00
alistair3149 77edd0145a
feat: add experimental caching for search suggestion 2021-03-11 20:26:01 -05:00
alistair3149 582776f0cd
refactor: replace addHeadItem with addInlineScript
Use included method in OutputPage as addHeadItem is not specific and does not support nonce
https://doc.wikimedia.org/mediawiki-core/REL1_35/php/classOutputPage.html#ab87aa6f446da87bdf143998ee0ca5297
2021-03-10 20:35:40 -05:00
alistair3149 112ff9a4b5
feat: add user edit count to personal menu 2021-03-09 15:04:48 -05:00
alistair3149 8971eed653
refactor: rename sitelogo to siteinfo 2021-03-05 11:47:58 -05:00
alistair3149 852bcf8b85
feat: tweak header and drawer logo styles 2021-03-05 11:37:27 -05:00
alistair3149 ae9ab0a8d1
bug: fix null pointer
Authored-by: H. C. Kruse <6594492+octfx@users.noreply.github.com>
2021-03-04 16:50:42 -05:00
alistair3149 b8fc3018ff
feat: implement wordmark in header 2021-03-04 15:08:32 -05:00
Hannes 82f220ec64
refactor: Convert html entitie
And only run collapse on content pages
2021-03-03 09:44:18 +01:00
H. C. Kruse 49f6916195
fix: collapsible section issues (#283)
* fix: DOMDocument parser warnings

* minor: Run phpcbf

* minor: Remove linter warnings

* bug: Fix section.js script name
2021-03-03 03:05:13 -05:00
alistair3149 624d896d73
refactor: rename variables and modules 2021-03-02 19:28:54 -05:00
github-actions fcd796d1e2 ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
2021-03-03 00:14:48 +00:00
alistair3149 669be20879
fix: fix error caused by PHP comments 2021-03-02 19:09:39 -05:00
alistair3149 af5565f490
feat: implement collapsible sections 2021-03-02 17:16:24 -05:00
alistair3149 b35c92d67a
refactor: remove Mustache parameters that are in 1.35 core 2021-02-26 16:34:28 -05:00
alistair3149 5177f6187b
fix: remove unused pagelink template 2021-02-26 16:29:10 -05:00
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
github-actions 03b72231aa Github CI lint - phpcbf 2020-06-06 00:13:26 +00:00
alistair3149 0ade51a384
Full Mustache conversion 2020-06-05 20:12:39 -04:00
alistair3149 0b28c95507
Give screen-reader-text class to hidden labels 2020-06-05 18:55:04 -04:00
alistair3149 042522d310
Converted header user buttons into Mustache 2020-06-05 18:25:24 -04:00
alistair3149 4b4be074a2 Merge branch 'dev' of github.com:StarCitizenTools/mediawiki-skins-Citizen into dev 2020-06-05 17:15:38 -04:00
alistair3149 f890f96ca0
Fixed PHP error on undefined variable 2020-06-05 17:13:55 -04:00
github-actions 8d24caa8be Github CI lint - phpcbf 2020-06-05 21:08:41 +00:00
alistair3149 1cdde07e32
Fixed missing legacy menus 2020-06-05 17:07:47 -04:00
alistair3149 0c3898c462
Converted the navigation menu to Mustache 2020-06-05 17:07:11 -04:00
alistair3149 86882116df
Removed unused functions 2020-06-04 15:08:42 -04:00
alistair3149 a6bcf28acd
Converted part of menu to Mustache 2020-06-04 15:04:03 -04:00
alistair3149 b675d95f35
Added missing documentation for search box 2020-06-04 13:32:01 -04:00
github-actions ae50312dae Github CI lint - phpcbf 2020-06-04 17:17:50 +00:00
alistair3149 65a364e3ca
Fixed incorrect DOM structure 2020-06-04 13:16:51 -04:00
alistair3149 72ab186ccd
Fixed incorrect tags in bottombar 2020-06-04 02:43:52 -04:00
github-actions 09af984c20 Github CI lint - phpcbf 2020-06-04 06:36:54 +00:00
alistair3149 89a8faec37
Converted search box to Mustache 2020-06-04 02:36:06 -04:00
alistair3149 f248b8a861
Removed try catch exception from bottombar
There should not be exception so no need for exception catching
2020-06-04 01:40:32 -04:00
alistair3149 575a700425
Added missing div tag in the footer 2020-06-04 01:13:04 -04:00
alistair3149 7a38c76215
Converted bottombar to Mustache 2020-06-04 00:18:36 -04:00
alistair3149 72bfbb6087
Converted header toggle tooltip to i18n message 2020-06-03 23:39:50 -04:00
alistair3149 4dd271eb09
Use div instead of span as it is not inline 2020-06-03 01:33:25 -04:00
alistair3149 2adf857692
Use div instead of span as it is not inline 2020-06-03 01:20:56 -04:00
alistair3149 6b69c66c08
Use aside element for sitename sidebar 2020-06-03 01:16:26 -04:00
alistair3149 e913ec5f86
Removed ARIA role from footer 2020-06-03 01:08:39 -04:00
alistair3149 2f4827b785
Use semantic HTML5 elements for footer 2020-06-03 01:07:40 -04:00
alistair3149 2c6962f2be
Removed footer and content IDs
Based on T248137
2020-06-03 00:44:13 -04:00
alistair3149 c0fee346c5
Partial conversion to Mustache for header 2020-06-03 00:28:22 -04:00
alistair3149 5d5d1077c6
Readded tooltip to sitetitle 2020-06-02 23:37:28 -04:00
alistair3149 f0da589b52
Fixed missing footer sitetitle 2020-06-02 23:22:09 -04:00
alistair3149 a039f02bed
Added missing tooltip for side sitetitle 2020-06-02 22:34:38 -04:00
alistair3149 35de211a49
Converted sidebar sitetitle to Mustache 2020-06-02 21:21:24 -04:00
alistair3149 37732ea6a9
Partial Mustache refactor (#113)
Refactor some components into Mustache. With the footer refactor addressed in #75, it should solve most of the incompatibility issues caused by previous hacks used to generate the footer
2020-06-02 02:23:11 -04:00
alistair3149 fbd85a8ef6
Attempt to fix autocomplete on search form 2020-03-17 18:34:01 -04:00
alistair3149 e1db357496
Re-enable watch module since it provides better UX 2020-02-15 22:31:58 -05:00
alistair3149 71876c5f9e
Dequeued watch module since it is not needed 2020-02-15 21:55:11 -05:00
alistair3149 1b4daf957c
Reverted changes 2020-02-15 21:27:42 -05:00
alistair3149 a2608fc40b
Use defaultmodule to load skin styles instead 2020-02-15 21:26:07 -05:00
alistair3149 74f3647af0
Attempt to rearrange resourceloader module 2020-02-15 20:57:43 -05:00
alistair3149 cc58502424
Attempt to rearrange resourceloader module 2020-02-15 20:54:39 -05:00
alistair3149 7a922720ba
Attempt to rearrange resourceloader module 2020-02-15 20:49:32 -05:00
alistair3149 c8fa98b2e4
Dequeue icons styles from critical render path 2020-02-15 20:40:47 -05:00
alistair3149 42286cfc95
Attempt to fix styles not loading properly 2020-02-15 20:38:11 -05:00
alistair3149 5fd977ea6c
Attempt to fix styles not loading properly 2020-02-15 20:37:41 -05:00
alistair3149 9863548919
Attempt to fix styles not loading properly 2020-02-15 20:32:22 -05:00
alistair3149 4c7702f19c
Attempt to fix styles not loading properly 2020-02-15 20:28:17 -05:00
alistair3149 43ab95b516
Attempt to fix styles not loading properly 2020-02-15 20:25:32 -05:00
alistair3149 0256020d9e
Attempt to fix php error 2020-02-15 20:17:43 -05:00
alistair3149 174bb4ccda
Attempt to fix php error 2020-02-15 20:15:36 -05:00
alistair3149 da2b32896c
Attempt to fix resourceloader order 2020-02-15 20:04:53 -05:00
alistair3149 6d29600caf
Attempt to fix resourceloader not loading bug 2020-02-15 19:56:41 -05:00
alistair3149 24724cf9b2
Add missing return line 2020-02-15 19:50:35 -05:00
alistair3149 53416ce050
Optimize resourceloader load order 2020-02-15 19:49:49 -05:00
alistair3149 bbcf4e16ae
Use defaultmodule to load search module instead: 2020-02-15 19:25:47 -05:00
alistair3149 16e187c38d
Renamed resourceloader modules 2020-02-15 16:49:55 -05:00
alistair3149 6dfe6aace2
Added missing function call for referrer policy 2020-01-16 19:14:15 -05:00
Hannes 927a2b2032
Fix getting value 2020-01-11 21:32:32 +01:00
Hannes 423e7c0eea
Allow to make thumbnail size configurable 2020-01-11 21:27:39 +01:00
github-actions ec2301eb33 Github CI lint - phpcbf 2020-01-10 00:33:26 +00:00
alistair3149 def3f44ed0
Re-added referrer policy since mw implementation does not include response header 2020-01-09 19:26:16 -05:00
alistair3149 ef8b84de89
Reverted to the older getFooterBlock 2020-01-07 13:34:43 -05:00
alistair3149 7eac848574
Fix missing footer components 2020-01-07 13:23:08 -05:00
alistair3149 8380d27ffa
Fix php error 2020-01-06 21:15:24 -05:00
alistair3149 4f0fb48a76
Use sitename as title for the logo 2020-01-06 21:03:36 -05:00
alistair3149 69da2fa56e
Removed unused ID 2020-01-06 18:56:04 -05:00
alistair3149 920370b05a
Fix getLogo documentation 2020-01-06 18:46:51 -05:00
alistair3149 593bd4e879
Fix getLogo syntax 3 2020-01-06 18:45:35 -05:00
alistair3149 8b88302535
Fix getLogo syntax 2 2020-01-06 18:44:41 -05:00
alistair3149 a72e576d70
Fix getLogo syntax 2020-01-06 18:44:24 -05:00
alistair3149 56c47dba82
Fixed header class name 2020-01-06 18:42:52 -05:00
alistair3149 e51dc8d41d
Fixed logo generation 2020-01-06 18:37:32 -05:00
alistair3149 e4783784f5
Clean up class and id names for navigation 2020-01-06 18:36:56 -05:00
alistair3149 6b0630d589
Cleaned up unnessecary components 2020-01-06 18:32:44 -05:00
alistair3149 3396785c18
Fixed incorrect function name 2020-01-06 18:22:17 -05:00
alistair3149 30e8ef08f8
Added sitelogo to skintemplate 2020-01-06 18:10:28 -05:00
alistair3149 1470c10fa0
Remove unused footer style 2020-01-06 17:56:43 -05:00
github-actions dc495d9851 Github CI lint 2020-01-06 19:28:08 +00:00
alistair3149 dc454604d4
Oops forgot to pass the var 2020-01-01 17:40:56 -05:00
alistair3149 286c2d5acc
Added X-XSS-Protection header support 2019-12-31 02:36:17 -05:00
alistair3149 268e00850b
Removed Referrer policy since MW has its implementation > 1.31 2019-12-31 01:41:03 -05:00
alistair3149 bef0d67e6c
Disable default search module
'
2019-12-30 17:41:33 -05:00
alistair3149 3232c32b77
Added missing space for lazy class 2019-12-27 03:36:48 -05:00
alistair3149 041db6b886
Set CSPreportmode to strictly true only 2019-12-27 03:05:05 -05:00
alistair3149 6ab2d17cce
Updated website 2019-12-26 14:04:39 -05:00
alistair3149 a765556f9e
Bumped version and updated test files 2019-12-26 02:08:10 -05:00
Hannes dd9c8c6f0a
Refactor CitizenTemplate
Pulled out big chunks into separate methods and tried to improve readability.

FEATURE: Made bottom button configurable (although icon and style is still hardcoded)
  - Button can be enabled/disabled through $wgCitizenEnableButton
  - Link configurable through $wgCitizenButtonLink
  - Title configurable through $wgCitizenButtonTitle
  - Text configurable through $wgCitizenButtonText

FEATURE: Made visibility of page tools configurable through $wgCitizenShowPageTools
Possible config values:
  - true -> always visible
  - false -> always hidden
  - 'login' -> only visible if user is logged in
  - 'permission-*' -> only visible if user has the given permission for current page
    - e.g.: 'permission-edit' -> Tools visible if user can edit current page
2019-12-26 00:20:04 +01:00
Hannes 2344122fa4
Refactor SkinCitizen
Refactored into separate methods also made code MW compliant
2019-12-26 00:15:01 +01:00
Hannes c51a1ef796
Refactor Hooks class
Make code compliant to MW guidelines
Add exception checking ang global var removal
2019-12-26 00:13:59 +01:00
Hannes 41b1f157cd
Add 'Citizen' namespaces to Api class
Refactor code to pass MediaWiki guidelines
2019-12-26 00:12:14 +01:00
alistair3149 72e23056b3 Added support for Feature Policy 2019-12-24 00:40:30 -05:00
alistair3149 21778bec63 Enabled CSP for testing 2019-12-23 23:27:36 -05:00
alistair3149 2e4bc7adc3 Added CSP support 2019-12-23 23:13:42 -05:00
alistair3149 6ee9ce7f98 Added HSTS preload support 2019-12-23 22:43:11 -05:00
alistair3149 067386964e Added HSTS support 2019-12-23 22:17:28 -05:00
alistair3149 ebfa056aee Fixed typo in skincitizen.php 2019-12-23 21:15:52 -05:00
alistair3149 4bd3cd2ec5 Added deny xframe 2019-12-23 21:10:13 -05:00
alistair3149 59aa0d9ab0 Enable strict origin referrer policy 2019-12-23 20:26:26 -05:00
alistair3149 966a8ecefc Updated the value for viewport meta tag 2019-12-23 02:56:10 -05:00
alistair3149 ee403dfcef Added strict referrer policy 2019-12-23 02:34:55 -05:00
alistair3149 ea8f9603dc Removed XUA tag 2019-12-23 02:24:35 -05:00
alistair3149 9db38659b3 Reverted CitizenTemplate 2019-12-20 15:38:26 -05:00
alistair3149 dc7453ec7c Moved contact button to global config, fixed php quote styles 2019-12-20 15:19:17 -05:00
alistair3149 229c8540bb Switched search button from text to icon 2019-12-16 14:10:44 -05:00
alistair3149 0619214ada Forgot to pass the search limit var to JS 2019-12-14 00:44:09 -05:00
alistair3149 363b946bfc Update to manifest 2 #4 2019-12-12 21:37:19 -05:00
alistair3149 ea297d7967 Test global var 2019-12-11 23:01:14 -05:00
alistair3149 3df16bfd23 Defined MediaWikiServices 2019-12-11 22:48:55 -05:00
alistair3149 2ef10e9605 Implement global var test 2019-12-11 22:38:55 -05:00
alistair3149 1596126e1b No image icon for suggestions 2019-12-11 21:10:34 -05:00
alistair3149 34ff3660f3 Experimential search suggestions 2019-12-11 17:14:36 -05:00
alistair3149 a9b2bbf79c Added class and IDs to search bar 2019-12-11 16:47:07 -05:00
alistair3149 bdf71e63c3 Reverted to previous version 2019-12-11 16:43:11 -05:00
alistair3149 e749a5c337 Additional search tweaks 2019-12-11 16:38:01 -05:00
alistair3149 8e1f9df096 Further clean up search IDs 2019-12-11 16:06:51 -05:00
alistair3149 dd547503dd Check if suggestion is hooked to ID name 2019-12-11 16:04:26 -05:00