From 21b2963a6cfa19ac9aa83a9636d10ee8a752e5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Palma?= Date: Fri, 13 Sep 2024 18:13:23 +0100 Subject: [PATCH] chore: change default app title from timetablescheduler to timetableselector --- README.md | 2 +- index.html | 4 ++-- public/manifest.json | 2 +- src/App.tsx | 4 ++-- src/components/layout/index.tsx | 2 +- src/pages/{TimeTableScheduler.tsx => TimeTableSelector.tsx} | 6 +++--- src/pages/index.ts | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) rename src/pages/{TimeTableScheduler.tsx => TimeTableSelector.tsx} (93%) diff --git a/README.md b/README.md index 08079932..363fbfe0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

-

TimeTableScheduler - Frontend

+

Time Table Selector - Frontend

A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester

diff --git a/index.html b/index.html index 1e2ed58c..7d6d9267 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - + @@ -21,7 +21,7 @@ /> - NIAEFEUP | TimeTableScheduler + NIAEFEUP | Time Table Selector diff --git a/public/manifest.json b/public/manifest.json index 1bc666ef..0137757e 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,5 +1,5 @@ { - "name": "Time Table Scheduler", + "name": "Time Table Selector", "short_name": "TTS", "icons": [ { diff --git a/src/App.tsx b/src/App.tsx index 972753a5..2299b760 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,7 @@ import { Toaster } from './components/ui/toaster' import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom' import './app.css' import CombinedProvider from './contexts/CombinedProvider' -import { AboutPage, TimeTableSchedulerPage, FaqsPage, NotFoundPage } from './pages' +import { AboutPage, TimeTableSelectorPage, FaqsPage, NotFoundPage } from './pages' import { getPath, config, dev_config, plausible } from './utils' import Layout from './components/layout' @@ -11,7 +11,7 @@ const configToUse = Number(import.meta.env.VITE_APP_PROD) ? config : dev_config // Configures the path for pages. const pages = [ { path: getPath(configToUse.paths.about), location: 'Sobre', element: AboutPage, liquid: true }, - { path: getPath(configToUse.paths.planner), location: 'HorĂ¡rios', element: TimeTableSchedulerPage, liquid: true }, + { path: getPath(configToUse.paths.planner), location: 'HorĂ¡rios', element: TimeTableSelectorPage, liquid: true }, { path: getPath(configToUse.paths.faqs), location: 'FAQs', element: FaqsPage, liquid: true }, { path: getPath(configToUse.paths.notfound), location: 'NotFound', element: NotFoundPage, liquid: true }, ] diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index 61895ce5..e17e463d 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -12,7 +12,7 @@ type Props = { const Layout = ({ children, location, liquid, title }: Props) => { useEffect(() => { - document.title = `${title} | ${import.meta.env.VITE_APP_SITE_TITLE || 'Time Table Scheduler'}` + document.title = `${title} | ${import.meta.env.VITE_APP_SITE_TITLE || 'Time Table Selector'}` }, [title]) return ( diff --git a/src/pages/TimeTableScheduler.tsx b/src/pages/TimeTableSelector.tsx similarity index 93% rename from src/pages/TimeTableScheduler.tsx rename to src/pages/TimeTableSelector.tsx index e28f30f3..9eb6f343 100644 --- a/src/pages/TimeTableScheduler.tsx +++ b/src/pages/TimeTableSelector.tsx @@ -1,4 +1,4 @@ -import BackendAPI from '../api//backend' +import BackendAPI from '../api/backend' import StorageAPI from '../api/storage' import { useState, useEffect } from 'react' import { Schedule, Sidebar } from '../components/planner' @@ -6,7 +6,7 @@ import { CourseInfo, Major } from '../@types' import MajorContext from '../contexts/MajorContext' import CourseContext from '../contexts/CourseContext' -const TimeTableSchedulerPage = () => { +const TimeTableSelectorPage = () => { const [majors, setMajors] = useState([]) const [coursesInfo, setCoursesInfo] = useState([]); const [pickedCourses, setPickedCourses] = useState(StorageAPI.getPickedCoursesStorage()); @@ -47,4 +47,4 @@ const TimeTableSchedulerPage = () => { ) } -export default TimeTableSchedulerPage +export default TimeTableSelectorPage; diff --git a/src/pages/index.ts b/src/pages/index.ts index 7d047408..18c5896c 100644 --- a/src/pages/index.ts +++ b/src/pages/index.ts @@ -1,6 +1,6 @@ import AboutPage from './About' -import TimeTableSchedulerPage from './TimeTableScheduler' +import TimeTableSelectorPage from './TimeTableSelector' import NotFoundPage from './NotFound' import FaqsPage from './Faqs' -export { AboutPage, TimeTableSchedulerPage, NotFoundPage, FaqsPage } +export { AboutPage, TimeTableSelectorPage, NotFoundPage, FaqsPage }