From a4952da9f7db9aa5af82943ef478da0717203559 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Thu, 14 Mar 2024 09:38:13 -0700 Subject: [PATCH 1/6] Add a more pretty 404 page. --- frontend/src/App.vue | 4 ++-- frontend/src/locales/en.json | 3 +++ .../src/views/errors/RouteNotFoundView.vue | 22 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 frontend/src/views/errors/RouteNotFoundView.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 3ed437e95..7c0c3d263 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -23,8 +23,7 @@ @@ -43,6 +42,7 @@ import { storeToRefs } from 'pinia'; import { useUserStore } from '@/stores/user-store'; import { useCalendarStore } from '@/stores/calendar-store'; import { useAppointmentStore } from '@/stores/appointment-store'; +import RouteNotFoundView from '@/views/errors/RouteNotFoundView.vue'; // component constants const currentUser = useUserStore(); // data: { username, email, name, level, timezone, id } diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 4dace2203..7a6433b66 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -5,12 +5,14 @@ }, "error": { "actionNeeded": "Action needed", + "authenticationRequired": "Sorry, this page requires you to be logged in.", "credentialsIncomplete": "Please provide login credentials.", "googleRefreshError": "Error connecting with Google API, please re-connect.", "loginMethodNotSupported": "Login method not supported. Please try again.", "minimumValue": "{field} should be at least {value}.", "noConnectedCalendars": "Calendar setup required. Connect a calendar to continue. {0}.", "noConnectedCalendarsLink": "Go to settings", + "routeNotFound": "Sorry, this page could not be found.", "unknownAppointmentError": "There was an issue creating your booking. Please try again.", "unknownScheduleError": "There was an issue creating your schedule. Please try again.", "usernameIsNotAvailable": "Username not available. Please choose another." @@ -143,6 +145,7 @@ "general": "General", "generalDetails": "Details", "generateZoomLink": "Generate Zoom Meeting", + "goBack": "Go Back", "google": "Google", "guest": "{count} guests | {count} guest | {count} guests", "inPerson": "In person", diff --git a/frontend/src/views/errors/RouteNotFoundView.vue b/frontend/src/views/errors/RouteNotFoundView.vue new file mode 100644 index 000000000..0499ef5e7 --- /dev/null +++ b/frontend/src/views/errors/RouteNotFoundView.vue @@ -0,0 +1,22 @@ + + From a97ad5fee7939d83d610543f6fd3ea0b05b70d2a Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Thu, 14 Mar 2024 09:38:21 -0700 Subject: [PATCH 2/6] Fix login on mobile. --- frontend/src/views/LoginView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/LoginView.vue b/frontend/src/views/LoginView.vue index 44421d67c..c88634332 100644 --- a/frontend/src/views/LoginView.vue +++ b/frontend/src/views/LoginView.vue @@ -1,7 +1,7 @@