From 435c6b5f279e93a49eabcd8b18240c4788632217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Rom=C3=A3o?= Date: Sun, 7 Apr 2024 18:56:45 +0100 Subject: [PATCH 1/9] improves schedule --- .../landing-page/schedule/schedule.component.ts | 15 +++++++++++---- src/environments/environment.dev.ts | 7 +++++++ src/environments/environment.prod.ts | 7 +++++++ src/environments/environment.ts | 7 +++++++ 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/src/app/landing-page/schedule/schedule.component.ts b/src/app/landing-page/schedule/schedule.component.ts index 25dfe3b2..d2da58c1 100644 --- a/src/app/landing-page/schedule/schedule.component.ts +++ b/src/app/landing-page/schedule/schedule.component.ts @@ -85,11 +85,18 @@ export class ScheduleComponent implements OnInit, OnChanges { }) tempSchedule.forEach(day => { - day.sessions.Workshop.all.sort((a, b) => { - a.date < b.date + day.sessions.Workshop.all.sort(function(a, b) { + if (a.date < b.date) return -1; + if (a.date > b.date) return 1; + // Dates are equal, sort by place + return a.place === 'Room 1' ? -1 : 1; }) - day.sessions.Presentation.all.sort((a, b) => { - a.date < b.date + + day.sessions.Presentation.all.sort(function(a, b) { + if (a.date < b.date) return -1; + if (a.date > b.date) return 1; + // Dates are equal, sort by place + return a.place === 'Room 1' ? -1 : 1; }) }) diff --git a/src/environments/environment.dev.ts b/src/environments/environment.dev.ts index e209e869..67845a34 100644 --- a/src/environments/environment.dev.ts +++ b/src/environments/environment.dev.ts @@ -18,6 +18,13 @@ export const environment = { '23-sinfo-conf': '23-sinfo' }, themes: { + '31': [ + 'Software Engineering', + 'Multimedia', + 'AI', + 'Games', + 'Tech Insights' + ], '30-sinfo': [ 'Software Engineering', 'Multimedia', diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 7d4aa1bf..7ed686b3 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -18,6 +18,13 @@ export const environment = { '23-sinfo-conf': '23-sinfo' }, themes: { + '31': [ + 'Software Engineering', + 'Multimedia', + 'AI', + 'Games', + 'Tech Insights' + ], '30-sinfo': [ 'Software Engineering', 'Multimedia', diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 90f0dbd1..4bb46f27 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -21,6 +21,13 @@ export const environment = { '23-sinfo-conf': '23-sinfo' }, themes: { + '31': [ + 'Software Engineering', + 'Multimedia', + 'AI', + 'Games', + 'Tech Insights' + ], '30-sinfo': [ 'Software Engineering', 'Multimedia', From b113d10256f7140921d370bf1d5e46b1371bc631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Rom=C3=A3o?= Date: Sun, 7 Apr 2024 19:00:52 +0100 Subject: [PATCH 2/9] order keynotes as well --- src/app/landing-page/schedule/schedule.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/landing-page/schedule/schedule.component.ts b/src/app/landing-page/schedule/schedule.component.ts index d2da58c1..ada21085 100644 --- a/src/app/landing-page/schedule/schedule.component.ts +++ b/src/app/landing-page/schedule/schedule.component.ts @@ -85,6 +85,11 @@ export class ScheduleComponent implements OnInit, OnChanges { }) tempSchedule.forEach(day => { + day.sessions.Keynote.sort(function(a, b) { + if (a.date <= b.date) return -1; + else return 1; + }) + day.sessions.Workshop.all.sort(function(a, b) { if (a.date < b.date) return -1; if (a.date > b.date) return 1; From 584c50768495158185eeb2b68222c40cc056dc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Rom=C3=A3o?= Date: Sun, 7 Apr 2024 19:28:26 +0100 Subject: [PATCH 3/9] use localeCompare instead --- src/app/landing-page/schedule/schedule.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/landing-page/schedule/schedule.component.ts b/src/app/landing-page/schedule/schedule.component.ts index ada21085..879e3626 100644 --- a/src/app/landing-page/schedule/schedule.component.ts +++ b/src/app/landing-page/schedule/schedule.component.ts @@ -94,14 +94,14 @@ export class ScheduleComponent implements OnInit, OnChanges { if (a.date < b.date) return -1; if (a.date > b.date) return 1; // Dates are equal, sort by place - return a.place === 'Room 1' ? -1 : 1; + return a.place.localeCompare(b.place); }) day.sessions.Presentation.all.sort(function(a, b) { if (a.date < b.date) return -1; if (a.date > b.date) return 1; // Dates are equal, sort by place - return a.place === 'Room 1' ? -1 : 1; + return a.place.localeCompare(b.place); }) }) From d6c6bf8650f3efd8bd66dad6474c49c98493bfc7 Mon Sep 17 00:00:00 2001 From: Pedro Maximino Date: Sun, 7 Apr 2024 22:57:20 +0200 Subject: [PATCH 4/9] refact: Bump node version to 21 --- Dockerfile_staging | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile_staging b/Dockerfile_staging index 60ddfc3e..b6f63ed1 100644 --- a/Dockerfile_staging +++ b/Dockerfile_staging @@ -1,4 +1,4 @@ -FROM node:18-alpine as builder +FROM node:21-alpine as builder COPY package.json package-lock.json ./ From 9da09eb306097f1e34cd12248a94c928527c9458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Rom=C3=A3o?= Date: Sun, 7 Apr 2024 22:16:21 +0100 Subject: [PATCH 5/9] adds venue to the website --- src/app/landing-page/stands/stands.component.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/landing-page/stands/stands.component.html b/src/app/landing-page/stands/stands.component.html index 1041ea5b..bb9a8cdc 100644 --- a/src/app/landing-page/stands/stands.component.html +++ b/src/app/landing-page/stands/stands.component.html @@ -21,7 +21,7 @@

Stands

Monday