ott
ott
TTCTheo's Typesafe Cult
Created by ott on 2/7/2024 in #questions
Creating `AudioContext` in Next.js
There was someone else doing something similar with zustand and audio context in the server (search for AudioContext) which is where I got the idea for the setup on my store, but I want to know if there is a better way.
3 replies
TTCTheo's Typesafe Cult
Created by Brycycle on 12/16/2023 in #questions
TypeError: GoogleProvider is not a function when running with .ts script using tsx
Does it need to be .tsx, afaik GoogleProvider is a react component
6 replies
TTCTheo's Typesafe Cult
Created by ott on 10/17/2023 in #questions
OAuth providers on vercel preview deployments with NextAuth
I didn't end up trying, but if you go to the create t3 turbo monorepo, they have some app called auth-proxy that prob solves this issue
4 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
fair enough
18 replies
TTCTheo's Typesafe Cult
Created by Aidam on 10/17/2023 in #questions
React Native with T3
I used https://github.com/t3-oss/create-t3-turbo, but it took a lot of fiddling with to get pnpm with react native working
4 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
why do you want to render a sheet anyway?
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
i don't think its an antipattern, i've mostly just used the mobile dialogue because its works well enough
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
something like K in keyof T if K not keyof U and K in keyof T if K keyof U, im not a major typescript expert but chatgpt might be
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
ya, there probably a way to get the intersecting properties and unique properties so you can do something like <Sheet {...intersecting} {...sheetProps}> and <Dialogue {...intersecting} {...dialogueProps}>
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
i would make a single component that renders both the dialogue and sheet like
export function DialogueOrSheet({trigger, title, description}) {

return (
<>
<Sheet className="block lg:hidden">
<SheetTrigger>{trigger}</SheetTrigger>
<SheetContent>
<SheetHeader>
<SheetTitle>{title}</SheetTitle>
<SheetDescription>{description}</SheetDescription>
</SheetHeader>
</SheetContent>
</Sheet>
<Dialog className="hidden lg:block">
<DialogTrigger>{trigger}</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
</>
)
}
export function DialogueOrSheet({trigger, title, description}) {

return (
<>
<Sheet className="block lg:hidden">
<SheetTrigger>{trigger}</SheetTrigger>
<SheetContent>
<SheetHeader>
<SheetTitle>{title}</SheetTitle>
<SheetDescription>{description}</SheetDescription>
</SheetHeader>
</SheetContent>
</Sheet>
<Dialog className="hidden lg:block">
<DialogTrigger>{trigger}</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>
<DialogDescription>{description}</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
</>
)
}
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
with tailwind you can use className="hidden md:flex" and className="flex md:hidden" for the different containers
18 replies
TTCTheo's Typesafe Cult
Created by Xaohs on 10/17/2023 in #questions
Render either a Sheet, or a Dialog in a streamlined way with Shadcn/ui?
I would have both on the page and only show one depending on the device width
18 replies
TTCTheo's Typesafe Cult
Created by ott on 1/9/2023 in #questions
Python app + nextjs frontend writing to the same database
thanks!
11 replies
TTCTheo's Typesafe Cult
Created by ott on 1/9/2023 in #questions
Python app + nextjs frontend writing to the same database
i would prob deploy the frontend to vercel
11 replies
TTCTheo's Typesafe Cult
Created by ott on 1/9/2023 in #questions
Python app + nextjs frontend writing to the same database
concurrently would be for development right?
11 replies
TTCTheo's Typesafe Cult
Created by ott on 12/23/2022 in #questions
Auth solution for encrypting, not hashing, passwords
i initially though of using oauth and having the user supply their password separately, but it would be easier if they could just use the same password
15 replies
TTCTheo's Typesafe Cult
Created by ott on 12/23/2022 in #questions
Auth solution for encrypting, not hashing, passwords
which is using a 20yo php service
15 replies
TTCTheo's Typesafe Cult
Created by ott on 12/23/2022 in #questions
Auth solution for encrypting, not hashing, passwords
we are scraping homework from our school's portal
15 replies
TTCTheo's Typesafe Cult
Created by ott on 12/23/2022 in #questions
Auth solution for encrypting, not hashing, passwords
no
15 replies