Skip to content

Commit

Permalink
refactor: useMeta() is now useHead()
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Apr 6, 2022
1 parent e4008ee commit 86c1a26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineNuxtModule<PrismicModuleOptions>({
preview: '/preview'
}),
hooks: {},
setup (mergedOptions, nuxt) {
setup(mergedOptions, nuxt) {
if (!mergedOptions.endpoint) {
logger.warn('Options `endpoint` is required, disabling module...')
return
Expand Down Expand Up @@ -121,7 +121,7 @@ export default defineNuxtModule<PrismicModuleOptions>({

if (maybeUserPreviewPage) {
logger.info(`Using user-defined preview page at \`${maybeUserPreviewPage.replace(join(nuxt.options.srcDir), '~').replace(/\\/g, '/')
}\`, available at \`${mergedOptions.preview}\``)
}\`, available at \`${mergedOptions.preview}\``)
} else {
logger.info(`Using default preview page, available at \`${mergedOptions.preview}\``)

Expand All @@ -138,9 +138,9 @@ export default defineNuxtModule<PrismicModuleOptions>({
const repositoryName = isRepositoryEndpoint(mergedOptions.endpoint)
? getRepositoryName(mergedOptions.endpoint)
: mergedOptions.endpoint
nuxt.options.meta ||= {}
nuxt.options.meta.script ||= []
nuxt.options.meta.script.push({
nuxt.options.head ||= {}
nuxt.options.head.script ||= []
nuxt.options.head.script.push({
src: `https://static.cdn.prismic.io/prismic.min.js?repo=${repositoryName}&new=true`
})
}
Expand Down
15 changes: 8 additions & 7 deletions src/runtime/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMzYiPgogIDxwYXRoIGZpbGw9IiMyMTI3MzUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTM1LjUzOCAxOC43NGwtMi42NTUt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TdsLS41My41NTNhMS4zMSAxLjMxIDAgMCAxLTEuNzU0LjEyNnoiLz4KPC9zdmc+"
alt="Prismic"
>
/>
<figcaption>Loading preview...</figcaption>
</figure>
</section>
Expand All @@ -13,7 +13,7 @@
<script setup>
import { onMounted } from 'vue'
useMeta({
useHead({
title: 'Prismic Preview - Loading'
})
Expand All @@ -37,14 +37,15 @@ onMounted(async () => {
position: fixed;
top: 0;
left: 0;
display: flex;
display: flex;
justify-content: center;
align-items: center;
background: #ffffff;
color: #666666;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1rem;
text-align: center;
color: #666666;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-size: 1rem;
text-align: center;
}
img {
Expand Down

0 comments on commit 86c1a26

Please sign in to comment.