Commit graph

3196 commits

Author SHA1 Message Date
alistair3149 ef5267b208
Update README.md 2019-12-26 01:41:27 -05:00
alistair3149 b40f3f5dae
Added php test 2019-12-26 01:40:39 -05:00
alistair3149 17c75f3942
Update php.yml 2019-12-26 01:35:52 -05:00
alistair3149 cd49831cdd
Created experimental workflow 2019-12-26 01:31:56 -05:00
alistair3149 9d59fc0a6c
Delete php.yml 2019-12-26 01:29:24 -05:00
alistair3149 7f3fc91070
Updated composer 2019-12-26 01:22:10 -05:00
alistair3149 3806384e93
Merge pull request #1 from octfx/feature/refactoring
Refactor Code
2019-12-26 01:16:19 -05:00
alistair3149 2c88c197c2
Create php.yml 2019-12-26 01:15:14 -05:00
alistair3149 7ea2b7efa0
Merge branch 'master' into feature/refactoring 2019-12-26 01:03:58 -05:00
Hannes 5a69ce37eb
Add base german localization
All config messages still missing
2019-12-26 00:26:58 +01:00
Hannes 6423104c0f
Add MW test suite to skin
Run composer install to install dev dependencies
- composer test -> check code style
- composer fix -> auto fix
2019-12-26 00:26:39 +01:00
Hannes 9c2d92991a
Add config values to skin.json
Also added namespaces to hooks and api class
2019-12-26 00:25:04 +01:00
Hannes c1174c0ee5
Made code MW compliant 2019-12-26 00:24:31 +01:00
Hannes 6b3b4980dd
Remove jQuery
Refactored header.js
- Removed global vars
- Removed jQuery

'Should' behave the same like the old version. Some testing needed.
2019-12-26 00:23:38 +01: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 94d15bb483
Attempt to fix image class #2 2019-12-25 17:33:52 -05:00
alistair3149 bfa10edab9
Attempt to fix image class 2019-12-25 17:10:19 -05:00
alistair3149 fdb97832cf
Fixed broken link from contact button 2019-12-25 16:49:56 -05:00
alistair3149 cf58f8b9a3 Bumped version and updated readme 2019-12-24 01:08:43 -05: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 97d3e2ccb2 Enabled HSTS 2019-12-23 22:25:39 -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 67ca36e631 Changed h1 h2 line height 2019-12-23 18:44:04 -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 c644b5fabb Updated README 2019-12-21 01:03:27 -05:00
alistair3149 f3e57a19fc Add documentation to the skin 2019-12-21 00:56:15 -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 0e286b7dbd Fix legend dark mode color 2019-12-20 14:56:04 -05:00
alistair3149 f438fd857d Updated font licenses 2019-12-20 13:18:12 -05:00
alistair3149 364bd55b55 Dropped TTF and EOT support 2019-12-20 13:12:31 -05:00
alistair3149 f73a50f065 Oops missed a semi colon 2019-12-16 15:05:29 -05:00
alistair3149 0ba57f9114 Tweaked autosuggest position 2019-12-16 15:03:57 -05:00
alistair3149 94d026552a Fixed search icon 2019-12-16 14:52:04 -05:00
alistair3149 45c1e0dfab Added styles for the search button 2019-12-16 14:36:18 -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 06d399ec3f Increased the number of search result from 6 to 10 2019-12-13 23:31:48 -05:00
alistair3149 ca72018b49 Fixed search button height 2019-12-13 17:40:40 -05:00