mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(examples): add sub-folder to github examples path (#3996)
This commit is contained in:
parent
323803832a
commit
169aa35ef7
@ -5,7 +5,7 @@ const bar = getBar()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="config-extends">
|
<NuxtExampleLayout example="advanced/config-extends">
|
||||||
theme runtimeConfig
|
theme runtimeConfig
|
||||||
<pre>{{ JSON.stringify(themeConfig, null, 2) }}</pre>
|
<pre>{{ JSON.stringify(themeConfig, null, 2) }}</pre>
|
||||||
<BaseButton>Base Button</BaseButton>
|
<BaseButton>Base Button</BaseButton>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="module-extend-pages">
|
<NuxtExampleLayout example="advanced/module-extend-pages">
|
||||||
<slot />
|
<slot />
|
||||||
</NuxtExampleLayout>
|
</NuxtExampleLayout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -15,7 +15,7 @@ function triggerError () {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="errors">
|
<NuxtExampleLayout example="app/error-handling">
|
||||||
<template #nav>
|
<template #nav>
|
||||||
<nav class="flex align-center gap-4 p-4">
|
<nav class="flex align-center gap-4 p-4">
|
||||||
<NuxtLink to="/" class="n-link-base">
|
<NuxtLink to="/" class="n-link-base">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="plugins">
|
<NuxtExampleLayout example="app/plugins">
|
||||||
<div>{{ $myPlugin() }}</div>
|
<div>{{ $myPlugin() }}</div>
|
||||||
</NuxtExampleLayout>
|
</NuxtExampleLayout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="components">
|
<NuxtExampleLayout example="auto-imports/components">
|
||||||
<h1 class="text-xl opacity-50">
|
<h1 class="text-xl opacity-50">
|
||||||
Auto Imported Components
|
Auto Imported Components
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="composables">
|
<NuxtExampleLayout example="auto-imports/composables">
|
||||||
<p>Named export <code>useA</code> : {{ a }}</p>
|
<p>Named export <code>useA</code> : {{ a }}</p>
|
||||||
<p>Named export <code>useB</code> : {{ b }}</p>
|
<p>Named export <code>useB</code> : {{ b }}</p>
|
||||||
<p>Named export <code>useC</code> : {{ c }}</p>
|
<p>Named export <code>useC</code> : {{ c }}</p>
|
||||||
|
@ -13,7 +13,7 @@ const refreshAll = async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="use-async-data">
|
<NuxtExampleLayout example="composables/use-async-data">
|
||||||
<div>
|
<div>
|
||||||
<div class="flex justify-center gap-2">
|
<div class="flex justify-center gap-2">
|
||||||
<NButton @click="showMountain = !showMountain">
|
<NButton @click="showMountain = !showMountain">
|
||||||
|
@ -15,7 +15,7 @@ const logout = () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout class="h-50" example="use-cookie">
|
<NuxtExampleLayout class="h-50" example="composables/use-cookie">
|
||||||
<template v-if="user">
|
<template v-if="user">
|
||||||
<h1 class="text-3xl mb-3">
|
<h1 class="text-3xl mb-3">
|
||||||
Welcome, {{ user.name }}! 👋
|
Welcome, {{ user.name }}! 👋
|
||||||
|
@ -4,7 +4,7 @@ const { data } = await useFetch(() => `/api/hello/${count.value}`, { params: { t
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="use-fetch">
|
<NuxtExampleLayout example="composables/use-fetch">
|
||||||
<div>
|
<div>
|
||||||
Fetch result:
|
Fetch result:
|
||||||
<pre class="text-left"><code>{{ data }}</code></pre>
|
<pre class="text-left"><code>{{ data }}</code></pre>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="use-meta">
|
<NuxtExampleLayout example="composables/use-meta">
|
||||||
<div
|
<div
|
||||||
class="bg-gray-400/10 border-2 border-dashed border-gray-400/50 rounded-xl py-8 px-2 op-80"
|
class="bg-gray-400/10 border-2 border-dashed border-gray-400/50 rounded-xl py-8 px-2 op-80"
|
||||||
>
|
>
|
||||||
|
@ -3,7 +3,7 @@ const counter = useState('counter', () => Math.round(Math.random() * 1000))
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="use-state">
|
<NuxtExampleLayout example="composables/use-state">
|
||||||
<div>Counter: {{ counter }}</div>
|
<div>Counter: {{ counter }}</div>
|
||||||
<div>
|
<div>
|
||||||
<NButton class="font-mono" @click="counter++">
|
<NButton class="font-mono" @click="counter++">
|
||||||
|
@ -10,7 +10,7 @@ function dec () {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="reactivity-transform">
|
<NuxtExampleLayout example="experimental/reactivity-transform">
|
||||||
<div>
|
<div>
|
||||||
<Label :count="count" />
|
<Label :count="count" />
|
||||||
<div class="flex gap-1 justify-center">
|
<div class="flex gap-1 justify-center">
|
||||||
|
@ -8,7 +8,7 @@ const { data } = await useAsyncData('sum',
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="wasm">
|
<NuxtExampleLayout example="experimental/wasm">
|
||||||
<p>
|
<p>
|
||||||
<code>a = 100</code>
|
<code>a = 100</code>
|
||||||
</p>
|
</p>
|
||||||
|
@ -6,7 +6,7 @@ const date = useLocaleDate(new Date('2016-10-26') /* NUXT_BIRTHDAY */)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="locale">
|
<NuxtExampleLayout example="other/locale">
|
||||||
<h1 class="text-xl opacity-50">
|
<h1 class="text-xl opacity-50">
|
||||||
Nuxt birthday
|
Nuxt birthday
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="layouts">
|
<NuxtExampleLayout example="routing/layouts">
|
||||||
<template #nav>
|
<template #nav>
|
||||||
<nav class="flex align-center gap-4 p-4">
|
<nav class="flex align-center gap-4 p-4">
|
||||||
<NuxtLink to="/default">
|
<NuxtLink to="/default">
|
||||||
|
@ -3,7 +3,7 @@ const route = useRoute()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="middleware">
|
<NuxtExampleLayout example="routing/middleware">
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
|
|
||||||
<template #nav>
|
<template #nav>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="nuxt-link" class="example">
|
<NuxtExampleLayout example="routing/nuxt-link" class="example">
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtExampleLayout>
|
</NuxtExampleLayout>
|
||||||
</template>
|
</template>
|
||||||
|
@ -3,7 +3,7 @@ const route = useRoute()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="pages">
|
<NuxtExampleLayout example="routing/pages">
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
|
|
||||||
<template #nav>
|
<template #nav>
|
||||||
|
@ -4,7 +4,7 @@ const timer = useState('timer', () => 0)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<NuxtExampleLayout example="universal-router">
|
<NuxtExampleLayout example="routing/universal-router">
|
||||||
A page...
|
A page...
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user