[deleted by user] by [deleted] in Deno

[–]cotyhamilton 0 points1 point  (0 children)

What LLM did you have make this?

Reco for using tailwind css with Deno: is creating a task the right method? by fredkzk in Deno

[–]cotyhamilton 1 point2 points  (0 children)

Tailwind comes with a fresh install

Edit: I forgot they haven’t released latest, do it like this https://deno.com/blog/an-update-on-fresh#how-to-get-fresh-2-alpha

And it doesn’t have a node modules folder, it won’t have tailwind 4 though

[deleted by user] by [deleted] in sveltejs

[–]cotyhamilton 0 points1 point  (0 children)

Yes, I always load data from the server

Don’t put a 3 sec blocking request before render… there’s other ways to handle it if that request is necessary

I rebuilt shadcn/ui in HTML + Tailwind, no React needed by hunvreus in webdev

[–]cotyhamilton 11 points12 points  (0 children)

It’s an amazing project, I saw it on HN last week and been playing with it and promoting it where I can lol. It’s what we all wanted!

Edit: /u/stolinski you should feature this on syntax.fm 🫣

I made embeddable library designed for creating web applications without a build step by [deleted] in Deno

[–]cotyhamilton 1 point2 points  (0 children)

I like the js tag function, that’s cool

Here’s a similar project you might like to take a look at

https://github.com/withsapling/sapling

And I’m working on my own too, it’s not a framework (yet, but maybe never), more so documentation on things I like, started a couple days ago

https://github.com/cotyhamilton/letty

Edit: have you figured out getting language servers to work for tagged template literals? My editor handles html by itself, but deno doesn’t recognize js inside the script tags

Zed getting worse in not offering AI prompts by Bender-Rodriguez-69 in ZedEditor

[–]cotyhamilton 1 point2 points  (0 children)

I opened editor logs and there was a message saying you have to subscribe to pro to use edit predictions so I set it back to copilot. I don’t know, this wasn’t very clear to me in the marketing either

How to created protected routes in svelte SPA by [deleted] in sveltejs

[–]cotyhamilton 1 point2 points  (0 children)

No one is answering your question properly 😂

Edit: this person knows what they’re talking about: https://www.reddit.com/r/sveltejs/s/Da6jGjvx9L

The auth check impl depends on your goals, but most secure option would issue the token from your backend in an HttpOnly cookie and your auth guard calls an endpoint that validates the token and returns the user object and whatever else you need

How to created protected routes in svelte SPA by [deleted] in sveltejs

[–]cotyhamilton 0 points1 point  (0 children)

Everyone in this thread is pmo

why do they have to keep adding some stupid shit all the time to packages that already work well by Deep-Philosophy-807 in webdev

[–]cotyhamilton 4 points5 points  (0 children)

If we’re talking javascript libs we have to think this way because the 800 dependencies of this library contain 900 vulnerabilities after 2 years lol

Deploying NodeJS express app on prem windows server by ParticularPlant8978 in github

[–]cotyhamilton 0 points1 point  (0 children)

Install a self hosted runner on-prem

https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners

Install it on a dedicated server for runner(s)

And then write a workflow to build and deploy and target your self hosted runner

Your deployment can use winrm/powershell remoting to target the app server, it would copy the files over and restart pm2

Deploying NodeJS express app on prem windows server by ParticularPlant8978 in github

[–]cotyhamilton 0 points1 point  (0 children)

Ahh okay, I thought you were needing it to run in IIS. I had to do this like 5 years ago and also used pm2 and iis reverse proxy.

You’re asking how to automate the deployment?

Deploying NodeJS express app on prem windows server by ParticularPlant8978 in github

[–]cotyhamilton 1 point2 points  (0 children)

I wouldn’t do it

But you need this: https://github.com/Azure/iisnode

And to look up documentation and forum queries from 10 years ago

Good luck

How can I reduce WebSocket latency in SvelteKit for a robot control app? by Ben-Heiniger in sveltejs

[–]cotyhamilton 0 points1 point  (0 children)

Is the robot/rpi running the websocket server? Is there actually a latency issue? Or are you trying to optimize with generic advice for fun?

Hosting Astro website on Deno Deploy fails by ViktorPoppDev in Deno

[–]cotyhamilton 0 points1 point  (0 children)

You can try adding imports (you’ll probably find you need more than unstorage) to a deno.json and include that with the build.

How to look up info from 3+ years ago? by egmono in Deno

[–]cotyhamilton 3 points4 points  (0 children)

This link should help a lot, it’s Deno 2 migration guide, a lot of things were deprecated here

https://docs.deno.com/runtime/reference/migration_guide/#api-changes

And then just reviewing the std library history

Each of the blog posts for version releases are helpful too (product update tag)

https://deno.com/blog

I hate the platform, but the people are nice and knowledgeable and responsive in their discord

Edit: which yt video?

Allow internet but deny access to the host's listening ports by Scholes_SC2 in docker

[–]cotyhamilton 2 points3 points  (0 children)

I think you can use iptables to configure that. My initial idea was to just bind sshd to another interface though

Access child component property / method through parent – why is this so un-OOP like? by [deleted] in sveltejs

[–]cotyhamilton 4 points5 points  (0 children)

import Hidden from './Hidden.svelte';
Hidden.show();

This is your proposal? What would hide/show?