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
.gitignore export-ignore
.docker export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
yarn.lock export-ignore
Dockerfile export-ignore
docker-compose.yml export-ignore
Makefile export-ignore

View File

@ -6,7 +6,7 @@ clean:
@ rm -rf ./node_modules ./bower_components
static: clean
@ npm install
@ yarn install || npm install
@ ./node_modules/.bin/gulp bower
@ ./node_modules/.bin/gulp vendor js css
@ ./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.getAttribute('href')
return e.target.getAttribute('href');
}
KB.onClick('.js-modal-large', function (e) {

View File

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

View File

@ -85,7 +85,7 @@ KB.component('submit-buttons', function (containerElement, options) {
if (KB.modal.isOpen()) {
formActionElementBuilder
.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();

View File

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

View File

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

2413
yarn.lock Normal file

File diff suppressed because it is too large Load Diff