Merge branch 'auth' of ssh://gitea.gofwd.group:2225/dstrawsb/ballistic-builder into auth

This commit is contained in:
2024-12-16 11:50:35 -05:00
8 changed files with 215 additions and 180 deletions

10
src/app/Guides/page.tsx Normal file
View File

@@ -0,0 +1,10 @@
import { ChevronDownIcon } from "@heroicons/react/20/solid";
export default async function GuidesPage() {
return (
<div>
Guides page
</div>
)
}

View File

@@ -0,0 +1,15 @@
import { Account } from "@db/schema/Account";
import { getData } from "@actions/accountActions";
export default async function MyAccountsPage() {
const data = await getData();
return (
<div className="bg-gray-100 min-h-screen flex flex-col">
<div>
My account Page
</div>
{/* <Account account={data} /> */}
</div>
);
}

View File

@@ -9,8 +9,9 @@ export default async function GripsPage() {
return (
<div>
<PageHero title="Grips" />
<div className="container mx-auto">
<SortTable data={data}></SortTable>
<SortTable data={data}></SortTable>
</div>
</div>
);

View File

@@ -13,8 +13,8 @@ export default function RootLayout({
return (
<div className="flex min-h-full flex-col">
<PageHero title={metadata.title} />
{/*
<PageHero title="Category" /> */}
<div className="mx-auto flex w-full max-w-7xl items-start gap-x-8 ">
<aside className="sticky top-8 hidden w-44 shrink-0 lg:block pt-4">
{/* Left column area */}

View File

@@ -2,12 +2,14 @@ import { getProductType } from "@queries/PSA";
import partTypes from 'src/data/parts_cats.json';
import styles from "../styles.module.css";
import SortTable from "@src/components/SortTable";
import PageHero from "@src/components/PageHero";
export default async function LowerReceiverPage() {
const data = await getProductType(partTypes["AR COMPLETE LOWERS"]);
return (
<div>
<PageHero title="Lower Recievers" />
<div className="container mx-auto py-5">
<SortTable data={data}></SortTable>
</div>

View File

@@ -1,13 +1,18 @@
import { getARParts } from "@queries/PSA";
import styles from '../styles.module.css';
import SortTable from "@src/components/SortTable";
import PageHero from "@src/components/PageHero";
export default async function PartsPage() {
const data = await getARParts();
return (
<div className="container mx-auto">
<SortTable data={data}></SortTable>
<div>
<PageHero title="Parts" />
<div className="container mx-auto">
<SortTable data={data}></SortTable>
</div>
</div>
);
}

View File

@@ -1,7 +1,7 @@
import { getUpperReciever } from "@queries/PSA";
import styles from '../styles.module.css';
import PageHero from "@src/components/PageHero";
import ProductTable from "@src/components/ProductTable";
import SortTable from "@src/components/SortTable";
export default async function UpperReceiverPage() {
const data = await getUpperReciever();
@@ -10,7 +10,7 @@ export default async function UpperReceiverPage() {
<div>
<PageHero title="Upper Recievers" />
<div className="container mx-auto">
<ProductTable data={data}></ProductTable>
<SortTable data={data}></SortTable>
</div>
</div>
);