silas

joined 2 years ago
MODERATOR OF
[–] silas@programming.dev 9 points 2 years ago

We’ve had a few of these built on my planet too actually

[–] silas@programming.dev 2 points 2 years ago (1 children)

Lemmy v0.19 and some health issues in the family have both pushed things behind schedule a bit, but everything’s good now. We’re looking at within the next month if all goes according to plan :)

[–] silas@programming.dev 11 points 2 years ago (3 children)

Ah crap I got another account there, I guess I’m cheering from both lol

[–] silas@programming.dev 21 points 2 years ago (6 children)

Cheering you on from over here at lemm.ee! Thanks for making this place better for everyone!

[–] silas@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Well, I usually fetch and return user data from a top-level +layout.js or +layout.server.js. Then my user data is always available in every layout or page through the data prop (and types are all handle automatically for this too).

I then invalidate and re-fetch that data using invalidate(), invalidateAll(), and depends() if the user data becomes stale.

Any state/data from the user that needs to stay server-side (like tokens) I keep in event.locals which is available in all .server.js files

[–] silas@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Codium does surprisingly well at generating JSDoc, and it processes your code within the context of your entire codebase. Still not quite there yet, but you might be surprised

[–] silas@programming.dev 6 points 2 years ago (6 children)

I know there are documentation generators (like JSDoc in JavaScript) where you can literally write documentation in your code and have a documentation site auto-generated at each deployment. There’s definitely mixed views on this though

[–] silas@programming.dev 1 points 2 years ago

Oh nice, yeah that could still be pretty convincing. I might even be able to get away with an ::after instead. I’ll mess around with it, thanks!

[–] silas@programming.dev 2 points 2 years ago (1 children)

Yeah I don’t blame you, I even uploaded the wrong example photo at first lol

[–] silas@programming.dev 1 points 2 years ago (2 children)

Thanks! Didn’t think of bezier curves in relation to this, that’s a good search term.

Highly doubt it, but you know if it’s possible to do this with a border and box-shadow on the element?

[–] silas@programming.dev 3 points 2 years ago (3 children)

Nope, It’s kinda confusing because it looks very similar. Smooth corners are actually a different mathematical calculation than the standard ones from the border-radius property, that’s why I’m kinda doubtful there’s an easy way to do it

[–] silas@programming.dev 1 points 2 years ago

That’s just standard rounded corners, I’m talking about squircles or smooth rounded corners which have a slightly different appearance.

view more: ‹ prev next ›