- Browse dashboard at / with search, framework filter, tag pills, and pagination - Tags system with autocomplete datalist and per-fiddle tag management - Listed/unlisted toggle for visibility control (unlisted still accessible via direct URL) - Export standalone HTML with inlined CSS/JS and framework CDN tags - QR code modal for sharing fiddle URLs - Embed mode at /embed/:id for minimal preview-only rendering - Extract shared loadScript() utility from 4 files into utils.js - Database schema: listed column, tags and fiddle_tags tables with index
19 lines
452 B
JavaScript
19 lines
452 B
JavaScript
import { loadScript } from './utils.js';
|
|
|
|
let loaded = false;
|
|
|
|
export async function initEmmet() {
|
|
if (loaded) return;
|
|
try {
|
|
await loadScript('https://unpkg.com/emmet-monaco-es/dist/emmet-monaco.min.js');
|
|
if (window.emmetMonaco) {
|
|
emmetMonaco.emmetHTML(monaco);
|
|
emmetMonaco.emmetCSS(monaco);
|
|
emmetMonaco.emmetJSX(monaco);
|
|
loaded = true;
|
|
}
|
|
} catch (e) {
|
|
console.warn('Emmet load failed:', e.message);
|
|
}
|
|
}
|