Skip to content

Commit

Permalink
Merge pull request #302 from NIAEFEUP/chore/change-default-app-title
Browse files Browse the repository at this point in the history
chore: change default app title from timetablescheduler to timetableselector
  • Loading branch information
tomaspalma authored Sep 14, 2024
2 parents d5be22c + 21b2963 commit 6279f09
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<h3 align="center"> TimeTableScheduler - Frontend </h3>
<h3 align="center"> Time Table Selector - Frontend </h3>
<p align="center"> A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester </p>
<p align="center">
<a href="https://reactjs.org/">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#b33636" />
<meta name="description" content="NIAEFEUP | TimeTableScheduler" />
<meta name="description" content="NIAEFEUP | Time Table Selector" />
<link rel="apple-touch-icon" href="/logo192.png" />

<!-- Fonts -->
Expand All @@ -21,7 +21,7 @@
/>

<link rel="manifest" href="/manifest.json" />
<title>NIAEFEUP | TimeTableScheduler</title>
<title>NIAEFEUP | Time Table Selector</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Time Table Scheduler",
"name": "Time Table Selector",
"short_name": "TTS",
"icons": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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 },
]
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
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'
import { CourseInfo, Major } from '../@types'
import MajorContext from '../contexts/MajorContext'
import CourseContext from '../contexts/CourseContext'

const TimeTableSchedulerPage = () => {
const TimeTableSelectorPage = () => {
const [majors, setMajors] = useState<Major[]>([])
const [coursesInfo, setCoursesInfo] = useState([]);
const [pickedCourses, setPickedCourses] = useState<CourseInfo[]>(StorageAPI.getPickedCoursesStorage());
Expand Down Expand Up @@ -47,4 +47,4 @@ const TimeTableSchedulerPage = () => {
)
}

export default TimeTableSchedulerPage
export default TimeTableSelectorPage;
4 changes: 2 additions & 2 deletions src/pages/index.ts
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit 6279f09

Please sign in to comment.