chore: update nuxt to 3.10.3 (#2610)
This commit is contained in:
parent
1fefb6e5b6
commit
55037f04cd
53 changed files with 3584 additions and 3766 deletions
|
@ -88,7 +88,7 @@ async function deleteAndRedraft() {
|
|||
}) !== 'confirm')
|
||||
return
|
||||
|
||||
if (process.dev) {
|
||||
if (import.meta.dev) {
|
||||
// eslint-disable-next-line no-alert
|
||||
const result = confirm('[DEV] Are you sure you want to delete and re-draft this post?')
|
||||
if (!result)
|
||||
|
|
|
@ -64,7 +64,7 @@ const meta = computed(() => {
|
|||
const avatar = `https://github.com/${user}.png?size=256`
|
||||
|
||||
const author = props.card.authorName
|
||||
const info = {
|
||||
return {
|
||||
type,
|
||||
user,
|
||||
titleUrl: `https://github.com/${user}${repo ? `/${repo}` : ''}`,
|
||||
|
@ -78,8 +78,7 @@ const meta = computed(() => {
|
|||
user: author,
|
||||
}
|
||||
: undefined,
|
||||
}
|
||||
return info
|
||||
} satisfies Meta
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -26,13 +26,12 @@ const meta = computed(() => {
|
|||
const lines = meta?.[2]
|
||||
const code = meta?.[3].split('\n').slice(0, maxLines).join('\n')
|
||||
const project = props.card.title?.replace(' - StackBlitz', '')
|
||||
const info = {
|
||||
return {
|
||||
file,
|
||||
lines,
|
||||
code,
|
||||
project,
|
||||
}
|
||||
return info
|
||||
} satisfies Meta
|
||||
})
|
||||
|
||||
const vnodeCode = computed(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue