-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dummy Data Init Dummy Data init * prepare for testing * openai * test runs * dummy data * dummy data pt2 * Fix env var and other lint errors * Add fonts and colors from Figma (#18) * Add Space Mono font * Add colors from Figma * Create Delete, Stop, Start endpoints (#19) * changes for frontend some css errors just didnt know fonts and colors… (#17) * changes for frontend some css errors just didnt know fonts and colors and etc very quick fixes * issue with text field * Sign in page complete * Cleanup * New icons and stuff * Create Delete, Stop, Start endpoints (#19) * Snazzy stuff * Actually query projects * Fix some TRPC routes * Fix links and other info * Semi decent search * added comments saying if a github add is valid and pasue and starts for databases * Fix some errors * Create Delete, Stop, Start endpoints (#19) * Fix database router --------- Co-authored-by: Nate Sawant <[email protected]> Co-authored-by: Nate Sawant <[email protected]> * Protect procedure * grind session * 5 maximum tries * full schema * lint * lint * fix database * fix database * CLI Parity (#25) * temp changes * Write config to file * View projects and options * Fix undefined error * Add options to modify project * Way to add current repo * Fix schema pushing (#26) * Fix package * Correct pushing of schema * Fix bug with invalid existing interceptor (#27) * Fix env var and other lint errors * Add fonts and colors from Figma (#18) * Add Space Mono font * Add colors from Figma * changes for frontend some css errors just didnt know fonts and colors… (#17) * changes for frontend some css errors just didnt know fonts and colors and etc very quick fixes * issue with text field * Sign in page complete * Cleanup * New icons and stuff * Create Delete, Stop, Start endpoints (#19) * Snazzy stuff * Actually query projects * Fix some TRPC routes * Fix links and other info * Semi decent search * added comments saying if a github add is valid and pasue and starts for databases * Fix some errors * Create Delete, Stop, Start endpoints (#19) * Fix database router --------- Co-authored-by: Nate Sawant <[email protected]> Co-authored-by: Nate Sawant <[email protected]> * grind session * fix database * Fix errors * Fix conflict * Fix OpenAI env var * attempt 2 --------- Co-authored-by: patela22 <[email protected]> Co-authored-by: Nate Sawant <[email protected]> Co-authored-by: Nate Sawant <[email protected]> Co-authored-by: kaamil2 <[email protected]>
- Loading branch information
1 parent
c3a900d
commit a807621
Showing
8 changed files
with
281 additions
and
90 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
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,24 @@ | ||
"use client"; | ||
|
||
import { useState } from "react"; | ||
import { api } from "~/trpc/react"; | ||
|
||
export default function Dummy() { | ||
const [results, setResults] = useState(""); | ||
const testDummy = api.dummy.testDummy.useMutation(); | ||
|
||
const handleCreateDummyData = () => { | ||
testDummy | ||
.mutateAsync({ name: "test" }) | ||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions | ||
.then((data) => setResults(`success: ${data.message}`)) | ||
.catch((error) => console.error(error)); | ||
}; | ||
|
||
return ( | ||
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c] text-white"> | ||
<button onClick={handleCreateDummyData}>Create Data</button> | ||
<div>{results}</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
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,14 @@ | ||
import { z } from "zod"; | ||
|
||
import dummyCreate from "~/server/dummyData"; | ||
import { createTRPCRouter, publicProcedure } from "~/server/api/trpc"; | ||
|
||
export const dummy = createTRPCRouter({ | ||
testDummy: publicProcedure | ||
.input(z.object({ name: z.string() })) | ||
.mutation(async () => { | ||
const results = await dummyCreate(); | ||
|
||
return results; | ||
}), | ||
}); |
Oops, something went wrong.