Update dependencies and initial file attachments UI

This commit is contained in:
Matthew Ross 2018-02-27 19:37:01 -05:00
parent 27bf356bbf
commit 51be3921ee
5 changed files with 1999 additions and 768 deletions

2685
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,58 +27,58 @@
}, },
"homepage": "https://github.com/kiswa/TaskBoard#readme", "homepage": "https://github.com/kiswa/TaskBoard#readme",
"devDependencies": { "devDependencies": {
"@angular/common": "5.0.1", "@angular/common": "5.2.6",
"@angular/compiler": "5.0.1", "@angular/compiler": "5.2.6",
"@angular/core": "5.0.1", "@angular/core": "5.2.6",
"@angular/forms": "5.0.1", "@angular/forms": "5.2.6",
"@angular/http": "5.0.1", "@angular/http": "5.2.6",
"@angular/platform-browser": "5.0.1", "@angular/platform-browser": "5.2.6",
"@angular/platform-browser-dynamic": "5.0.1", "@angular/platform-browser-dynamic": "5.2.6",
"@angular/router": "5.0.1", "@angular/router": "5.2.6",
"@types/chartist": "^0.9.37", "@types/chartist": "^0.9.38",
"@types/core-js": "^0.9.43", "@types/core-js": "^0.9.46",
"@types/highlight.js": "^9.12.1", "@types/highlight.js": "^9.12.2",
"@types/marked": "0.3.0", "@types/marked": "0.3.0",
"bourbon": "^4.3.4", "bourbon": "4.3.4",
"bourbon-neat": "1.9.0", "bourbon-neat": "1.9.0",
"chai": "^4.1.2", "chai": "^4.1.2",
"chartist": "^0.11.0", "chartist": "^0.11.0",
"chartist-plugin-tooltips": "^0.0.17", "chartist-plugin-tooltips": "^0.0.17",
"core-js": "^2.5.1", "core-js": "^2.5.3",
"del": "^3.0.0", "del": "^3.0.0",
"dragula": "^3.7.2", "dragula": "^3.7.2",
"escape-string-regexp": "^1.0.5", "escape-string-regexp": "^1.0.5",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-autoprefixer": "^4.0.0", "gulp-autoprefixer": "^4.1.0",
"gulp-chmod": "^2.0.0", "gulp-chmod": "^2.0.0",
"gulp-composer": "^0.4.4", "gulp-composer": "^0.4.5",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-cssimport": "^6.0.0", "gulp-cssimport": "^6.0.1",
"gulp-cssnano": "^2.1.2", "gulp-cssnano": "^2.1.2",
"gulp-imagemin": "^3.4.0", "gulp-imagemin": "^4.1.0",
"gulp-istanbul": "^1.1.2", "gulp-istanbul": "^1.1.3",
"gulp-mocha": "3.0.1", "gulp-mocha": "5.0.0",
"gulp-phpunit": "^0.24.1", "gulp-phpunit": "^0.25.0",
"gulp-sass": "^3.1.0", "gulp-sass": "^3.1.0",
"gulp-scss-lint": "^0.5.0", "gulp-scss-lint": "^0.6.1",
"gulp-tslint": "^8.1.2", "gulp-tslint": "^8.1.3",
"gulp-typescript": "^3.2.3", "gulp-typescript": "^4.0.1",
"gulp-uglify": "^3.0.0", "gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.8", "gulp-util": "^3.0.8",
"highlight.js": "^9.12.0", "highlight.js": "^9.12.0",
"marked": "^0.3.6", "marked": "^0.3.17",
"merge-stream": "^1.0.1", "merge-stream": "^1.0.1",
"mock-browser": "^0.92.14", "mock-browser": "^0.92.14",
"ng2-dragula": "^1.5.0", "ng2-dragula": "^1.5.0",
"node-normalize-scss": "^3.0.0", "node-normalize-scss": "^3.0.0",
"reflect-metadata": "^0.1.10", "reflect-metadata": "^0.1.12",
"rxjs": "5.5.2", "rxjs": "5.5.6",
"scss-base": "^1.3.4", "scss-base": "^1.3.4",
"systemjs": "0.20.19", "systemjs": "0.21.0",
"systemjs-builder": "0.16.12", "systemjs-builder": "0.16.12",
"touch": "^3.1.0", "touch": "^3.1.0",
"tslint": "^5.8.0", "tslint": "^5.9.1",
"typescript": "2.6.1", "typescript": "2.7.2",
"zone.js": "^0.8.18" "zone.js": "^0.8.20"
} }
} }

View File

@ -154,8 +154,8 @@
<div> <div>
<h3>{{ strings['boards_taskAddAttachment'] }}</h3> <h3>{{ strings['boards_taskAddAttachment'] }}</h3>
<input type="file"> <input type="file" #fileupload (change)="fileChange(fileupload.files[0])">
<button> <button (click)="uploadFile()">
<i class="icon icon-upload"></i> <i class="icon icon-upload"></i>
{{ strings['boards_taskUpload'] }} {{ strings['boards_taskUpload'] }}
</button> </button>

View File

@ -69,6 +69,7 @@ export class ColumnDisplay implements OnInit {
private showActivity: boolean; private showActivity: boolean;
private newComment: string; private newComment: string;
private fileUpload: any;
@Input('column') columnData: Column; @Input('column') columnData: Column;
@Input('boards') boards: Array<Board>; @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() { addComment() {
if (this.viewModalProps.id < 1) { if (this.viewModalProps.id < 1) {
return; return;

View File

@ -18,8 +18,8 @@
{{ taskData.points }}</span> {{ taskData.points }}</span>
</h4> </h4>
<div class="description" *ngIf="!isCollapsed"> <div class="description" *ngIf="!isCollapsed" [innerHtml]="getTaskDescription()">
<ng-template *compile="getTaskDescription()"></ng-template> <!-- <ng-template *compile="getTaskDescription()"></ng-template> -->
</div> </div>
<div class="stats"> <div class="stats">