Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonDavide committed Nov 29, 2024
1 parent b07a64d commit 1b5ccd3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions components/Element/ChatbotShare.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<component v-if="shouldPreloadIframe" :is="'link'" rel="preload" :href="iframeSrc" as=fetch />
<component v-if="shouldPreloadIframe" :is="'link'" rel="preload" :href="iframeSrc" as="fetch" />

Check warning on line 2 in components/Element/ChatbotShare.vue

View workflow job for this annotation

GitHub Actions / Check code using Prettier and ESLint (ubuntu-latest, 20)

Attribute ":is" should go before "v-if"

Check warning on line 2 in components/Element/ChatbotShare.vue

View workflow job for this annotation

GitHub Actions / Check code using Prettier and ESLint (ubuntu-latest, 20)

Attribute ":is" should go before "v-if"
<div class="flex flex-col space-y-6">
<h1 class="text-2xl font-semibold mb-4 border-b-primary border-b-2">Embed</h1>
<p class="text-lg">Per aggiungere il tuo chatbot ovunque nel tuo sito, aggiungi questo iframe al tuo html:</p>
Expand All @@ -20,8 +20,7 @@
<Transition name="iframe" appear>
<div v-if="iframeVisible" class="shadow-md border-0.5 border-slate-700 rounded-md bg-white z-50">
<h1 class="pl-6 py-0.5 shadow-sm text-xl font-bold">{{ name }}</h1>
<iframe class="h-[30rem] w-96 rounded-md center" :src="iframeSrc" sandbox="allow-same-origin allow-scripts allow-forms">
</iframe>
<iframe class="h-[30rem] w-96 rounded-md center" :src="iframeSrc" sandbox="allow-same-origin allow-scripts allow-forms"> </iframe>
</div>
</Transition>
<div class="flex flex-row self-end">
Expand Down Expand Up @@ -51,10 +50,10 @@ const codeArea = ref();
const copiedToClip = ref(false);
onMounted(() => {
setTimeout(()=>{
setTimeout(() => {
shouldPreloadIframe.value = false;
},5000);
})
}, 5000);
});
const copyCode = () => {
navigator.clipboard.writeText(codeArea.value.textContent).then(() => {
Expand Down

0 comments on commit 1b5ccd3

Please sign in to comment.