From 4821c4f9ab9324ae2e2a04c66275d1253d16b70f Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Tue, 10 Dec 2024 23:06:34 -0800 Subject: [PATCH] refactor: rename to pascal case --- ...{calendar-course-event.tsx => CalendarCourseEvent.tsx} | 0 ...e-event-wrapper.tsx => CalendarCourseEventWrapper.tsx} | 0 ...alendar-event-popover.tsx => CalendarEventPopover.tsx} | 0 apps/antalmanac/src/components/Calendar/CalendarRoot.tsx | 8 ++++---- .../toolbar/{calendar-toolbar.tsx => CalendarToolbar.tsx} | 2 +- .../ScheduleSelect.tsx} | 6 +++--- .../schedule-select-buttons/AddScheduleButton.tsx} | 0 .../schedule-select-buttons/DeleteScheduleButton.tsx} | 0 .../schedule-select-buttons/RenameScheduleButton.tsx} | 0 .../components/RightPane/SectionTable/SectionTable.tsx | 2 +- .../SectionTableBody.tsx} | 2 +- .../SectionTableBodyRow.tsx} | 0 12 files changed, 10 insertions(+), 10 deletions(-) rename apps/antalmanac/src/components/Calendar/{calendar-course-event.tsx => CalendarCourseEvent.tsx} (100%) rename apps/antalmanac/src/components/Calendar/{calendar-course-event-wrapper.tsx => CalendarCourseEventWrapper.tsx} (100%) rename apps/antalmanac/src/components/Calendar/{calendar-event-popover.tsx => CalendarEventPopover.tsx} (100%) rename apps/antalmanac/src/components/Calendar/toolbar/{calendar-toolbar.tsx => CalendarToolbar.tsx} (99%) rename apps/antalmanac/src/components/Calendar/toolbar/{schedule-select/schedule-select.tsx => ScheduleSelect/ScheduleSelect.tsx} (96%) rename apps/antalmanac/src/components/Calendar/toolbar/{schedule-select/schedule-select-buttons/add-schedule-button.tsx => ScheduleSelect/schedule-select-buttons/AddScheduleButton.tsx} (100%) rename apps/antalmanac/src/components/Calendar/toolbar/{schedule-select/schedule-select-buttons/delete-schedule-button.tsx => ScheduleSelect/schedule-select-buttons/DeleteScheduleButton.tsx} (100%) rename apps/antalmanac/src/components/Calendar/toolbar/{schedule-select/schedule-select-buttons/rename-schedule-button.tsx => ScheduleSelect/schedule-select-buttons/RenameScheduleButton.tsx} (100%) rename apps/antalmanac/src/components/RightPane/SectionTable/{section-table-body/section-table-body.tsx => SectionTableBody/SectionTableBody.tsx} (98%) rename apps/antalmanac/src/components/RightPane/SectionTable/{section-table-body/section-table-body-row.tsx => SectionTableBody/SectionTableBodyRow.tsx} (100%) diff --git a/apps/antalmanac/src/components/Calendar/calendar-course-event.tsx b/apps/antalmanac/src/components/Calendar/CalendarCourseEvent.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/calendar-course-event.tsx rename to apps/antalmanac/src/components/Calendar/CalendarCourseEvent.tsx diff --git a/apps/antalmanac/src/components/Calendar/calendar-course-event-wrapper.tsx b/apps/antalmanac/src/components/Calendar/CalendarCourseEventWrapper.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/calendar-course-event-wrapper.tsx rename to apps/antalmanac/src/components/Calendar/CalendarCourseEventWrapper.tsx diff --git a/apps/antalmanac/src/components/Calendar/calendar-event-popover.tsx b/apps/antalmanac/src/components/Calendar/CalendarEventPopover.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/calendar-event-popover.tsx rename to apps/antalmanac/src/components/Calendar/CalendarEventPopover.tsx diff --git a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx index b8ac364ff..49e4d0351 100644 --- a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx +++ b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx @@ -9,10 +9,10 @@ import { shallow } from 'zustand/shallow'; import { CalendarEvent, CourseEvent } from './CourseCalendarEvent'; -import { CalendarCourseEvent } from '$components/Calendar/calendar-course-event'; -import { CalendarCourseEventWrapper } from '$components/Calendar/calendar-course-event-wrapper'; -import { CalendarEventPopover } from '$components/Calendar/calendar-event-popover'; -import { CalendarToolbar } from '$components/Calendar/toolbar/calendar-toolbar'; +import { CalendarCourseEvent } from '$components/Calendar/CalendarCourseEvent'; +import { CalendarCourseEventWrapper } from '$components/Calendar/CalendarCourseEventWrapper'; +import { CalendarEventPopover } from '$components/Calendar/CalendarEventPopover'; +import { CalendarToolbar } from '$components/Calendar/toolbar/CalendarToolbar'; import { getDefaultFinalsStartDate, getFinalsStartDateForTerm } from '$lib/termData'; import AppStore from '$stores/AppStore'; import { useHoveredStore } from '$stores/HoveredStore'; diff --git a/apps/antalmanac/src/components/Calendar/toolbar/calendar-toolbar.tsx b/apps/antalmanac/src/components/Calendar/toolbar/CalendarToolbar.tsx similarity index 99% rename from apps/antalmanac/src/components/Calendar/toolbar/calendar-toolbar.tsx rename to apps/antalmanac/src/components/Calendar/toolbar/CalendarToolbar.tsx index f68fab6e3..2a147c429 100644 --- a/apps/antalmanac/src/components/Calendar/toolbar/calendar-toolbar.tsx +++ b/apps/antalmanac/src/components/Calendar/toolbar/CalendarToolbar.tsx @@ -4,7 +4,7 @@ import { useState, useCallback, useEffect, memo } from 'react'; import { undoDelete } from '$actions/AppStoreActions'; import CustomEventDialog from '$components/Calendar/toolbar/CustomEventDialog'; -import { SelectSchedulePopover } from '$components/Calendar/toolbar/schedule-select/schedule-select'; +import { SelectSchedulePopover } from '$components/Calendar/toolbar/ScheduleSelect/ScheduleSelect'; import { ClearScheduleButton } from '$components/buttons/Clear'; import DownloadButton from '$components/buttons/Download'; import ScreenshotButton from '$components/buttons/Screenshot'; diff --git a/apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select.tsx b/apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/ScheduleSelect.tsx similarity index 96% rename from apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select.tsx rename to apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/ScheduleSelect.tsx index 9201a2be0..6cdbf3fa5 100644 --- a/apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select.tsx +++ b/apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/ScheduleSelect.tsx @@ -3,9 +3,9 @@ import { Box, Button, Popover, Typography, useTheme } from '@mui/material'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { changeCurrentSchedule } from '$actions/AppStoreActions'; -import { AddScheduleButton } from '$components/Calendar/toolbar/schedule-select/schedule-select-buttons/add-schedule-button'; -import { DeleteScheduleButton } from '$components/Calendar/toolbar/schedule-select/schedule-select-buttons/delete-schedule-button'; -import { RenameScheduleButton } from '$components/Calendar/toolbar/schedule-select/schedule-select-buttons/rename-schedule-button'; +import { AddScheduleButton } from '$components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/AddScheduleButton'; +import { DeleteScheduleButton } from '$components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/DeleteScheduleButton'; +import { RenameScheduleButton } from '$components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/RenameScheduleButton'; import { CopyScheduleButton } from '$components/buttons/Copy'; import analyticsEnum, { logAnalytics } from '$lib/analytics'; import AppStore from '$stores/AppStore'; diff --git a/apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/add-schedule-button.tsx b/apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/AddScheduleButton.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/add-schedule-button.tsx rename to apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/AddScheduleButton.tsx diff --git a/apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/delete-schedule-button.tsx b/apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/DeleteScheduleButton.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/delete-schedule-button.tsx rename to apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/DeleteScheduleButton.tsx diff --git a/apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/rename-schedule-button.tsx b/apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/RenameScheduleButton.tsx similarity index 100% rename from apps/antalmanac/src/components/Calendar/toolbar/schedule-select/schedule-select-buttons/rename-schedule-button.tsx rename to apps/antalmanac/src/components/Calendar/toolbar/ScheduleSelect/schedule-select-buttons/RenameScheduleButton.tsx diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx index 5e444a56f..026440098 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx @@ -21,7 +21,7 @@ import { EnrollmentHistoryPopup } from './EnrollmentHistoryPopup'; import GradesPopup from './GradesPopup'; import { SectionTableProps } from './SectionTable.types'; -import { SectionTableBody } from '$components/RightPane/SectionTable/section-table-body/section-table-body'; +import { SectionTableBody } from '$components/RightPane/SectionTable/SectionTableBody/SectionTableBody'; import analyticsEnum from '$lib/analytics'; import { useColumnStore, SECTION_TABLE_COLUMNS, type SectionTableColumn } from '$stores/ColumnStore'; diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/section-table-body/section-table-body.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTableBody/SectionTableBody.tsx similarity index 98% rename from apps/antalmanac/src/components/RightPane/SectionTable/section-table-body/section-table-body.tsx rename to apps/antalmanac/src/components/RightPane/SectionTable/SectionTableBody/SectionTableBody.tsx index 1f8f66376..dcee7a92e 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/section-table-body/section-table-body.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTableBody/SectionTableBody.tsx @@ -2,7 +2,7 @@ import { TableBody } from '@material-ui/core'; import { AACourse, AASection } from '@packages/antalmanac-types'; import { useCallback, useEffect, useState } from 'react'; -import SectionTableBodyRow from '$components/RightPane/SectionTable/section-table-body/section-table-body-row'; +import SectionTableBodyRow from '$components/RightPane/SectionTable/SectionTableBody/SectionTableBodyRow'; import AppStore from '$stores/AppStore'; import { normalizeTime, parseDaysString } from '$stores/calendarizeHelpers'; diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/section-table-body/section-table-body-row.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTableBody/SectionTableBodyRow.tsx similarity index 100% rename from apps/antalmanac/src/components/RightPane/SectionTable/section-table-body/section-table-body-row.tsx rename to apps/antalmanac/src/components/RightPane/SectionTable/SectionTableBody/SectionTableBodyRow.tsx