mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
refactor: use nuxt everywhere (#8210)
This commit is contained in:
parent
da38f96f03
commit
c15fc421ab
4
.github/ISSUE_TEMPLATE/bug-report.md
vendored
4
.github/ISSUE_TEMPLATE/bug-report.md
vendored
@ -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`
|
||||
|
||||
|
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
2
.github/ISSUE_TEMPLATE/feature-request.md
vendored
@ -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: ''
|
||||
|
2
.github/stale.yml
vendored
2
.github/stale.yml
vendored
@ -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.
|
||||
|
2
LICENSE
2
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))
|
||||
|
@ -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.
|
||||
|
@ -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).
|
||||
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
<h2>Another subtitle</h2>
|
||||
<ul>
|
||||
<li>Vue.js</li>
|
||||
<li>Nuxt.js</li>
|
||||
<li>Nuxt</li>
|
||||
<li>= <3</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Async data with Nuxt.js
|
||||
# Async data with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/async-data
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Auth External API (JWT) with Nuxt.js
|
||||
# Auth External API (JWT) with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/auth-external-jwt
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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).
|
||||
|
@ -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' }
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "example-coffeescript",
|
||||
"version": "1.0.0",
|
||||
"description": "Nuxt.js with CoffeeScript",
|
||||
"description": "Nuxt with CoffeeScript",
|
||||
"author": "Alex Ananiev <alex.ananiev.r@gmail.com>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div>
|
||||
<logo/>
|
||||
<h1 class="title">
|
||||
Nuxt.js with Coffee!
|
||||
Nuxt with Coffee!
|
||||
</h1>
|
||||
<h2 class="subtitle">
|
||||
{{message}}
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Custom loading with Nuxt.js
|
||||
# Custom loading with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/custom-loading
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Custom page loading with Nuxt.js
|
||||
# Custom page loading with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/custom-page-loading
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Custom Routes with Nuxt.js
|
||||
# Custom Routes with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/custom-routes
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<p>
|
||||
Please look at <code>server.js</code> to see how to use <a href="https://nuxtjs.org">
|
||||
Nuxt.js
|
||||
Nuxt
|
||||
</a> programmatically.
|
||||
</p>
|
||||
</template>
|
||||
|
@ -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'
|
||||
|
||||
|
@ -65,7 +65,7 @@ typings/
|
||||
# next.js build output
|
||||
.next
|
||||
|
||||
# nuxt.js build output
|
||||
# nuxt build output
|
||||
.nuxt
|
||||
|
||||
# Nuxt generate
|
||||
|
@ -36,7 +36,7 @@ export default {
|
||||
],
|
||||
|
||||
/*
|
||||
** Nuxt.js modules
|
||||
** Nuxt modules
|
||||
*/
|
||||
modules: [
|
||||
],
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Dynamic Components with Nuxt.js
|
||||
# Dynamic Components with Nuxt
|
||||
|
||||
Demo: https://dynamic-components.nuxtjs.org/
|
||||
|
||||
|
@ -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' }
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Global CSS with Nuxt.js
|
||||
# Global CSS with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/global-css
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Hello World with Nuxt.js
|
||||
# Hello World with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Layout transitions with Nuxt.js
|
||||
# Layout transitions with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/layout-transitions
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
> 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).**
|
||||
|
@ -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
|
||||
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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' },
|
||||
|
@ -1,3 +1,3 @@
|
||||
# A minimal Hello World Nuxt.js app
|
||||
# A minimal Hello World Nuxt app
|
||||
|
||||
https://nuxtjs.org/examples
|
||||
|
@ -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)
|
||||
|
@ -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).
|
||||
|
@ -1,3 +1,3 @@
|
||||
# `<no-ssr>` with Nuxt.js
|
||||
# `<no-ssr>` with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Example of Nuxt.js prefetching
|
||||
# Example of Nuxt prefetching
|
||||
|
||||
Learn more at https://github.com/nuxt/nuxt.js/pull/4574
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Using external modules and plugins with Nuxt.js
|
||||
# Using external modules and plugins with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/plugins
|
||||
|
@ -26,7 +26,7 @@ export default {
|
||||
notifications: {
|
||||
showLoginError: {
|
||||
title: 'Welcome!',
|
||||
message: 'Hello from nuxt.js',
|
||||
message: 'Hello from nuxt',
|
||||
type: 'info'
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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._
|
||||
|
@ -36,7 +36,7 @@ module.exports =
|
||||
css: []
|
||||
# Plugins to load before mounting the App
|
||||
plugins: []
|
||||
# Nuxt.js modules
|
||||
# Nuxt modules
|
||||
modules:
|
||||
[
|
||||
'~/modules/coffeescript'
|
||||
|
@ -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 <alex.ananiev.r@gmail.com>, Kron Austrum <huyach@protonmail.ch>",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Nuxt.js with Pug
|
||||
# Nuxt with Pug
|
||||
|
||||
No further packages needed. It works out of the box.
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Routes meta with Nuxt.js
|
||||
# Routes meta with Nuxt
|
||||
|
||||
Demo: https://nuxt-routes-meta.glitch.me
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Routes transitions with Nuxt.js
|
||||
# Routes transitions with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/routes-transitions
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Custom scroll behavior with Nuxt.js
|
||||
# Custom scroll behavior with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples/custom-scroll-behavior
|
||||
|
@ -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' }
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<img src="~static/nuxt-black.png">
|
||||
<h2>Thank you for testing nuxt.js</h2>
|
||||
<h2>Thank you for testing nuxt</h2>
|
||||
<p>Loaded from the {{ name }}</p>
|
||||
<p>
|
||||
<NuxtLink to="/">
|
||||
|
@ -1,10 +1,10 @@
|
||||
# Storybook demo for Nuxt
|
||||
|
||||
Demo showcasing [Storybook](https://storybook.js.org/) usage with Nuxt.js, [Vuetify](https://vuetifyjs.com) and [Vue-Charts](http://vue-chartjs.org/)
|
||||
Demo showcasing [Storybook](https://storybook.js.org/) usage with Nuxt, [Vuetify](https://vuetifyjs.com) and [Vue-Charts](http://vue-chartjs.org/)
|
||||
|
||||
## Features
|
||||
|
||||
* Supports `~` and `~~` Nuxt.js aliases
|
||||
* Supports `~` and `~~` Nuxt aliases
|
||||
* Contains `storybase.js` with helper classes
|
||||
* Integrates most of addons
|
||||
* Real life examples with Vuetify and Vue-Charts
|
||||
|
@ -7,7 +7,7 @@
|
||||
</div>
|
||||
<v-card>
|
||||
<v-card-title class="headline">
|
||||
Welcome to the Vuetify + Nuxt.js template
|
||||
Welcome to the Vuetify + Nuxt template
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<p>Vuetify is a progressive Material Design component framework for Vue.js. It was designed to empower developers to create amazing applications.</p>
|
||||
|
@ -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 activate the option in the framework automatically.
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Using build.styleResources with Nuxt.js
|
||||
# Using build.styleResources with Nuxt
|
||||
|
||||
This is useful when you need to inject some variables and mixins in your pages without having to import them every time.
|
||||
|
||||
Nuxt.js uses https://github.com/yenshih/style-resources-loader to achieve this behaviour.
|
||||
Nuxt uses https://github.com/yenshih/style-resources-loader to achieve this behaviour.
|
||||
|
||||
You need to specify the patterns/path you want to include for the given pre-processors: `css`, `less`, `sass`, `scss` or `stylus`
|
||||
|
||||
|
@ -9,7 +9,7 @@ export default {
|
||||
{
|
||||
hid: 'description',
|
||||
name: 'description',
|
||||
content: 'A static site powered by Nuxt.js'
|
||||
content: 'A static site powered by Nuxt'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Nuxt.js with Tailwind CSS
|
||||
# Nuxt with Tailwind CSS
|
||||
|
||||
See https://tailwindcss.com/docs/what-is-tailwind/
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "example-tailwindcss",
|
||||
"description": "Nuxt.js with Tailwind CSS",
|
||||
"description": "Nuxt with Tailwind CSS",
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="uk-card uk-card-body uk-card-primary">
|
||||
<h3 class="uk-card-title">
|
||||
Nuxt.js + UIKIT
|
||||
Nuxt + UIKIT
|
||||
</h3>
|
||||
<button class="uk-button uk-button-default" title="Hello World" uk-tooltip>
|
||||
Hover
|
||||
|
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
head: {
|
||||
title: 'Nuxt.js + Vue-ChartJS',
|
||||
title: 'Nuxt + Vue-ChartJS',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
|
||||
|
@ -36,7 +36,7 @@ export default {
|
||||
labels: contributors.map(c => c.login),
|
||||
datasets: [
|
||||
{
|
||||
label: 'Nuxt.js Contributors',
|
||||
label: 'Nuxt Contributors',
|
||||
backgroundColor: contributors.map(getRandomColor),
|
||||
data: contributors.map(c => c.contributions)
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ export default {
|
||||
labels: stats.map(stat => moment(stat.week * 1000).format('GGGG[-W]WW')),
|
||||
datasets: [
|
||||
{
|
||||
label: 'Nuxt.js Commit Activity',
|
||||
label: 'Nuxt Commit Activity',
|
||||
backgroundColor: '#41B38A',
|
||||
data: stats.map(stat => stat.total)
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Nuxt with web-workers using [Worker-loader](https://github.com/webpack-contrib/worker-loader)
|
||||
|
||||
> Nuxt.js project
|
||||
> Nuxt project
|
||||
|
||||
In nuxt 1.4 and below you have to create a production build to use web workers.
|
||||
|
||||
@ -23,4 +23,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).
|
||||
|
@ -1,6 +1,6 @@
|
||||
# COMPONENTS
|
||||
|
||||
The components directory contains your Vue.js Components.
|
||||
Nuxt.js doesn't supercharge these components.
|
||||
Nuxt doesn't supercharge these components.
|
||||
|
||||
**This directory is not required, you can delete it if you don't want to use it.**
|
||||
|
@ -7,7 +7,7 @@ module.exports = {
|
||||
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' }
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "web-worker",
|
||||
"description": "Demo web workers in nuxt.js",
|
||||
"description": "Demo web workers in nuxt",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
|
@ -6,7 +6,7 @@
|
||||
web-worker
|
||||
</h1>
|
||||
<h2 class="subtitle">
|
||||
Nuxt.js project
|
||||
Nuxt project
|
||||
</h2>
|
||||
<p>{{ notification }}</p>
|
||||
<ul class="list">
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
> AVA is a test runner for Node.js with a concise API, detailed error output, embrace of new language features and process isolation that let you write tests more effectively. So you can ship more awesome code. rocket
|
||||
|
||||
## Testing your Nuxt.js Application
|
||||
## Testing your Nuxt Application
|
||||
|
||||
https://nuxtjs.org/examples/testing
|
||||
|
@ -7,7 +7,7 @@ import test from 'ava'
|
||||
// So we can close them at the end of the test
|
||||
let nuxt = null
|
||||
|
||||
// Init Nuxt.js and create a server listening on localhost:4000
|
||||
// Init Nuxt and create a server listening on localhost:4000
|
||||
test.before(async () => {
|
||||
const config = {
|
||||
dev: false,
|
||||
@ -38,6 +38,6 @@ test('Route / exits and render HTML with CSS applied', async (t) => {
|
||||
})
|
||||
|
||||
// Close server and ask nuxt to stop listening to file changes
|
||||
test.after('Closing server and nuxt.js', (t) => {
|
||||
test.after('Closing server and nuxt', (t) => {
|
||||
nuxt.close()
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Nuxt with cookies
|
||||
|
||||
This demo showcases reading/updating cookies with Nuxt.js
|
||||
This demo showcases reading/updating cookies with Nuxt
|
||||
|
||||
https://nuxtjs.org/examples
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "example-with-feathers",
|
||||
"description": "Nuxt.js with FeathersJS",
|
||||
"description": "Nuxt with FeathersJS",
|
||||
"version": "1.0.0",
|
||||
"main": "src/",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { resolve } from 'path'
|
||||
import { Nuxt, Builder } from 'nuxt'
|
||||
|
||||
// Setup nuxt.js
|
||||
// Setup nuxt
|
||||
let config = {}
|
||||
try {
|
||||
config = require('../../nuxt.config.js')
|
||||
@ -17,7 +17,7 @@ if (config.dev) {
|
||||
process.nextTick(() => process.emit('nuxt:build:done'))
|
||||
}
|
||||
|
||||
// Add nuxt.js middleware
|
||||
// Add nuxt middleware
|
||||
export default function (req, res) {
|
||||
nuxt.render(req, res)
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ You can view the Firebase data at [https://nuxt-firebase.firebaseio.com/.json](h
|
||||
Download this example [or clone the repo](https://github.com/nuxt/nuxt.js):
|
||||
|
||||
```bash
|
||||
curl https://codeload.github.com/nuxt/nuxt.js/tar.gz/master | tar -xz --strip=2 nuxt.js-master/examples/with-firebase
|
||||
curl https://codeload.github.com/nuxt/nuxt.js/tar.gz/master | tar -xz --strip=2 nuxt-master/examples/with-firebase
|
||||
cd with-firebase
|
||||
```
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="header">
|
||||
<nav>
|
||||
<h1 @click="$router.push('/')">
|
||||
Nuxt.js + Firebase
|
||||
Nuxt + Firebase
|
||||
</h1>
|
||||
</nav>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "example-with-firebase",
|
||||
"version": "1.0.0",
|
||||
"description": "Nuxt.js with Firebase",
|
||||
"description": "Nuxt with Firebase",
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
|
@ -1,4 +1,4 @@
|
||||
# `<keep-alive>` with Nuxt.js
|
||||
# `<keep-alive>` with Nuxt
|
||||
|
||||
Introduced in v1.2.0, you can add the `keep-alive` prop to `<Nuxt/>` or `<NuxtChild/>` to "keep alive" the pages.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<mu-appbar title="Nuxt.js">
|
||||
<mu-appbar title="Nuxt">
|
||||
<mu-icon-button slot="left" icon="menu" @click="toggle()" />
|
||||
<mu-icon-menu slot="right" icon="expand_more">
|
||||
<mu-menu-item value="1" title="One" />
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Nuxt.js with [Purgecss](https://www.purgecss.com/) (and [Tailwind CSS](https://tailwindcss.com))
|
||||
# Nuxt with [Purgecss](https://www.purgecss.com/) (and [Tailwind CSS](https://tailwindcss.com))
|
||||
|
||||
> *Tailwind CSS* is a utility-first CSS framework for rapidly building custom user interfaces.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "example-with-purgecss",
|
||||
"description": "Nuxt.js with Tailwind CSS",
|
||||
"description": "Nuxt with Tailwind CSS",
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Nuxt with [Socket.io](https://socket.io/)
|
||||
|
||||
An example for Nuxt.js with WebSockets over Socket.io.
|
||||
An example for Nuxt with WebSockets over Socket.io.
|
||||
|
||||
> Socket.IO enables real-time, bidirectional and event-based communication.
|
||||
> It works on every platform, browser or device, focusing equally on reliability and speed.
|
||||
|
@ -7,7 +7,7 @@ const server = http.createServer(app)
|
||||
const io = require('socket.io')(server)
|
||||
|
||||
const { Nuxt, Builder } = require('nuxt')
|
||||
// We instantiate Nuxt.js with the options
|
||||
// We instantiate Nuxt with the options
|
||||
const config = require('./nuxt.config.js')
|
||||
config.dev = !isProd
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Nuxt.js With [Vue-Material](https://vuematerial.io/)
|
||||
# Nuxt With [Vue-Material](https://vuematerial.io/)
|
||||
|
||||
> Vue Material is a Vue.js bassed Material Design component library
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Using [Vuetify.js](https://vuetifyjs.com/en/) with Nuxt.js
|
||||
# Using [Vuetify.js](https://vuetifyjs.com/en/) with Nuxt
|
||||
|
||||
> Vuetify is a Vue based Material Design Component Framework
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Showcase of Nuxt.js and [VUX](https://github.com/airyland/vux)
|
||||
# Showcase of Nuxt and [VUX](https://github.com/airyland/vux)
|
||||
|
||||
> VUX is a Mobile UI Components based on Vue & WeUI.
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "nuxt.js",
|
||||
"name": "nuxt",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@nuxt/babel-preset-app",
|
||||
"version": "2.14.7",
|
||||
"description": "babel-preset-app for nuxt.js",
|
||||
"description": "babel-preset-app for nuxt",
|
||||
"repository": "nuxt/nuxt.js",
|
||||
"license": "MIT",
|
||||
"author": "Evan You",
|
||||
|
@ -380,7 +380,7 @@ export default class Builder {
|
||||
trailingSlash
|
||||
})
|
||||
} else if (this._nuxtPages) {
|
||||
// Use nuxt.js createRoutes bases on pages/
|
||||
// Use nuxt createRoutes bases on pages/
|
||||
const files = {}
|
||||
const ext = new RegExp(`\\.(${this.supportedExtensions.join('|')})$`)
|
||||
for (const page of await this.resolveFiles(this.options.dir.pages)) {
|
||||
|
@ -16,7 +16,7 @@ export default {
|
||||
alias: 'c',
|
||||
type: 'string',
|
||||
default: defaultNuxtConfigFile,
|
||||
description: `Path to Nuxt.js config file (default: \`${defaultNuxtConfigFile}\`)`
|
||||
description: `Path to Nuxt config file (default: \`${defaultNuxtConfigFile}\`)`
|
||||
},
|
||||
modern: {
|
||||
alias: 'm',
|
||||
@ -43,7 +43,7 @@ export default {
|
||||
default (cmd) {
|
||||
return ['build', 'generate', 'export'].includes(cmd.name)
|
||||
},
|
||||
description: 'Whether Nuxt.js should force exit after the command has finished'
|
||||
description: 'Whether Nuxt should force exit after the command has finished'
|
||||
},
|
||||
version: {
|
||||
alias: 'v',
|
||||
|
@ -21,7 +21,7 @@ export function showBanner (nuxt, showMemoryUsage = true) {
|
||||
|
||||
// Name and version
|
||||
const { bannerColor, badgeMessages } = nuxt.options.cli
|
||||
titleLines.push(`${chalk[bannerColor].bold('Nuxt.js')} @ ${nuxt.constructor.version || 'exotic'}\n`)
|
||||
titleLines.push(`${chalk[bannerColor].bold('Nuxt')} @ ${nuxt.constructor.version || 'exotic'}\n`)
|
||||
|
||||
const label = name => chalk.bold.cyan(`▸ ${name}:`)
|
||||
|
||||
|
@ -41,9 +41,9 @@ export function forceExit (cmdName, timeout) {
|
||||
if (timeout !== false) {
|
||||
const exitTimeout = setTimeout(() => {
|
||||
const msg = `The command 'nuxt ${cmdName}' finished but did not exit after ${timeout}s
|
||||
This is most likely not caused by a bug in Nuxt.js
|
||||
This is most likely not caused by a bug in Nuxt
|
||||
Make sure to cleanup all timers and listeners you or your plugins/modules start.
|
||||
Nuxt.js will now force exit
|
||||
Nuxt will now force exit
|
||||
|
||||
${chalk.bold('DeprecationWarning: Starting with Nuxt version 3 this will be a fatal error')}`
|
||||
|
||||
|
@ -13,7 +13,7 @@ exports[`cli/command builds help text 1`] = `
|
||||
--spa, -s Launch in SPA mode
|
||||
--universal, -u Launch in Universal
|
||||
mode (default)
|
||||
--config-file, -c Path to Nuxt.js
|
||||
--config-file, -c Path to Nuxt
|
||||
config file (default: nuxt.config)
|
||||
--modern, -m Build/Start app for
|
||||
modern browsers, e.g. server, client and
|
||||
@ -21,7 +21,7 @@ exports[`cli/command builds help text 1`] = `
|
||||
--target, -t Build/start app for a
|
||||
different target, e.g. server,
|
||||
serverless and static
|
||||
--force-exit Whether Nuxt.js
|
||||
--force-exit Whether Nuxt
|
||||
should force exit after the command has
|
||||
finished
|
||||
--version, -v Display the Nuxt
|
||||
|
@ -167,7 +167,7 @@ describe('cli/utils', () => {
|
||||
|
||||
expect(successBox).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching(`Listening: ${listeners[0].url}`))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching(`Listening: ${listeners[1].url}`))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Memory usage'))
|
||||
@ -197,7 +197,7 @@ describe('cli/utils', () => {
|
||||
|
||||
expect(successBox).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt'))
|
||||
expect(stdout).not.toHaveBeenCalledWith(expect.stringMatching('Memory usage'))
|
||||
stdout.mockRestore()
|
||||
})
|
||||
@ -226,7 +226,7 @@ describe('cli/utils', () => {
|
||||
|
||||
expect(successBox).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledTimes(1)
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('Nuxt'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('▸ Environment:'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('▸ Rendering:'))
|
||||
expect(stdout).toHaveBeenCalledWith(expect.stringMatching('▸ Target:'))
|
||||
@ -249,7 +249,7 @@ describe('cli/utils', () => {
|
||||
expect(exit).not.toHaveBeenCalled()
|
||||
jest.runAllTimers()
|
||||
|
||||
expect(stderr).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js will now force exit'))
|
||||
expect(stderr).toHaveBeenCalledWith(expect.stringMatching('Nuxt will now force exit'))
|
||||
expect(exit).toHaveBeenCalledTimes(1)
|
||||
|
||||
stderr.mockRestore()
|
||||
|
@ -2,7 +2,7 @@ export default () => ({
|
||||
loading: 'Loading...',
|
||||
error_404: 'This page could not be found',
|
||||
server_error: 'Server error',
|
||||
nuxtjs: 'Nuxt.js',
|
||||
nuxtjs: 'Nuxt',
|
||||
back_to_home: 'Back to the home page',
|
||||
server_error_details:
|
||||
'An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.',
|
||||
|
@ -267,7 +267,7 @@ Object {
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
"error_404": "This page could not be found",
|
||||
"loading": "Loading...",
|
||||
"nuxtjs": "Nuxt.js",
|
||||
"nuxtjs": "Nuxt",
|
||||
"server_error": "Server error",
|
||||
"server_error_details": "An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.",
|
||||
},
|
||||
|
@ -238,7 +238,7 @@ Object {
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
"error_404": "This page could not be found",
|
||||
"loading": "Loading...",
|
||||
"nuxtjs": "Nuxt.js",
|
||||
"nuxtjs": "Nuxt",
|
||||
"server_error": "Server error",
|
||||
"server_error_details": "An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.",
|
||||
},
|
||||
@ -615,7 +615,7 @@ Object {
|
||||
"client_error_details": "An error occurred while rendering the page. Check developer tools console for details.",
|
||||
"error_404": "This page could not be found",
|
||||
"loading": "Loading...",
|
||||
"nuxtjs": "Nuxt.js",
|
||||
"nuxtjs": "Nuxt",
|
||||
"server_error": "Server error",
|
||||
"server_error_details": "An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.",
|
||||
},
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user