Skip to content

Commit c656f2c

Browse files
committed
added code coverage dependecies
1 parent 1ca70b8 commit c656f2c

File tree

3 files changed

+155
-124
lines changed

3 files changed

+155
-124
lines changed

angular.json

Lines changed: 119 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,126 @@
11
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"time-tracker": {
7-
"projectType": "application",
8-
"schematics": {},
9-
"root": "",
10-
"sourceRoot": "src",
11-
"prefix": "app",
12-
"architect": {
13-
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
15-
"options": {
16-
"outputPath": "dist/time-tracker",
17-
"index": "src/index.html",
18-
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
20-
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
22-
"assets": [
23-
"src/favicon.ico",
24-
"src/assets"
25-
],
26-
"styles": [
27-
"src/styles.css"
28-
],
29-
"scripts": []
30-
},
31-
"configurations": {
32-
"production": {
33-
"fileReplacements": [
34-
{
35-
"replace": "src/environments/environment.ts",
36-
"with": "src/environments/environment.prod.ts"
37-
}
38-
],
39-
"optimization": true,
40-
"outputHashing": "all",
41-
"sourceMap": false,
42-
"extractCss": true,
43-
"namedChunks": false,
44-
"extractLicenses": true,
45-
"vendorChunk": false,
46-
"buildOptimizer": true,
47-
"budgets": [
48-
{
49-
"type": "initial",
50-
"maximumWarning": "2mb",
51-
"maximumError": "5mb"
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"time-tracker": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/time-tracker",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": true,
22+
"assets": [
23+
"src/favicon.ico",
24+
"src/assets"
25+
],
26+
"styles": [
27+
"src/styles.css"
28+
],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"fileReplacements": [{
34+
"replace": "src/environments/environment.ts",
35+
"with": "src/environments/environment.prod.ts"
36+
}],
37+
"optimization": true,
38+
"outputHashing": "all",
39+
"sourceMap": false,
40+
"extractCss": true,
41+
"namedChunks": false,
42+
"extractLicenses": true,
43+
"vendorChunk": false,
44+
"buildOptimizer": true,
45+
"budgets": [{
46+
"type": "initial",
47+
"maximumWarning": "2mb",
48+
"maximumError": "5mb"
49+
},
50+
{
51+
"type": "anyComponentStyle",
52+
"maximumWarning": "6kb",
53+
"maximumError": "10kb"
54+
}
55+
]
56+
}
57+
}
58+
},
59+
"serve": {
60+
"builder": "@angular-devkit/build-angular:dev-server",
61+
"options": {
62+
"browserTarget": "time-tracker:build"
63+
},
64+
"configurations": {
65+
"production": {
66+
"browserTarget": "time-tracker:build:production"
67+
}
68+
}
69+
},
70+
"extract-i18n": {
71+
"builder": "@angular-devkit/build-angular:extract-i18n",
72+
"options": {
73+
"browserTarget": "time-tracker:build"
74+
}
75+
},
76+
"test": {
77+
"builder": "@angular-devkit/build-angular:karma",
78+
"options": {
79+
"main": "src/test.ts",
80+
"codeCoverage": true,
81+
"polyfills": "src/polyfills.ts",
82+
"tsConfig": "tsconfig.spec.json",
83+
"karmaConfig": "karma.conf.js",
84+
"assets": [
85+
"src/favicon.ico",
86+
"src/assets"
87+
],
88+
"styles": [
89+
"src/styles.css"
90+
],
91+
"scripts": []
92+
}
5293
},
53-
{
54-
"type": "anyComponentStyle",
55-
"maximumWarning": "6kb",
56-
"maximumError": "10kb"
94+
"lint": {
95+
"builder": "@angular-devkit/build-angular:tslint",
96+
"options": {
97+
"tsConfig": [
98+
"tsconfig.app.json",
99+
"tsconfig.spec.json",
100+
"e2e/tsconfig.json"
101+
],
102+
"exclude": [
103+
"**/node_modules/**"
104+
]
105+
}
106+
},
107+
"e2e": {
108+
"builder": "@angular-devkit/build-angular:protractor",
109+
"options": {
110+
"protractorConfig": "e2e/protractor.conf.js",
111+
"devServerTarget": "time-tracker:serve"
112+
},
113+
"configurations": {
114+
"production": {
115+
"devServerTarget": "time-tracker:serve:production"
116+
}
117+
}
57118
}
58-
]
59-
}
60-
}
61-
},
62-
"serve": {
63-
"builder": "@angular-devkit/build-angular:dev-server",
64-
"options": {
65-
"browserTarget": "time-tracker:build"
66-
},
67-
"configurations": {
68-
"production": {
69-
"browserTarget": "time-tracker:build:production"
70-
}
71-
}
72-
},
73-
"extract-i18n": {
74-
"builder": "@angular-devkit/build-angular:extract-i18n",
75-
"options": {
76-
"browserTarget": "time-tracker:build"
77-
}
78-
},
79-
"test": {
80-
"builder": "@angular-devkit/build-angular:karma",
81-
"options": {
82-
"main": "src/test.ts",
83-
"polyfills": "src/polyfills.ts",
84-
"tsConfig": "tsconfig.spec.json",
85-
"karmaConfig": "karma.conf.js",
86-
"assets": [
87-
"src/favicon.ico",
88-
"src/assets"
89-
],
90-
"styles": [
91-
"src/styles.css"
92-
],
93-
"scripts": []
94-
}
95-
},
96-
"lint": {
97-
"builder": "@angular-devkit/build-angular:tslint",
98-
"options": {
99-
"tsConfig": [
100-
"tsconfig.app.json",
101-
"tsconfig.spec.json",
102-
"e2e/tsconfig.json"
103-
],
104-
"exclude": [
105-
"**/node_modules/**"
106-
]
107-
}
108-
},
109-
"e2e": {
110-
"builder": "@angular-devkit/build-angular:protractor",
111-
"options": {
112-
"protractorConfig": "e2e/protractor.conf.js",
113-
"devServerTarget": "time-tracker:serve"
114-
},
115-
"configurations": {
116-
"production": {
117-
"devServerTarget": "time-tracker:serve:production"
118119
}
119-
}
120120
}
121-
}
121+
},
122+
"defaultProject": "time-tracker",
123+
"cli": {
124+
"analytics": false
122125
}
123-
},
124-
"defaultProject": "time-tracker",
125-
"cli": {
126-
"analytics": false
127-
}
128126
}

