-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'codeforboston:main' into main
- Loading branch information
Showing
16 changed files
with
118 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...CaseSummaryComponents/HomeInformation.tsx → ...CaseSummaryComponents/HomeInformation.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CurrentHeatingSystem } from '../../components/ui/heat/CaseSummaryComponents/CurrentHeatingSystem.tsx' | ||
import { EnergyUseHistory } from '../../components/ui/heat/CaseSummaryComponents/EnergyUseHistory.tsx' | ||
import { Graphs } from '../../components/ui/heat/CaseSummaryComponents/Graphs.tsx' | ||
import { HomeInformation } from '../../components/ui/heat/CaseSummaryComponents/HomeInformation.tsx' | ||
|
||
export default function CaseSummary() { | ||
return ( | ||
<main className="main-container"> | ||
<div> | ||
<h1 className="page-title">Case Summary</h1> | ||
<HomeInformation /> | ||
<CurrentHeatingSystem /> | ||
<EnergyUseHistory /> | ||
<Graphs /> | ||
</div> | ||
</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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export default function Home() { | ||
return ( | ||
<div> | ||
<h1> | ||
This is the Heat Home page - the first page a user will see when | ||
starting the app | ||
</h1> | ||
|
||
<h1>Some paths with placeholder pages are:</h1> | ||
<ul> | ||
<li>/casesummary - see an example case summary</li> | ||
<li>/cases - see a list of cases</li> | ||
<li>/epicstack - information about the Epic Stack</li> | ||
</ul> | ||
</div> | ||
) | ||
} |
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,35 @@ | ||
import { json, type DataFunctionArgs } from '@remix-run/node' | ||
import { Outlet, useLoaderData } from '@remix-run/react' | ||
import { Fragment } from 'react' | ||
|
||
export async function loader({ params }: DataFunctionArgs) { | ||
// // From the database: | ||
// const user = await prisma.user.findFirst({ | ||
// select: { | ||
// id: true, | ||
// name: true, | ||
// username: true, | ||
// createdAt: true, | ||
// image: { select: { id: true } }, | ||
// }, | ||
// where: { | ||
// username: params.username, | ||
// }, | ||
// }) | ||
|
||
return json({ | ||
id: params.analysisid | ||
}) | ||
} | ||
|
||
export default function Analysis () { | ||
const data = useLoaderData<typeof loader>() | ||
const id = data?.id | ||
|
||
return ( | ||
<Fragment> | ||
<h1>{ id }</h1> | ||
{/* <Outlet /> */} | ||
</Fragment> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
heat-stack/app/routes/cases+/case_summaries+/$summaryid_+/index.tsx
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,10 @@ | ||
import { Outlet } from '@remix-run/react' | ||
|
||
export default function Cases() { | ||
return( | ||
<div className="w-100p h-100p bk-primary"> | ||
<h1>Case name</h1> | ||
<Outlet/> | ||
</div> | ||
) | ||
} |
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 @@ | ||
export default function Cases() { | ||
return( | ||
<div className="w-96 bg-slate-400 "> | ||
<h1>Cases</h1> | ||
<ul> | ||
<li>Case 1</li> | ||
<li>Case 2</li> | ||
</ul> | ||
</div> | ||
) | ||
} |