Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 435c6b5

Browse files
committed
improves schedule
1 parent 79b183e commit 435c6b5

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

src/app/landing-page/schedule/schedule.component.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,18 @@ export class ScheduleComponent implements OnInit, OnChanges {
8585
})
8686

8787
tempSchedule.forEach(day => {
88-
day.sessions.Workshop.all.sort((a, b) => {
89-
a.date < b.date
88+
day.sessions.Workshop.all.sort(function(a, b) {
89+
if (a.date < b.date) return -1;
90+
if (a.date > b.date) return 1;
91+
// Dates are equal, sort by place
92+
return a.place === 'Room 1' ? -1 : 1;
9093
})
91-
day.sessions.Presentation.all.sort((a, b) => {
92-
a.date < b.date
94+
95+
day.sessions.Presentation.all.sort(function(a, b) {
96+
if (a.date < b.date) return -1;
97+
if (a.date > b.date) return 1;
98+
// Dates are equal, sort by place
99+
return a.place === 'Room 1' ? -1 : 1;
93100
})
94101
})
95102

src/environments/environment.dev.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export const environment = {
1818
'23-sinfo-conf': '23-sinfo'
1919
},
2020
themes: {
21+
'31': [
22+
'Software Engineering',
23+
'Multimedia',
24+
'AI',
25+
'Games',
26+
'Tech Insights'
27+
],
2128
'30-sinfo': [
2229
'Software Engineering',
2330
'Multimedia',

src/environments/environment.prod.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export const environment = {
1818
'23-sinfo-conf': '23-sinfo'
1919
},
2020
themes: {
21+
'31': [
22+
'Software Engineering',
23+
'Multimedia',
24+
'AI',
25+
'Games',
26+
'Tech Insights'
27+
],
2128
'30-sinfo': [
2229
'Software Engineering',
2330
'Multimedia',

src/environments/environment.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ export const environment = {
2121
'23-sinfo-conf': '23-sinfo'
2222
},
2323
themes: {
24+
'31': [
25+
'Software Engineering',
26+
'Multimedia',
27+
'AI',
28+
'Games',
29+
'Tech Insights'
30+
],
2431
'30-sinfo': [
2532
'Software Engineering',
2633
'Multimedia',

0 commit comments

Comments
 (0)