This commit is contained in:
Team3
2026-05-25 18:43:17 +02:00
parent 145b3b25d5
commit 1cef392892
29 changed files with 3482 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<script setup>
import { pdfUrl, htmlUrl } from '../api.js'
defineProps({
previewGuide: { type: Object, default: null },
})
</script>
<template>
<div class="detail">
<div class="preview" v-if="previewGuide">
<object :data="pdfUrl(previewGuide.id)" type="application/pdf" class="preview-frame">
<p>PDF kann nicht angezeigt werden. <a :href="pdfUrl(previewGuide.id)" target="_blank">Direkt öffnen</a></p>
</object>
</div>
<div class="empty-preview" v-else>
<p>Guide-Format anklicken um zu generieren oder Vorschau zu öffnen.</p>
</div>
</div>
</template>
<style scoped>
.detail {
flex: 1;
height: 100vh;
}
.preview {
height: 100%;
display: flex;
flex-direction: column;
}
.preview-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4rem 1rem;
background: #f8f9fb;
border-bottom: 1px solid #e2e5e9;
font-size: 0.85rem;
font-weight: 600;
color: #5a6470;
flex-shrink: 0;
}
.preview-actions {
display: flex;
gap: 0.75rem;
}
.preview-link {
color: #6366f1;
text-decoration: none;
font-size: 0.8rem;
}
.preview-link:hover {
text-decoration: underline;
}
.preview-frame {
width: 100%;
flex: 1;
border: none;
}
.empty-preview {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #5a6470;
}
</style>