-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add env-aware styling and warnings (#130)
* Add env-aware styling and warnings * Formatting
- Loading branch information
1 parent
f24f5ff
commit b88cbe5
Showing
24 changed files
with
456 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
MESHFORMS_ENVIRONMENT=local | ||
|
||
MESHDB_URL=http://127.0.0.1:8000 | ||
|
||
JOIN_RECORD_BUCKET_NAME=meshdb-join-form-log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Footer } from "@/components/Footer/Footer"; | ||
import { Header } from "@/components/Header/Header"; | ||
import { NNAssignForm } from "@/components/NNAssignForm/NNAssignForm"; | ||
|
||
export const metadata = { | ||
title: "Assign a Network Number", | ||
description: "Assign a Network Number to an existing Install", | ||
}; | ||
|
||
export default async function NNAssign() { | ||
return ( | ||
<> | ||
<main> | ||
<NNAssignForm /> | ||
</main> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
import { redirect } from "next/navigation"; | ||
import Landing from "@/components/Landing/Landing"; | ||
import { setRequestLocale } from "next-intl/server"; | ||
|
||
export default function RootPage() { | ||
redirect("/"); | ||
type Props = { | ||
params: { locale: string }; | ||
}; | ||
|
||
export default function Home({ params: { locale } }: Props) { | ||
setRequestLocale(locale); | ||
return ( | ||
<> | ||
<main> | ||
<Landing /> | ||
</main> | ||
</> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { QueryForm } from "@/components/QueryForm/QueryForm"; | ||
|
||
export default async function Join() { | ||
return ( | ||
<> | ||
<main> | ||
<QueryForm /> | ||
</main> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
import { Footer } from "@/components/Footer/Footer"; | ||
import { Header } from "@/components/Header/Header"; | ||
import { NNAssignForm } from "@/components/NNAssignForm/NNAssignForm"; | ||
import { redirect } from "next/navigation"; | ||
|
||
export const metadata = { | ||
title: "Assign a Network Number", | ||
description: "Assign a Network Number to an existing Install", | ||
}; | ||
|
||
export default async function NNAssign() { | ||
return ( | ||
<> | ||
<main> | ||
<NNAssignForm /> | ||
</main> | ||
</> | ||
); | ||
export default function RootPage() { | ||
redirect("/en/nn-assign"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import Landing from "@/components/Landing/Landing"; | ||
import { setRequestLocale } from "next-intl/server"; | ||
import { redirect } from "next/navigation"; | ||
|
||
type Props = { | ||
params: { locale: string }; | ||
}; | ||
|
||
export default function Home({ params: { locale } }: Props) { | ||
setRequestLocale(locale); | ||
return ( | ||
<> | ||
<main> | ||
<Landing /> | ||
</main> | ||
</> | ||
); | ||
export default function RootPage() { | ||
redirect("/en/"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import { Footer } from "@/components/Footer/Footer"; | ||
import { Header } from "@/components/Header/Header"; | ||
import { QueryForm } from "@/components/QueryForm/QueryForm"; | ||
import { redirect } from "next/navigation"; | ||
|
||
// TODO: | ||
// https://www.npmjs.com/package/react-phone-number-input | ||
// https://www.npmjs.com/package/react-error-boundary | ||
|
||
export default async function Join() { | ||
return ( | ||
<> | ||
<main> | ||
<QueryForm /> | ||
</main> | ||
</> | ||
); | ||
export default function RootPage() { | ||
redirect("/en/query"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.