From c15fc421ab9e03d522656d72d083a0388852ee62 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Mon, 30 Nov 2020 23:44:04 +0100 Subject: [PATCH] refactor: use nuxt everywhere (#8210) --- .github/ISSUE_TEMPLATE/bug-report.md | 4 ++-- .github/ISSUE_TEMPLATE/feature-request.md | 2 +- .github/stale.yml | 2 +- LICENSE | 2 +- README.md | 16 ++++++++-------- RELEASE_PLAN.md | 8 ++++---- benchmarks/README.md | 4 ++-- distributions/nuxt-start/README.md | 4 ++-- distributions/nuxt-start/package.json | 2 +- distributions/nuxt/README.md | 16 ++++++++-------- .../posts/deep-dive-into-ocean.vue | 2 +- examples/async-data/README.md | 2 +- examples/auth-jwt/README.md | 2 +- examples/auth-routes/nuxt.config.js | 4 ++-- examples/auth-routes/store/index.js | 2 +- examples/axios/README.md | 4 ++-- examples/coffeescript/README.md | 4 ++-- examples/coffeescript/nuxt.config.js | 2 +- examples/coffeescript/package.json | 2 +- examples/coffeescript/pages/index.vue | 2 +- examples/custom-loading/README.md | 2 +- examples/custom-page-loading/README.md | 2 +- examples/custom-port-host/README.md | 2 +- examples/custom-routes/README.md | 2 +- examples/custom-server/pages/index.vue | 2 +- examples/custom-server/server.js | 2 +- examples/docker-build/.dockerignore | 2 +- examples/docker-build/nuxt.config.js | 2 +- examples/dynamic-components/README.md | 2 +- examples/dynamic-components/nuxt.config.js | 2 +- examples/global-css/README.md | 2 +- examples/hello-world/README.md | 2 +- examples/layout-transitions/README.md | 2 +- examples/markdownit/README.md | 4 ++-- examples/meta-info/README.md | 4 ++-- .../meta-info/components/twitter-head-card.vue | 6 +++--- examples/meta-info/nuxt.config.js | 2 +- examples/minimal-features/README.md | 2 +- examples/nested-routes/README.md | 2 +- examples/new-fetch/README.md | 4 ++-- examples/no-ssr/README.md | 2 +- examples/nuxt-prefetch/README.md | 2 +- examples/plugins-vendor/README.md | 2 +- examples/plugins-vendor/pages/index.vue | 2 +- examples/pug-stylus-coffee/README.md | 4 ++-- examples/pug-stylus-coffee/components/README.md | 2 +- examples/pug-stylus-coffee/nuxt.config.coffee | 2 +- examples/pug-stylus-coffee/package.json | 2 +- examples/pug-stylus-coffee/pages/index.vue | 2 +- examples/pug-stylus-coffee/store/README.md | 2 +- examples/pug/README.md | 2 +- examples/routes-meta/README.md | 2 +- examples/routes-transitions/README.md | 2 +- examples/scroll-behavior/README.md | 2 +- examples/spa/nuxt.config.js | 4 ++-- examples/static-images/pages/about.vue | 2 +- examples/storybook/README.md | 6 +++--- examples/storybook/pages/index.vue | 2 +- examples/storybook/store/README.md | 2 +- examples/style-resources/README.md | 4 ++-- examples/tailwindcss-purgecss/nuxt.config.js | 2 +- examples/tailwindcss/README.md | 2 +- examples/tailwindcss/package.json | 2 +- examples/uikit/pages/index.vue | 2 +- examples/vue-chartjs/nuxt.config.js | 2 +- examples/vue-chartjs/pages/contributors.vue | 2 +- examples/vue-chartjs/pages/index.vue | 2 +- examples/web-worker/README.md | 4 ++-- examples/web-worker/components/README.md | 2 +- examples/web-worker/nuxt.config.js | 2 +- examples/web-worker/package.json | 2 +- examples/web-worker/pages/index.vue | 2 +- examples/with-ava/Readme.md | 2 +- examples/with-ava/test/index.test.js | 4 ++-- examples/with-cookies/README.md | 2 +- examples/with-feathers/package.json | 2 +- examples/with-feathers/src/middleware/nuxt.js | 4 ++-- examples/with-firebase/README.md | 2 +- examples/with-firebase/layouts/default.vue | 2 +- examples/with-firebase/package.json | 2 +- examples/with-keep-alive/README.md | 2 +- examples/with-museui/pages/index.vue | 2 +- examples/with-purgecss/README.md | 2 +- examples/with-purgecss/package.json | 2 +- examples/with-sockets/README.md | 2 +- examples/with-sockets/server.js | 2 +- examples/with-vue-material/README.md | 4 ++-- examples/with-vuetify/README.md | 2 +- examples/with-vux/README.md | 2 +- package.json | 2 +- packages/babel-preset-app/package.json | 2 +- packages/builder/src/builder.js | 2 +- packages/cli/src/options/common.js | 4 ++-- packages/cli/src/utils/banner.js | 2 +- packages/cli/src/utils/index.js | 4 ++-- .../test/unit/__snapshots__/command.test.js.snap | 4 ++-- packages/cli/test/unit/utils.test.js | 8 ++++---- packages/config/src/config/messages.js | 2 +- .../test/__snapshots__/options.test.js.snap | 2 +- .../test/config/__snapshots__/index.test.js.snap | 4 ++-- packages/server/src/jsdom.js | 2 +- packages/server/test/middleware/nuxt.test.js | 8 ++++---- packages/types/package.json | 2 +- packages/vue-renderer/src/renderer.js | 2 +- test/dev/basic.generate.test.js | 4 ++-- test/dev/basic.ssr.test.js | 12 ++++++------ test/dev/express.test.js | 2 +- test/dev/nuxt.test.js | 4 ++-- test/dev/with-config.test.js | 4 ++-- test/e2e/basic.browser.test.js | 10 +++++----- test/fixtures/basic/nuxt.config.js | 2 +- test/fixtures/basic/pages/async-data.vue | 2 +- test/fixtures/basic/pages/await-async-data.vue | 2 +- .../fixtures/basic/pages/callback-async-data.vue | 2 +- test/fixtures/basic/pages/noloading.vue | 2 +- test/fixtures/with-config/app.html | 2 +- test/fixtures/with-config/nuxt.config.js | 2 +- 117 files changed, 176 insertions(+), 176 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index d8e4e37c69..6759cb02bb 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,6 +1,6 @@ --- name: 🚨 Bug report | Bug 提亀 -about: Report a bug report to help us improve Nuxt.js. +about: Report a bug report to help us improve Nuxt. title: '' labels: 'bug-report' assignees: '' @@ -11,7 +11,7 @@ assignees: '' **IMPORTANT** Before reporting a bug: -- Please make sure that you have read through Nuxt.js documentation: https://nuxtjs.org +- Please make sure that you have read through Nuxt documentation: https://nuxtjs.org - If issue is related to a module please create the issue in corresponding repository - Ensure using latest version of nuxt dependencies using `yarn upgrade nuxt` or `npm upgrade nuxt` diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md index aed5f90521..5ed9ed3fd2 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -1,6 +1,6 @@ --- name: πŸ™‹ Feature request | ζ–°εŠŸθƒ½ζζ‘ˆ -about: Suggest an idea or enhancement for Nuxt.js. +about: Suggest an idea or enhancement for Nuxt. title: '' labels: 'feature-request' assignees: '' diff --git a/.github/stale.yml b/.github/stale.yml index 693395dd3c..f127e5de13 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -11,7 +11,7 @@ exemptLabels: exemptAssignees: true only: issues markComment: > - Thanks for your contribution to Nuxt.js! + Thanks for your contribution to Nuxt! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. diff --git a/LICENSE b/LICENSE index 84257c9009..0a2a5bad22 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016-2020 Nuxt.js Team +Copyright (c) 2016-2020 Nuxt Team - Sebastien Chopin ([@Atinux](https://github.com/Atinux)) - Alexandre Chopin ([@alexchopin](https://github.com/alexchopin)) - Pooya Parsa ([@pi0](https://github.com/pi0)) diff --git a/README.md b/README.md index 18944e3e7f..59ce353a03 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Hire Nuxt

-> Build your next Vue.js application with confidence using Nuxt.js: a framework making web development simple and powerful. +> Build your next Vue.js application with confidence using Nuxt: a framework making web development simple and powerful. ## Links @@ -30,7 +30,7 @@ - 🐦 Twitter: [@nuxt_js](https://twitter.nuxtjs.org/) - πŸ’¬ Chat: [Discord](https://discord.nuxtjs.org/) - 🌟 [AwesomeNuxt](https://awesome.nuxtjs.org/) -- πŸ‘‰ [Play with Nuxt.js online](https://template.nuxtjs.org) +- πŸ‘‰ [Play with Nuxt online](https://template.nuxtjs.org) ## Features @@ -77,15 +77,15 @@ Get help with that tough bug or make sure your Nuxt app is ready to deploy. For ## Professional support with TideLift -Professionally supported Nuxt.js is now available! +Professionally supported Nuxt is now available! Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools. [Get supported Nuxt with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-nuxt?utm_source=npm-nuxt&utm_medium=readme). -## Supporting Nuxt.js +## Supporting Nuxt -Nuxt.js is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. +Nuxt is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. Funds donated via OpenCollective are managed with transparent expenses and will be used for compensating work and expenses for core team members or sponsoring community events. Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/nuxtjs#contribute)] @@ -114,7 +114,7 @@ Support us with a monthly donation and help us continue our activities. [[Become -
SΓ©bastien Chopin
SΓ©bastien Chopin

πŸ“ πŸ› πŸ’» 🎨 πŸ“– πŸ’¬ πŸ‘€ πŸ“’
Alexandre Chopin
Alexandre Chopin

🎨 πŸ“– πŸ“‹ πŸ“¦ πŸ’¬ πŸ“’
Pooya Parsa
Pooya Parsa

πŸ› πŸ’» πŸ”Œ πŸ’¬ πŸ‘€ πŸ”§
Clark Du
Clark Du

πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️ πŸ”§
Alexander Lichter
Alexander Lichter

πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
Jonas Galvez
Jonas Galvez

πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
Dmitry Molotkov
Dmitry Molotkov

πŸ’¬ πŸ› πŸ’» πŸ€” πŸ‘€
Kevin Marrec
Kevin Marrec

πŸ’» πŸ€” πŸ“¦ πŸ‘€
Pim
Pim

πŸ› πŸ’»
+
SΓ©bastien Chopin
SΓ©bastien Chopin

πŸ“ πŸ› πŸ’» 🎨 πŸ“– πŸ’¬ πŸ‘€ πŸ“’
Alexandre Chopin
Alexandre Chopin

🎨 πŸ“– πŸ“‹ πŸ“¦ πŸ’¬ πŸ“’
Pooya Parsa
Pooya Parsa

πŸ› πŸ’» πŸ”Œ πŸ’¬ πŸ‘€ πŸ”§
Clark Du
Clark Du

πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️ πŸ”§
Alexander Lichter
Alexander Lichter

πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
Jonas Galvez
Jonas Galvez

πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
Dmitry Molotkov
Dmitry Molotkov

πŸ’¬ πŸ› πŸ’» πŸ€” πŸ‘€
Kevin Marrec
Kevin Marrec

πŸ’» πŸ€” πŸ“¦ πŸ‘€
Pim
Pim

πŸ› πŸ’»
@@ -122,7 +122,7 @@ Support us with a monthly donation and help us continue our activities. [[Become Thank you to all our [contributors](https://github.com/nuxt/nuxt.js/graphs/contributors)! -[![Nuxt.js Contributors][contributors-src]][contributors-href] +[![Nuxt Contributors][contributors-src]][contributors-href] ## Contributing @@ -144,7 +144,7 @@ Thanks to [SauceLabs](https://saucelabs.com) for supporting Open Source <3 ## Security -If you discover a security vulnerability regarding Nuxt.js, please send an e-mail to the team via security@nuxtjs.org! All security vulnerabilities will be promptly addressed. +If you discover a security vulnerability regarding Nuxt, please send an e-mail to the team via security@nuxtjs.org! All security vulnerabilities will be promptly addressed. ## License diff --git a/RELEASE_PLAN.md b/RELEASE_PLAN.md index 6f1fbbac4b..170fc4daae 100644 --- a/RELEASE_PLAN.md +++ b/RELEASE_PLAN.md @@ -15,7 +15,7 @@ won't "just break". ### Minor versions (2.1 -> 2.2) -The release cycle for Nuxt.js minor versions is roughly **4 weeks**. +The release cycle for Nuxt minor versions is roughly **4 weeks**. Three of the four weeks will be used for actual **feature implementations** while the last week will be used for **testing, fixing bugs and thorough audits**. @@ -31,7 +31,7 @@ In the future, fixes will be released **as soon as possible** after the actual P Fixes can or will include: -- Updates of dependencies (for various reasons, like a "faulty/buggy" dependency or an newer versions that works better with the Nuxt.js code) +- Updates of dependencies (for various reasons, like a "faulty/buggy" dependency or an newer versions that works better with the Nuxt code) - Fixes for our code Bugfixes for upcoming features won't be ported of course. @@ -43,7 +43,7 @@ releasing a version after _each commit_ was made. ## End of Life -Starting with `v2.4`, every major Nuxt.js version will have an **End of Life**. +Starting with `v2.4`, every major Nuxt version will have an **End of Life**. Previous releases will receive security updates and bugfixes **for one year and two weeks**, counted from the first release on. -As Nuxt majors are approximately released once every 6 months, this will allow developers to "skip one major version" without being stuck with a broken or unsecure Nuxt.js dependency. +As Nuxt majors are approximately released once every 6 months, this will allow developers to "skip one major version" without being stuck with a broken or unsecure Nuxt dependency. The EOL also applies to the documentation. diff --git a/benchmarks/README.md b/benchmarks/README.md index 9623cc1191..84a6268301 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -1,4 +1,4 @@ -# Nuxt.js server-side benchmarks +# Nuxt server-side benchmarks > Taken from [Next.js benchmarks](https://github.com/zeit/next.js/tree/master/bench), if you like React, we recommend you to try [Next.js](https://github.com/zeit/next.js). @@ -26,4 +26,4 @@ npm run bench:stateless - Stateless application which renders `
  • This is row {i}
  • ` 10.000 times. Runs 500 http requests. ``` npm run bench:stateless-big -``` \ No newline at end of file +``` diff --git a/distributions/nuxt-start/README.md b/distributions/nuxt-start/README.md index bff9363290..2e496d7b23 100644 --- a/distributions/nuxt-start/README.md +++ b/distributions/nuxt-start/README.md @@ -1,6 +1,6 @@ # nuxt-start -> Start Nuxt.js Application in production mode. +> Start Nuxt Application in production mode. ## Installation @@ -35,7 +35,7 @@ const config = require('./nuxt.config.js') // Create a new nuxt instance (config needs dev: false) const nuxt = new Nuxt(config) -// Start nuxt.js server +// Start nuxt server nuxt.listen(3000) // nuxt.listen(port, host) // Or use `nuxt.render` as an express middleware diff --git a/distributions/nuxt-start/package.json b/distributions/nuxt-start/package.json index aa1b7e0f20..a5b8ecd10f 100644 --- a/distributions/nuxt-start/package.json +++ b/distributions/nuxt-start/package.json @@ -1,7 +1,7 @@ { "name": "nuxt-start", "version": "2.14.7", - "description": "Starts Nuxt.js Application in production mode", + "description": "Starts Nuxt Application in production mode", "keywords": [ "nuxt", "nuxt.js", diff --git a/distributions/nuxt/README.md b/distributions/nuxt/README.md index 18944e3e7f..59ce353a03 100644 --- a/distributions/nuxt/README.md +++ b/distributions/nuxt/README.md @@ -20,7 +20,7 @@ Hire Nuxt

    -> Build your next Vue.js application with confidence using Nuxt.js: a framework making web development simple and powerful. +> Build your next Vue.js application with confidence using Nuxt: a framework making web development simple and powerful. ## Links @@ -30,7 +30,7 @@ - 🐦 Twitter: [@nuxt_js](https://twitter.nuxtjs.org/) - πŸ’¬ Chat: [Discord](https://discord.nuxtjs.org/) - 🌟 [AwesomeNuxt](https://awesome.nuxtjs.org/) -- πŸ‘‰ [Play with Nuxt.js online](https://template.nuxtjs.org) +- πŸ‘‰ [Play with Nuxt online](https://template.nuxtjs.org) ## Features @@ -77,15 +77,15 @@ Get help with that tough bug or make sure your Nuxt app is ready to deploy. For ## Professional support with TideLift -Professionally supported Nuxt.js is now available! +Professionally supported Nuxt is now available! Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools. [Get supported Nuxt with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-nuxt?utm_source=npm-nuxt&utm_medium=readme). -## Supporting Nuxt.js +## Supporting Nuxt -Nuxt.js is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. +Nuxt is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. Funds donated via OpenCollective are managed with transparent expenses and will be used for compensating work and expenses for core team members or sponsoring community events. Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/nuxtjs#contribute)] @@ -114,7 +114,7 @@ Support us with a monthly donation and help us continue our activities. [[Become -
    SΓ©bastien Chopin
    SΓ©bastien Chopin

    πŸ“ πŸ› πŸ’» 🎨 πŸ“– πŸ’¬ πŸ‘€ πŸ“’
    Alexandre Chopin
    Alexandre Chopin

    🎨 πŸ“– πŸ“‹ πŸ“¦ πŸ’¬ πŸ“’
    Pooya Parsa
    Pooya Parsa

    πŸ› πŸ’» πŸ”Œ πŸ’¬ πŸ‘€ πŸ”§
    Clark Du
    Clark Du

    πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️ πŸ”§
    Alexander Lichter
    Alexander Lichter

    πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
    Jonas Galvez
    Jonas Galvez

    πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
    Dmitry Molotkov
    Dmitry Molotkov

    πŸ’¬ πŸ› πŸ’» πŸ€” πŸ‘€
    Kevin Marrec
    Kevin Marrec

    πŸ’» πŸ€” πŸ“¦ πŸ‘€
    Pim
    Pim

    πŸ› πŸ’»
    +
    SΓ©bastien Chopin
    SΓ©bastien Chopin

    πŸ“ πŸ› πŸ’» 🎨 πŸ“– πŸ’¬ πŸ‘€ πŸ“’
    Alexandre Chopin
    Alexandre Chopin

    🎨 πŸ“– πŸ“‹ πŸ“¦ πŸ’¬ πŸ“’
    Pooya Parsa
    Pooya Parsa

    πŸ› πŸ’» πŸ”Œ πŸ’¬ πŸ‘€ πŸ”§
    Clark Du
    Clark Du

    πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️ πŸ”§
    Alexander Lichter
    Alexander Lichter

    πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
    Jonas Galvez
    Jonas Galvez

    πŸ’¬ πŸ› πŸ’» πŸ’‘ πŸ‘€ ⚠️
    Dmitry Molotkov
    Dmitry Molotkov

    πŸ’¬ πŸ› πŸ’» πŸ€” πŸ‘€
    Kevin Marrec
    Kevin Marrec

    πŸ’» πŸ€” πŸ“¦ πŸ‘€
    Pim
    Pim

    πŸ› πŸ’»
    @@ -122,7 +122,7 @@ Support us with a monthly donation and help us continue our activities. [[Become Thank you to all our [contributors](https://github.com/nuxt/nuxt.js/graphs/contributors)! -[![Nuxt.js Contributors][contributors-src]][contributors-href] +[![Nuxt Contributors][contributors-src]][contributors-href] ## Contributing @@ -144,7 +144,7 @@ Thanks to [SauceLabs](https://saucelabs.com) for supporting Open Source <3 ## Security -If you discover a security vulnerability regarding Nuxt.js, please send an e-mail to the team via security@nuxtjs.org! All security vulnerabilities will be promptly addressed. +If you discover a security vulnerability regarding Nuxt, please send an e-mail to the team via security@nuxtjs.org! All security vulnerabilities will be promptly addressed. ## License diff --git a/examples/async-component-injection/posts/deep-dive-into-ocean.vue b/examples/async-component-injection/posts/deep-dive-into-ocean.vue index 3cc9c61b90..1769ea2a49 100644 --- a/examples/async-component-injection/posts/deep-dive-into-ocean.vue +++ b/examples/async-component-injection/posts/deep-dive-into-ocean.vue @@ -11,7 +11,7 @@

    Another subtitle

    diff --git a/examples/async-data/README.md b/examples/async-data/README.md index b84dedfb01..a384301763 100644 --- a/examples/async-data/README.md +++ b/examples/async-data/README.md @@ -1,3 +1,3 @@ -# Async data with Nuxt.js +# Async data with Nuxt https://nuxtjs.org/examples/async-data diff --git a/examples/auth-jwt/README.md b/examples/auth-jwt/README.md index 5780625bd0..9723bb9b86 100644 --- a/examples/auth-jwt/README.md +++ b/examples/auth-jwt/README.md @@ -1,3 +1,3 @@ -# Auth External API (JWT) with Nuxt.js +# Auth External API (JWT) with Nuxt https://nuxtjs.org/examples/auth-external-jwt diff --git a/examples/auth-routes/nuxt.config.js b/examples/auth-routes/nuxt.config.js index e0efd9aebf..50242d7915 100644 --- a/examples/auth-routes/nuxt.config.js +++ b/examples/auth-routes/nuxt.config.js @@ -12,8 +12,8 @@ export default { }, /* ** Add server middleware - ** Nuxt.js uses `connect` module as server - ** So most of express middleware works with nuxt.js server middleware + ** Nuxt uses `connect` module as server + ** So most of express middleware works with nuxt server middleware */ serverMiddleware: [ // body-parser middleware diff --git a/examples/auth-routes/store/index.js b/examples/auth-routes/store/index.js index d50612e52c..2af4fe5704 100644 --- a/examples/auth-routes/store/index.js +++ b/examples/auth-routes/store/index.js @@ -11,7 +11,7 @@ export const mutations = { } export const actions = { - // nuxtServerInit is called by Nuxt.js before server-rendering every page + // nuxtServerInit is called by Nuxt before server-rendering every page nuxtServerInit ({ commit }, { req }) { if (req.session && req.session.authUser) { commit('SET_USER', req.session.authUser) diff --git a/examples/axios/README.md b/examples/axios/README.md index 0916b62873..fe22dc10d9 100644 --- a/examples/axios/README.md +++ b/examples/axios/README.md @@ -2,9 +2,9 @@ Using [proxy-module](https://github.com/nuxt-community/proxy-module) and [Axios module](https://axios.nuxtjs.org/) -> proxy-module is the one-liner node.js http-proxy middleware solution for Nuxt.js using [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) +> proxy-module is the one-liner node.js http-proxy middleware solution for Nuxt using [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) -> Axios-module is a secure and easy [Axios](https://github.com/mzabriskie/axios) integration with Nuxt.js. +> Axios-module is a secure and easy [Axios](https://github.com/mzabriskie/axios) integration with Nuxt. ## Install diff --git a/examples/coffeescript/README.md b/examples/coffeescript/README.md index f8a4a5f1d6..0e1f7537b3 100644 --- a/examples/coffeescript/README.md +++ b/examples/coffeescript/README.md @@ -1,6 +1,6 @@ # Nuxt with CoffeeScript -> Nuxt.js project with CoffeeScript +> Nuxt project with CoffeeScript ## Build Setup @@ -19,4 +19,4 @@ $ npm start $ npm run generate ``` -For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js). +For detailed explanation on how things work, checkout the [Nuxt docs](https://github.com/nuxt/nuxt.js). diff --git a/examples/coffeescript/nuxt.config.js b/examples/coffeescript/nuxt.config.js index 3d8378c381..38d951df69 100644 --- a/examples/coffeescript/nuxt.config.js +++ b/examples/coffeescript/nuxt.config.js @@ -7,7 +7,7 @@ export default { meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: 'Nuxt.js project' } + { hid: 'description', name: 'description', content: 'Nuxt project' } ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } diff --git a/examples/coffeescript/package.json b/examples/coffeescript/package.json index df5a495709..3ccf426be7 100644 --- a/examples/coffeescript/package.json +++ b/examples/coffeescript/package.json @@ -1,7 +1,7 @@ { "name": "example-coffeescript", "version": "1.0.0", - "description": "Nuxt.js with CoffeeScript", + "description": "Nuxt with CoffeeScript", "author": "Alex Ananiev ", "private": true, "scripts": { diff --git a/examples/coffeescript/pages/index.vue b/examples/coffeescript/pages/index.vue index 62f9e08b7e..3c75b9dc6c 100644 --- a/examples/coffeescript/pages/index.vue +++ b/examples/coffeescript/pages/index.vue @@ -3,7 +3,7 @@

    - Nuxt.js with Coffee! + Nuxt with Coffee!

    {{message}} diff --git a/examples/custom-loading/README.md b/examples/custom-loading/README.md index f69dd97ea5..18a38f5ba2 100644 --- a/examples/custom-loading/README.md +++ b/examples/custom-loading/README.md @@ -1,3 +1,3 @@ -# Custom loading with Nuxt.js +# Custom loading with Nuxt https://nuxtjs.org/examples/custom-loading diff --git a/examples/custom-page-loading/README.md b/examples/custom-page-loading/README.md index 9ed60e75ca..879b561d1a 100644 --- a/examples/custom-page-loading/README.md +++ b/examples/custom-page-loading/README.md @@ -1,4 +1,4 @@ -# Custom page loading with Nuxt.js +# Custom page loading with Nuxt https://nuxtjs.org/examples/custom-page-loading diff --git a/examples/custom-port-host/README.md b/examples/custom-port-host/README.md index 886caac319..c076c1cafd 100644 --- a/examples/custom-port-host/README.md +++ b/examples/custom-port-host/README.md @@ -1,3 +1,3 @@ -# Custom PORT and HOST in `nuxt.config.js` with Nuxt.js +# Custom PORT and HOST in `nuxt.config.js` with Nuxt https://nuxtjs.org/examples/custom-port-host diff --git a/examples/custom-routes/README.md b/examples/custom-routes/README.md index 3a95b0d8bf..3c8d6bf877 100644 --- a/examples/custom-routes/README.md +++ b/examples/custom-routes/README.md @@ -1,3 +1,3 @@ -# Custom Routes with Nuxt.js +# Custom Routes with Nuxt https://nuxtjs.org/examples/custom-routes diff --git a/examples/custom-server/pages/index.vue b/examples/custom-server/pages/index.vue index b8f045cab6..3b436c2b7c 100644 --- a/examples/custom-server/pages/index.vue +++ b/examples/custom-server/pages/index.vue @@ -1,7 +1,7 @@ diff --git a/examples/custom-server/server.js b/examples/custom-server/server.js index ab0c16eae1..e0696f95f2 100644 --- a/examples/custom-server/server.js +++ b/examples/custom-server/server.js @@ -6,7 +6,7 @@ const app = express() const host = process.env.HOST || '127.0.0.1' const port = process.env.PORT || 3000 -// Import and set Nuxt.js options +// Import and set Nuxt options const config = require('./nuxt.config.js') config.dev = process.env.NODE_ENV !== 'production' diff --git a/examples/docker-build/.dockerignore b/examples/docker-build/.dockerignore index f935a370cd..cd3be85aa7 100644 --- a/examples/docker-build/.dockerignore +++ b/examples/docker-build/.dockerignore @@ -65,7 +65,7 @@ typings/ # next.js build output .next -# nuxt.js build output +# nuxt build output .nuxt # Nuxt generate diff --git a/examples/docker-build/nuxt.config.js b/examples/docker-build/nuxt.config.js index 2f5df58a7e..e1e127b4aa 100644 --- a/examples/docker-build/nuxt.config.js +++ b/examples/docker-build/nuxt.config.js @@ -36,7 +36,7 @@ export default { ], /* - ** Nuxt.js modules + ** Nuxt modules */ modules: [ ], diff --git a/examples/dynamic-components/README.md b/examples/dynamic-components/README.md index 8b7290300f..92e657d802 100644 --- a/examples/dynamic-components/README.md +++ b/examples/dynamic-components/README.md @@ -1,4 +1,4 @@ -# Dynamic Components with Nuxt.js +# Dynamic Components with Nuxt Demo: https://dynamic-components.nuxtjs.org/ diff --git a/examples/dynamic-components/nuxt.config.js b/examples/dynamic-components/nuxt.config.js index cc195cee5e..6736ff3ff1 100644 --- a/examples/dynamic-components/nuxt.config.js +++ b/examples/dynamic-components/nuxt.config.js @@ -1,6 +1,6 @@ export default { head: { - titleTemplate: 'Nuxt.js - Dynamic Components', + titleTemplate: 'Nuxt - Dynamic Components', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' } diff --git a/examples/global-css/README.md b/examples/global-css/README.md index 94f73bf46f..c7c1480b8f 100644 --- a/examples/global-css/README.md +++ b/examples/global-css/README.md @@ -1,3 +1,3 @@ -# Global CSS with Nuxt.js +# Global CSS with Nuxt https://nuxtjs.org/examples/global-css diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md index d64ba5270a..e01a540e02 100644 --- a/examples/hello-world/README.md +++ b/examples/hello-world/README.md @@ -1,3 +1,3 @@ -# Hello World with Nuxt.js +# Hello World with Nuxt https://nuxtjs.org/examples diff --git a/examples/layout-transitions/README.md b/examples/layout-transitions/README.md index 3bdd2a9092..1e89007dd6 100644 --- a/examples/layout-transitions/README.md +++ b/examples/layout-transitions/README.md @@ -1,3 +1,3 @@ -# Layout transitions with Nuxt.js +# Layout transitions with Nuxt https://nuxtjs.org/examples/layout-transitions diff --git a/examples/markdownit/README.md b/examples/markdownit/README.md index a19b103440..e36dd0042f 100644 --- a/examples/markdownit/README.md +++ b/examples/markdownit/README.md @@ -1,5 +1,5 @@ -# Nuxt with Markdown +# Nuxt with Markdown > Convert Markdown file to HTML using markdown-it. -**See [Markdownit Module](https://github.com/nuxt-community/modules/tree/master/packages/markdownit) for easy integration with [Nuxt.js](https://nuxtjs.org).** +**See [Markdownit Module](https://github.com/nuxt-community/modules/tree/master/packages/markdownit) for easy integration with [Nuxt](https://nuxtjs.org).** diff --git a/examples/meta-info/README.md b/examples/meta-info/README.md index 2d2ddaa6a5..861bec4acf 100644 --- a/examples/meta-info/README.md +++ b/examples/meta-info/README.md @@ -1,6 +1,6 @@ # Manage your app's meta information -Nuxt.js uses [vue-meta](https://github.com/nuxt/vue-meta) to manage page meta info (such as: meta, title, link, style, script) of your application. +Nuxt uses [vue-meta](https://github.com/nuxt/vue-meta) to manage page meta info (such as: meta, title, link, style, script) of your application. ## Example @@ -8,6 +8,6 @@ SEO: https://nuxtjs.org/examples/seo-html-head ## Documentation -Nuxt.js: https://nuxtjs.org/guide/views#html-head +Nuxt: https://nuxtjs.org/guide/views#html-head vue-meta: https://github.com/nuxt/vue-meta#table-of-contents diff --git a/examples/meta-info/components/twitter-head-card.vue b/examples/meta-info/components/twitter-head-card.vue index 9506baf3ec..4fd7d47723 100644 --- a/examples/meta-info/components/twitter-head-card.vue +++ b/examples/meta-info/components/twitter-head-card.vue @@ -12,10 +12,10 @@ export default { meta: [ { name: 'twitter:card', content: 'summary' }, { name: 'twitter:site', content: '@nuxt_js' }, - { name: 'twitter:title', content: 'Nuxt.js Twitter Card' }, - { name: 'twitter:description', content: 'Nuxt.js lets you handle custom headers for your app with vue-meta' }, + { name: 'twitter:title', content: 'Nuxt Twitter Card' }, + { name: 'twitter:description', content: 'Nuxt lets you handle custom headers for your app with vue-meta' }, { name: 'twitter:image', content: 'https://avatars0.githubusercontent.com/u/23360933?v=3' }, - { name: 'twitter:image:alt', content: 'Nuxt.js logo' } + { name: 'twitter:image:alt', content: 'Nuxt logo' } ] } } diff --git a/examples/meta-info/nuxt.config.js b/examples/meta-info/nuxt.config.js index 941b70d4c6..8260c45e91 100644 --- a/examples/meta-info/nuxt.config.js +++ b/examples/meta-info/nuxt.config.js @@ -1,6 +1,6 @@ export default { head: { - titleTemplate: '%s - Nuxt.js', + titleTemplate: '%s - Nuxt', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, diff --git a/examples/minimal-features/README.md b/examples/minimal-features/README.md index 30b16a2c3b..55a5d3ff8a 100644 --- a/examples/minimal-features/README.md +++ b/examples/minimal-features/README.md @@ -1,3 +1,3 @@ -# A minimal Hello World Nuxt.js app +# A minimal Hello World Nuxt app https://nuxtjs.org/examples diff --git a/examples/nested-routes/README.md b/examples/nested-routes/README.md index 1c9f2bf47d..4c2930a3fb 100644 --- a/examples/nested-routes/README.md +++ b/examples/nested-routes/README.md @@ -1,3 +1,3 @@ -# Nested Routes with Nuxt.js +# Nested Routes with Nuxt [https://nuxtjs.org/examples/nested-routes](https://nuxtjs.org/examples/nested-routes) diff --git a/examples/new-fetch/README.md b/examples/new-fetch/README.md index 3b31939e1a..b34824c803 100644 --- a/examples/new-fetch/README.md +++ b/examples/new-fetch/README.md @@ -1,5 +1,5 @@ -# New fetch() with Nuxt.js +# New fetch() with Nuxt -Nuxt.js `v2.12` introduces a new hook called `fetch` in any of your Vue components. +Nuxt `v2.12` introduces a new hook called `fetch` in any of your Vue components. See [live demo](https://nuxt-new-fetch.surge.sh) and [documentation](https://nuxtjs.org/api/pages-fetch). diff --git a/examples/no-ssr/README.md b/examples/no-ssr/README.md index 9d5678cabc..83958446f4 100644 --- a/examples/no-ssr/README.md +++ b/examples/no-ssr/README.md @@ -1,3 +1,3 @@ -# `` with Nuxt.js +# `` with Nuxt https://nuxtjs.org/examples diff --git a/examples/nuxt-prefetch/README.md b/examples/nuxt-prefetch/README.md index 9907d2f545..39fd3cf448 100644 --- a/examples/nuxt-prefetch/README.md +++ b/examples/nuxt-prefetch/README.md @@ -1,3 +1,3 @@ -# Example of Nuxt.js prefetching +# Example of Nuxt prefetching Learn more at https://github.com/nuxt/nuxt.js/pull/4574 diff --git a/examples/plugins-vendor/README.md b/examples/plugins-vendor/README.md index d86e3dcc5a..c4d94af0d0 100644 --- a/examples/plugins-vendor/README.md +++ b/examples/plugins-vendor/README.md @@ -1,3 +1,3 @@ -# Using external modules and plugins with Nuxt.js +# Using external modules and plugins with Nuxt https://nuxtjs.org/examples/plugins diff --git a/examples/plugins-vendor/pages/index.vue b/examples/plugins-vendor/pages/index.vue index f99a6baff2..0067456cb5 100644 --- a/examples/plugins-vendor/pages/index.vue +++ b/examples/plugins-vendor/pages/index.vue @@ -26,7 +26,7 @@ export default { notifications: { showLoginError: { title: 'Welcome!', - message: 'Hello from nuxt.js', + message: 'Hello from nuxt', type: 'info' } } diff --git a/examples/pug-stylus-coffee/README.md b/examples/pug-stylus-coffee/README.md index 930f5e4d87..5b6afca6aa 100644 --- a/examples/pug-stylus-coffee/README.md +++ b/examples/pug-stylus-coffee/README.md @@ -1,6 +1,6 @@ -# Pug + Stylus + Coffee template for Nuxt.js +# Pug + Stylus + Coffee template for Nuxt -> Ultimative complete pack for coding with pleasure and Nuxt.js +> Ultimative complete pack for coding with pleasure and Nuxt ## Build Setup diff --git a/examples/pug-stylus-coffee/components/README.md b/examples/pug-stylus-coffee/components/README.md index a079f1060e..d856f131d1 100644 --- a/examples/pug-stylus-coffee/components/README.md +++ b/examples/pug-stylus-coffee/components/README.md @@ -4,4 +4,4 @@ The components directory contains your Vue.js Components. -_Nuxt.js doesn't supercharge these components._ +_Nuxt doesn't supercharge these components._ diff --git a/examples/pug-stylus-coffee/nuxt.config.coffee b/examples/pug-stylus-coffee/nuxt.config.coffee index 039a2022ba..f4bf6ed7c8 100644 --- a/examples/pug-stylus-coffee/nuxt.config.coffee +++ b/examples/pug-stylus-coffee/nuxt.config.coffee @@ -36,7 +36,7 @@ module.exports = css: [] # Plugins to load before mounting the App plugins: [] - # Nuxt.js modules + # Nuxt modules modules: [ '~/modules/coffeescript' diff --git a/examples/pug-stylus-coffee/package.json b/examples/pug-stylus-coffee/package.json index c63df436f8..645ee96941 100644 --- a/examples/pug-stylus-coffee/package.json +++ b/examples/pug-stylus-coffee/package.json @@ -1,7 +1,7 @@ { "name": "example-pug-stylus-coffee", "version": "1.0.0", - "description": "Nuxt.js with Pug Stylus and CoffeeScript", + "description": "Nuxt with Pug Stylus and CoffeeScript", "author": "Alex Ananiev , Kron Austrum ", "private": true, "scripts": { diff --git a/examples/pug-stylus-coffee/pages/index.vue b/examples/pug-stylus-coffee/pages/index.vue index ee0df7e4ef..b57910db61 100644 --- a/examples/pug-stylus-coffee/pages/index.vue +++ b/examples/pug-stylus-coffee/pages/index.vue @@ -2,7 +2,7 @@ section.container div logo - h1.title Nuxt.js with Pug Stylus and Coffee! + h1.title Nuxt with Pug Stylus and Coffee! h2.subtitle {{ $store.state.msg }} //- h2.subtitle {{message}} .links diff --git a/examples/pug-stylus-coffee/store/README.md b/examples/pug-stylus-coffee/store/README.md index 1972d277a2..d7caa1b2fb 100644 --- a/examples/pug-stylus-coffee/store/README.md +++ b/examples/pug-stylus-coffee/store/README.md @@ -3,7 +3,7 @@ **This directory is not required, you can delete it if you don't want to use it.** This directory contains your Vuex Store files. -Vuex Store option is implemented in the Nuxt.js framework. +Vuex Store option is implemented in the Nuxt framework. Creating a file in this directory automatically activates the option in the framework. diff --git a/examples/pug/README.md b/examples/pug/README.md index 8fc6026c97..684463569a 100644 --- a/examples/pug/README.md +++ b/examples/pug/README.md @@ -1,3 +1,3 @@ -# Nuxt.js with Pug +# Nuxt with Pug No further packages needed. It works out of the box. diff --git a/examples/routes-meta/README.md b/examples/routes-meta/README.md index 318c8209bb..475d3283cb 100644 --- a/examples/routes-meta/README.md +++ b/examples/routes-meta/README.md @@ -1,4 +1,4 @@ -# Routes meta with Nuxt.js +# Routes meta with Nuxt Demo: https://nuxt-routes-meta.glitch.me diff --git a/examples/routes-transitions/README.md b/examples/routes-transitions/README.md index fe38a76062..cbaff18851 100644 --- a/examples/routes-transitions/README.md +++ b/examples/routes-transitions/README.md @@ -1,3 +1,3 @@ -# Routes transitions with Nuxt.js +# Routes transitions with Nuxt https://nuxtjs.org/examples/routes-transitions diff --git a/examples/scroll-behavior/README.md b/examples/scroll-behavior/README.md index a4cb7c2884..8338011a31 100644 --- a/examples/scroll-behavior/README.md +++ b/examples/scroll-behavior/README.md @@ -1,3 +1,3 @@ -# Custom scroll behavior with Nuxt.js +# Custom scroll behavior with Nuxt https://nuxtjs.org/examples/custom-scroll-behavior diff --git a/examples/spa/nuxt.config.js b/examples/spa/nuxt.config.js index 84d3d9b1b8..be24a1e34c 100644 --- a/examples/spa/nuxt.config.js +++ b/examples/spa/nuxt.config.js @@ -8,11 +8,11 @@ export default { ** Headers of the page (works with SPA!) */ head: { - title: 'SPA mode with Nuxt.js', + title: 'SPA mode with Nuxt', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, - { hid: 'description', name: 'description', content: 'Single Page Application made with Nuxt.js' } + { hid: 'description', name: 'description', content: 'Single Page Application made with Nuxt' } ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } diff --git a/examples/static-images/pages/about.vue b/examples/static-images/pages/about.vue index d7aaac8ff7..f3a35bd89e 100644 --- a/examples/static-images/pages/about.vue +++ b/examples/static-images/pages/about.vue @@ -1,7 +1,7 @@