@@ -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 ())
@@ -518,9 +514,7 @@ defineOgImageComponent('Default', {
518514 <p class =" text-fg-muted mb-2" >{{ $t('code.file_too_large') }}</p >
519515 <p class =" text-fg-subtle text-sm mb-4" >
520516 {{
521- $t('code.file_size_warning', {
522- size: bytesFormatter.format(currentNode?.size ?? 0),
523- })
517+ $t('code.file_size_warning', { size: bytesFormatter.format(currentNode?.size ?? 0) })
524518 }}
525519 </p >
526520 <LinkBase
@@ -573,9 +567,7 @@ defineOgImageComponent('Default', {
573567 <div v-else-if =" filePath && fileStatus === 'error'" class =" py-20 text-center" role =" alert" >
574568 <div class =" i-lucide:circle-alert w-8 h-8 mx-auto text-fg-subtle mb-4" />
575569 <p class =" text-fg-muted mb-2" >{{ $t('code.failed_to_load') }}</p >
576- <p class =" text-fg-subtle text-sm mb-4" >
577- {{ $t('code.unavailable_hint') }}
578- </p >
570+ <p class =" text-fg-subtle text-sm mb-4" >{{ $t('code.unavailable_hint') }}</p >
579571 <LinkBase
580572 variant =" button-secondary"
581573 :to =" `https://cdn.jsdelivr.net/npm/${packageName}@${version}/${filePath}`"
0 commit comments