-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "More" link (to show more categories) to Related Images widget
- Loading branch information
1 parent
eefa69c
commit 89b850d
Showing
11 changed files
with
210 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"wikimedia/client", | ||
"wikimedia/jquery", | ||
"wikimedia/mediawiki" | ||
], | ||
"globals": { | ||
"require": "readonly" | ||
}, | ||
"rules": { | ||
"no-jquery/no-event-shorthand": "off", | ||
"no-jquery/no-global-selector": "off", | ||
"no-console": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
vendor | ||
node_modules | ||
.eslintcache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "stylelint-config-wikimedia", | ||
"rules": { | ||
"selector-max-id": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-env node */ | ||
module.exports = function ( grunt ) { | ||
var conf = grunt.file.readJSON( 'extension.json' ); | ||
|
||
grunt.loadNpmTasks( 'grunt-banana-checker' ); | ||
grunt.loadNpmTasks( 'grunt-eslint' ); | ||
grunt.loadNpmTasks( 'grunt-stylelint' ); | ||
|
||
grunt.initConfig( { | ||
eslint: { | ||
options: { | ||
cache: true | ||
}, | ||
all: [ | ||
'**/*.{js,json}', | ||
'!{vendor,node_modules}/**' | ||
] | ||
}, | ||
banana: conf.MessagesDirs, | ||
stylelint: { | ||
all: [ | ||
'**/*.css', | ||
'!{vendor,node_modules}/**' | ||
] | ||
} | ||
} ); | ||
|
||
grunt.registerTask( 'test', [ 'eslint', 'banana', 'stylelint' ] ); | ||
grunt.registerTask( 'default', 'test' ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"@metadata": { | ||
"authors": [ | ||
"Edward Chernenko" | ||
] | ||
}, | ||
|
||
"relatedimages-desc": "{{desc|name=RelatedImages|url=https://www.mediawiki.org/wiki/Extension:RelatedImages}}", | ||
"relatedimages-header": "Header above the Related Images widget", | ||
"relatedimages-more": "Link that shows more recommended categories", | ||
"relatedimages-more-loading": "Temporarily shown while waiting for more recommendations to be loaded." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"devDependencies": { | ||
"eslint-config-wikimedia": "0.22.1", | ||
"grunt": "1.5.3", | ||
"grunt-banana-checker": "0.9.00", | ||
"grunt-eslint": "24.0.0", | ||
"grunt-stylelint": "0.18.0", | ||
"stylelint-config-wikimedia": "0.13.0" | ||
} | ||
} |