@@ -125,9 +125,7 @@ const {
125125 data : fileContent,
126126 status : fileStatus,
127127 execute : fetchFileContent,
128- } = useFetch <PackageFileContentResponse >(() => fileContentUrl .value ! , {
129- immediate: false ,
130- })
128+ } = useFetch <PackageFileContentResponse >(() => fileContentUrl .value ! , { immediate: false })
131129
132130watch (
133131 fileContentUrl ,
@@ -239,9 +237,7 @@ function handleLineClick(lineNum: number, event: MouseEvent) {
239237}
240238
241239// Copy link to current line(s)
242- const { copied : permalinkCopied, copy : copyPermalink } = useClipboard ({
243- copiedDuring: 2000 ,
244- })
240+ const { copied : permalinkCopied, copy : copyPermalink } = useClipboard ({ copiedDuring: 2000 })
245241function copyPermalinkUrl() {
246242 const url = new URL (window .location .href )
247243 copyPermalink (url .toString ())
@@ -519,9 +515,7 @@ defineOgImageComponent('Default', {
519515 <p class =" text-fg-muted mb-2" >{{ $t('code.file_too_large') }}</p >
520516 <p class =" text-fg-subtle text-sm mb-4" >
521517 {{
522- $t('code.file_size_warning', {
523- size: bytesFormatter.format(currentNode?.size ?? 0),
524- })
518+ $t('code.file_size_warning', { size: bytesFormatter.format(currentNode?.size ?? 0) })
525519 }}
526520 </p >
527521 <LinkBase
@@ -574,9 +568,7 @@ defineOgImageComponent('Default', {
574568 <div v-else-if =" filePath && fileStatus === 'error'" class =" py-20 text-center" role =" alert" >
575569 <div class =" i-lucide:circle-alert w-8 h-8 mx-auto text-fg-subtle mb-4" />
576570 <p class =" text-fg-muted mb-2" >{{ $t('code.failed_to_load') }}</p >
577- <p class =" text-fg-subtle text-sm mb-4" >
578- {{ $t('code.unavailable_hint') }}
579- </p >
571+ <p class =" text-fg-subtle text-sm mb-4" >{{ $t('code.unavailable_hint') }}</p >
580572 <LinkBase
581573 variant =" button-secondary"
582574 :to =" `https://cdn.jsdelivr.net/npm/${packageName}@${version}/${filePath}`"
0 commit comments