Tomate Malicioso
Tomate Malicioso
TTCTheo's Typesafe Cult
Created by Steven on 1/9/2024 in #questions
Next.Js testing
Cypress pretty much mimics user input for your application, very expensive but extremely useful to test the whole workflow of your app
6 replies
TTCTheo's Typesafe Cult
Created by Steven on 1/9/2024 in #questions
Next.Js testing
MSW allows you to intercept outcoming requests and handle them depending of test scenarios
6 replies
TTCTheo's Typesafe Cult
Created by Steven on 1/9/2024 in #questions
Next.Js testing
The libraries you mentioned are pretty fundamental to most codebases, I'd suggest to also learn a bit of Mock Service Worker to test APIs and Cypress for end to end (e2e) testing.
6 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
I forget this doesn't notify me unless I set it to do so
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
Which styles? Sorry I come and go, will start following this thread.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
If you set like, bg-green-200 on other elements on yout layout, does it apply the color?
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
If you set Tailwind built-in styles in other parts of your code and it doesn't work, then that's most likely the issue.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
Yes! Atleast using extend did solve my issue.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
OP marked this as solved, without providing their actual solution, which is weird.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
When you install ShadCN components, they're not part of an independent component library, but rather part of your project, if it can't get your styles, it's most likely an issue caused by Tailwind's configuration.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
You need to: 1. Make sure you're properly setting the content value, which the t3 stacks does for you. (this makes sure Tailwind sources the correct files) 2. Extend rather than override the default theme, if you add a color to theme: { colors } rather than theme: { extends: { colors }} you're essentially wiping all built-in Tailwind colors, which ShadCN relies on. https://tailwindcss.com/docs/theme
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
Jeez sorry for necroposting, opened the questions forum and thought this was newer.
24 replies
TTCTheo's Typesafe Cult
Created by gave_one on 8/12/2023 in #questions
shadcn/ui is not really working ,it's rendering the elements but the styles are not there
Are you sure Tailwind is properly configured? This happened to me because I was overriding the theme instead of extending it. If you don't use CSS variables ShadCN relies on Tailwind variables for styling.
24 replies
TTCTheo's Typesafe Cult
Created by akerbeltz on 10/4/2023 in #questions
Difference between HEAD^ and HEAD~
Following replies here: https://stackoverflow.com/questions/2221658/whats-the-difference-between-head-and-head-in-git The symbols themselves mean the same, to refer to the parent of a commit, the difference comes in numbering (ex: A^2 A~2), because you traverse the commit history differently depending of which symbol you use. I suggest you to jump in the replies of the StackOverflow question as they have a nice set of diagrams to explore and read. Specially: https://stackoverflow.com/a/23714994/13169707 and https://stackoverflow.com/a/12527561/13169707 But seems like, from my understanding, that to undo specifically one commit, they do exactly the same thing. I think the best way to do it would rather be using git revert <commit hash> which creates a new commit with the reverted changes, which you can push. This creates a messier history but you can like, fall back in case something weird happening during the revert.
2 replies
TTCTheo's Typesafe Cult
Created by Deras on 9/26/2023 in #questions
Looking for 1-3 hour long Next tutorial, app router, server comp., server actions, local db, auth.js
Check out Jack Herrington's youtube channel!
16 replies
TTCTheo's Typesafe Cult
Created by harshcut on 9/28/2023 in #questions
Take-home assignment
It goes deep into doing custom drag'n'drop events.
4 replies
TTCTheo's Typesafe Cult
Created by harshcut on 9/28/2023 in #questions
Take-home assignment
I'm not well versed enough to answer your question, but I highly recommend javascript.info https://javascript.info/mouse-drag-and-drop
4 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 6/17/2023 in #questions
Is it possible to dynamically generate zod schema?
But you can definitely validate around using your dynamically generated zod validator.
12 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 6/17/2023 in #questions
Is it possible to dynamically generate zod schema?
If I understand the implications correctly, you can't pick the type from the generated validator and, for example, have it as an argument or return type from another function.
12 replies
TTCTheo's Typesafe Cult
Created by shikishikichangchang on 6/17/2023 in #questions
Is it possible to dynamically generate zod schema?
You can generate the zod validator but you can't infer the type from it , as it'd be done on runtime and not during the TypeScript compilation step.
12 replies