Complete user authentication system including signup, signin, password management, and session handling.
Common Requirements:
- User registration and login
- Password reset/recovery
This card is inspired by the SaladUI (which is inspired by ShadCN)
https://gist.github.com/Neophen/2f512ace1e7182e5346076333e4a0fdc
| import { LiveViewHook } from './live_view_hook' | |
| /* | |
| * Tracks height of an element when viewport resizes and sets a variable accordingly. | |
| * | |
| * Used to set the header offset. | |
| */ | |
| class HeightTrackerHook extends LiveViewHook { | |
| private resizeObserver: ResizeObserver | null = null |
| export class MarkoNativeShare extends HTMLElement { | |
| pictureElement?: HTMLPictureElement | null | |
| images?: HTMLImageElement[] | null | |
| loaded = false | |
| connectedCallback() { | |
| this.pictureElement = this.querySelector('picture') | |
| if (!this.pictureElement) { | |
| throw new Error('<x-image>: requires a <picture> element') | |
| } |
| defmodule PentoWeb.UploadLive do | |
| use PentoWeb, :live_view | |
| # @bytes_for_5MB 5_242_880 | |
| @bytes_for_5MB 1_000_000 | |
| @impl Phoenix.LiveView | |
| def mount(_params, _session, socket) do | |
| socket = | |
| socket |
| <?php | |
| namespace App\Providers; | |
| use App\Support\Utils\OctaModal; | |
| use App\Support\Utils\OctaResponse; | |
| use Illuminate\Support\Facades\Cache; | |
| use Illuminate\Support\Facades\Session; | |
| use Illuminate\Support\ServiceProvider; | |
| use Inertia\Inertia; |