-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
928 additions
and
747 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>shouldn't be added</div> | ||
<div>shouldn't be added</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<p>{{ $route.params.slug }}</p> | ||
<p>{{ $route.params.slug }}</p> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
About page | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>temp</div> | ||
<div>temp</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>Hello world</div> | ||
<div>Hello world</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>temp</div> | ||
<div>temp</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>temp</div> | ||
<div>temp</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>temp</div> | ||
<div>temp</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>edit</div> | ||
<div>edit</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>new</div> | ||
<div>new</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>foo.bar</div> | ||
<div>foo.bar</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>foo</div> | ||
<div>foo</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<h1 class="text-2xl mt-10 mb-5">Sitemap</h1> | ||
<div class="grid grid-cols-2 gap-5 max-w-[900px] mx-auto"> | ||
<NuxtLink to="/ignore-foo">ignore-foo</NuxtLink> | ||
<NuxtLink to="/new-page">new page</NuxtLink> | ||
<NuxtLink to="/about">about</NuxtLink> | ||
<NuxtLink to="/secret">secret</NuxtLink> | ||
<NuxtLink to="/users-prerender">dynamic pre-render link</NuxtLink> | ||
<NuxtLink to="/blog">blog</NuxtLink> | ||
<div> | ||
<h1 class="text-2xl mt-10 mb-5"> | ||
Sitemap | ||
</h1> | ||
<div class="grid grid-cols-2 gap-5 max-w-[900px] mx-auto"> | ||
<NuxtLink to="/ignore-foo"> | ||
ignore-foo | ||
</NuxtLink> | ||
<NuxtLink to="/new-page"> | ||
new page | ||
</NuxtLink> | ||
<NuxtLink to="/about"> | ||
about | ||
</NuxtLink> | ||
<NuxtLink to="/secret"> | ||
secret | ||
</NuxtLink> | ||
<NuxtLink to="/users-prerender"> | ||
dynamic pre-render link | ||
</NuxtLink> | ||
<NuxtLink to="/blog"> | ||
blog | ||
</NuxtLink> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
a { | ||
display: block; | ||
margin: 0 0 10px 0; | ||
text-decoration: underline; | ||
} | ||
</style> | ||
<script setup lang="ts"> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>Hello world</div> | ||
<div>Hello world</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<template> | ||
<div>Hello world</div> | ||
<div>Hello world</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { defineEventHandler } from 'h3' | ||
|
||
export default defineEventHandler(e => { | ||
export default defineEventHandler((e) => { | ||
const posts = Array.from({ length: 5 }, (_, i) => i + 1) | ||
return [ | ||
'/users-lazy/1', | ||
'/users-lazy/2', | ||
'/users-lazy/3', | ||
...posts.map(post => ({ | ||
loc: `/blog/post-${post}` | ||
})) | ||
loc: `/blog/post-${post}`, | ||
})), | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { defineEventHandler } from 'h3' | ||
|
||
export default defineEventHandler(e => { | ||
export default defineEventHandler((e) => { | ||
const posts = Array.from({ length: 5 }, (_, i) => i + 1) | ||
return [ | ||
...posts.map(post => ({ | ||
loc: `/bar/${post}` | ||
})) | ||
loc: `/bar/${post}`, | ||
})), | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { defineEventHandler } from 'h3' | ||
|
||
export default defineEventHandler(e => { | ||
export default defineEventHandler((e) => { | ||
const posts = Array.from({ length: 5 }, (_, i) => i + 1) | ||
return [ | ||
...posts.map(post => ({ | ||
loc: `/foo/${post}` | ||
})) | ||
loc: `/foo/${post}`, | ||
})), | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { defineEventHandler } from 'h3' | ||
|
||
export default defineEventHandler(e => { | ||
export default defineEventHandler((e) => { | ||
const posts = Array.from({ length: 3 }, (_, i) => i + 1) | ||
return [ | ||
...posts.map(post => ({ | ||
loc: `/blog/${post}` | ||
})) | ||
loc: `/blog/${post}`, | ||
})), | ||
] | ||
}) |
Oops, something went wrong.