crawlnicle/frontend/index.ts
Tyler Hallada 76cc87631f Add frontend JS and improve post styling
Frontend is built with Bun. It uses Stimulus to progressively enhance
the server-built HTML. Currently, it only replaces UTC timestamps from
the server with the time in the browser's timezone.
2023-06-27 14:03:52 -04:00

7 lines
211 B
TypeScript

import { Application } from "@hotwired/stimulus";
import LocalTimeController from "./local_time_controller";
window.Stimulus = Application.start();
window.Stimulus.register("local-time", LocalTimeController);