How to use a transition in Svelte! (Also Creating, updating, and deleting posts, and XSS protection)
Continuing to build out our SvelteKit application and blog, we now want and need the ability to create new posts, as well as update and delete our own posts only. In this episode, I show how to do all of that, as well as provide extra security against XSS by adding DOMPurify. We also explore using our first Svelte animation transition!
š¤Æ Support on Patreon
ā±ļø Timestamps:
š Newsletter:
šŖElsewh ere:
šConcepts:
šResources:
š¬ Subscribe!
My name is David W Parker and Iām creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iām a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iāve used React a lot in the past, as well as some Vue and AngularJS. Iāve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.
š¤Æ Support on Patreon
- https://www.patreon.com/davidwparker
ā±ļø Timestamps:
- 00:00 - Introduction
- 00:35 - Demo
- 01:35 - package.json changes
- 02:40 - Nav changes
- 02:55 - Settings changes -> and mentioning we'll have better protected pages later
- 05:00 - DOMPurify
- 06:00 - index changes (Creating, updating, deleting)
- 09:30 - Slide Transition in Svelte!
- 10:25 - Create form
- 14:20 - Update form, delete button, and DOMPurify
š Newsletter:
- https://www.programmingtil.com/
šŖElsewh ere:
- Twitter: https://twitter.com/davidwparker
- GitHub: https://github.com/davidwparker
šConcepts:
- Create, Update, and Deleting blog posts through our API
- adding DOMPurify to protect against XSS
šResources:
- https://github.com/davidwparker/programmingtil-svelte/tree/ep15
- https://github.com/kkomelin/isomorphic-dompurify/
- https://github.com/cure53/DOMPurify
š¬ Subscribe!
- http://bit.ly/subdavidwparker
My name is David W Parker and Iām creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iām a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iāve used React a lot in the past, as well as some Vue and AngularJS. Iāve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.
svelte #sveltekit
Ā© programmingtil.com