Commit graph

489 commits

Author SHA1 Message Date
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
alistair3149 b33103b60c Fix label 2019-12-11 15:55:58 -05:00
alistair3149 184db8fb2e Moved label out of h3 2019-12-11 15:51:58 -05:00
alistair3149 ae20512996 Better ID names for search toggle 2019-12-11 15:40:59 -05:00
alistair3149 d4dfe93f80 Search form ID update 2019-12-11 15:29:15 -05:00
alistair3149 b5ccf5d8b9 Added support for Preconnect 2019-12-10 22:59:10 -05:00
alistair3149 aef92b708a Tweaks to lazyload placeholder 2019-08-21 15:57:17 -04:00
alistair3149 1ae5b6ecf5 Additional fixes for lazyload 2019-08-16 00:21:46 -04:00
alistair3149 f50789508c Low quality lazyload placeholder 2019-08-15 22:48:10 -04:00
alistair3149 6790081313 Removed unused site logo 2019-08-15 20:44:58 -04:00
alistair3149 8b74c1edb5 Removed unused codes 2019-08-15 20:39:40 -04:00
alistair3149 9a6e12c3d8 Added support for Native lazyloading API 2019-08-15 18:31:54 -04:00
alistair3149 da7c4d5ff0 Enabled lazyload, fix for svg 2019-08-15 13:53:23 -04:00
alistair3149 45b775c5fc Repushed Citizen skin 2019-08-15 13:40:13 -04:00
alistair3149 5371f3182f Fix localsettings.php to remove wave.js, temp remove Citizen skin to repush 2019-08-15 13:39:47 -04:00
alistair3149 8265d67d75 Added Lazyload images, broke MMV 2019-08-15 02:20:50 -04:00
alistair3149 67581f74e8 Theme meta hotfix 2019-08-13 20:16:30 -04:00
alistair3149 9f21460dbb TOC hotfix, theme color meta 2019-08-13 20:11:52 -04:00
alistair3149 590ae51c05 Web Manifest API implementation 2019-08-13 19:45:20 -04:00
alistair3149 c56d3720f9 Removed CSS, added TemplateData and Styles, updated Citizen skin 2019-08-13 12:54:28 -04:00
alistair3149 b3a61828f0 Additional styling for category and related articles 2019-08-09 22:28:30 -04:00
alistair3149 653dce2711 Updated Citizen skin files 2019-08-09 03:22:43 -04:00