From c17d25f97859e28b26fb4db655ee0c3305653577 Mon Sep 17 00:00:00 2001 From: Daniel Winsvold Date: Wed, 16 Dec 2020 15:02:40 +0100 Subject: [PATCH] fjerner mvp-kode --- src/App.tsx | 16 ++++------------ src/resources/eggumCode.js | 11 ----------- src/resources/mvpText.ts | 10 ---------- 3 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 src/resources/eggumCode.js delete mode 100644 src/resources/mvpText.ts diff --git a/src/App.tsx b/src/App.tsx index 64c9959..526a536 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,10 +13,8 @@ import Console from "./modules/console/Console"; import { isMobile } from "react-device-detect"; import ReactGA from "react-ga"; import mobileWarningText from "./resources/mobileWarningText"; -import mvpText from "./resources/mvpText"; -import { eggumCode } from "./resources/eggumCode"; -type PopUps = "granted" | "denied" | "progressBar" | "wakeUp" | "mvp" | undefined; +type PopUps = "granted" | "denied" | "progressBar" | "wakeUp" | undefined; function App() { const [sizeOfText, setSizeOfText] = useState(0); @@ -24,7 +22,6 @@ function App() { const [loadedPopUp, setLoadedPopUp] = useState(); const [matrix, setMatrix] = useState(false); const [menuOpen, setMenuOpen] = useState(false); - const [useEggumCode, setUseEggumCode] = useState(false); useEffect(() => { ReactGA.initialize("UA-111572952-1"); @@ -45,10 +42,6 @@ function App() { setLoadedPopUp("progressBar"); } else if (event.key === "4") { setLoadedPopUp("wakeUp"); - } else if (event.key === "5") { - setLoadedPopUp("mvp"); - } else if (event.key === "0") { - setUseEggumCode(!useEggumCode); } else if (event.key === "Control") { ReactGA.event({ category: "Features", @@ -71,7 +64,7 @@ function App() { const newSizeOfText = Math.round(sizeOfText - Math.random() * 8); setSizeOfText(newSizeOfText >= 0 ? newSizeOfText : 0); } else { - const newSize = eggumCode ? sizeOfText + 2 : Math.round(sizeOfText + Math.random() * 8); + const newSize = Math.round(sizeOfText + Math.random() * 8); setSizeOfText(newSize); } }; @@ -80,16 +73,15 @@ function App() { return () => { document.removeEventListener("keydown", handleKeyDown); }; - }, [loadedPopUp, matrix, sizeOfText, useEggumCode]); + }, [loadedPopUp, matrix, sizeOfText]); return (
- + {matrix && } setMenuOpen(!menuOpen)} /> {isMobile && } {popUp === "wakeUp" && } - {popUp === "mvp" && } {popUp === "progressBar" && setPopUp(Math.random() < 0.5 ? "granted" : "denied")} />} {popUp === "denied" && } {popUp === "granted" && } diff --git a/src/resources/eggumCode.js b/src/resources/eggumCode.js deleted file mode 100644 index 8338fac..0000000 --- a/src/resources/eggumCode.js +++ /dev/null @@ -1,11 +0,0 @@ -export const eggumCode = `M V P - -Minimum Viable Product - -Minimum Viable Production -brought to you by -Minimally Visitable People -from a -Magnificent Viable Planet - -M V P`; diff --git a/src/resources/mvpText.ts b/src/resources/mvpText.ts deleted file mode 100644 index b3b1ab7..0000000 --- a/src/resources/mvpText.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { createTextFragment, TextFragment } from "../modules/selfWritingConsole/textFragment"; - -export const mvpText: TextFragment[] = [ - createTextFragment("MVP", 100, 2500), - createTextFragment(" - Minimum Viable Productions", 60, 1000), - createTextFragment(" presents", 100, 300), - createTextFragment("..", 200, 300), -]; - -export default mvpText;