From fc0ce811c53e324d6fb8ec027a623cf3dd59cf66 Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Wed, 5 Nov 2025 09:10:42 +0100 Subject: [PATCH] refactor: put alerts into separate components --- frontend/app/components/ErrorAlert.vue | 21 +++++++++++++++++++ frontend/app/components/InfoAlert.vue | 20 ++++++++++++++++++ .../components/InternshipDocumentEditor.vue | 16 ++++++-------- .../components/InternshipDocumentViewer.vue | 13 ++++++------ frontend/app/components/InternshipEditor.vue | 6 ++---- .../app/components/InternshipStatusEditor.vue | 10 ++++----- .../InternshipStatusHistoryView.vue | 6 ++---- frontend/app/components/LoadingAlert.vue | 5 +++++ frontend/app/components/SuccessAlert.vue | 20 ++++++++++++++++++ frontend/app/components/WarningAlert.vue | 21 +++++++++++++++++++ .../app/pages/account/activation/[token].vue | 11 ++++------ .../app/pages/account/change-password.vue | 8 ++----- .../dashboard/admin/companies/edit/[id].vue | 8 ++----- .../pages/dashboard/admin/companies/index.vue | 7 ++----- .../dashboard/admin/internships/edit/[id].vue | 9 +++----- .../dashboard/admin/internships/index.vue | 5 ++--- .../dashboard/admin/students/edit/[id].vue | 8 ++----- .../pages/dashboard/admin/students/index.vue | 10 +++------ .../company/internships/edit/[id].vue | 15 ++++++------- .../dashboard/company/internships/index.vue | 3 +-- .../app/pages/dashboard/student/companies.vue | 3 +-- .../app/pages/dashboard/student/index.vue | 3 +-- .../dashboard/student/internship/create.vue | 6 ++---- .../student/internship/edit/[id].vue | 15 ++++++------- frontend/app/pages/login.vue | 6 ++---- frontend/app/pages/register/company.vue | 6 ++---- frontend/app/pages/register/student.vue | 6 ++---- frontend/app/pages/reset_psw/index.vue | 6 ++---- frontend/app/pages/reset_psw/request_sent.vue | 3 +-- 29 files changed, 153 insertions(+), 123 deletions(-) create mode 100644 frontend/app/components/ErrorAlert.vue create mode 100644 frontend/app/components/InfoAlert.vue create mode 100644 frontend/app/components/LoadingAlert.vue create mode 100644 frontend/app/components/SuccessAlert.vue create mode 100644 frontend/app/components/WarningAlert.vue diff --git a/frontend/app/components/ErrorAlert.vue b/frontend/app/components/ErrorAlert.vue new file mode 100644 index 0000000..140fa48 --- /dev/null +++ b/frontend/app/components/ErrorAlert.vue @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/frontend/app/components/InfoAlert.vue b/frontend/app/components/InfoAlert.vue new file mode 100644 index 0000000..ae6ef21 --- /dev/null +++ b/frontend/app/components/InfoAlert.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/frontend/app/components/InternshipDocumentEditor.vue b/frontend/app/components/InternshipDocumentEditor.vue index 903a9ce..6f383ed 100644 --- a/frontend/app/components/InternshipDocumentEditor.vue +++ b/frontend/app/components/InternshipDocumentEditor.vue @@ -80,26 +80,23 @@ async function onSubmit() {