-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.bundle.js
828 lines (664 loc) · 37.2 KB
/
main.bundle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
webpackJsonp([1,4],{
/***/ 151:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 152:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, ".container {\n text-align: center;\n}\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 153:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "h1, h2 {\n color: white;\n font-family: Sketch;\n text-align: center;\n}\n\nh1 {\n font-size: 4em;\n}\n\nh2.project {\n font-family: inherit;\n}\n\n.header {\n padding: 5px;\n}\n\n.navbar {\n box-shadow: 0px 5px 10px #d3d3d3!important;\n border-radius: 0!important;\n}\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 154:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 155:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 156:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 157:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 158:
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(5)(false);
// imports
// module
exports.push([module.i, "", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ 161:
/***/ (function(module, exports) {
module.exports = "<app-header [currentProject] = 'currentProject'></app-header>\n<div class=\"container\">\n <div class=\"row\" *ngIf='projects.length>0'>\n <div class=\"col-md-3 panel panel-default\">\n <div class=\"panel-heading\">\n <h2 class=\"panel-title\">Todo</h2>\n </div>\n <div class=\"panel-body\">\n <app-list-todo class='text-center' *ngFor='let Task of Tasks' [currentProject]='currentProject' [task]='Task' (taskClicked)='onStateUpdate($event)'></app-list-todo>\n </div>\n </div>\n <div class=\"col-md-4 col-md-offset-1 panel panel-default\">\n <div class=\"panel-heading\">\n <h2 class=\"panel-title\">Current</h2>\n </div>\n <div class=\"panel-body\">\n <app-list-current class='text-center' *ngFor='let Task of Tasks' [currentProject]='currentProject' [task]='Task' (taskClicked)='onStateUpdate($event)'></app-list-current>\n </div>\n </div>\n <div class=\"col-md-3 col-md-offset-1 panel panel-default\">\n <div class=\"panel-heading\">\n <h2 class=\"panel-title\">Done</h2>\n </div>\n <div class=\"panel-body\">\n <app-list-done class='text-center' *ngFor='let Task of Tasks' [currentProject]='currentProject' [task]='Task' (taskClicked)='onStateUpdate($event)'></app-list-done>\n </div>\n </div>\n </div>\n <hr>\n <div class=\"row\">\n <app-projects *ngIf='projects.length===0' class='col-md-12' (projectCreated)='onNewProject($event)' (projectDeleted)='onDeleteProject($event)' (projectSelected)='onSelectedProject($event)' [projects]='projects' [selectedProject]='currentProject'></app-projects>\n <app-projects *ngIf='projects.length>0'class='col-md-6' (projectCreated)='onNewProject($event)' (projectDeleted)='onDeleteProject($event)' (projectSelected)='onSelectedProject($event)' [projects]='projects' [selectedProject]='currentProject'></app-projects>\n <app-new-task class=\"col-md-6\" *ngIf='projects.length>0' (taskCreated)='onNewTask($event)' [currentProject]='currentProject' [timesVisited]='timesVisited'></app-new-task>\n </div>\n <h3 *ngIf='projects.length === 0'>Start by creating a new project!</h3>\n <hr>\n <app-emptylocalstorage></app-emptylocalstorage>\n\n</div>\n"
/***/ }),
/***/ 162:
/***/ (function(module, exports) {
module.exports = "<div class=\"container\">\n <button class='btn btn-danger' type=\"button\" name=\"button\" (click)='onEmpty()'><span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></span> Supprimer tous mes projets <span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></span></button>\n</div>\n"
/***/ }),
/***/ 163:
/***/ (function(module, exports) {
module.exports = "<nav class=\"navbar navbar-inverse\">\n <div class=\"container\">\n <div class=\"header\">\n <h1>TreAngular</h1>\n <h2 *ngIf='!currentProject'>An Angular project</h2>\n <h2 *ngIf='currentProject' class=\"project\"> Project: {{currentProject}}</h2>\n </div>\n </div>\n</nav>\n"
/***/ }),
/***/ 164:
/***/ (function(module, exports) {
module.exports = "<div>\n <button class='btn btn-success' type=\"button\" title=\"You're done? Then click me!\" name=\"button\" *ngIf='(task.state === \"current\") && (task.project === currentProject)' (click)='onTaskClicked(task.description,task.state, task.project)'>{{task.description}}, started at {{task.start | date: 'HH:mm on dd/MM/yyyy '}} <span class=\"glyphicon glyphicon-ok\" aria-hidden=\"true\"></span></button>\n</div>\n"
/***/ }),
/***/ 165:
/***/ (function(module, exports) {
module.exports = "<div>\n <button class='btn btn-danger' type=\"button\" title=\"Carefull! If you click me I'll disappear!\" name=\"button\" *ngIf='(task.state === \"done\") && (task.project === currentProject)' (click)='onTaskClicked(task.description,task.state, task.project)'>{{task.description}} <span class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></span></button>\n</div>\n"
/***/ }),
/***/ 166:
/***/ (function(module, exports) {
module.exports = "<div>\n <button class='btn btn-default' type=\"button\" title=\"Let's get to work!\" name=\"button\" *ngIf='(task.state === \"todo\") && (task.project === currentProject)' (click)='onTaskClicked(task.description,task.state, task.project)'>{{task.description}} <span class=\"glyphicon glyphicon-play\" aria-hidden=\"true\"></span></button>\n</div>\n"
/***/ }),
/***/ 167:
/***/ (function(module, exports) {
module.exports = "<form>\n <div class=\"form-group\">\n <label for=\"newtask\">Create a new task</label>\n <input name='description' type=\"text\" class=\"form-control\" #description>\n </div>\n <button class=\"btn btn-success\" (click)='onNewTaskCreated(description)'>Add a new Task</button>\n <h3 class='taskcreation' *ngIf='timesVisited <= 5'>Then Create your tasks!</h3>\n</form>\n"
/***/ }),
/***/ 168:
/***/ (function(module, exports) {
module.exports = "<div *ngIf='projects.length>1' class=\"form-group\">\n <label for=\"projects\">Select your project</label>\n <select (click)='onSelectedProject(selectedProject)' class=\"form-control\" id=\"projects\" [(ngModel)]=\"selectedProject\">\n <option *ngFor=\"let project of projects\" [value]=\"project\">{{project}}</option>\n </select>\n</div>\n\n <form>\n <div class=\"form-group\">\n <label for=\"newproject\">Create a new project</label>\n <input required type=\"text\" class=\"form-control\" #newprojectName>\n </div>\n <button class=\"btn btn-success\" (click)='onNewProjectCreated(newprojectName)'>Add a new Project</button>\n <button class=\"btn btn-danger\" (click)='onDeleteProject(selectedProject)' *ngIf='projects.length>0'><span class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></span> Delete the current Project </button>\n </form>\n"
/***/ }),
/***/ 196:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(76);
/***/ }),
/***/ 75:
/***/ (function(module, exports) {
function webpackEmptyContext(req) {
throw new Error("Cannot find module '" + req + "'.");
}
webpackEmptyContext.keys = function() { return []; };
webpackEmptyContext.resolve = webpackEmptyContext;
module.exports = webpackEmptyContext;
webpackEmptyContext.id = 75;
/***/ }),
/***/ 76:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__(85);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module__ = __webpack_require__(88);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__(96);
if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) {
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["a" /* enableProdMode */])();
}
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_app_module__["a" /* AppModule */]);
//# sourceMappingURL=main.js.map
/***/ }),
/***/ 87:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var AppComponent = (function () {
function AppComponent() {
this.Tasks = [];
this.projects = [];
this.timesVisited = 0;
console.log(JSON.parse(localStorage.getItem('Tasks')));
if ((localStorage.getItem('Tasks')) !== null) {
this.Tasks = JSON.parse(localStorage.getItem('Tasks'));
}
if ((localStorage.getItem('projects')) !== null) {
this.projects = JSON.parse(localStorage.getItem('projects'));
}
if ((localStorage.getItem('currentProject')) !== null) {
this.currentProject = JSON.parse(localStorage.getItem('currentProject'));
}
if ((localStorage.getItem('timesVisited')) !== null) {
this.timesVisited = JSON.parse(localStorage.getItem('timesVisited'));
}
this.timesVisited++;
console.log(this.timesVisited);
localStorage.setItem("timesVisited", JSON.stringify(this.timesVisited));
}
AppComponent.prototype.onNewTask = function (newTaskData) {
this.Tasks.push(newTaskData);
this.JSONTasks = JSON.stringify(this.Tasks);
localStorage.setItem("Tasks", this.JSONTasks);
};
AppComponent.prototype.onNewProject = function (newProjectData) {
this.projects.push(newProjectData.projectName);
this.JSONprojects = JSON.stringify(this.projects);
localStorage.setItem("projects", this.JSONprojects);
this.currentProject = newProjectData.projectName;
this.JSONcurrentProject = JSON.stringify(this.currentProject);
localStorage.setItem("currentProject", this.JSONcurrentProject);
};
AppComponent.prototype.onDeleteProject = function (deleteProjectData) {
var newProjects = [];
//search through the projects array and delete it
for (var i = 0; i < this.projects.length; i++) {
if (this.projects[i] !== deleteProjectData.projectName) {
newProjects.push(this.projects[i]);
}
}
this.projects = newProjects;
this.JSONprojects = JSON.stringify(this.projects);
localStorage.setItem("projects", this.JSONprojects);
this.currentProject = this.projects[0];
this.JSONcurrentProject = JSON.stringify(this.currentProject);
localStorage.setItem("currentProject", this.JSONcurrentProject);
//search through Tasks array and suppress every Task within the project to delete
var newTasks = [];
for (var i = 0; i < this.Tasks.length; i++) {
if (this.Tasks[i].project !== deleteProjectData.projectName) {
newTasks.push(this.Tasks[i]);
}
}
this.Tasks = newTasks;
this.JSONTasks = JSON.stringify(this.Tasks);
localStorage.setItem("Tasks", this.JSONTasks);
};
AppComponent.prototype.onStateUpdate = function (taskClicked) {
if (taskClicked.state === 'todo') {
var newTasks = [];
for (var i = 0; i < this.Tasks.length; i++) {
if (this.Tasks[i].description !== taskClicked.description) {
newTasks.push(this.Tasks[i]);
}
}
taskClicked.state = 'current';
taskClicked.start = new Date();
newTasks.push(taskClicked);
this.Tasks = newTasks;
this.JSONTasks = JSON.stringify(this.Tasks);
localStorage.setItem("Tasks", this.JSONTasks);
}
else if (taskClicked.state === 'current') {
var newTasks = [];
for (var i = 0; i < this.Tasks.length; i++) {
if (this.Tasks[i].description !== taskClicked.description) {
newTasks.push(this.Tasks[i]);
}
}
taskClicked.state = 'done';
newTasks.push(taskClicked);
this.Tasks = newTasks;
this.JSONTasks = JSON.stringify(this.Tasks);
localStorage.setItem("Tasks", this.JSONTasks);
}
else if (taskClicked.state === 'done') {
var newTasks = [];
for (var i = 0; i < this.Tasks.length; i++) {
if (this.Tasks[i].description !== taskClicked.description) {
newTasks.push(this.Tasks[i]);
}
}
this.Tasks = newTasks;
this.JSONTasks = JSON.stringify(this.Tasks);
localStorage.setItem("Tasks", this.JSONTasks);
}
};
AppComponent.prototype.onSelectedProject = function (selectedProjectData) {
this.currentProject = selectedProjectData.projectName;
this.JSONcurrentProject = JSON.stringify(this.currentProject);
localStorage.setItem("currentProject", this.JSONcurrentProject);
};
return AppComponent;
}());
AppComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-root',
template: __webpack_require__(161),
styles: [__webpack_require__(151)]
}),
__metadata("design:paramtypes", [])
], AppComponent);
//# sourceMappingURL=app.component.js.map
/***/ }),
/***/ 88:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(83);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_platform_browser_animations__ = __webpack_require__(86);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(87);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__header_header_component__ = __webpack_require__(90);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__list_todo_list_todo_component__ = __webpack_require__(93);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__list_current_list_current_component__ = __webpack_require__(91);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__list_done_list_done_component__ = __webpack_require__(92);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__new_task_new_task_component__ = __webpack_require__(94);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__projects_projects_component__ = __webpack_require__(95);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emptylocalstorage_emptylocalstorage_component__ = __webpack_require__(89);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var AppModule = (function () {
function AppModule() {
}
return AppModule;
}());
AppModule = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__["b" /* NgModule */])({
declarations: [
__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* AppComponent */],
__WEBPACK_IMPORTED_MODULE_6__header_header_component__["a" /* HeaderComponent */],
__WEBPACK_IMPORTED_MODULE_7__list_todo_list_todo_component__["a" /* ListTodoComponent */],
__WEBPACK_IMPORTED_MODULE_8__list_current_list_current_component__["a" /* ListCurrentComponent */],
__WEBPACK_IMPORTED_MODULE_9__list_done_list_done_component__["a" /* ListDoneComponent */],
__WEBPACK_IMPORTED_MODULE_10__new_task_new_task_component__["a" /* NewTaskComponent */],
__WEBPACK_IMPORTED_MODULE_11__projects_projects_component__["a" /* ProjectsComponent */],
__WEBPACK_IMPORTED_MODULE_12__emptylocalstorage_emptylocalstorage_component__["a" /* EmptylocalstorageComponent */]
],
imports: [
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
__WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormsModule */],
__WEBPACK_IMPORTED_MODULE_3__angular_http__["a" /* HttpModule */],
__WEBPACK_IMPORTED_MODULE_4__angular_platform_browser_animations__["a" /* BrowserAnimationsModule */]
],
providers: [],
bootstrap: [__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* AppComponent */]]
})
], AppModule);
//# sourceMappingURL=app.module.js.map
/***/ }),
/***/ 89:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EmptylocalstorageComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var EmptylocalstorageComponent = (function () {
function EmptylocalstorageComponent() {
}
EmptylocalstorageComponent.prototype.onEmpty = function () {
localStorage.clear();
document.location.reload();
};
EmptylocalstorageComponent.prototype.ngOnInit = function () {
};
return EmptylocalstorageComponent;
}());
EmptylocalstorageComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-emptylocalstorage',
template: __webpack_require__(162),
styles: [__webpack_require__(152)]
}),
__metadata("design:paramtypes", [])
], EmptylocalstorageComponent);
//# sourceMappingURL=emptylocalstorage.component.js.map
/***/ }),
/***/ 90:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var HeaderComponent = (function () {
function HeaderComponent() {
}
HeaderComponent.prototype.ngOnInit = function () {
};
return HeaderComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], HeaderComponent.prototype, "currentProject", void 0);
HeaderComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-header',
template: __webpack_require__(163),
styles: [__webpack_require__(153)]
}),
__metadata("design:paramtypes", [])
], HeaderComponent);
//# sourceMappingURL=header.component.js.map
/***/ }),
/***/ 91:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListCurrentComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ListCurrentComponent = (function () {
function ListCurrentComponent() {
this.taskClicked = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
}
ListCurrentComponent.prototype.ngOnInit = function () {
};
ListCurrentComponent.prototype.onTaskClicked = function (description, state, project) {
this.taskClicked.emit({ description: description, state: state, project: project });
};
return ListCurrentComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ListCurrentComponent.prototype, "taskClicked", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListCurrentComponent.prototype, "task", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListCurrentComponent.prototype, "currentProject", void 0);
ListCurrentComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-list-current',
template: __webpack_require__(164),
styles: [__webpack_require__(154)]
}),
__metadata("design:paramtypes", [])
], ListCurrentComponent);
//# sourceMappingURL=list-current.component.js.map
/***/ }),
/***/ 92:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListDoneComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ListDoneComponent = (function () {
function ListDoneComponent() {
this.taskClicked = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
}
ListDoneComponent.prototype.ngOnInit = function () {
};
ListDoneComponent.prototype.onTaskClicked = function (description, state, project) {
this.taskClicked.emit({ description: description, state: state, project: project });
};
return ListDoneComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ListDoneComponent.prototype, "taskClicked", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListDoneComponent.prototype, "task", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListDoneComponent.prototype, "currentProject", void 0);
ListDoneComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-list-done',
template: __webpack_require__(165),
styles: [__webpack_require__(155)]
}),
__metadata("design:paramtypes", [])
], ListDoneComponent);
//# sourceMappingURL=list-done.component.js.map
/***/ }),
/***/ 93:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ListTodoComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ListTodoComponent = (function () {
function ListTodoComponent() {
this.taskClicked = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
}
ListTodoComponent.prototype.ngOnInit = function () {
};
ListTodoComponent.prototype.onTaskClicked = function (description, state, project) {
this.taskClicked.emit({ description: description, state: state, project: project });
};
return ListTodoComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ListTodoComponent.prototype, "taskClicked", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListTodoComponent.prototype, "task", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ListTodoComponent.prototype, "currentProject", void 0);
ListTodoComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-list-todo',
template: __webpack_require__(166),
styles: [__webpack_require__(156)]
}),
__metadata("design:paramtypes", [])
], ListTodoComponent);
//# sourceMappingURL=list-todo.component.js.map
/***/ }),
/***/ 94:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NewTaskComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var NewTaskComponent = (function () {
function NewTaskComponent() {
this.description = '';
this.taskCreated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
}
NewTaskComponent.prototype.ngOnInit = function () {
};
NewTaskComponent.prototype.onNewTaskCreated = function (description, selectedValue, project) {
this.taskCreated.emit({ description: description.value, state: 'todo', project: this.currentProject });
description.value = '';
};
return NewTaskComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], NewTaskComponent.prototype, "taskCreated", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], NewTaskComponent.prototype, "currentProject", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], NewTaskComponent.prototype, "timesVisited", void 0);
NewTaskComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-new-task',
template: __webpack_require__(167),
styles: [__webpack_require__(157)]
}),
__metadata("design:paramtypes", [])
], NewTaskComponent);
//# sourceMappingURL=new-task.component.js.map
/***/ }),
/***/ 95:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProjectsComponent; });
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var ProjectsComponent = (function () {
function ProjectsComponent() {
this.projectCreated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
this.projectDeleted = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
this.projectSelected = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["D" /* EventEmitter */]();
}
ProjectsComponent.prototype.onNewProjectCreated = function (newprojectName) {
this.projectCreated.emit({ projectName: newprojectName.value });
newprojectName.value = '';
};
ProjectsComponent.prototype.onDeleteProject = function (selectedProject) {
this.projectDeleted.emit({ projectName: selectedProject });
};
ProjectsComponent.prototype.onSelectedProject = function (selectedProject) {
this.projectSelected.emit({ projectName: selectedProject });
};
ProjectsComponent.prototype.ngOnInit = function () {
};
return ProjectsComponent;
}());
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ProjectsComponent.prototype, "projects", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ProjectsComponent.prototype, "projectCreated", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ProjectsComponent.prototype, "projectDeleted", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_2" /* Output */])(),
__metadata("design:type", Object)
], ProjectsComponent.prototype, "projectSelected", void 0);
__decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["M" /* Input */])(),
__metadata("design:type", Object)
], ProjectsComponent.prototype, "selectedProject", void 0);
ProjectsComponent = __decorate([
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_3" /* Component */])({
selector: 'app-projects',
template: __webpack_require__(168),
styles: [__webpack_require__(158)]
}),
__metadata("design:paramtypes", [])
], ProjectsComponent);
//# sourceMappingURL=projects.component.js.map
/***/ }),
/***/ 96:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
// The file contents for the current environment will overwrite these during build.
var environment = {
production: false
};
//# sourceMappingURL=environment.js.map
/***/ })
},[196]);
//# sourceMappingURL=main.bundle.js.map