forked from aeminem/chrome-dribbblehd
-
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.
- Loading branch information
Showing
10 changed files
with
221 additions
and
20 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,6 @@ | ||
node_modules/ | ||
psd/ | ||
screens/ | ||
tmp/ | ||
test/tmp/ | ||
npm-debug.log |
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,51 @@ | ||
{ | ||
"browser": true, | ||
"predef" : [ | ||
"chrome", | ||
"h" | ||
], | ||
|
||
"bitwise": false, | ||
"camelcase": false, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"forin": false, | ||
"immed": true, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"noempty": true, | ||
"nonew": false, | ||
"plusplus": false, | ||
"quotmark": false, | ||
"regexp": false, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
|
||
"asi": false, | ||
"boss": false, | ||
"debug": false, | ||
"eqnull": true, | ||
"es5": true, | ||
"esnext": false, | ||
"evil": false, | ||
"expr": false, | ||
"funcscope": false, | ||
"globalstrict": false, | ||
"iterator": false, | ||
"lastsemic": false, | ||
"laxbreak": false, | ||
"laxcomma": true, | ||
"loopfunc": false, | ||
"multistr": false, | ||
"onecase": true, | ||
"proto": false, | ||
"regexdash": false, | ||
"scripturl": false, | ||
"smarttabs": true, | ||
"shadow": false, | ||
"sub": false, | ||
"supernew": false | ||
} |
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,31 @@ | ||
## Submitting an issue | ||
|
||
When reporting a bug, please describe it thoroughly, with a URL where it happens, and preferably attached screenshot. | ||
|
||
## Contributions | ||
|
||
Contributions are welcome! But please, follow these few simple rules: | ||
|
||
**Maintain the coding style** used throughout the project, and defined in the `.editorconfig` file. You can use the | ||
[Editorconfig](http:https://editorconfig.org) plugin for your editor of choice: | ||
|
||
- [Sublime Text 2](https://github.com/sindresorhus/editorconfig-sublime) | ||
- [Textmate](https://github.com/Mr0grog/editorconfig-textmate) | ||
- [Notepad++](https://github.com/editorconfig/editorconfig-notepad-plus-plus) | ||
- [Emacs](https://github.com/editorconfig/editorconfig-emacs) | ||
- [Vim](https://github.com/editorconfig/editorconfig-vim) | ||
- [Visual Studio](https://github.com/editorconfig/editorconfig-visualstudio) | ||
- [... other editors](http:https://editorconfig.org/#download) | ||
|
||
--- | ||
|
||
**Code has to pass JSHint** with options defined in the `.jshintrc` file. You can use `grunt jshint` task to lint | ||
manually, or again, there are amazing plugins for a lot of popular editors consuming this file and linting as you code: | ||
|
||
- [Sublim Text 2](https://github.com/SublimeLinter/SublimeLinter) | ||
- [TextMate](http:https://rondevera.github.com/jslintmate/), or [alternative](http:https://fgnass.posterous.com/jslint-in-textmate) | ||
- [Notepad++](http:https://sourceforge.net/projects/jslintnpp/) | ||
- [Emacs](https://github.com/daleharvey/jshint-mode) | ||
- [Vim](https://github.com/walm/jshint.vim) | ||
- [Visual Studio](https://github.com/jamietre/SharpLinter), or [alternative](http:https://jslint4vs2010.codeplex.com/) | ||
- [... other editors](http:https://www.jshint.com/platforms/) |
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,68 @@ | ||
/*global module */ | ||
module.exports = function(grunt) { | ||
'use strict'; | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
manifest: grunt.file.readJSON('extension/manifest.json'), | ||
|
||
// JSHint the code. | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc', | ||
}, | ||
all: ['extension/js/*.js'], | ||
}, | ||
|
||
// Clean folders. | ||
clean: { | ||
build: ['build/**', '!build'] | ||
}, | ||
|
||
// Bump up the version in JSON file. | ||
bumpup: 'extension/manifest.json', | ||
|
||
// Commit last changes and tag the commit with a version from this JSON file. | ||
tagrelease: 'extension/manifest.json', | ||
|
||
// Build an archive ready to be uploaded to web store. | ||
compress: { | ||
main: { | ||
options: { | ||
mode: 'zip', | ||
level: 1, | ||
archive: 'build/<%= pkg.name %>-<%= manifest.version %>.zip' | ||
}, | ||
expand: true, | ||
cwd: 'extension/', | ||
src: ['**'], | ||
dest: '/' | ||
} | ||
} | ||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-compress'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-tagrelease'); | ||
grunt.loadNpmTasks('grunt-bumpup'); | ||
|
||
// Build task. | ||
grunt.registerTask('build', function () { | ||
grunt.task.run('clean'); | ||
grunt.task.run('compress'); | ||
}); | ||
|
||
// Release task. | ||
grunt.registerTask('release', function (type) { | ||
type = type ? type : 'patch'; | ||
grunt.task.run('jshint'); | ||
grunt.task.run('bumpup:' + type); | ||
grunt.task.run('tagrelease'); | ||
}); | ||
|
||
// By default, lint. | ||
grunt.registerTask('default', ['jshint']); | ||
}; |
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,3 +1,42 @@ | ||
# [Dribbble HD](https://chrome.google.com/webstore/detail/dribbble-hd/ichgbbciejbjechpkakbegaaenamkpib) | ||
|
||
Google Chrome extension. | ||
Google Chrome extension that displays full images while browsing [Dribbble](http:https://dribbble.com) shots. | ||
|
||
## Submitting an issue | ||
|
||
When reporting a bug, please describe it thoroughly, with a URL where it happens, and preferably attached screenshot. | ||
|
||
## Contributions | ||
|
||
Contributions are welcome! But please, read the [Contributing Guidelines](CONTRIBUTING.md). | ||
|
||
## Release History | ||
|
||
**1.4.1** :: *10th Mar 2013* | ||
|
||
- Changing packaging style. Hopefully fixing the mysterious | ||
[Issue 103281](https://code.google.com/p/chromium/issues/detail?id=103281). | ||
|
||
**1.4.0** :: *9th Mar 2013* | ||
|
||
- Removed jQuery to lower the footprint. | ||
- Extension rewrite to framework-less plain JavaScript. | ||
- Fixed styles hiding "liked by" message. | ||
|
||
**1.3.2** :: *9th Mar 2013* | ||
|
||
- Fix for new Dribbble styles. | ||
|
||
**1.3.1** :: *8th Mar 2013* | ||
|
||
- URL matching bug fix. | ||
|
||
**1.3.0** :: *8th Mar 2013* | ||
|
||
- Fix for new Dribble styles. | ||
- Now runs in a lot more pages, like tags, lists, buckets, profiles, ... | ||
- Removed "Shots per row" option - to increase maintainability, it will be now only responsive. | ||
|
||
**1.0.0** - **1.2.5** | ||
|
||
- Style and bug fixes. |
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,14 +1,13 @@ | ||
/*global chrome */ | ||
'use strict'; | ||
|
||
// Listen for requests | ||
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { | ||
'use strict'; | ||
|
||
switch (request.get) { | ||
case 'options': | ||
sendResponse(localStorage.options ? JSON.parse(localStorage.options) : {}); | ||
break; | ||
|
||
default: | ||
sendResponse({}); | ||
sendResponse(undefined); | ||
} | ||
}); |
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,4 +1,3 @@ | ||
/*global chrome, h */ | ||
(function (undefined) { | ||
'use strict'; | ||
|
||
|
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 @@ | ||
{ | ||
"name": "dribbblehd", | ||
"version": "0.0.0", | ||
"devDependencies": { | ||
"grunt-contrib-compress": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.2.0", | ||
"grunt-contrib-clean": "~0.4.0", | ||
"grunt-tagrelease": "~0.2.0", | ||
"grunt-bumpup": "~0.2.0", | ||
"grunt": "~0.4.0" | ||
} | ||
} |