Update dependencies and initial file attachments UI
This commit is contained in:
parent
27bf356bbf
commit
51be3921ee
2685
package-lock.json
generated
2685
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
60
package.json
60
package.json
@ -27,58 +27,58 @@
|
||||
},
|
||||
"homepage": "https://github.com/kiswa/TaskBoard#readme",
|
||||
"devDependencies": {
|
||||
"@angular/common": "5.0.1",
|
||||
"@angular/compiler": "5.0.1",
|
||||
"@angular/core": "5.0.1",
|
||||
"@angular/forms": "5.0.1",
|
||||
"@angular/http": "5.0.1",
|
||||
"@angular/platform-browser": "5.0.1",
|
||||
"@angular/platform-browser-dynamic": "5.0.1",
|
||||
"@angular/router": "5.0.1",
|
||||
"@types/chartist": "^0.9.37",
|
||||
"@types/core-js": "^0.9.43",
|
||||
"@types/highlight.js": "^9.12.1",
|
||||
"@angular/common": "5.2.6",
|
||||
"@angular/compiler": "5.2.6",
|
||||
"@angular/core": "5.2.6",
|
||||
"@angular/forms": "5.2.6",
|
||||
"@angular/http": "5.2.6",
|
||||
"@angular/platform-browser": "5.2.6",
|
||||
"@angular/platform-browser-dynamic": "5.2.6",
|
||||
"@angular/router": "5.2.6",
|
||||
"@types/chartist": "^0.9.38",
|
||||
"@types/core-js": "^0.9.46",
|
||||
"@types/highlight.js": "^9.12.2",
|
||||
"@types/marked": "0.3.0",
|
||||
"bourbon": "^4.3.4",
|
||||
"bourbon": "4.3.4",
|
||||
"bourbon-neat": "1.9.0",
|
||||
"chai": "^4.1.2",
|
||||
"chartist": "^0.11.0",
|
||||
"chartist-plugin-tooltips": "^0.0.17",
|
||||
"core-js": "^2.5.1",
|
||||
"core-js": "^2.5.3",
|
||||
"del": "^3.0.0",
|
||||
"dragula": "^3.7.2",
|
||||
"escape-string-regexp": "^1.0.5",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-autoprefixer": "^4.0.0",
|
||||
"gulp-autoprefixer": "^4.1.0",
|
||||
"gulp-chmod": "^2.0.0",
|
||||
"gulp-composer": "^0.4.4",
|
||||
"gulp-composer": "^0.4.5",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-cssimport": "^6.0.0",
|
||||
"gulp-cssimport": "^6.0.1",
|
||||
"gulp-cssnano": "^2.1.2",
|
||||
"gulp-imagemin": "^3.4.0",
|
||||
"gulp-istanbul": "^1.1.2",
|
||||
"gulp-mocha": "3.0.1",
|
||||
"gulp-phpunit": "^0.24.1",
|
||||
"gulp-imagemin": "^4.1.0",
|
||||
"gulp-istanbul": "^1.1.3",
|
||||
"gulp-mocha": "5.0.0",
|
||||
"gulp-phpunit": "^0.25.0",
|
||||
"gulp-sass": "^3.1.0",
|
||||
"gulp-scss-lint": "^0.5.0",
|
||||
"gulp-tslint": "^8.1.2",
|
||||
"gulp-typescript": "^3.2.3",
|
||||
"gulp-scss-lint": "^0.6.1",
|
||||
"gulp-tslint": "^8.1.3",
|
||||
"gulp-typescript": "^4.0.1",
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"gulp-util": "^3.0.8",
|
||||
"highlight.js": "^9.12.0",
|
||||
"marked": "^0.3.6",
|
||||
"marked": "^0.3.17",
|
||||
"merge-stream": "^1.0.1",
|
||||
"mock-browser": "^0.92.14",
|
||||
"ng2-dragula": "^1.5.0",
|
||||
"node-normalize-scss": "^3.0.0",
|
||||
"reflect-metadata": "^0.1.10",
|
||||
"rxjs": "5.5.2",
|
||||
"reflect-metadata": "^0.1.12",
|
||||
"rxjs": "5.5.6",
|
||||
"scss-base": "^1.3.4",
|
||||
"systemjs": "0.20.19",
|
||||
"systemjs": "0.21.0",
|
||||
"systemjs-builder": "0.16.12",
|
||||
"touch": "^3.1.0",
|
||||
"tslint": "^5.8.0",
|
||||
"typescript": "2.6.1",
|
||||
"zone.js": "^0.8.18"
|
||||
"tslint": "^5.9.1",
|
||||
"typescript": "2.7.2",
|
||||
"zone.js": "^0.8.20"
|
||||
}
|
||||
}
|
||||
|
@ -154,8 +154,8 @@
|
||||
|
||||
<div>
|
||||
<h3>{{ strings['boards_taskAddAttachment'] }}</h3>
|
||||
<input type="file">
|
||||
<button>
|
||||
<input type="file" #fileupload (change)="fileChange(fileupload.files[0])">
|
||||
<button (click)="uploadFile()">
|
||||
<i class="icon icon-upload"></i>
|
||||
{{ strings['boards_taskUpload'] }}
|
||||
</button>
|
||||
|
@ -69,6 +69,7 @@ export class ColumnDisplay implements OnInit {
|
||||
private showActivity: boolean;
|
||||
|
||||
private newComment: string;
|
||||
private fileUpload: any;
|
||||
|
||||
@Input('column') columnData: Column;
|
||||
@Input('boards') boards: Array<Board>;
|
||||
@ -257,6 +258,19 @@ export class ColumnDisplay implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
fileChange(file: File) {
|
||||
this.fileUpload = file;
|
||||
}
|
||||
|
||||
uploadFile() {
|
||||
let formData = new FormData();
|
||||
formData.append('file', this.fileUpload, this.fileUpload.name);
|
||||
|
||||
let headers = new Headers();
|
||||
|
||||
console.log(formData, headers); // tslint:disable-line
|
||||
}
|
||||
|
||||
addComment() {
|
||||
if (this.viewModalProps.id < 1) {
|
||||
return;
|
||||
|
@ -18,8 +18,8 @@
|
||||
{{ taskData.points }}</span>
|
||||
</h4>
|
||||
|
||||
<div class="description" *ngIf="!isCollapsed">
|
||||
<ng-template *compile="getTaskDescription()"></ng-template>
|
||||
<div class="description" *ngIf="!isCollapsed" [innerHtml]="getTaskDescription()">
|
||||
<!-- <ng-template *compile="getTaskDescription()"></ng-template> -->
|
||||
</div>
|
||||
|
||||
<div class="stats">
|
||||
|
Reference in New Issue
Block a user