From 9aa463bc48345bd1414ba214249a91b39a7a2bff Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Sun, 6 Aug 2023 20:24:18 +1000 Subject: [PATCH] feat: feature/mvp-sprint-1 Added code and edit mode url paths --- remix/app/components/Thingtime/ThingtimeURL.tsx | 2 +- remix/app/routes/code/*.tsx | 7 +++++++ remix/app/routes/code/edit/*.tsx | 7 +++++++ remix/app/routes/edit/code/*.tsx | 7 +++++++ remix/app/routes/things/code/*.tsx | 7 +++++++ remix/app/routes/things/code/edit/*.tsx | 7 +++++++ remix/app/routes/things/edit/*.tsx | 7 +++++++ remix/app/routes/things/edit/code/*.tsx | 7 +++++++ 8 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 remix/app/routes/code/*.tsx create mode 100644 remix/app/routes/code/edit/*.tsx create mode 100644 remix/app/routes/edit/code/*.tsx create mode 100644 remix/app/routes/things/code/*.tsx create mode 100644 remix/app/routes/things/code/edit/*.tsx create mode 100644 remix/app/routes/things/edit/*.tsx create mode 100644 remix/app/routes/things/edit/code/*.tsx diff --git a/remix/app/components/Thingtime/ThingtimeURL.tsx b/remix/app/components/Thingtime/ThingtimeURL.tsx index 149d685..6c338db 100644 --- a/remix/app/components/Thingtime/ThingtimeURL.tsx +++ b/remix/app/components/Thingtime/ThingtimeURL.tsx @@ -18,7 +18,7 @@ export const ThingtimeURL = (props) => { const path = pathPartOne?.replace(/\//g, ".") - return path + return path || "thingtime" }, [location]) const thing = React.useMemo(() => { diff --git a/remix/app/routes/code/*.tsx b/remix/app/routes/code/*.tsx new file mode 100644 index 0000000..59fe8fa --- /dev/null +++ b/remix/app/routes/code/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/code/edit/*.tsx b/remix/app/routes/code/edit/*.tsx new file mode 100644 index 0000000..ec65898 --- /dev/null +++ b/remix/app/routes/code/edit/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/edit/code/*.tsx b/remix/app/routes/edit/code/*.tsx new file mode 100644 index 0000000..558e900 --- /dev/null +++ b/remix/app/routes/edit/code/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/things/code/*.tsx b/remix/app/routes/things/code/*.tsx new file mode 100644 index 0000000..59fe8fa --- /dev/null +++ b/remix/app/routes/things/code/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/things/code/edit/*.tsx b/remix/app/routes/things/code/edit/*.tsx new file mode 100644 index 0000000..ec65898 --- /dev/null +++ b/remix/app/routes/things/code/edit/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/things/edit/*.tsx b/remix/app/routes/things/edit/*.tsx new file mode 100644 index 0000000..83490fa --- /dev/null +++ b/remix/app/routes/things/edit/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +} diff --git a/remix/app/routes/things/edit/code/*.tsx b/remix/app/routes/things/edit/code/*.tsx new file mode 100644 index 0000000..558e900 --- /dev/null +++ b/remix/app/routes/things/edit/code/*.tsx @@ -0,0 +1,7 @@ +import React from "react" + +import { ThingtimeURL } from "~/components/Thingtime/ThingtimeURL" + +export default function Index() { + return +}