Skip to content

Commit 6cff3df

Browse files
scastillo-jpAngeluz-07
authored andcommitted
feat: #571 mock data
1 parent 07c130e commit 6cff3df

File tree

6 files changed

+90
-30
lines changed

6 files changed

+90
-30
lines changed

angular.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"styles": [
2727
"node_modules/datatables.net-dt/css/jquery.dataTables.css",
28+
"node_modules/datatables.net-responsive-dt/css/responsive.dataTables.css",
2829
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
2930
"src/styles.scss",
3031
"node_modules/ngx-toastr/toastr.css",
@@ -39,7 +40,8 @@
3940
"node_modules/datatables.net-buttons/js/buttons.colVis.js",
4041
"node_modules/datatables.net-buttons/js/buttons.flash.js",
4142
"node_modules/datatables.net-buttons/js/buttons.html5.js",
42-
"node_modules/datatables.net-buttons/js/buttons.print.js"
43+
"node_modules/datatables.net-buttons/js/buttons.print.js",
44+
"node_modules/datatables.net-responsive/js/dataTables.responsive.js"
4345
]
4446
},
4547
"configurations": {

package-lock.json

Lines changed: 54 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
"datatables.net-buttons": "^1.6.2",
3434
"datatables.net-buttons-dt": "^1.6.2",
3535
"datatables.net-dt": "^1.10.21",
36+
"datatables.net-responsive": "^2.2.6",
37+
"datatables.net-responsive-dt": "^2.2.6",
3638
"jquery": "^3.5.1",
3739
"jszip": "^3.4.0",
3840
"minimist": "^1.2.5",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"data": [
3+
{
4+
"technology": [
5+
{
6+
"id": 1,
7+
"name_technology": "Superman",
8+
"users": [
9+
{
10+
"id": 1,
11+
"email_user": "[email protected]",
12+
"time_spent": 10,
13+
"project": [
14+
{
15+
"id": "1",
16+
"project_name": "Time tracker",
17+
"time_spent": "8"
18+
}
19+
]
20+
}
21+
],
22+
"time_spent": 10
23+
}
24+
]
25+
}
26+
]
27+
}

src/app/modules/technology-report/components/technology-report-table/technology-report-table.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<thead class="thead-blue">
1111
<tr class="d-flex">
1212
<th class="col md-col">User email</th>
13-
<th class="col lg-col">Technology</th>
14-
<th class="col x-sm-col" title="Duration (hours)">Time spend</th>
13+
<th class="none" title="Duration (hours)">Time spend</th>
14+
<th class="none">Technology</th>
1515
</tr>
1616
</thead>
1717
<app-loading-bar

src/app/modules/technology-report/components/technology-report-table/technology-report-table.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export class TechnologyReportTableComponent implements OnInit, OnDestroy, AfterV
5555
text: 'CSV',
5656
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`
5757
}
58-
]
58+
],
59+
responsive: true
5960
};
6061
dtTrigger: Subject<any> = new Subject();
6162
@ViewChild(DataTableDirective, { static: false })

0 commit comments

Comments
 (0)