Skip to content

Commit ee0e29a

Browse files
committed
chore: rename to manifest and docs improvements
1 parent e80195e commit ee0e29a

File tree

26 files changed

+709
-957
lines changed

26 files changed

+709
-957
lines changed

docs/app.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ useSeoMeta({
2626
twitterCard: 'summary_large_image'
2727
})
2828
29-
provide('navigation', navigation)
29+
provide('navigation', navigation.value?.[0]?.children || [])
3030
</script>
3131

3232
<template>
@@ -42,7 +42,7 @@ provide('navigation', navigation)
4242
<Footer />
4343

4444
<ClientOnly>
45-
<LazyUDocsSearch :files="files" :navigation="navigation" />
45+
<LazyUContentSearch :files="files" :navigation="navigation" />
4646
</ClientOnly>
4747

4848
<UNotifications />

docs/components/Background.vue

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<script setup lang="ts">
2+
const points = useState(() => new Array(16).fill(0).map(() => [Math.random(), Math.random()]))
3+
4+
const poly = computed(() => points.value.map(([x, y]) => `${x * 100}% ${y * 100}%`).join(', '))
5+
6+
function jumpVal(val: number) {
7+
return Math.random() > 0.5 ? val + (Math.random() - 0.5) / 2 : Math.random()
8+
}
9+
10+
let timeout: any
11+
function jumpPoints() {
12+
for (let i = 0; i < points.value.length; i++) {
13+
points.value[i] = [jumpVal(points.value[i][0]), jumpVal(points.value[i][1])]
14+
}
15+
timeout = setTimeout(jumpPoints, 2000 + Math.random() * 1000)
16+
}
17+
18+
onMounted(() => {
19+
setTimeout(() => jumpPoints(), 1000)
20+
onUnmounted(() => timeout && clearTimeout(timeout))
21+
})
22+
</script>
23+
24+
<template>
25+
<div
26+
class="bg absolute inset-0 -z-10 transform-gpu blur-3xl overflow-hidden pointer-events-none"
27+
aria-hidden="true"
28+
>
29+
<div
30+
class="aspect-[1.7] w-full h-full bg-gradient-to-r from-[rgb(var(--color-primary-DEFAULT))] to-white/10 opacity-50"
31+
:style="{ 'clip-path': `polygon(${poly})` }"
32+
/>
33+
</div>
34+
</template>
35+
36+
<style scoped>
37+
.bg > div {
38+
clip-path: circle(75%);
39+
transition: clip-path 3s;
40+
}
41+
42+
.light .bg > div {
43+
opacity: 1 !important;
44+
}
45+
</style>

docs/components/Header.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { header } = useAppConfig()
77
</script>
88

99
<template>
10-
<UHeader>
10+
<UHeader :ui="{}">
1111
<template #logo>
1212
<template v-if="header?.logo?.dark || header?.logo?.light">
1313
<UColorModeImage v-bind="{ class: 'h-6 w-auto', ...header?.logo }" />
@@ -18,11 +18,11 @@ const { header } = useAppConfig()
1818
</template>
1919

2020
<template v-if="header?.search" #center>
21-
<UDocsSearchButton class="hidden lg:flex" />
21+
<UContentSearchButton class="hidden lg:flex" />
2222
</template>
2323

2424
<template #right>
25-
<UDocsSearchButton v-if="header?.search" :label="null" class="lg:hidden" />
25+
<UContentSearchButton v-if="header?.search" :label="null" class="lg:hidden" />
2626

2727
<UColorModeButton v-if="header?.colorMode" />
2828

@@ -42,7 +42,7 @@ const { header } = useAppConfig()
4242
<UNavigationTree :links="mapContentNavigation(navigation)" />
4343

4444
<div class="flex py-2">
45-
<UButton to="https://console.hub.nuxt.com/?utm_source=nuxthub-docs&utm_medium=header" external icon="i-simple-icons-nuxtdotjs" color="black" block>
45+
<UButton to="https://console.hub.nuxt.com/?utm_source=nuxthub-docs&utm_medium=header" external icon="i-simple-icons-nuxtdotjs" color="black" block class="sm:hidden">
4646
NuxtHub Console
4747
</UButton>
4848
</div>

docs/content/1.getting-started/_dir.yml

-1
This file was deleted.

docs/content/3.recipes/2.drizzle.md

-91
This file was deleted.

docs/content/1.getting-started/1.index.md docs/content/docs/1.getting-started/1.index.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ NuxtHub aims to provide a complete backend experience for [Nuxt](https://nuxt.co
99
It is **currently made to be deployed on [Cloudflare Pages](https://pages.cloudflare.com)** as it leverages many Cloudflare features such as KV, D1, and R2. We are looking to support other platforms in the future.
1010
::
1111

12-
## Features
12+
## Storage
1313

14-
NuxtHub provides a set of features to help you build full-stack applications:
15-
- **SQL database** to store your application's data
16-
- **Blob storage** to store static assets, such as images, video and more
17-
- **Key-Value** to store JSON data accessible globally with low-latency
14+
NuxtHub provides different storage to help you build full-stack applications:
15+
- **SQL database** to store your application's data with [`useDatabase()`](/docs/storage/database)
16+
- **Key-Value** to store JSON data accessible globally with low-latency with [`useKV()`](/docs/storage/kv)
17+
- **Blob storage** to store static assets, such as images, video and more with [`useBlob()`](/docs/storage/blob)
1818

19-
Each feature comes with its auto-imported server composable to use in your [Nuxt's server directory](https://nuxt.com/docs/guide/directory-structure/server).
19+
Each storage utils is auto-imported and ready to be used in your [Nuxt's server directory](https://nuxt.com/docs/guide/directory-structure/server).
2020

21-
::callout{icon="i-ph-plugs-connected-duotone"}
21+
::callout{icon="i-ph-plugs-connected-duotone" to="/docs/getting-started/deploy#remote-storage"}
2222
NuxtHub comes with a powerful proxy system to connect to your project's resources from your local environment, allowing you to work with your remote storage as if it was local.
2323
::
2424

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: Getting Started
2+
icon: i-ph-rocket-launch-duotone
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/content/docs/2.storage/_dir.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
icon: i-ph-floppy-disk-duotone

docs/content/3.recipes/1.hooks.md docs/content/docs/3.recipes/1.hooks.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@ export default defineNitroPlugin(() => {
6161
```
6262

6363
::callout{icon="i-ph-info-duotone"}
64-
Note that `hubHooks` is a [`hookable`](https://hookable.unjs.io) instance.
64+
Note that `hubHooks` is a [hookable](https://hookable.unjs.io) instance.
6565
::
66+

0 commit comments

Comments
 (0)