matthiou, to vscode
@matthiou@mastodon.social avatar

Using #sveltekit and #vscode ? Latest version of Code (v1.88, April 2024) allows Custom Labels for files, meaning all your +page and +server files could now display their enclosing directory name.

VS Code > Settings > search "customLabels" > add Item with

  • **/+* as Item
  • ${dirname}/${filename}.${extname} as Value

Happy coding !

andre, to svelte
@andre@fedi.jaenis.ch avatar

Thanks to the amazing effort by @laxla we can now inspect in proper Hebrew:

https://anvil.codeberg.page/anvil/?path=/story/organisms-loginform--plain&globals=locale:he

I broke a little with idioms here insofar as I have Pages merely pass a context object into a component.

This in turn allows me to utilise to describe the interface in different configurations (I have tests in place as well).

It's still early days but we tackle one page at a time to build up this (F2 for short).

In case you are interested in translating, hit me up. Be warned that things might move around or get dropped. I prefer early feedback to easily correct course if needed.

pascal, to CSS
@pascal@moth.social avatar

I have blogged again, this time about animating SVG stroke properties with CSS to create fireworks. https://www.pascal.com/diary/2024-02-23-animating-svg

29decibel, to svelte
@29decibel@mastodon.social avatar

Working on Svelte is so rewarding as a long time vanilla JS developer. All the accumulated web knowledge over the years just instantly available to you, while enjoying the augmented DX.

I have to say that's the best thing happened to the web. Imagine you don't need to throw away everything in order to progress, instead just enjoy the compounding benefits of your existing web knowledge.

Thank you Svelte team!

29decibel, to webdev
@29decibel@mastodon.social avatar

SvelteKit “Form actions” is the single most underrated feature. I use it to power 95% of the mutation happens to my projects, I no longer needs that much JSON API endpoints. It's dead simple as it leverages the native web form to send data, you can easily extend it using use:enhance or your own customized handler to provide a better UX.

Oh it works without JS. What a charming thing!

https://kit.svelte.dev/docs/form-actions

marcoow, to svelte
@marcoow@mastodon.social avatar

If you're in Munich, join @paoloricciuti and myself this Friday for @mainmatter's free workshop.

We'll be building a fully functional, progressively-enhanced app throughout the day.

The workshop will be hosted by our friends at Experteer in their office in the center of Munich.

Sign up here: https://ti.to/mainmatter/intro-to-svelte-sveltekit

notwoods, to random
@notwoods@hachyderm.io avatar

has so many quality of life features now. It can handle env variables for you and restrict some to be server only, while inlining the client only variables.

https://kit.svelte.dev/docs/server-only-modules#private-environment-variables

thilo, to svelte
@thilo@maier.social avatar

Interesting conversation about 5 with many insights in this Prismic interview.

And it looks like @rich_harris uses his Verizon router as a pedestal for a flower vase:

https://www.youtube.com/watch?v=z7n17ajJpCo

geoffrich, to svelte
@geoffrich@front-end.social avatar

Just updated my Svelte-generated social image demo for 2024! It now uses 4 and 2.

The social image below was generated from a Svelte component at runtime 👇

Built on Vercel's Satori library and @nmoo's satori-html

https://sveltekit-satori.vercel.app/?seed=quiet

geoffrich,
@geoffrich@front-end.social avatar

Part of the reason for updating was taking advantage of the new read helper in SvelteKit 2.4. I wrote a quick blog post yesterday on how that simplifies things:
https://geoffrich.net/posts/sveltekit-read/

geoffrich, to svelte
@geoffrich@front-end.social avatar

New blog post: 2.4 added a new read method that simplifies reading assets on the server. I did a quick writeup on how it simplifies retrieving raw font data in one of my old social image demos.

https://geoffrich.net/posts/sveltekit-read/

geoffrich,
@geoffrich@front-end.social avatar

Rich Harris also did a video demo of the new functionality:

https://youtu.be/m4G-6dyF1MU

thilo, to svelte
@thilo@maier.social avatar

TIL that @sveltejs/enhanced-img is subject to a preprocessing step to convert its src prop into an import.

As a consequence, you can't use <enhanced:img /> inside another component and pass in a src at runtime. This restriction seems to be inherited from vite-imagetools.

<enhanced:img /> is in its infancy, therefore lots of room for improvement.

https://github.com/sveltejs/kit/issues/11535

thilo, to svelte
@thilo@maier.social avatar

This post by @geoffrich makes the purpose of 's new read function much clearer:

https://geoffrich.net/posts/sveltekit-read/

thilo,
@thilo@maier.social avatar

@geoffrich Saw it in your RSS feed :)

geoffrich,
@geoffrich@front-end.social avatar

@thilo rss ftw

serpentroots, to svelte
@serpentroots@hachyderm.io avatar

I asked a frontend friend what framework he would recommend if he was starting a new project today. He said , so I spent the afternoon walking through their online tutorial and playing around with .

I've got to say, as someone with fairly rudimentary JS skills, it was a great experience. It feels a lot closer to HTML/CSS and a lot simpler than a lot of the other JS frameworks.

preslavrachev,
@preslavrachev@mastodon.social avatar

@serpentroots @adrianco I guess, I should have remained silent and not mention https://htmx.org/

dahukanna,
@dahukanna@mastodon.social avatar

@serpentroots @adrianco

Sharing a perspective:

  1. For personal projects suggest trying a few on equivalent implementations, pick the one that suits your mental models & the challenge at hand-https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks.
    Personally prefer VueJs as it supports native HTML, CSS & JavaScript as well as providing structure & APIs.

  2. In an Organisation there are other considerations e.g. imposed corporate or institutional standards & selected defaults, etc.

Unfortunately, there isn’t a Panacea.JS-😉

ameo, to svelte
@ameo@mastodon.ameo.dev avatar

Svelte/Sveltekit are still hands down my favorite way to build web apps in 2024

It feels like they took the best patterns developed over a decade of React and built a framework with them as the core principles

spences10, to svelte

Helloooo! 👋

My name is Scott, I'm an application team lead working on a large monorepo.

I’m from the UK near London

I’m a ambassador and organise the monthly Svelte Society London events.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • khanakhh
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • megavids
  • ethstaker
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • lostlight
  • All magazines