|
frogbs posted:I've got three values that exist in the front matter for a post. I want the post template to take those values, figure out which one is the largest or smallest and assign new variables to each. I then want to use those variables in the post template. Something like this? src/content/config.ts code:
code:
code:
prom candy fucked around with this message at 03:57 on Sep 4, 2023 |
# ¿ Sep 4, 2023 03:54 |
|
|
# ¿ May 16, 2024 14:30 |
|
frogbs posted:Oh wow, thank you, i'm going to try this out. No problem i actually havent had a chance to screw around with Astro too much but I was like 95% certain what you were trying to do is doable so it gave me an excuse to spin up an app.
|
# ¿ Sep 4, 2023 04:59 |
|
frogbs posted:Just wanted to thank you again for this, I've gotten much further along in my project after looking at what you provided and reading more of the documentation. No problem! Astro is sweet and I don't actually get a lot of opportunities to use it. I had fun digging into your problem last weekend. In Zod I think you would express this as z.string().nullable(), or you could use .optional() and then not supply the address in the frontmatter at all if you don't have it.
|
# ¿ Sep 10, 2023 01:17 |
|
While we're talking about cool poo poo, Bun 1.0 is out: https://bun.sh/ Looks like it's super loving fast and has tons of DX improvements over Node. I was playing around with it a bit last night and it installs packages insanely fast.
|
# ¿ Sep 10, 2023 01:39 |
|
Not sure how it works in FF but in chrome if you look at the computed styles tab it will show you which CSS rules it used. I'm sure FF has something similar
|
# ¿ Sep 11, 2023 05:18 |
|
Shopify bought Remix last year and they're going all in on that (as mentioned at the start of the Hydrogen docs). Remix is a loving awesome framework imo, they've gotten a lot of things right that NextJS got wrong https://remix.run/ https://kentcdodds.com/blog/why-i-love-remix If you want to run it on AWS I would look into deploying it with SST: https://sst.dev/ and https://docs.sst.dev/start/remix
|
# ¿ Sep 12, 2023 01:48 |
|
The people who work at Vercel are still React Core Team members I'm pretty sure. Aside from RSC they're supposedly working on React Fiber but everyone inside React is super hyped on RSC at the moment.
|
# ¿ Dec 7, 2023 23:02 |
|
Oh right, React Forget. I keep getting those mixed up.
|
# ¿ Dec 8, 2023 15:38 |
|
I think fly.io has a free tier
|
# ¿ Jan 6, 2024 21:28 |
|
It's loading for me but in the main carousel thing you've got white text overlapping with white image backgrounds
|
# ¿ Jan 29, 2024 23:21 |
|
Oh yeah the white on white was on mobile
|
# ¿ Jan 30, 2024 00:05 |
|
It's only Angular if it comes from the Angular region of Mountain View, otherwise it's just sparkling polymer
|
# ¿ Feb 9, 2024 05:57 |
|
You're basically not gonna get database-to-client typesafety without using an ORM or query builder that wants to define your schema. Drizzle is very cool. Similarly there's Jet for Golang, but I haven't used that.
|
# ¿ Mar 25, 2024 18:49 |
|
abraham linksys posted:if you just want runtime type-safety with no ORM, you can hand-write zod schemas for the expected query results, and this brings up typescript to parity with, like, every other typed language where the types exist at runtime. there's some libraries that'll integrate this like slonik (https://github.com/gajus/slonik). adding runtime costs with something like zod is only really worthwhile if data is coming from sources outside your control imo. what you consider "outside your control" is entirely subjective though, i.e. i use zod to parse response shape for APIs that i control
|
# ¿ Mar 25, 2024 21:03 |
|
The codes do matter and I think we should argue about them. 422 for invalid input, fight me.
|
# ¿ Mar 26, 2024 06:28 |
|
America Inc. posted:I ran into a surprising issue with a React app I'm making, that breaks my expectations about how the framework should work. In my mind, React works like this: you've got a hierarchy of components, each with their own state. When the state of the parent updates, the children are re-mounted, and the state is reset to initial values. If you wanted that useEffect to re-run when query changes you would need to pass it into the dependency array: code:
|
# ¿ Apr 22, 2024 18:40 |
|
|
# ¿ May 16, 2024 14:30 |
|
EpicCareMadBitch posted:Wondering as someone that has little knowledge on web development as to how do i sit down and create the website I envision? Would site builders be a better option? Or even Fiverr? I would like full control though. Just asking as a n00b here, it would be a blog setup by the way. What are you trying to do? Is this like, your grand vision? Or a website for your uncles pizza joint?
|
# ¿ May 16, 2024 05:45 |