Skip to content

Commit

Permalink
Merge branch 'main' into fix/vimeo
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw authored Aug 20, 2024
2 parents 9c030ad + b35eaba commit af4a807
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 65 deletions.
4 changes: 2 additions & 2 deletions client/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function viewDocs(docs: string) {
<div class="flex items-center justify-between w-full gap-7">
<div class="flex items-center gap-7">
<div class="flex items-center gap-1">
<div v-if="script.registry" class="flex items-center max-w-6 h-6" v-html="script.registry.logo" />
<div v-if="script.registry" class="flex items-center max-w-6 h-6" v-html="script.registry.logo?.dark || script.registry.logo" />
<img v-else-if="!script.src.startsWith('/')" :src="`https://www.google.com/s2/favicons?domain=${urlToOrigin(script.src)}`" class="w-4 h-4 rounded-lg">
<div>
<a title="View script source" class="text-base hover:bg-gray-800/50 px-2 transition py-1 rounded-xl font-semibold flex gap-2 items-center" target="_blank" :href="script.src">
Expand All @@ -193,7 +193,7 @@ function viewDocs(docs: string) {
Status
</div>
<div class="capitalize">
{{ script.status.value }}
{{ script.$script.status.value }}
</div>
</div>
<div v-if="scriptSizes[script.src]">
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@
"shiki": "1.10.3",
"vue": "^3.4.38",
"vue-router": "^4.4.3",
"@unhead/ssr": "1.10.0-beta.5",
"@unhead/dom": "1.10.0-beta.5",
"@unhead/vue": "1.10.0-beta.5",
"@unhead/shared": "1.10.0-beta.5",
"@unhead/schema": "1.10.0-beta.5",
"unhead": "1.10.0-beta.5"
"@unhead/ssr": "1.10.0-beta.6",
"@unhead/dom": "1.10.0-beta.6",
"@unhead/vue": "1.10.0-beta.6",
"@unhead/shared": "1.10.0-beta.6",
"@unhead/schema": "1.10.0-beta.6",
"unhead": "1.10.0-beta.6"
}
}
4 changes: 2 additions & 2 deletions playground/pages/features/cookie-consent.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { useConsentScriptTrigger, useScriptGoogleTagManager } from '#imports'
import { useScriptTriggerConsent, useScriptGoogleTagManager } from '#imports'
const showCookieBanner = ref(true)
const scriptConsent = useConsentScriptTrigger()
const scriptConsent = useScriptTriggerConsent()
function acceptCookies() {
scriptConsent.accept()
showCookieBanner.value = false
Expand Down
108 changes: 54 additions & 54 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/runtime/registry/clarity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useRegistryScript } from '../utils'
import { minLength, object, string, pipe } from '#nuxt-scripts-validator'
import type { RegistryScriptInput } from '#nuxt-scripts'


type ClarityFunctions = ((fn: 'start', options: { content: boolean, cookies: string[], dob: number, expire: number, projectId: string, upload: string }) => void)
& ((fn: 'identify', id: string, session?: string, page?: string, userHint?: string) => Promise<{
id: string
Expand Down

0 comments on commit af4a807

Please sign in to comment.