Skip to content

Commit 7e1abb6

Browse files
committed
chore: fix lint and typecheck
1 parent d956c87 commit 7e1abb6

File tree

7 files changed

+1616
-1613
lines changed

7 files changed

+1616
-1613
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxt-studio",
33
"version": "0.0.1",
44
"description": "Nuxt Studio for Nuxt Content",
5-
"repository": "@nuxtlabs/nuxt-studio",
5+
"repository": "@nuxt-content/studio",
66
"license": "MIT",
77
"type": "module",
88
"exports": {

src/app/src/components/shared/item/ItemCard.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { TreeStatus, type TreeItem } from '../../../types'
2+
import type { TreeItem } from '../../../types'
33
import type { PropType } from 'vue'
44
import { computed } from 'vue'
55
import { Image } from '@unpic/vue'
@@ -60,7 +60,10 @@ const statusRingColor = computed(() => props.item.status ? `ring-(--ui-${COLOR_U
6060
alt="Card placeholder"
6161
class="z-[-1] rounded-t-lg aspect-video object-cover"
6262
/>
63-
<div v-else class="z-[-1] aspect-video bg-muted" />
63+
<div
64+
v-else
65+
class="z-[-1] aspect-video bg-muted"
66+
/>
6467
<div
6568
v-if="itemExtensionIcon"
6669
class="absolute inset-0 flex items-center justify-center"

src/app/src/utils/database.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { compressTree } from '@nuxt/content/runtime'
22
import { type DatabasePageItem, ContentFileExtension } from '../types'
33
import { stringify } from 'minimark/stringify'
4-
import { MDCRoot } from '@nuxtjs/mdc'
5-
import { MarkdownRoot } from '@nuxt/content'
4+
import type { MDCRoot } from '@nuxtjs/mdc'
5+
import type { MarkdownRoot } from '@nuxt/content'
66

77
export function isEqual(document1: DatabasePageItem, document2: DatabasePageItem) {
88
function withoutLastStyles(body: MarkdownRoot) {
@@ -18,10 +18,10 @@ export function isEqual(document1: DatabasePageItem, document2: DatabasePageItem
1818
// Compare body first
1919
if (document1.extension === ContentFileExtension.Markdown) {
2020
const minifiedBody1 = withoutLastStyles(
21-
document1.body.type === 'minimark' ? document1.body : compressTree(document1.body as unknown as MDCRoot)
21+
document1.body.type === 'minimark' ? document1.body : compressTree(document1.body as unknown as MDCRoot),
2222
)
2323
const minifiedBody2 = withoutLastStyles(
24-
document2.body.type === 'minimark' ? document2.body : compressTree(document2.body as unknown as MDCRoot)
24+
document2.body.type === 'minimark' ? document2.body : compressTree(document2.body as unknown as MDCRoot),
2525
)
2626

2727
if (stringify(minifiedBody1) !== stringify(minifiedBody2)) {

0 commit comments

Comments
 (0)