Added publishing of uploads to built site

This commit is contained in:
Leon Mika 2026-03-03 22:36:24 +11:00
parent 48f39133d7
commit d0cebe6564
13 changed files with 145 additions and 20 deletions

View file

@ -0,0 +1,19 @@
import { Controller } from "@hotwired/stimulus"
import {showToast} from "../services/toast";
export default class ShowUploadController extends Controller {
static values = {
copySnippet: String,
};
async copy(ev) {
ev.preventDefault();
await navigator.clipboard.writeText(this.copySnippetValue);
showToast({
title: "️📋 HTML Snippet",
body: "Copied to clipboard.",
});
}
}