Skip to content

Commit a315cc4

Browse files
committed
Update app for 2021
1 parent f1ca0ea commit a315cc4

File tree

3 files changed

+41
-29
lines changed

3 files changed

+41
-29
lines changed

Angular/src/app/home/home.component.html

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,8 @@
33
<div class="container">
44
<h1>Tracks</h1>
55
<div class="row">
6-
<div class="col-sm-2 m-2">
7-
<a routerLink="/tracks/15355" routerLinkActive="active" class="btn btn-primary"><i class="fa fa-info"></i>Web</a>
8-
<a target="_blank"
9-
href="https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTdmMDllYjgtYWMzZi00MWQ5LThjNGYtNmYwOGE1MWVjZjI2%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d"
10-
class="btn btn-primary m-2"><i class="fa fa-play"></i></a>
11-
</div>
12-
<div class="col-sm-2 m-2">
13-
<a routerLink="/tracks/15356" routerLinkActive="active" class="btn btn-primary"><i class="fa fa-info"></i>Data</a>
14-
<a target="_blank"
15-
href="https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjgzZjE2MmYtZjZiNC00YTM3LWEyMWQtOThmOGNjMDEwMzg5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d"
16-
class="btn btn-primary m-2"><i class="fa fa-play"></i></a>
17-
</div>
18-
<div class="col-sm-2 m-2">
19-
<a routerLink="/tracks/15357" routerLinkActive="active" class="btn btn-primary"><i
20-
class="fa fa-info"></i>Cloud</a>
21-
<a target="_blank"
22-
href="https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZGJlZDU3ZWItYmFiYi00ZmY4LTlmNWMtNjM5ZWJlYmI1OGM5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d"
23-
class="btn btn-primary m-2"><i class="fa fa-play"></i></a>
24-
</div>
25-
<div class="col-sm-2 m-2">
26-
<a routerLink="/tracks/15358" routerLinkActive="active" class="btn btn-primary"><i class="fa fa-info"></i>/etc</a>
27-
<a target="_blank"
28-
href="https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2E4M2E2MmQtZTE5Ny00MDJhLTk5YjEtOGFmNTFiZjMxZjMy%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d"
29-
class="btn btn-primary m-2"><i class="fa fa-play"></i></a>
6+
<div class="col-sm-2 m-2" *ngFor="let track of tracks">
7+
<a routerLink="/tracks/{{track.id}}" routerLinkActive="active" class="btn btn-primary"><i class="fa fa-info"></i>{{track.title}}</a>
308
</div>
319
</div>
3210

Angular/src/app/home/home.component.ts

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,48 @@ import { Component, OnInit } from '@angular/core';
77
})
88
export class HomeComponent implements OnInit {
99
public hours: Date[] = [];
10+
public tracks: Track[] = [
11+
{
12+
id: 20987,
13+
title: 'Web'
14+
},
15+
{
16+
id: 15356,
17+
title: 'Data'
18+
},
19+
{
20+
id: 20988,
21+
title: 'Cloud'
22+
},
23+
{
24+
id: 20990,
25+
title: 'Other'
26+
}
27+
]
1028

1129
constructor() { }
1230

1331
ngOnInit(): void {
14-
this.hours.push(new Date(2020, 8, 26, 8, 30, 0, 0));
15-
for (let i = 9; i <= 16; i++) {
16-
this.hours.push(new Date(2020, 8, 26, i, 0, 0, 0));
17-
}
32+
const year = 2021;
33+
const month = 10;
34+
const day = 16;
35+
const hours2 = [
36+
[9, 0],
37+
[9, 30],
38+
[10, 30],
39+
[11, 30],
40+
[13, 0],
41+
[14, 0],
42+
[15, 0],
43+
[16, 0],
44+
]
45+
this.hours = hours2.map(h =>
46+
new Date(year, month-1, day, h[0], h[1])
47+
);
1848
}
49+
}
1950

51+
interface Track {
52+
id: number;
53+
title: string;
2054
}

Angular/src/app/sessionize-service.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class SessionizeService {
1010
constructor(private http: HttpClient) { }
1111

1212
public getSessionizeData(): Observable<SessionizeApiResult> {
13-
const url = 'https://sessionize.com/api/v2/d5qrg1tt/view/All';
13+
const url = 'https://sessionize.com/api/v2/n48g0ace/view/All';
1414
return this.http.get(url).pipe(
1515
map(res => res as SessionizeApiResult)
1616
);

0 commit comments

Comments
 (0)