/**
* Starter HTML for the "New box" menu. Each runs inside the sandboxed iframe
* (see HtmlBox.vue), so scripts work but can only reach APIs that allow
* cross-origin requests from an opaque origin — i.e. that answer with
* `Access-Control-Allow-Origin: *` and need no key. Open-Meteo is one.
*
* The site's colour and font tokens are already defined in the frame
* (frameStyles.js), so templates use var(--color-…) freely.
*/
const CLOCK = `
`;
const WEATHER = `
`;
const imageHtml = (src) => `
`;
const EMPTY = `New box
Edit me.
`;
// A sticky note for reminders to self. Unframed, since the note is its own
// frame; the menu entry makes it adminOnly.
const NOTE = `
`;
const HEADING = `
`;
const TEXT = `Heading
A paragraph about it. Bold, italic and
links all work.
“A quote you like.”
`;
// A scrolling grid of images. "Insert upload" in the editor adds more.
const galleryHtml = (srcs) => `
${srcs.map((src) => `

`).join("\n")}
`;
const videoHtml = (src) => `
`;
/**
* Menu entries; `size` is [w, h] in canvas px. `adminOnly` sets the new
* box's flag, which can be changed afterwards in the editor.
*/
export const TEMPLATES = [
{ label: "Note (admin only)", title: "Note", html: NOTE, size: [260, 200], framed: false, adminOnly: true },
{ label: "Heading", title: "Heading", html: HEADING, size: [600, 140], framed: false },
{ label: "Text", title: "Text", html: TEXT, size: [400, 260] },
{ label: "Image / GIF", title: "Image", html: imageHtml("/img/memes/fire-woman.gif"), size: [240, 240], framed: false },
{ label: "Image gallery", title: "Gallery", html: galleryHtml(["/img/memes/fire-woman.gif", "/img/memes/epic.jpeg"]), size: [460, 320] },
{ label: "Video", title: "Video", html: videoHtml("/img/demoman/1760582395316219.webm"), size: [400, 260], framed: false },
{ label: "Clock", title: "Clock", html: CLOCK, size: [240, 120] },
{ label: "Weather", title: "Weather", html: WEATHER, size: [240, 170] },
{ label: "Empty HTML", title: "HTML", html: EMPTY, size: [300, 200] },
];
export { imageHtml, galleryHtml, videoHtml };