Skip to content

Commit afe30fe

Browse files
committed
Revert "fix: build"
This reverts commit 4eb2920.
1 parent d715320 commit afe30fe

25 files changed

Lines changed: 490 additions & 517 deletions

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
uses: actions/upload-pages-artifact@v3
2020
with:
2121
path: ./.output/public
22-
env:
23-
VERCUBE_PATH: ${{ secrets.VERCUBE_PATH }}
2422

2523
deploy:
2624
needs: build

app/app.vue

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
<script setup lang="ts">
2-
const { seo } = useAppConfig();
3-
const site = useSiteConfig();
2+
const { seo } = useAppConfig()
3+
const site = useSiteConfig()
44
5-
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'));
5+
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
66
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('docs'), {
7-
server: false,
8-
});
7+
server: false
8+
})
99
10-
const siteUrl = site.url || 'https://vercube.dev';
11-
const siteName = seo?.siteName || 'Vercube';
10+
const siteUrl = site.url || 'https://vercube.dev'
11+
const siteName = seo?.siteName || 'Vercube'
1212
1313
useHead({
14-
meta: [{ name: 'viewport', content: 'width=device-width, initial-scale=1' }],
14+
meta: [
15+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
16+
],
1517
link: [
1618
{ rel: 'icon', type: 'image/png', href: '/favicon-96x96.png', sizes: '96x96' },
1719
{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
1820
{ rel: 'shortcut icon', href: '/favicon.ico' },
1921
{ rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
20-
{ rel: 'manifest', href: '/site.webmanifest' },
22+
{ rel: 'manifest', href: '/site.webmanifest' }
2123
],
2224
htmlAttrs: {
23-
lang: 'en',
24-
},
25-
});
25+
lang: 'en'
26+
}
27+
})
2628
2729
useSeoMeta({
2830
// Global defaults
@@ -74,9 +76,9 @@ useSeoMeta({
7476
'api framework',
7577
'modern javascript',
7678
'type-safe',
77-
'zero-config',
78-
].join(', '),
79-
});
79+
'zero-config'
80+
].join(', ')
81+
})
8082
8183
// Global JSON-LD structured data
8284
useHead({
@@ -86,48 +88,48 @@ useHead({
8688
innerHTML: JSON.stringify({
8789
'@context': 'https://schema.org',
8890
'@type': 'WebSite',
89-
name: 'Vercube',
90-
url: siteUrl,
91-
potentialAction: {
91+
'name': 'Vercube',
92+
'url': siteUrl,
93+
'potentialAction': {
9294
'@type': 'SearchAction',
93-
target: {
95+
'target': {
9496
'@type': 'EntryPoint',
95-
urlTemplate: `${siteUrl}/docs?q={search_term_string}`,
97+
'urlTemplate': `${siteUrl}/docs?q={search_term_string}`
9698
},
97-
'query-input': 'required name=search_term_string',
98-
},
99-
}),
99+
'query-input': 'required name=search_term_string'
100+
}
101+
})
100102
},
101103
{
102104
type: 'application/ld+json',
103105
innerHTML: JSON.stringify({
104106
'@context': 'https://schema.org',
105107
'@type': 'SoftwareApplication',
106-
name: 'Vercube',
107-
applicationCategory: 'DeveloperApplication',
108-
operatingSystem: 'Node.js, Bun, Deno',
109-
url: siteUrl,
110-
author: {
108+
'name': 'Vercube',
109+
'applicationCategory': 'DeveloperApplication',
110+
'operatingSystem': 'Node.js, Bun, Deno',
111+
'url': siteUrl,
112+
'author': {
111113
'@type': 'Organization',
112-
name: 'Vercube',
113-
url: 'https://github.com/vercube',
114+
'name': 'Vercube',
115+
'url': 'https://github.com/vercube'
114116
},
115-
offers: {
117+
'offers': {
116118
'@type': 'Offer',
117-
price: '0',
118-
priceCurrency: 'USD',
119+
'price': '0',
120+
'priceCurrency': 'USD'
119121
},
120-
aggregateRating: {
122+
'aggregateRating': {
121123
'@type': 'AggregateRating',
122-
ratingValue: '5',
123-
ratingCount: '1',
124-
},
125-
}),
126-
},
127-
],
128-
});
124+
'ratingValue': '5',
125+
'ratingCount': '1'
126+
}
127+
})
128+
}
129+
]
130+
})
129131
130-
provide('navigation', navigation);
132+
provide('navigation', navigation)
131133
</script>
132134

133135
<template>

app/components/AppDivider.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script setup lang="ts">
22
defineProps<{
3-
text?: string;
4-
}>();
3+
text?: string
4+
}>()
55
66
const slot = defineSlots<{
7-
default: () => void;
8-
}>();
7+
default: () => void
8+
}>()
99
</script>
1010

1111
<template>

app/components/AppFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
const { footer } = useAppConfig();
2+
const { footer } = useAppConfig()
33
</script>
44

55
<template>

app/components/AppHeader.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
</template>
4040

