File tree Expand file tree Collapse file tree 10 files changed +114
-37
lines changed
activities-management/components/create-activity Expand file tree Collapse file tree 10 files changed +114
-37
lines changed Original file line number Diff line number Diff line change 2424 run : npm audit --audit-level=moderate
2525
2626 ci-test :
27- name : Running unit tests
27+ name : Unit tests and CodeCoverage
2828 runs-on : ubuntu-latest
2929 timeout-minutes : 90
3030 steps :
4848
4949 - name : Run the test
5050 run : npm run ci-test --if-present
51+
52+ - name : Generate coverage report
53+ env :
54+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
55+ run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 22
33This project was generated using [ Angular CLI] ( https://github.com/angular/angular-cli ) version 9.0.4.
44
5+ ## Metrics
6+
7+ [ ![ codecov] ( https://codecov.io/gh/ioet/time-tracker-ui/branch/master/graph/badge.svg )] ( https://codecov.io/gh/ioet/time-tracker-ui )
8+ <br />Code Coverage Status
9+
10+ ![ CD process to deploy to App-Service service] ( https://github.com/ioet/time-tracker-ui/workflows/CD%20process%20to%20deploy%20to%20App-Service%20service/badge.svg )
11+ <br />CD Pipeline Status
12+
513## Prerequisites
614
715### Node.js
Original file line number Diff line number Diff line change 33 < h1 class ="card-title "> Activity</ h1 >
44 < div class ="form-group ">
55 < label for ="name "> Name:</ label >
6- < input
7- class ="form-control "
8- id ="name "
9- type ="text "
10- formControlName ="name "
11- [class.is-invalid] ="name.invalid && name.touched "
12- required
13- />
6+ < input class ="form-control " id ="name " type ="text " formControlName ="name "
7+ [class.is-invalid] ="name.invalid && name.touched " required />
148 < div class ="text-danger " *ngIf ="(name.dirty || name.touched) && name.invalid && name.errors.required ">
159 Activity name is required.
1610 </ div >
@@ -22,9 +16,7 @@ <h1 class="card-title">Activity</h1>
2216 </ div >
2317
2418 < div class ="btn-toolbar " role ="toolbar ">
25- < div class ="btn-group mr-2 " role ="group ">
26- < button class ="btn save-button-style mb-2 " type ="submit " [disabled] ="!activityForm.valid "> Save</ button >
27- </ div >
19+ < button class ="btn btn-primary " type ="submit " [disabled] ="!activityForm.valid "> Save</ button >
2820 </ div >
2921 </ form >
30- </ div >
22+ </ div >
Original file line number Diff line number Diff line change 1- < button (click) ="login() "> login</ button >
1+ < div class ="login-container ">
2+
3+ < div class ="login-header ">
4+ < img src ="../../../assets/img/ioet.png " />
5+ </ div >
6+ < div class ="login-body ">
7+ < h3 > Please login</ h3 >
8+ </ div >
9+
10+ < div class ="login-controls ">
11+ < button (click) ="login() " class ="btn btn-primary "> login</ button >
12+ </ div >
13+
14+ </ div >
Original file line number Diff line number Diff line change 1+ @import ' ../../../styles/themes/orange-theme' ;
2+
3+ .login-container {
4+ display : flex ;
5+ flex-direction : column ;
6+ justify-content : center ;
7+ align-items : center ;
8+ margin : auto ;
9+ padding : 50px ;
10+ }
11+
12+ .login-header {
13+ margin : 5px ;
14+ text-align : center ;
15+
16+ img {
17+ max-width : 200px ;
18+ height : auto ;
19+ }
20+ }
21+
22+ .login-body {
23+ margin : 5px ;
24+ text-align : center ;
25+ }
26+
27+ .login-controls {
28+ margin : 5px ;
29+ display : flex ;
30+ text-align : center ;
31+ min-width : 250px ;
32+
33+ button {
34+ flex-grow : 1 ;
35+ }
36+ }
37+
38+ h3 {
39+ color : $dark ;
40+ font-weight : normal ;
41+ }
Original file line number Diff line number Diff line change @@ -57,24 +57,13 @@ <h6 class="text-left"><strong>Projects</strong></h6>
5757 < hr />
5858 < div class ="container ">
5959 < div class ="row ">
60- < div class ="col text-left ">
61- < button
62- class ="btn btn-light btn-sm dropdown-toggle "
63- type ="button "
64- data-toggle ="dropdown "
65- aria-haspopup ="true "
66- aria-expanded ="false "
67- >
68- Options
69- </ button >
70- </ div >
7160 < div class ="col text-right ">
72- < button *ngIf ="isClockIn " class ="btn button-clock-in-style btn-sm " type ="button " (click) ="employeClockIn() ">
61+ < button *ngIf ="isClockIn " class ="btn btn-primary " type ="button " (click) ="employeClockIn() ">
7362 Clock In
7463 </ button >
7564 < button
7665 *ngIf ="!isClockIn "
77- class ="btn button-clock-out-style btn-sm "
66+ class ="btn btn-primary "
7867 type ="button "
7968 (click) ="employeClockOut() "
8069 >
Original file line number Diff line number Diff line change 1111 justify-content : center ;
1212}
1313
14- .button-clock-in-style {
15- background-image : $button-primary-color ;
16- color : white ;
17- }
18-
19- .button-clock-out-style {
20- background : $button-secondary-color ;
21- color : white ;
22- }
23-
2414.text-clock-in-color {
2515 color : $modal-button-secondary ;
2616}
Original file line number Diff line number Diff line change 11/* You can add global styles to this file, and also import other style files */
2+
3+ @import " styles/themes/orange-theme" ;
4+ @import " ~bootstrap/scss/bootstrap" ;
Original file line number Diff line number Diff line change 1+ $primary :#fc5630 ;
2+ $secondary :#ff3f56 ;
3+ $success :#16bac5 ;
4+ $info :#30bced ;
5+ $warning :#fc5630 ;
6+ $danger :#ff3663 ;
7+ $light :#ffffff ;
8+ $dark :#5c4e63 ;
9+
10+ .bg-primary ,
11+ .btn-primary ,
12+ .badge-primary ,
13+ .alert-primary {
14+ background-image : linear-gradient (to right ,
15+ #ff3948 ,
16+ #ff384d ,
17+ #ff3752 ,
18+ #ff3657 ,
19+ #ff365c ,
20+ #ff385a ,
21+ #ff3b59 ,
22+ #ff3d57 ,
23+ #ff434e ,
24+ #ff4944 ,
25+ #fe4f3a ,
26+ #fc5630 );
27+ }
28+
29+ .bg-secondary ,
30+ .btn-secondary ,
31+ .badge-secondary ,
32+ .alert-secondary {
33+ background-image : linear-gradient (to right ,
34+ #FF3663 ,
35+ #A50D8A );
36+ }
You can’t perform that action at this time.
0 commit comments