src/app/components/optionsSidebar/time-clock/time-clock.component.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ <h3>-</h3>
2424
<div class="col-4">
2525
<h6>Day</h6>
2626
<h3>4:22</h3>
27-
2827
</div>
2928
<div class="col-4">
3029
<h6>Week</h6>
@@ -55,6 +54,30 @@ <h6 class="text-left"><strong>Projects</strong></h6>
5554
</ul>
5655
<br>
5756

57+
58+
<form>
59+
<div class="form-group row">
60+
<label for="inputActivity" class="col-sm-2 col-form-label text-center"><strong>Activity</strong></label>
61+
<div class="col-sm-10">
62+
<input type="text" class="form-control">
63+
</div>
64+
</div>
65+
<div class="form-group row">
66+
<label for="inputJiraTicket" class="col-sm-2 col-form-label text-center"><strong>Jira Ticket</strong></label>
67+
<div class="col-sm-10">
68+
<input type="text" class="form-control">
69+
</div>
70+
</div>
71+
<div class="form-group row">
72+
<label for="inputTechnology" class="col-sm-2 col-form-label text-center"><strong>Technology</strong></label>
73+
<div class="col-sm-10">
74+
<input type="text" class="form-control">
75+
</div>
76+
</div>
77+
</form>
78+
79+
<hr>
80+
5881
<div class="container">
5982
<div class="row">
6083
<div class="col text-left">
@@ -63,7 +86,7 @@ <h6 class="text-left"><strong>Projects</strong></h6>
6386
</button>
6487
</div>
6588
<div class="col text-right">
66-
<button class="btn btn-success btn-lg" type="button">Clock In</button>
89+
<button class="btn btn-success btn-lg" type="button" (click)="employeClockIn()">Clock In</button>
6790
</div>
6891

6992
</div>

src/app/components/optionsSidebar/time-clock/time-clock.component.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ import { Component, OnInit } from '@angular/core';
77
})
88
export class TimeClockComponent implements OnInit {
99

10-
constructor() { }
10+
isClockIn: boolean;
11+
12+
constructor() {
13+
this.isClockIn = false;
14+
}
15+
16+
employeClockIn(): boolean {
17+
this.isClockIn = true;
18+
console.log('valor es' + this.isClockIn);
19+
return this.isClockIn;
20+
}
1121

1222
ngOnInit(): void {
1323
}

0 commit comments

Comments
 (0)