Skip to content

Commit

Permalink
LDP-2573: Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vloss3 committed Aug 22, 2024
1 parent 31c505d commit 71ba773
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions playground/components/Site/SiteMessages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</template>

<script setup lang="ts">
const { getMessages } = useDrupalCe();
const messages = getMessages();
const dismiss = (id: number) => messages.value.splice(id, 1);
const { getMessages } = useDrupalCe()
const messages = getMessages()
const dismiss = (id: number) => messages.value.splice(id, 1)
</script>

<style lang="css" scoped>
Expand Down
16 changes: 8 additions & 8 deletions playground/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
</template>

<script lang="ts" setup>
const { fetchPage, renderCustomElements } = useDrupalCe();
const page = await fetchPage(useRoute().path, { query: useRoute().query });
const { fetchPage, renderCustomElements } = useDrupalCe()
const page = await fetchPage(useRoute().path, { query: useRoute().query })
// Set to false to support custom layouts, using <NuxtLayout> instead.
definePageMeta({
layout: false,
});
})
const layout = computed(() => {
return page.value.page_layout || "default";
});
return page.value.page_layout || 'default'
})
useHead({
title: page.value.title,
meta: page.value.metatags.meta,
link: page.value.metatags.link,
script: [
{
type: "application/ld+json",
children: JSON.stringify(page.value.metatags.jsonld || [], null, ""),
type: 'application/ld+json',
children: JSON.stringify(page.value.metatags.jsonld || [], null, ''),
},
],
});
})
</script>

0 comments on commit 71ba773

Please sign in to comment.