Change explorer pages structure to isolates them from there renderers allowing to fetch data outside of the renderers

This commit is contained in:
2024-12-18 17:35:34 +01:00
parent 7bdf6ccd13
commit 031a51c2fe
15 changed files with 470 additions and 412 deletions

View File

@@ -4,7 +4,7 @@
<HoverCard class="max-w-[600px] max-h-[600px] w-full overflow-auto z-[45]" :class="{'overflow-hidden !p-0': overview?.type === 'canvas'}" @open="load" :disabled="!overview">
<template #content>
<Loading v-if="loading" />
<Markdown v-else-if="overview?.type === 'markdown'" class="px-10" :content="content!.content" :filter="hash.substring(1)" />
<MarkdownRenderer v-else-if="overview?.type === 'markdown'" class="px-10" :content="content!.content" :filter="hash.substring(1)" />
<Canvas v-else-if="overview?.type === 'canvas'" class="w-[600px] h-[600px] relative" :canvas="JSON.parse(content!.content)" />
</template>
<template #default>