-
+
+
{isGenerated.toString()}
>
diff --git a/frontend/src/pages/TimetableMod.tsx b/frontend/src/pages/TimetableMod.tsx
index 0c321bf..bcb7fa6 100644
--- a/frontend/src/pages/TimetableMod.tsx
+++ b/frontend/src/pages/TimetableMod.tsx
@@ -5,8 +5,7 @@ import Footer from "../components/Footer";
import BackButton from "../components/BackButton";
import { Outlet } from "react-router-dom";
import ModSidebar from "../components/ModSiderbar";
-import { REMOTE_API_URL, TimetableSolution } from "../scripts/api";
-import { useAuthContext } from "../security/AuthContext";
+import { TimetableSolution } from "../scripts/api";
/**
* Renders the TimetableMod component to display and modify the generated
@@ -17,10 +16,9 @@ import { useAuthContext } from "../security/AuthContext";
*/
export default function TimetableMod() {
const [loading, setLoading] = useState(true);
- const { authHeader } = useAuthContext();
useEffect(() => {
- fetch(REMOTE_API_URL + "/timetabling/view", { headers: { 'Authorization': authHeader } })
+ fetch("http://localhost:8080/timetabling/view")
.then((response) => {
if (!response.ok) {
throw new Error("Network response was not ok");
@@ -56,8 +54,10 @@ export default function TimetableMod() {
diff --git a/frontend/src/pages/spreadsheets/Building.tsx b/frontend/src/pages/spreadsheets/Building.tsx
new file mode 100644
index 0000000..be3ccc9
--- /dev/null
+++ b/frontend/src/pages/spreadsheets/Building.tsx
@@ -0,0 +1,19 @@
+import Spreadsheet from '../../components/Spreadsheet.tsx'
+import { DB_BUILDINGS } from '../../scripts/persistence.ts';
+
+/**
+ *
+ * @returns Spreadsheet input page for buildings information.
+ */
+export default function Building() {
+
+ return (
+ <>
+