From d2fbfd01b619d3c99b9cd3e7d68596430f7d2e4f Mon Sep 17 00:00:00 2001 From: Denis Thiessen Date: Thu, 6 Jun 2024 12:32:38 +0200 Subject: [PATCH] fix: Cleanup --- src/pages/TestInfoPage2.jsx | 22 -------------------- src/pages/TestPage.jsx | 31 ---------------------------- src/pages/TestPage2.jsx | 31 ---------------------------- src/pages/TestQuestionnaire.jsx | 36 --------------------------------- 4 files changed, 120 deletions(-) delete mode 100644 src/pages/TestInfoPage2.jsx delete mode 100644 src/pages/TestPage.jsx delete mode 100644 src/pages/TestPage2.jsx delete mode 100644 src/pages/TestQuestionnaire.jsx diff --git a/src/pages/TestInfoPage2.jsx b/src/pages/TestInfoPage2.jsx deleted file mode 100644 index 0f3c6b6..0000000 --- a/src/pages/TestInfoPage2.jsx +++ /dev/null @@ -1,22 +0,0 @@ -import React from "react"; -import InfoPageComponent from "../components/InfoPageComponent"; - -function TestInfoPage2({ redirectLoc }) { - return ( - -

- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet - clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit - amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam - nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea - rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem - ipsum dolor sit amet. -

-
- ); -} - -export default TestInfoPage2; diff --git a/src/pages/TestPage.jsx b/src/pages/TestPage.jsx deleted file mode 100644 index 9a06327..0000000 --- a/src/pages/TestPage.jsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from "react"; -import { getTranslation } from "../core/i18n/I18NHandler"; -import WebpageBanner from "../components/webpage_container/WebpageBanner"; -import { - StudySite, - getHeatmapData, -} from "../components/webpage_container/StudySite"; -import { pushToMouseLog, getSensorLog } from "../core/log/SensorLogger"; -import { Button } from "@geist-ui/core"; - -function TestPage({ redirectLoc }) { - var clickFunction = function () { - pushToMouseLog(getHeatmapData()); - window.location.href = "./" + redirectLoc; - }; - return ( - - -

{ - clickFunction(); - }} - > - {getTranslation("hello_world")} -

- -
- ); -} - -export default TestPage; diff --git a/src/pages/TestPage2.jsx b/src/pages/TestPage2.jsx deleted file mode 100644 index 44ace4c..0000000 --- a/src/pages/TestPage2.jsx +++ /dev/null @@ -1,31 +0,0 @@ -import React from "react"; -import { getTranslation } from "../core/i18n/I18NHandler"; -import WebpageBanner from "../components/webpage_container/WebpageBanner"; -import { - StudySite, - getHeatmapData, -} from "../components/webpage_container/StudySite"; -import { pushToMouseLog } from "../core/log/SensorLogger"; -import { Button } from "@geist-ui/core"; - -function TestPage2({ redirectLoc }) { - var clickFunction = function () { - pushToMouseLog(getHeatmapData()); - window.location.href = "./" + redirectLoc; - }; - return ( - - -

{getTranslation("hello_world")}

- -
- ); -} - -export default TestPage2; diff --git a/src/pages/TestQuestionnaire.jsx b/src/pages/TestQuestionnaire.jsx deleted file mode 100644 index 0185862..0000000 --- a/src/pages/TestQuestionnaire.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react"; -import { useParams } from "react-router-dom"; -import QuestionComponent from "../components/questionnaire/QuestionComponent"; -import { useQuestionComponent } from "../components/questionnaire/QuestionnaireData"; - -export default function TestQuestionnaire() { - const { id } = useParams(); - - const q1Props = useQuestionComponent( - "checkbox", - 4, - "Lorem Ipsum", - "/info", - "./q2" - ); - const q2Props = useQuestionComponent( - "slider", - 8, - "Lorem Ipsum Ye", - "./q1", - "/info" - ); - - const questionProperties = { q1: q1Props, q2: q2Props }; - const questionProperty = questionProperties[id]; - - return ( -
- -

Current Answer Data: {JSON.stringify(questionProperty.answerData)}

-
- ); -}