Dice rollers!
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 58s

This commit is contained in:
2026-05-02 23:37:17 +02:00
parent b7ad2dc406
commit 030060286f
6 changed files with 221 additions and 29 deletions

View File

@@ -28,11 +28,14 @@ const compiledMarkdown = computed(() => {
});
function mountComponents() {
const nodes = document.querySelectorAll('.vue-component');
nodes.forEach(el => {
const app = createApp(GetWidget(el.dataset.component), { content: el.dataset.content });
app.mount(el);
// Should no need more
const widget_types = ['display', 'inline'];
widget_types.forEach((widget_type) => {
const nodes = document.querySelectorAll('.vue-component-' + widget_type);
nodes.forEach(el => {
const app = createApp(GetWidget(widget_type, el.dataset.component), { content: el.dataset.content });
app.mount(el);
});
});
}
///