4141
<script setup lang="ts">
42-
import type { ContentNavigationItem } from '@nuxt/content';
42+
import type { ContentNavigationItem } from '@nuxt/content'
4343
44-
const navigation = inject<Ref<ContentNavigationItem[]>>('navigation');
44+
const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
4545
46-
const { header } = useAppConfig();
46+
const { header } = useAppConfig()
4747
</script>

app/components/AppSurround.vue

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
<script setup lang="ts">
2-
import type { ContentNavigationItem } from '@nuxt/content';
2+
import type { ContentNavigationItem } from '@nuxt/content'
33
44
const props = defineProps<{
5-
surround: ContentNavigationItem[];
6-
}>();
5+
surround: ContentNavigationItem[]
6+
}>()
77
8-
const prev = computed(() => props.surround[0]);
9-
const next = computed(() => props.surround[1]);
8+
const prev = computed(() => props.surround[0])
9+
const next = computed(() => props.surround[1])
1010
</script>
1111

1212
<template>
1313
<div class="bg-muted p-1 rounded-lg flex items-center justify-between w-full gap-2">
1414
<div
1515
v-if="prev"
16-
:class="
17-
next
18-
? 'relative group flex items-center gap-1 text-muted sm:p-3 hover:text-highlighted'
19-
: 'overflow-hidden relative group flex items-center gap-2 w-full bg-default/90 p-3 rounded-md hover:ring-2 ring-default'
20-
"
16+
:class="next ? 'relative group flex items-center gap-1 text-muted sm:p-3 hover:text-highlighted' : 'overflow-hidden relative group flex items-center gap-2 w-full bg-default/90 p-3 rounded-md hover:ring-2 ring-default'"
2117
>
2218
<NuxtLink :to="prev.path" class="absolute inset-0 z-10" />
2319
<div class="flex items-center gap-1 text-muted group-hover:text-highlighted">

app/components/AppVersion.vue

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
<template>
22
<NuxtLink
33
to="/changelog"
4-
class="bg-transparent rounded-full font-medium text-foreground/50 backdrop-blur-xs text-xs inline-flex items-center justify-center px-3 h-8 border border-muted/30 font-(family-name:--font-geist-mono)"
4+
class="bg-transparent rounded-full font-medium text-foreground/50 backdrop-blur-xs text-xs inline-flex items-center justify-center px-3 h-8 border border-muted/30 font-(family-name:--font-geist-mono)"
55
>
66
<span class="inline-block size-2.5 rounded-full bg-[#bc4eff] mr-3 shadow-glow shadow-primary/50" />
77
{{ version }}
88
</NuxtLink>
99
</template>
1010

1111
<script setup lang="ts">
12-
const appConfig = useAppConfig();
12+
const appConfig = useAppConfig()
1313
14-
const { data: version } = await useFetch(
15-
computed(() => `https://ungh.cc/repos/${appConfig.repository}/releases/latest`),
16-
{
17-
transform: (data: {
18-
release: {
19-
name?: string;
20-
tag: string;
21-
publishedAt: string;
22-
markdown: string;
23-
};
24-
}) => {
25-
return data.release.tag.replace('v', 'Version ');
26-
},
27-
},
28-
);
14+
const { data: version } = await useFetch(computed(() => `https://ungh.cc/repos/${appConfig.repository}/releases/latest`), {
15+
transform: (data: {
16+
release: {
17+
name?: string
18+
tag: string
19+
publishedAt: string
20+
markdown: string
21+
}
22+
}) => {
23+
return data.release.tag.replace('v', 'Version ')
24+
}
25+
})
2926
</script>

app/components/Blog/Header.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
22
const { title, description } = defineProps<{
3-
title: string;
4-
description: string;
5-
}>();
3+
title: string
4+
description: string
5+
}>()
66
</script>
77

88
<template>
@@ -18,7 +18,7 @@ const { title, description } = defineProps<{
1818
headline: 'mb-6',
1919
title: 'text-left text-4xl font-(family-name:--font-geist-mono)',
2020
description: 'text-left max-w-lg font-(family-name:--font-geist-mono)',
21-
links: 'gap-1 justify-start -ms-2.5',
21+
links: 'gap-1 justify-start -ms-2.5'
2222
}"
2323
>
2424
<template #top>

app/components/Blog/Post.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<script setup lang="ts">
2-
import type { Collections } from '@nuxt/content';
2+
import type { Collections } from '@nuxt/content'
33
44
const { post } = defineProps<{
5-
post: Collections['blog'];
6-
to: string;
7-
}>();
5+
post: Collections['blog']
6+
to: string
7+
}>()
88
99
const formatDate = (dateString: string) => {
1010
return new Date(dateString).toLocaleDateString('en-US', {
1111
year: 'numeric',
1212
month: 'short',
13-
day: 'numeric',
14-
});
15-
};
13+
day: 'numeric'
14+
})
15+
}
1616
</script>
1717

1818
<template>

0 commit comments

Comments
 (0)