Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.inline-flex {
display: inline-flex;
}

.items-center {
align-items: center;
}

.gap-3 {
gap: 0.75rem;
}

.strapi-title {
color: #4945ff;
}
4 changes: 2 additions & 2 deletions docs/content/3.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Partially updates an entry by `id` and returns its value. Fields that aren't sen
import type { Restaurant } from '~/types'

const route = useRoute()
const { update } = useStrapi4()
const { update } = useStrapi()

const onSubmit = async () => {
await update<Restaurant>('restaurants', route.params.id, { name: 'My updated restaurant' })
Expand Down Expand Up @@ -155,7 +155,7 @@ import type { Restaurant } from '~/types'

const route = useRoute()
// An alias is used here as `delete` is a reserved key-word.
const { delete: _delete } = useStrapi4()
const { delete: _delete } = useStrapi()

const onSubmit = async () => {
await _delete<Restaurant>('restaurants', route.params.id)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/5.advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To take full advantage of server-side rendering, you can use Nuxt [useAsyncData]
import type { Restaurant } from '~/types'

const route = useRoute()
const { findOne } = useStrapi4()
const { findOne } = useStrapi()

const { data, pending, refresh, error } = await useAsyncData(
'restaurant',
Expand Down
1 change: 1 addition & 0 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default defineNuxtConfig({
css: ['@/assets/css/main.css'],
extends: ['@nuxt-themes/docus'],
modules: ['nuxt-plausible'],
plausible: {
Expand Down