Socket
Socket
Sign inDemoInstall

hoodie-pocket-uikit

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hoodie-pocket-uikit - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

.travis.yml

28

app/scripts/main.js

@@ -17,7 +17,7 @@ /*

addRemoveLinks: true,
url: "undefined",
dictDefaultMessage: "Drop files here or click to upload",
url: 'undefined',
dictDefaultMessage: 'Drop files here or click to upload',
// The setting up of the dropzone
init: function() {
var myDropzone = this;
'use strict';

@@ -27,3 +27,3 @@ // First change the button to actually tell Dropzone to process the queue.

/*
this.element.querySelector("button[type=submit]").addEventListener("click", function(e) {
this.element.querySelector('button[type=submit]').addEventListener('click', function(e) {
// Make sure that the form isn't actually being sent.

@@ -38,11 +38,11 @@ e.preventDefault();

// of the sending event because uploadMultiple is set to true.
this.on("sendingmultiple", function() {
this.on('sendingmultiple', function() {
// Gets triggered when the form is actually being sent.
// Hide the success button or the complete form.
});
this.on("successmultiple", function(files, response) {
this.on('successmultiple', function() {
// Gets triggered when the files have successfully been sent.
// Redirect user or notify of success.
});
this.on("errormultiple", function(files, response) {
this.on('errormultiple', function() {
// Gets triggered when there was an error sending the files.

@@ -56,15 +56,17 @@ // Maybe show form again, and notify user of error

$('#hmm').click(function(e){
'use strict';
var $this = $(this);
e.preventDefault();
if($(this).hasClass('waiting')){
$(this).removeClass('waiting');
$(this).addClass('error');
if($this.hasClass('waiting')){
$this.removeClass('waiting');
$this.addClass('error');
return;
}
if($(this).hasClass('error')){
$(this).removeClass('error');
if($this.hasClass('error')){
$this.removeClass('error');
return;
}
$(this).addClass('waiting');
$this.addClass('waiting');
});
{
"name": "pocket-static",
"version": "0.0.0",
"version": "2.1.3",
"dependencies": {

@@ -10,5 +10,4 @@ "sass-bootstrap": "~3.0.0",

"jquery-icheck": "~1.0.1",
"prism": "git@github.com:LeaVerou/prism.git#gh-pages"
},
"devDependencies": {}
"prism": "https://github.com/LeaVerou/prism.git#gh-pages"
}
}

@@ -11,221 +11,225 @@ // Generated on 2013-11-11 using generator-webapp 0.4.4

module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
grunt.initConfig({
// configurable paths
yeoman: {
app: 'app',
dist: 'dist'
grunt.initConfig({
// configurable paths
pkg: grunt.file.readJSON('package.json'),
yeoman: {
app: 'app',
dist: 'dist'
},
watch: {
compass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},
styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['copy:styles', 'autoprefixer']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
watch: {
compass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},
styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
tasks: ['copy:styles', 'autoprefixer']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= yeoman.app %>/*.html',
'.tmp/styles/{,*/}*.css',
'{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
'<%= yeoman.app %>/images/{,*/}*.{gif,jpeg,jpg,png,svg,webp}'
]
}
},
connect: {
options: {
port: 9000,
livereload: 35729,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'.tmp',
'<%= yeoman.app %>'
]
}
},
test: {
options: {
base: [
'.tmp',
'test',
'<%= yeoman.app %>'
]
}
},
dist: {
options: {
open: true,
base: '<%= yeoman.dist %>',
livereload: false
}
}
},
clean: {
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= yeoman.dist %>/*',
'!<%= yeoman.dist %>/.git*'
]
}]
},
server: '.tmp'
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js',
'!<%= yeoman.app %>/scripts/vendor/*',
'test/spec/{,*/}*.js'
]
},
mocha: {
all: {
options: {
run: true,
urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/index.html']
}
}
},
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/styles/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '/images',
httpGeneratedImagesPath: '/images/generated',
httpFontsPath: '/styles/fonts',
relativeAssets: false,
assetCacheBuster: false
},
dist: {
options: {
generatedImagesDir: '<%= yeoman.dist %>/images/generated'
}
},
server: {
options: {
debugInfo: true
}
}
},
autoprefixer: {
options: {
browsers: ['last 1 version']
},
dist: {
files: [{
expand: true,
cwd: '.tmp/styles/',
src: '{,*/}*.css',
dest: '.tmp/styles/'
}]
}
},
// not used since Uglify task does concat,
// but still available if needed
/*concat: {
files: [
'<%= yeoman.app %>/*.html',
'.tmp/styles/{,*/}*.css',
'{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
'<%= yeoman.app %>/images/{,*/}*.{gif,jpeg,jpg,png,svg,webp}'
]
}
},
connect: {
options: {
port: 9000,
livereload: 35729,
// change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'.tmp',
'<%= yeoman.app %>'
]
}
},
test: {
options: {
base: [
'.tmp',
'test',
'<%= yeoman.app %>'
]
}
},
dist: {
options: {
open: true,
base: '<%= yeoman.dist %>',
livereload: false
}
}
},
clean: {
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= yeoman.dist %>/*',
'!<%= yeoman.dist %>/.git*'
]
}]
},
server: '.tmp'
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js',
'!<%= yeoman.app %>/scripts/vendor/*',
'test/spec/{,*/}*.js'
]
},
mocha: {
all: {
options: {
run: true,
urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/index.html']
}
}
},
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/styles/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '/images',
httpGeneratedImagesPath: '/images/generated',
httpFontsPath: '/styles/fonts',
relativeAssets: false,
assetCacheBuster: false
},
dist: {
options: {
generatedImagesDir: '<%= yeoman.dist %>/images/generated'
}
},
server: {
options: {
debugInfo: true
}
}
},
autoprefixer: {
options: {
browsers: ['last 1 version']
},
dist: {
files: [{
expand: true,
cwd: '.tmp/styles/',
src: '{,*/}*.css',
dest: '.tmp/styles/'
}]
}
},
// not used since Uglify task does concat,
// but still available if needed
/*concat: {
dist: {
src: ['dist/styles/*.css'],
dest: 'dist/styles/pocket-uikit.css',
}
},*/
// not enabled since usemin task does concat and uglify
// check index.html to edit your build targets
// enable this task if you prefer defining your build targets here
/*uglify: {
dist: {}
},*/
// not enabled since usemin task does concat and uglify
// check index.html to edit your build targets
// enable this task if you prefer defining your build targets here
/*uglify: {
dist: {}
},*/
'bower-install': {
app: {
html: '<%= yeoman.app %>/index.html',
ignorePath: '<%= yeoman.app %>/'
}
},
rev: {
dist: {
files: {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css',
'<%= yeoman.dist %>/images/{,*/}*.{gif,jpeg,jpg,png,webp}',
'<%= yeoman.dist %>/styles/fonts/{,*/}*.*'
]
}
}
},
useminPrepare: {
options: {
dest: '<%= yeoman.dist %>'
},
html: '<%= yeoman.app %>/index.html'
},
usemin: {
options: {
assetsDirs: ['<%= yeoman.dist %>']
},
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
},
imagemin: {
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.{gif,jpeg,jpg,png}',
dest: '<%= yeoman.dist %>/images'
}]
}
},
svgmin: {
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.svg',
dest: '<%= yeoman.dist %>/images'
}]
}
},
cssmin: {
// This task is pre-configured if you do not wish to use Usemin
// blocks for your CSS. By default, the Usemin block from your
// `index.html` will take care of minification, e.g.
//
// <!-- build:css({.tmp,app}) styles/main.css -->
//
// dist: {
// files: {
// '<%= yeoman.dist %>/styles/main.css': [
// '.tmp/styles/{,*/}*.css',
// '<%= yeoman.app %>/styles/{,*/}*.css'
// ]
// }
// }
},
htmlmin: {
dist: {
options: {
/*removeCommentsFromCDATA: true,
'bower-install': {
app: {
html: '<%= yeoman.app %>/index.html',
ignorePath: '<%= yeoman.app %>/'
}
},
rev: {
dist: {
files: {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css',
'<%= yeoman.dist %>/images/{,*/}*.{gif,jpeg,jpg,png,webp}',
'<%= yeoman.dist %>/styles/fonts/{,*/}*.*'
]
}
}
},
useminPrepare: {
options: {
dest: '<%= yeoman.dist %>'
},
html: '<%= yeoman.app %>/index.html'
},
usemin: {
options: {
assetsDirs: ['<%= yeoman.dist %>']
},
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
},
imagemin: {
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.{gif,jpeg,jpg,png}',
dest: '<%= yeoman.dist %>/images'
}]
}
},
svgmin: {
dist: {
files: [{
expand: true,
cwd: '<%= yeoman.app %>/images',
src: '{,*/}*.svg',
dest: '<%= yeoman.dist %>/images'
}]
}
},
cssmin: {
// This task is pre-configured if you do not wish to use Usemin
// blocks for your CSS. By default, the Usemin block from your
// `index.html` will take care of minification, e.g.
//
// <!-- build:css({.tmp,app}) styles/main.css -->
//
// dist: {
// files: {
// '<%= yeoman.dist %>/styles/main.css': [
// '.tmp/styles/{,*/}*.css',
// '<%= yeoman.app %>/styles/{,*/}*.css'
// ]
// }
// }
},
htmlmin: {
dist: {
options: {
/*removeCommentsFromCDATA: true,
// https://github.com/yeoman/grunt-usemin/issues/44

@@ -239,122 +243,138 @@ //collapseWhitespace: true,

removeOptionalTags: true*/
},
files: [{
expand: true,
cwd: '<%= yeoman.app %>',
src: '*.html',
dest: '<%= yeoman.dist %>'
}]
}
},
// Put files not handled in other tasks here
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'images/{,*/}*.{webp,gif}',
'styles/fonts/{,*/}*.*',
'scripts/main.js',
'scripts/lib/**/*.*',
'bower_components/**/*.*'
]
}]
},
styles: {
expand: true,
dot: true,
cwd: '<%= yeoman.app %>/styles',
dest: '.tmp/concat/styles/',
src: [
'styles/{,*/}*.css',
'../bower_components/**/*.css'
]
},
tempstyles: {
expand: true,
dot: true,
cwd: '.tmp/concat/styles/',
dest: '<%= yeoman.dist %>/styles',
//src: '{,*/}.css'
src: 'pocket-uikit.css'
},
guidestyles: {
expand: true,
dot: true,
cwd: '.tmp/styles/',
dest: '<%= yeoman.dist %>/styles',
//src: '{,*/}.css'
src: 'guide.css'
}
},
concurrent: {
server: [
'compass',
'copy:styles'
],
test: [
'copy:styles'
],
dist: [
'compass',
'copy:styles',
'imagemin',
'svgmin',
'htmlmin'
]
files: [{
expand: true,
cwd: '<%= yeoman.app %>',
src: '*.html',
dest: '<%= yeoman.dist %>'
}]
}
},
// Put files not handled in other tasks here
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'images/{,*/}*.{webp,gif}',
'styles/fonts/{,*/}*.*',
'styles/{,*/}*.css'
]
}, {
expand: true,
flatten: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>/styles',
src: [
'bower_components/jquery-icheck/skins/flat/green{,@2x}.png',
'bower_components/select2/select2{,x2}.png',
'bower_components/select2/select2-spinner.gif'
]
}, {
expand: true,
flatten: true,
cwd: '<%= yeoman.app %>',
src: 'scripts/lib/dropzone/images/spritemap{,@2x}.png',
dest: '<%= yeoman.dist %>/images',
}]
},
styles: {
expand: true,
dot: true,
cwd: '<%= yeoman.app %>/styles',
dest: '.tmp/concat/styles/',
src: [
'{,*/}*.css',
]
},
tempstyles: {
expand: true,
dot: true,
cwd: '.tmp/concat/styles/',
dest: '<%= yeoman.dist %>/styles',
src: '{,*/}*.css'
}
},
concurrent: {
server: [
'compass',
'copy:styles'
],
test: [
'copy:styles'
],
dist: [
'compass',
'copy:styles',
'imagemin',
'svgmin',
'htmlmin'
]
},
'gh-pages': {
options: {
base: 'dist',
dotfiles: true,
repo: 'https://' + process.env.GH_TOKEN + '@github.com/hoodiehq/hoodie-pocket-UIKit',
message: 'chore(deploy): v<%=pkg.version%>',
user: {
name: 'Hoodie',
email: 'deploy@thehoodiefirm.com'
}
});
},
src: '**/*'
}
});
grunt.registerTask('server', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
grunt.registerTask('server', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
}
grunt.task.run([
'clean:server',
'concurrent:server',
'autoprefixer',
'connect:livereload',
'watch'
]);
});
grunt.registerTask('test', [
'clean:server',
'concurrent:test',
'autoprefixer',
'connect:test',
'mocha'
grunt.task.run([
'clean:server',
'concurrent:server',
'autoprefixer',
'connect:livereload',
'watch'
]);
});
grunt.registerTask('build', [
'clean:dist',
'useminPrepare',
'concurrent:dist',
'autoprefixer',
'concat',
//'cssmin',
'uglify',
'copy:dist',
'copy:tempstyles',
'copy:guidestyles',
//'rev',
'usemin'
]);
grunt.registerTask('test', [
'clean:server',
'concurrent:test',
'autoprefixer',
'connect:test',
'mocha'
]);
grunt.registerTask('default', [
'jshint',
/*'test',*/
'build'
]);
grunt.registerTask('build', [
'jshint',
'clean:dist',
'useminPrepare',
'concurrent:dist',
'autoprefixer',
'concat',
//'cssmin',
'uglify',
'copy:dist',
'copy:tempstyles',
//'rev',
'usemin'
]);
grunt.registerTask('um', [
'useminPrepare',
'usemin'
]);
grunt.registerTask('default', [
/*'test',*/
'build'
]);
grunt.registerTask('um', [
'useminPrepare',
'usemin'
]);
};
{
"name": "hoodie-pocket-uikit",
"version": "2.1.3",
"version": "2.1.4",
"author": "Alex Feyerke <hello@alexfeyerke.com>",
"description": "A UI kit for building the Pocket components of Hoodie plugins.",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.5.0",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-cssmin": "~0.6.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.5.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.2.0",
"grunt-usemin": "~2.0.0",
"grunt-mocha": "~0.4.0",
"grunt-svgmin": "~0.2.0",
"grunt-concurrent": "~0.3.0",
"load-grunt-tasks": "~0.1.0",
"time-grunt": "~0.1.1",
"jshint-stylish": "~0.1.3"
"grunt": "^0.4.1",
"grunt-autoprefixer": "^0.2.0",
"grunt-bower-install": "^0.5.0",
"grunt-concurrent": "^0.3.0",
"grunt-contrib-clean": "^0.5.0",
"grunt-contrib-compass": "^0.5.0",
"grunt-contrib-concat": "^0.3.0",
"grunt-contrib-connect": "^0.5.0",
"grunt-contrib-copy": "^0.4.1",
"grunt-contrib-cssmin": "^0.6.0",
"grunt-contrib-htmlmin": "^0.1.3",
"grunt-contrib-imagemin": "^0.2.0",
"grunt-contrib-jshint": "^0.6.3",
"grunt-contrib-uglify": "^0.2.0",
"grunt-contrib-watch": "^0.5.2",
"grunt-gh-pages": "^0.9.1",
"grunt-mocha": "^0.4.0",
"grunt-release-hoodie": "^0.1.1",
"grunt-rev": "^0.1.0",
"grunt-svgmin": "^0.2.0",
"grunt-usemin": "^2.0.0",
"jshint-stylish": "^0.1.3",
"load-grunt-tasks": "^0.1.0",
"time-grunt": "^0.1.1"
},

@@ -31,0 +32,0 @@ "engines": {

@@ -1,3 +0,5 @@

hoodie-pocket-UIKit
===================
# hoodie-pocket-UIKit
[![Build Status](https://travis-ci.org/hoodiehq/hoodie-pocket-UIKit.svg)](https://travis-ci.org/hoodiehq/hoodie-pocket-UIKit)
[![Dependency Status](https://www.versioneye.com/user/projects/53b679e70d5bb8cba7000075/badge.svg)](https://www.versioneye.com/user/projects/53b679e70d5bb8cba7000075)
[![devDependency Status](https://david-dm.org/hoodiehq/hoodie-pocket-UIKit/dev-status.svg)](https://david-dm.org/hoodiehq/hoodie-pocket-UIKit#info=devDependencies)

@@ -32,3 +34,11 @@ **NOTE: the functionality described here is for version 2.0.0 or higher (should be included with any hoodie-server with a version _above_ 0.9.26).**

## Development
Install dependencies and run the preview app on a local webserver with livereload.
```bash
npm install -g grunt-cli bower
npm install
bower install
grunt server
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc