Tag: typescript
8 articles
- Stop Leaking Secrets: A Complete Guide to Error Message Sanitization in SvelteKit
Learn how to prevent error message leakage in your SvelteKit API with a centralized sanitization utility that keeps attackers in the dark while maintaining developer experience.
- Building a Pagination Component with Vue 3 and Pinia
A complete guide to building a reusable Vue 3 pagination component with Pinia state management and TypeScript, consuming paginated data from a Laravel API.
- Vue Admin Middleware: Role-Based Access Control
A Vue 3 middleware function with TypeScript to check if the authenticated user has admin privileges before allowing access to admin routes.
- Vue Guest Middleware: Redirecting Logged-In Users
A Vue 3 middleware function with TypeScript that redirects authenticated users away from guest-only pages like login and register.
- Vue Auth Middleware: Protecting Routes
A Vue 3 middleware function with TypeScript to check if a user is authenticated before displaying a protected route.
- Vue Middleware Pipelines: An Overview
Adding middleware to a Vue 3 SPA with TypeScript keeps code clean and provides a way to have multiple functions run before a route loads.
- Handling API Errors in Your Vue 3 SPA
How to handle validation errors, server errors, and network failures gracefully in a Vue 3 SPA consuming a Laravel API.
- Building a File Upload Component in Vue 3
Create a reusable file upload component in Vue 3 with TypeScript, progress tracking, and drag-and-drop support.