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.
This commit is contained in:
parent
f4f23e6c18
commit
7a95d6c3c4
11 changed files with 8 additions and 8 deletions
|
@ -19,7 +19,7 @@
|
|||
</select>
|
||||
</label>
|
||||
<h2>Locations</h2>
|
||||
<LocationsTable :edit="accountStore.canEditPublic" />
|
||||
<TableScheduleLocations :edit="accountStore.canEditPublic" />
|
||||
<h2>Schedule</h2>
|
||||
<label>
|
||||
Location Filter:
|
||||
|
@ -39,11 +39,11 @@
|
|||
>{{ location.name }}</option>
|
||||
</select>
|
||||
</label>
|
||||
<ScheduleTable :edit="true" :locationId="locationFilter" :eventSlotFilter :shiftSlotFilter />
|
||||
<TableScheduleEventSlots :edit="true" :locationId="locationFilter" :eventSlotFilter :shiftSlotFilter />
|
||||
<h2>Events</h2>
|
||||
<EventsTable :edit="true" />
|
||||
<TableScheduleEvents :edit="true" />
|
||||
<h2>Roles</h2>
|
||||
<RolesTable :edit="true" />
|
||||
<TableScheduleRoles :edit="true" />
|
||||
<h2>Shift Schedule</h2>
|
||||
<label>
|
||||
Role Filter:
|
||||
|
@ -63,9 +63,9 @@
|
|||
>{{ role.name }}</option>
|
||||
</select>
|
||||
</label>
|
||||
<ShiftScheduleTable :edit="true" :roleId="roleFilter" :eventSlotFilter :shiftSlotFilter />
|
||||
<TableScheduleShiftSlots :edit="true" :roleId="roleFilter" :eventSlotFilter :shiftSlotFilter />
|
||||
<h2>Shifts</h2>
|
||||
<ShiftsTable :edit="true" :roleId="roleFilter" />
|
||||
<TableScheduleShifts :edit="true" :roleId="roleFilter" />
|
||||
<p v-if="schedule.modified">
|
||||
Changes are not saved yet.
|
||||
<button
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
</label>
|
||||
<Timetable :schedule :eventSlotFilter :shiftSlotFilter />
|
||||
<h2>Events</h2>
|
||||
<EventCard v-for="event in [...schedule.events.values()].filter(e => !e.deleted && [...e.slots.values()].some(eventSlotFilter))" :event/>
|
||||
<CardEvent v-for="event in [...schedule.events.values()].filter(e => !e.deleted && [...e.slots.values()].some(eventSlotFilter))" :event/>
|
||||
<h2>Locations</h2>
|
||||
<ul>
|
||||
<li v-for="location in schedule.locations.values()" :key="location.id">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue