cinqcinqdev-seo 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -83,6 +83,13 @@ const { data: _rawPage } = await useAsyncData(`admin-edit-${pageId}`, async () =
|
|
|
83
83
|
});
|
|
84
84
|
const page = ref(_rawPage.value);
|
|
85
85
|
useHead({ title: computed(() => page.value?.title ? `${page.value.title} \u2014 \xC9diteur` : "\xC9diteur \u2014 Admin") });
|
|
86
|
+
const _blockHeadStyles = computed(
|
|
87
|
+
() => (page.value?.content ?? []).map((block, index) => {
|
|
88
|
+
const css = computeBlockCss(block.props, index);
|
|
89
|
+
return css ? { innerHTML: css, id: `editor-block-style-${index}` } : null;
|
|
90
|
+
}).filter(Boolean)
|
|
91
|
+
);
|
|
92
|
+
useHead(computed(() => ({ style: _blockHeadStyles.value })));
|
|
86
93
|
const isSidebarOpen = ref(true);
|
|
87
94
|
const sidebarTab = ref("layers");
|
|
88
95
|
const selectedBlockIndex = ref(null);
|
|
@@ -1737,7 +1744,6 @@ const savePage = async () => {
|
|
|
1737
1744
|
styleBreakpoint === 'desktop' ? 'max-w-5xl rounded-[32px]' : styleBreakpoint === 'tablet' ? 'max-w-[768px] rounded-[24px]' : 'max-w-[390px] rounded-[40px]'
|
|
1738
1745
|
]">
|
|
1739
1746
|
<template v-for="(block, index) in page.content" :key="index">
|
|
1740
|
-
<component :is="'style'" v-if="computeBlockCss(block.props, index)" v-html="computeBlockCss(block.props, index)" />
|
|
1741
1747
|
<div :data-block-id="index" @click="selectedBlockIndex = index;
|
|
1742
1748
|
sidebarTab = 'block'"
|
|
1743
1749
|
class="relative cursor-pointer" :class="{ 'ring-4 ring-[#3d35ff] ring-inset z-10': selectedBlockIndex === index }">
|