Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit d045b20

Browse files
debs-obrienclarkdo
andauthored
feat: add route page and content fetch (#632)
* feat: add route page and content fetch * update snap Co-authored-by: Clark Du <[email protected]>
1 parent 068a00c commit d045b20

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ yarn create nuxt-app <my-project>
5151
- [Vuesax](https://github.com/lusaxweb/vuesax)
5252
- [Vuetify](https://github.com/vuetifyjs/vuetify)
5353
1. Nuxt.js modules:
54-
- [Axios](https://github.com/nuxt-community/axios-module)
54+
- [Axios - Promise based HTTP client](https://github.com/nuxt-community/axios-module)
5555
- [Progressive Web App (PWA)](https://github.com/nuxt-community/pwa-module)
56-
- [Content](https://github.com/nuxt/content)
56+
- [Content - Git-based headless CMS](https://github.com/nuxt/content)
5757
1. Linting tools:
5858
- [ESLint](https://github.com/nuxt/eslint-config)
5959
- [Prettier](https://github.com/prettier/prettier)

packages/create-nuxt-app/lib/prompts.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ module.exports = [
5252
type: 'checkbox',
5353
pageSize: 10,
5454
choices: [
55-
{ name: 'Axios', value: 'axios' },
55+
{ name: 'Axios - Promise based HTTP client', value: 'axios' },
5656
{ name: 'Progressive Web App (PWA)', value: 'pwa' },
57-
{ name: 'Content', value: 'content' }
57+
{ name: 'Content - Git-based headless CMS', value: 'content' }
5858
],
5959
default: []
6060
},

packages/create-nuxt-app/lib/saofile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ module.exports = {
5656
templateDir: join(templateDir, 'nuxt'),
5757
filters: {
5858
'static/icon.png': 'features.includes("pwa")',
59-
'content/hello.md': 'features.includes("content")'
59+
'content/hello.md': 'features.includes("content")',
60+
'pages/content.vue': 'features.includes("content")'
6061
}
6162
}]
6263

packages/create-nuxt-app/test/snapshots/index.test.js.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ Generated by [AVA](https://avajs.dev).
584584
}␊
585585
`
586586

587-
## verify features: Axios
587+
## verify features: Axios - Promise based HTTP client
588588

589589
> Generated files
590590
@@ -672,7 +672,7 @@ Generated by [AVA](https://avajs.dev).
672672
}␊
673673
`
674674

675-
## verify features: Axios, Progressive Web App (PWA), Content
675+
## verify features: Axios - Promise based HTTP client, Progressive Web App (PWA), Content - Git-based headless CMS
676676

677677
> Generated files
678678
@@ -771,7 +771,7 @@ Generated by [AVA](https://avajs.dev).
771771
}␊
772772
`
773773

774-
## verify features: Content
774+
## verify features: Content - Git-based headless CMS
775775

776776
> Generated files
777777
Binary file not shown.

0 commit comments

Comments
 (0)