From 7a95d6c3c45d355e488604c483a149021d14ca89 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 17 Jun 2025 22:29:16 +0200 Subject: [PATCH] Use prefix notation for component names Start component names with the kind of element it creates on the page (button, input, table, card, etc), then follow it with an hierarchy like set of parts describing what part of the system it operates on. This makes related components stick together in the directory listing of components and auto-complete work better. --- components/{LogOutButton.vue => ButtonLogOut.vue} | 0 components/{EventCard.vue => CardEvent.vue} | 0 components/Header.vue | 2 +- ...ScheduleTable.vue => TableScheduleEventSlots.vue} | 0 .../{EventsTable.vue => TableScheduleEvents.vue} | 0 ...LocationsTable.vue => TableScheduleLocations.vue} | 0 .../{RolesTable.vue => TableScheduleRoles.vue} | 0 ...ScheduleTable.vue => TableScheduleShiftSlots.vue} | 0 .../{ShiftsTable.vue => TableScheduleShifts.vue} | 0 pages/edit.vue | 12 ++++++------ pages/schedule.vue | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename components/{LogOutButton.vue => ButtonLogOut.vue} (100%) rename components/{EventCard.vue => CardEvent.vue} (100%) rename components/{ScheduleTable.vue => TableScheduleEventSlots.vue} (100%) rename components/{EventsTable.vue => TableScheduleEvents.vue} (100%) rename components/{LocationsTable.vue => TableScheduleLocations.vue} (100%) rename components/{RolesTable.vue => TableScheduleRoles.vue} (100%) rename components/{ShiftScheduleTable.vue => TableScheduleShiftSlots.vue} (100%) rename components/{ShiftsTable.vue => TableScheduleShifts.vue} (100%) diff --git a/components/LogOutButton.vue b/components/ButtonLogOut.vue similarity index 100% rename from components/LogOutButton.vue rename to components/ButtonLogOut.vue diff --git a/components/EventCard.vue b/components/CardEvent.vue similarity index 100% rename from components/EventCard.vue rename to components/CardEvent.vue diff --git a/components/Header.vue b/components/Header.vue index 0833aec..e4ff675 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -19,7 +19,7 @@ (s:{{ sessionStore.id }} a:{{ accountStore.id }}{{ sessionStore.push ? " push" : null }}) {{ accountStore.type }} Settings - +