Update javascript dev dependencies

This commit is contained in:
Frederic Guillot
2017-01-02 20:47:20 -05:00
parent 3833c12ccc
commit f2a24fb3bf
9 changed files with 2431 additions and 19 deletions

2
.gitattributes vendored
View File

@@ -2,10 +2,10 @@ app/constants.php export-subst
.gitattributes export-ignore .gitattributes export-ignore
.gitignore export-ignore .gitignore export-ignore
.docker export-ignore .docker export-ignore
.scrutinizer.yml export-ignore .scrutinizer.yml export-ignore
.travis.yml export-ignore .travis.yml export-ignore
yarn.lock export-ignore
Dockerfile export-ignore Dockerfile export-ignore
docker-compose.yml export-ignore docker-compose.yml export-ignore
Makefile export-ignore Makefile export-ignore

View File

@@ -6,7 +6,7 @@ clean:
@ rm -rf ./node_modules ./bower_components @ rm -rf ./node_modules ./bower_components
static: clean static: clean
@ npm install @ yarn install || npm install
@ ./node_modules/.bin/gulp bower @ ./node_modules/.bin/gulp bower
@ ./node_modules/.bin/gulp vendor js css @ ./node_modules/.bin/gulp vendor js css
@ ./node_modules/.bin/jshint assets/js/{core,components,polyfills} @ ./node_modules/.bin/jshint assets/js/{core,components,polyfills}

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@
return e.target.parentNode.getAttribute('href'); return e.target.parentNode.getAttribute('href');
} }
return e.target.getAttribute('href') return e.target.getAttribute('href');
} }
KB.onClick('.js-modal-large', function (e) { KB.onClick('.js-modal-large', function (e) {

View File

@@ -2,6 +2,10 @@ KB.component('screenshot', function (containerElement) {
var pasteCatcher = null; var pasteCatcher = null;
var inputElement = null; var inputElement = null;
function onFileLoaded(e) {
createImage(e.target.result);
}
function onPaste(e) { function onPaste(e) {
// Firefox doesn't have the property e.clipboardData.items (only Chrome) // Firefox doesn't have the property e.clipboardData.items (only Chrome)
if (e.clipboardData && e.clipboardData.items) { if (e.clipboardData && e.clipboardData.items) {
@@ -16,10 +20,7 @@ KB.component('screenshot', function (containerElement) {
// Get the image as base64 data // Get the image as base64 data
var reader = new FileReader(); var reader = new FileReader();
reader.onload = function (event) { reader.onload = onFileLoaded;
createImage(event.target.result);
};
reader.readAsDataURL(blob); reader.readAsDataURL(blob);
} }
} }

View File

@@ -85,7 +85,7 @@ KB.component('submit-buttons', function (containerElement, options) {
if (KB.modal.isOpen()) { if (KB.modal.isOpen()) {
formActionElementBuilder formActionElementBuilder
.text(' ' + options.orLabel + ' ') .text(' ' + options.orLabel + ' ')
.add(KB.dom('a').attr('href', '#').click(onCancel).text(options.cancelLabel).build()) .add(KB.dom('a').attr('href', '#').click(onCancel).text(options.cancelLabel).build());
} }
formActionElement = formActionElementBuilder.build(); formActionElement = formActionElementBuilder.build();

View File

@@ -3,7 +3,6 @@ var concat = require('gulp-concat');
var bower = require('gulp-bower'); var bower = require('gulp-bower');
var uglify = require('gulp-uglify'); var uglify = require('gulp-uglify');
var sass = require('gulp-sass'); var sass = require('gulp-sass');
var strip = require('gulp-strip-comments');
var src = { var src = {
js: [ js: [

View File

@@ -1,14 +1,13 @@
{ {
"name": "kanboard", "name": "kanboard",
"devDependencies": { "devDependencies": {
"bower": "^1.7.9", "bower": "^1.8.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-bower": "0.0.13", "gulp-bower": "^0.0.13",
"gulp-cli": "^1.2.1", "gulp-cli": "^1.2.2",
"gulp-concat": "^2.6.0", "gulp-concat": "^2.6.1",
"gulp-sass": "^2.3.2", "gulp-sass": "^3.0.0",
"gulp-strip-comments": "^2.4.3", "gulp-uglify": "^2.0.0",
"gulp-uglify": "^1.5.3",
"jshint": "^2.9.4" "jshint": "^2.9.4"
}, },
"dependencies": { "dependencies": {

2413
yarn.lock Normal file

File diff suppressed because it is too large Load Diff