feat: upgrade eslint to 5.x (#3494)

- [ ] babel-eslint https://github.com/babel/babel-eslint/issues/664
- [x] eslint-config-standard-jsx https://github.com/standard/eslint-config-standard-jsx/issues/32
- [x] eslint-config-standard to be stable release https://github.com/standard/eslint-config-standard/issues/123
- [x] eslint-plugin-html
- [x] eslint-plugin-import
- [x] eslint-plugin-jest
- [x] eslint-plugin-node
- [x] eslint-plugin-promise
- [x] eslint-plugin-standard https://github.com/standard/eslint-plugin-standard/issues/29
- [x] eslint-plugin-vue https://github.com/vuejs/eslint-plugin-vue/pull/504
- [x] eslint-plugin-react https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.10.0
This commit is contained in:
Clark Du 2018-08-31 21:34:12 +01:00 committed by GitHub
parent fa01cd76ff
commit b11e9c0e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
101 changed files with 337 additions and 305 deletions

View File

@ -96,6 +96,6 @@ const errorHandler = (err, instance) => {
.then(() => !oldInstance && nuxt.showReady(false))
.then(() => builder.watchServer())
// Handle errors
.catch(err => errorHandler(err, {builder, nuxt}))
.catch(err => errorHandler(err, { builder, nuxt }))
)
})()

View File

@ -8,7 +8,7 @@
<a href="https://github.com/nuxt/nuxt.js/tree/dev/examples/async-component-injection" target="_blank"><img src="~/assets/img/github.png"></a>
</p>
<div class="main">
<nuxt/>
<nuxt />
</div>
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="post">
<component :is="component"/>
<component :is="component" />
</div>
</template>

View File

@ -4,8 +4,8 @@
<form v-if="!$store.state.authUser" @submit.prevent="login">
<p v-if="formError" class="error">{{ formError }}</p>
<p><i>To login, use <b>demo</b> as username and <b>demo</b> as password.</i></p>
<p>Username: <input v-model="formUsername" type="text" name="username" ></p>
<p>Password: <input v-model="formPassword" type="password" name="password" ></p>
<p>Username: <input v-model="formUsername" type="text" name="username"></p>
<p>Password: <input v-model="formPassword" type="password" name="password"></p>
<button type="submit">Login</button>
</form>
<div v-else>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>Dog</h1>
<img :src="dog" >
<img :src="dog">
</div>
</template>

View File

@ -1,9 +1,9 @@
<template>
<div class="VueToNuxtLogo">
<div class="Triangle Triangle--two"/>
<div class="Triangle Triangle--one"/>
<div class="Triangle Triangle--three"/>
<div class="Triangle Triangle--four"/>
<div class="Triangle Triangle--two" />
<div class="Triangle Triangle--one" />
<div class="Triangle Triangle--three" />
<div class="Triangle Triangle--four" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="container">
<p><img src="~/assets/nuxt.png" ></p>
<p><img src="~/assets/nuxt.png"></p>
<p>This image is included as data:image/png;base64...</p>
<p>In the source code, the files generated are based on the build.filenames data.</p>
</div>

View File

@ -1,6 +1,6 @@
<template>
<div class="dark">
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<img src="logo.png">
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<img v-if="loaded" :src="data" alt="image" >
<img v-if="loaded" :src="data" alt="image">
<svg
v-else
width="60px"
@ -8,19 +8,22 @@
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid"
class="uil-ring"><rect
class="uil-ring"
><rect
x="0"
y="0"
width="100"
height="100"
fill="none"
class="bk"/><defs><filter id="uil-ring-shadow" x="-100%" y="-100%" width="300%" height="300%"><feOffset result="offOut" in="SourceGraphic" dx="0" dy="0"/><feGaussianBlur result="blurOut" in="offOut" stdDeviation="0"/><feBlend in="SourceGraphic" in2="blurOut" mode="normal"/></filter></defs><path d="M10,50c0,0,0,0.5,0.1,1.4c0,0.5,0.1,1,0.2,1.7c0,0.3,0.1,0.7,0.1,1.1c0.1,0.4,0.1,0.8,0.2,1.2c0.2,0.8,0.3,1.8,0.5,2.8 c0.3,1,0.6,2.1,0.9,3.2c0.3,1.1,0.9,2.3,1.4,3.5c0.5,1.2,1.2,2.4,1.8,3.7c0.3,0.6,0.8,1.2,1.2,1.9c0.4,0.6,0.8,1.3,1.3,1.9 c1,1.2,1.9,2.6,3.1,3.7c2.2,2.5,5,4.7,7.9,6.7c3,2,6.5,3.4,10.1,4.6c3.6,1.1,7.5,1.5,11.2,1.6c4-0.1,7.7-0.6,11.3-1.6 c3.6-1.2,7-2.6,10-4.6c3-2,5.8-4.2,7.9-6.7c1.2-1.2,2.1-2.5,3.1-3.7c0.5-0.6,0.9-1.3,1.3-1.9c0.4-0.6,0.8-1.3,1.2-1.9 c0.6-1.3,1.3-2.5,1.8-3.7c0.5-1.2,1-2.4,1.4-3.5c0.3-1.1,0.6-2.2,0.9-3.2c0.2-1,0.4-1.9,0.5-2.8c0.1-0.4,0.1-0.8,0.2-1.2 c0-0.4,0.1-0.7,0.1-1.1c0.1-0.7,0.1-1.2,0.2-1.7C90,50.5,90,50,90,50s0,0.5,0,1.4c0,0.5,0,1,0,1.7c0,0.3,0,0.7,0,1.1 c0,0.4-0.1,0.8-0.1,1.2c-0.1,0.9-0.2,1.8-0.4,2.8c-0.2,1-0.5,2.1-0.7,3.3c-0.3,1.2-0.8,2.4-1.2,3.7c-0.2,0.7-0.5,1.3-0.8,1.9 c-0.3,0.7-0.6,1.3-0.9,2c-0.3,0.7-0.7,1.3-1.1,2c-0.4,0.7-0.7,1.4-1.2,2c-1,1.3-1.9,2.7-3.1,4c-2.2,2.7-5,5-8.1,7.1 c-0.8,0.5-1.6,1-2.4,1.5c-0.8,0.5-1.7,0.9-2.6,1.3L66,87.7l-1.4,0.5c-0.9,0.3-1.8,0.7-2.8,1c-3.8,1.1-7.9,1.7-11.8,1.8L47,90.8 c-1,0-2-0.2-3-0.3l-1.5-0.2l-0.7-0.1L41.1,90c-1-0.3-1.9-0.5-2.9-0.7c-0.9-0.3-1.9-0.7-2.8-1L34,87.7l-1.3-0.6 c-0.9-0.4-1.8-0.8-2.6-1.3c-0.8-0.5-1.6-1-2.4-1.5c-3.1-2.1-5.9-4.5-8.1-7.1c-1.2-1.2-2.1-2.7-3.1-4c-0.5-0.6-0.8-1.4-1.2-2 c-0.4-0.7-0.8-1.3-1.1-2c-0.3-0.7-0.6-1.3-0.9-2c-0.3-0.7-0.6-1.3-0.8-1.9c-0.4-1.3-0.9-2.5-1.2-3.7c-0.3-1.2-0.5-2.3-0.7-3.3 c-0.2-1-0.3-2-0.4-2.8c-0.1-0.4-0.1-0.8-0.1-1.2c0-0.4,0-0.7,0-1.1c0-0.7,0-1.2,0-1.7C10,50.5,10,50,10,50z" fill="#59ebff" filter="url(#uil-ring-shadow)"><animateTransform
class="bk"
/><defs><filter id="uil-ring-shadow" x="-100%" y="-100%" width="300%" height="300%"><feOffset result="offOut" in="SourceGraphic" dx="0" dy="0" /><feGaussianBlur result="blurOut" in="offOut" stdDeviation="0" /><feBlend in="SourceGraphic" in2="blurOut" mode="normal" /></filter></defs><path d="M10,50c0,0,0,0.5,0.1,1.4c0,0.5,0.1,1,0.2,1.7c0,0.3,0.1,0.7,0.1,1.1c0.1,0.4,0.1,0.8,0.2,1.2c0.2,0.8,0.3,1.8,0.5,2.8 c0.3,1,0.6,2.1,0.9,3.2c0.3,1.1,0.9,2.3,1.4,3.5c0.5,1.2,1.2,2.4,1.8,3.7c0.3,0.6,0.8,1.2,1.2,1.9c0.4,0.6,0.8,1.3,1.3,1.9 c1,1.2,1.9,2.6,3.1,3.7c2.2,2.5,5,4.7,7.9,6.7c3,2,6.5,3.4,10.1,4.6c3.6,1.1,7.5,1.5,11.2,1.6c4-0.1,7.7-0.6,11.3-1.6 c3.6-1.2,7-2.6,10-4.6c3-2,5.8-4.2,7.9-6.7c1.2-1.2,2.1-2.5,3.1-3.7c0.5-0.6,0.9-1.3,1.3-1.9c0.4-0.6,0.8-1.3,1.2-1.9 c0.6-1.3,1.3-2.5,1.8-3.7c0.5-1.2,1-2.4,1.4-3.5c0.3-1.1,0.6-2.2,0.9-3.2c0.2-1,0.4-1.9,0.5-2.8c0.1-0.4,0.1-0.8,0.2-1.2 c0-0.4,0.1-0.7,0.1-1.1c0.1-0.7,0.1-1.2,0.2-1.7C90,50.5,90,50,90,50s0,0.5,0,1.4c0,0.5,0,1,0,1.7c0,0.3,0,0.7,0,1.1 c0,0.4-0.1,0.8-0.1,1.2c-0.1,0.9-0.2,1.8-0.4,2.8c-0.2,1-0.5,2.1-0.7,3.3c-0.3,1.2-0.8,2.4-1.2,3.7c-0.2,0.7-0.5,1.3-0.8,1.9 c-0.3,0.7-0.6,1.3-0.9,2c-0.3,0.7-0.7,1.3-1.1,2c-0.4,0.7-0.7,1.4-1.2,2c-1,1.3-1.9,2.7-3.1,4c-2.2,2.7-5,5-8.1,7.1 c-0.8,0.5-1.6,1-2.4,1.5c-0.8,0.5-1.7,0.9-2.6,1.3L66,87.7l-1.4,0.5c-0.9,0.3-1.8,0.7-2.8,1c-3.8,1.1-7.9,1.7-11.8,1.8L47,90.8 c-1,0-2-0.2-3-0.3l-1.5-0.2l-0.7-0.1L41.1,90c-1-0.3-1.9-0.5-2.9-0.7c-0.9-0.3-1.9-0.7-2.8-1L34,87.7l-1.3-0.6 c-0.9-0.4-1.8-0.8-2.6-1.3c-0.8-0.5-1.6-1-2.4-1.5c-3.1-2.1-5.9-4.5-8.1-7.1c-1.2-1.2-2.1-2.7-3.1-4c-0.5-0.6-0.8-1.4-1.2-2 c-0.4-0.7-0.8-1.3-1.1-2c-0.3-0.7-0.6-1.3-0.9-2c-0.3-0.7-0.6-1.3-0.8-1.9c-0.4-1.3-0.9-2.5-1.2-3.7c-0.3-1.2-0.5-2.3-0.7-3.3 c-0.2-1-0.3-2-0.4-2.8c-0.1-0.4-0.1-0.8-0.1-1.2c0-0.4,0-0.7,0-1.1c0-0.7,0-1.2,0-1.7C10,50.5,10,50,10,50z" fill="#59ebff" filter="url(#uil-ring-shadow)"><animateTransform
attributeName="transform"
type="rotate"
from="0 50 50"
to="360 50 50"
repeatCount="indefinite"
dur="1s"/></path></svg>
dur="1s"
/></path></svg>
</div>
</template>

View File

@ -1,5 +1,7 @@
<template>
<p v-html="data"/>
<p>
{{ data }}
</p>
</template>
<script>

View File

@ -3,7 +3,7 @@
<h1>Nuxt Chat</h1>
<transition-group name="list" tag="ul">
<li v-for="(message, index) in messages" :key="index">
<component :is="message.component" :data="message.data"/>
<component :is="message.component" :data="message.data" />
</li>
</transition-group>
</div>

View File

@ -3,7 +3,7 @@
<h1>Nuxt Chat</h1>
<transition-group name="list" tag="ul">
<li v-for="(message, index) in messages" :key="index">
<component :is="message.component" :data="message.data"/>
<component :is="message.component" :data="message.data" />
</li>
</transition-group>
</div>

View File

@ -1,7 +1,7 @@
<template>
<div class="dark">
<div class="mobile-banner">Mobile website</div>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -19,7 +19,7 @@
</nav>
</div>
</header>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,5 +1,7 @@
<template>
<p v-html="data"/>
<p>
{{ data }}
</p>
</template>
<script>

View File

@ -1,6 +1,6 @@
<template>
<div>
<h1>Secondary Layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -8,7 +8,7 @@
<transition :name="transitionName" mode="out-in">
<ul :key="page">
<li v-for="user in users" :key="user.id">
<img :src="user.avatar" class="avatar" >
<img :src="user.avatar" class="avatar">
<span>{{ user.first_name }} {{ user.last_name }}</span>
</li>
</ul>

View File

@ -7,7 +7,7 @@
<a v-else class="disabled">Next &gt;</a>
<ul>
<li v-for="user in users" :key="user.id">
<img :src="user.avatar" class="avatar" >
<img :src="user.avatar" class="avatar">
<span>{{ user.first_name }} {{ user.last_name }}</span>
</li>
</ul>

View File

@ -1,5 +1,5 @@
<template>
<span v-if="false"/>
<span v-if="false" />
</template>
<script>

View File

@ -2,7 +2,7 @@
<div class="container">
<h1>About page</h1>
<p>Check the source code to see the custom meta tags added with our custom component <code>twitter-head-card</code></p>
<twitter-head-card/>
<twitter-head-card />
<p><nuxt-link to="/">Home page</nuxt-link></p>
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<nuxt/>
<visits/>
<nuxt />
<visits />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<p class="p">
<slot/>
<slot />
</p>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div class="main">
<h1 class="title">{{ title }}</h1>
<slot/>
<slot />
</div>
</template>

View File

@ -5,7 +5,7 @@
<v-p>This is an example of a componentized blog post</v-p>
</post>
<v-hr/>
<v-hr />
<post title="My second blog post">
<v-p>Hello there</v-p>
@ -13,7 +13,7 @@
<v-p>Wa-hoo!</v-p>
</post>
<v-hr/>
<v-hr />
<post title="The final blog post">
<v-p>C'est la fin !</v-p>
@ -29,8 +29,8 @@ const vHr = { render: h => h('hr', { class: 'hr' }) }
export default {
components: {
Post,
vP,
vHr
'v-p': vP,
'v-hr': vHr
}
}
</script>

View File

@ -9,7 +9,7 @@
</ul>
</div>
<div class="right">
<nuxt-child :key="$route.params.id"/>
<nuxt-child :key="$route.params.id" />
</div>
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="container">
<img :src="thumbnailUrl" >
<img :src="thumbnailUrl">
<p><nuxt-link to="/">Home</nuxt-link> - About</p>
</div>
</template>

View File

@ -3,7 +3,7 @@
<h1>Parent</h1>
Checkout
<nuxt-link to="/parent/blue">Blue page</nuxt-link>
<nuxt-child/>
<nuxt-child />
</div>
</template>

View File

@ -7,7 +7,7 @@
<a v-else class="disabled">Next &gt;</a>
<ul>
<li v-for="user in users" :key="user.id">
<img :src="user.avatar" class="avatar" >
<img :src="user.avatar" class="avatar">
<span>{{ user.first_name }} {{ user.last_name }}</span>
</li>
</ul>

View File

@ -9,7 +9,7 @@
<nuxt-link to="/about/contact">Contact</nuxt-link>
</li>
</ul>
<nuxt-child/>
<nuxt-child />
<nuxt-link to="/">Home page</nuxt-link>
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div class="child">
<h1>Contact</h1>
<div class="spacer" style="width: 100%; height: 3000px; background: grey"/>
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div class="child">
<h1>Profile</h1>
<div class="spacer" style="width: 100%; height: 3000px; background: grey"/>
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
</div>
</template>

View File

@ -5,6 +5,6 @@
<p><nuxt-link to="/users">Lists of users</nuxt-link></p>
<p><nuxt-link to="/long">Long page</nuxt-link></p>
<p><nuxt-link to="/long#anchor">Long page #anchor</nuxt-link></p>
<div class="spacer" style="width: 100%; height: 3000px; background: grey"/>
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
</div>
</template>

View File

@ -7,7 +7,7 @@
<a v-else class="disabled">Next &gt;</a>
<ul>
<li v-for="user in users" :key="user.id">
<img :src="user.avatar" class="avatar" >
<img :src="user.avatar" class="avatar">
<span>{{ user.first_name }} {{ user.last_name }}</span>
</li>
</ul>

View File

@ -1,6 +1,6 @@
<template>
<div class="container">
<img src="~static/nuxt-black.png" >
<img src="~static/nuxt-black.png">
<h2>Thank you for testing nuxt.js</h2>
<p>Loaded from the {{ name }}</p>
<p><nuxt-link to="/">Back home</nuxt-link></p>

View File

@ -1,6 +1,6 @@
<template>
<div class="container">
<img src="nuxt.png" >
<img src="nuxt.png">
<h2>Hello World.</h2>
<p><nuxt-link to="/about">About</nuxt-link></p>
</div>

View File

@ -1,5 +1,5 @@
<template>
<button :style="{color: color, borderColor: color}" :class="{rounded: rounded}" class="wr-button" @click="handleClick"><slot/>!</button>
<button :style="{color: color, borderColor: color}" :class="{rounded: rounded}" class="wr-button" @click="handleClick"><slot />!</button>
</template>
<script>

View File

@ -7,7 +7,7 @@
app
>
<v-list dense>
<v-list-group v-for="item in items" :value="item.active" :key="item.title">
<v-list-group v-for="item in items" :key="item.title" :value="item.active">
<v-list-tile slot="item">
<v-list-tile-action>
<v-icon>{{ item.action }}</v-icon>
@ -32,7 +32,7 @@
</v-navigation-drawer>
<v-toolbar app fixed clipped-left>
<v-toolbar-side-icon @click.stop="drawer = !drawer"/>
<v-toolbar-side-icon @click.stop="drawer = !drawer" />
<v-toolbar-title>Application</v-toolbar-title>
</v-toolbar>
<v-content>
@ -40,7 +40,7 @@
<v-layout row wrap>
<v-flex xs12>
<v-card dark color="primary">
<v-card-text class="px-0"><slot/></v-card-text>
<v-card-text class="px-0"><slot /></v-card-text>
</v-card>
</v-flex>
</v-layout></v-container>

View File

@ -1,9 +1,9 @@
<template>
<div class="VueToNuxtLogo">
<div class="Triangle Triangle--two"/>
<div class="Triangle Triangle--one"/>
<div class="Triangle Triangle--three"/>
<div class="Triangle Triangle--four"/>
<div class="Triangle Triangle--two" />
<div class="Triangle Triangle--one" />
<div class="Triangle Triangle--three" />
<div class="Triangle Triangle--four" />
</div>
</template>

View File

@ -12,7 +12,8 @@
class="link"
href="https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate"
target="_blank"
rel="noopener noreferrer">
rel="noopener noreferrer"
>
vuetify-storyboard-boilerplate
</a>
</p>

View File

@ -1,36 +1,36 @@
<template>
<v-app dark>
<v-navigation-drawer
v-model="drawer"
:mini-variant="miniVariant"
:clipped="clipped"
v-model="drawer"
fixed
app
>
<v-list>
<v-list-tile
v-for="(item, i) in items"
:to="item.to"
:key="i"
:to="item.to"
router
exact
>
<v-list-tile-action>
<v-icon v-html="item.icon"/>
<v-icon>{{ item.icon }}</v-icon>
</v-list-tile-action>
<v-list-tile-content>
<v-list-tile-title v-text="item.title"/>
<v-list-tile-title v-text="item.title" />
</v-list-tile-content>
</v-list-tile>
</v-list>
</v-navigation-drawer>
<v-toolbar :clipped-left="clipped" fixed app>
<v-toolbar-side-icon @click="drawer = !drawer"/>
<v-toolbar-side-icon @click="drawer = !drawer" />
<v-btn
icon
@click.stop="miniVariant = !miniVariant"
>
<v-icon v-html="miniVariant ? 'chevron_right' : 'chevron_left'"/>
<v-icon>{{ miniVariant ? 'chevron_right' : 'chevron_left' }}</v-icon>
</v-btn>
<v-btn
icon
@ -44,8 +44,8 @@
>
<v-icon>remove</v-icon>
</v-btn>
<v-toolbar-title v-text="title"/>
<v-spacer/>
<v-toolbar-title v-text="title" />
<v-spacer />
<v-btn
icon
@click.stop="rightDrawer = !rightDrawer"
@ -59,8 +59,8 @@
</v-container>
</v-content>
<v-navigation-drawer
:right="right"
v-model="rightDrawer"
:right="right"
temporary
fixed
>

View File

@ -13,7 +13,7 @@
},
"dependencies": {
"chart.js": "^2.7.1",
"nuxt": "latest",
"nuxt-edge": "latest",
"vue-chartjs": "^3.1.1",
"vuetify": "1.0.0-beta.5"
},

View File

@ -2,8 +2,8 @@
<v-layout column justify-center align-center>
<v-flex xs12 sm8 md6>
<div class="text-xs-center">
<logo/>
<vuetify-logo/>
<logo />
<vuetify-logo />
</div>
<v-card>
<v-card-title class="headline">Welcome to the Vuetify + Nuxt.js template</v-card-title>
@ -22,7 +22,7 @@
<a href="https://github.com/nuxt/nuxt.js" target="_blank">Nuxt GitHub</a>
</v-card-text>
<v-card-actions>
<v-spacer/>
<v-spacer />
<v-btn color="primary" flat nuxt to="/inspire">Continue</v-btn>
</v-card-actions>
</v-card>

View File

@ -1,11 +1,11 @@
<template>
<!-- See https://tailwindcss.com/docs/container -->
<div class="container mx-auto">
<nuxt/>
<nuxt />
<a href="https://github.com/nuxt/nuxt.js/tree/dev/examples/tailwindcss" class="inline-flex items-center no-underline mt-4 rounded-full border border-grey-light bg-grey-lightest text-xs text-grey-darkest font-semibold p-2">
<span class="inline-flex rounded-full mr-1">
<svg class="h-4 w-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.73.084-.73 1.205.085 1.838 1.237 1.838 1.237 1.07 1.835 2.81 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.136-.303-.54-1.523.104-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.137 3 .404 2.28-1.552 3.285-1.23 3.285-1.23.644 1.653.24 2.873.12 3.176.764.84 1.23 1.91 1.23 3.22 0 4.61-2.806 5.625-5.476 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.824.57 4.8-1.574 8.236-6.074 8.236-11.37 0-6.626-5.373-12-12-12"/>
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.73.084-.73 1.205.085 1.838 1.237 1.838 1.237 1.07 1.835 2.81 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.136-.303-.54-1.523.104-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.137 3 .404 2.28-1.552 3.285-1.23 3.285-1.23.644 1.653.24 2.873.12 3.176.764.84 1.23 1.91 1.23 3.22 0 4.61-2.806 5.625-5.476 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.824.57 4.8-1.574 8.236-6.074 8.236-11.37 0-6.626-5.373-12-12-12" />
</svg>
</span>
<span>Source code</span>

View File

@ -1,6 +1,6 @@
<template>
<div class="ba b--black-20 mw5 ma2">
<img :src="'https://robots.johnlindquist.com/' + person.first_name + '_' + person.last_name" >
<img :src="'https://robots.johnlindquist.com/' + person.first_name + '_' + person.last_name">
<div class="flex flex-column items-center pa2 b--black-20">
<div class="f4">{{ person.first_name }} {{ person.last_name }}</div>
<button class="w-100 bg-blue dim mv2 pv2 bn pointer" @click="select(person.id)">Select</button>

View File

@ -1,5 +1,5 @@
<template>
<div class="container">
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -7,7 +7,7 @@
</div>
<div class="flex flex-wrap ph2 justify-between bg-white-80">
<div v-for="person in people" :key="person.id">
<Card :person="person"/>
<Card :person="person" />
</div>
</div>
</section>

View File

@ -1,5 +1,5 @@
<template>
<div class="uk-container">
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,8 +1,8 @@
<template>
<div class="uk-card uk-card-body">
<p>Hi from {{ name }}</p>
<span class="uk-margin-small-right" uk-icon="icon: check"/>
<a href="#" uk-icon="icon: heart"/>
<span class="uk-margin-small-right" uk-icon="icon: check" />
<a href="#" uk-icon="icon: heart" />
<hr class="uk-divider-icon">
<nuxt-link to="/">Home page</nuxt-link>
</div>

View File

@ -4,7 +4,7 @@
<li><nuxt-link to="/">Activity</nuxt-link></li>
<li><nuxt-link to="/contributors">Contributors</nuxt-link></li>
</ul>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="doughnut-chart">
<doughnut-chart :data="doughnutChartData" :options="{ legend: { display: false }, maintainAspectRatio: false }"/>
<doughnut-chart :data="doughnutChartData" :options="{ legend: { display: false }, maintainAspectRatio: false }" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div class="bar-chart">
<bar-chart :data="barChartData" :options="{ maintainAspectRatio: false }"/>
<bar-chart :data="barChartData" :options="{ maintainAspectRatio: false }" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<p/><h3>Index Module</h3>
<p /><h3>Index Module</h3>
<button @click="increment">{{ counter }}</button>
<br>
<nuxt-link to="/about">About</nuxt-link>

View File

@ -1,9 +1,9 @@
<template>
<div class="VueToNuxtLogo">
<div class="Triangle Triangle--two"/>
<div class="Triangle Triangle--one"/>
<div class="Triangle Triangle--three"/>
<div class="Triangle Triangle--four"/>
<div class="Triangle Triangle--two" />
<div class="Triangle Triangle--one" />
<div class="Triangle Triangle--three" />
<div class="Triangle Triangle--four" />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<section class="container">
<div>
<app-logo/>
<app-logo />
<h1 class="title">
web-worker
</h1>
@ -18,21 +18,26 @@
<a
:class="needWorkerSetup ? 'hidden' : 'visible'"
class="button button--green"
@click="test">Test Worker</a>
@click="test"
>Test Worker</a>
<a
:class="needWorkerSetup ? 'hidden' : 'visible'"
class="button button--green"
@click="long(4000)">Execute long running Worker</a>
@click="long(4000)"
>Execute long running Worker</a>
<a
:class="needWorkerSetup || !longRunningWorkers.length ? 'hidden' : 'visible'"
class="button button--green"
@click="freeWorker">Free long running Worker</a>
@click="freeWorker"
>Free long running Worker</a>
<a
class="button button--grey"
@click="removeWorker">Remove Web Worker</a>
@click="removeWorker"
>Remove Web Worker</a>
<a
class="button button--grey"
@click="createWorkers">Create more Workers</a>
@click="createWorkers"
>Create more Workers</a>
</div>
</div>
</section>

View File

@ -1,8 +1,8 @@
<template>
<div>
<h1>The Dog</h1>
<byline author="Meow Meow Fuzzyface"/>
<amp-img src="/dog.jpg" width="470" height="350" layout="responsive" alt="Woof"/>
<byline author="Meow Meow Fuzzyface" />
<amp-img src="/dog.jpg" width="470" height="350" layout="responsive" alt="Woof" />
<p class="caption">Woooooooooooof</p>
<p>Go to <a href="/">the cat</a>.</p>
<p>Wafer donut candy soufflé lemon drops icing. Marzipan gummi bears pie danish lollipop pudding powder gummi bears sweet. Pie sweet roll sweet roll topping chocolate bar dragée pudding chocolate cake. Croissant sweet chocolate bar cheesecake candy canes. Tootsie roll icing macaroon bonbon cupcake apple pie candy canes biscuit candy canes. Jujubes jelly liquorice toffee gingerbread. Candy tootsie roll macaroon chocolate bar icing sugar plum pie. Icing gummies chocolate bar chocolate marzipan bonbon cookie chocolate tart. Caramels danish halvah croissant. Cheesecake cookie tootsie roll ice cream. Powder dessert carrot cake muffin tiramisu lemon drops liquorice topping brownie. Soufflé chocolate cake croissant cupcake jelly.</p>

View File

@ -1,8 +1,8 @@
<template>
<div>
<h1>The Cat</h1>
<byline author="Dan Zajdband"/>
<amp-img src="/cat.jpg" width="470" height="350" layout="responsive" alt="Meow"/>
<byline author="Dan Zajdband" />
<amp-img src="/cat.jpg" width="470" height="350" layout="responsive" alt="Meow" />
<p class="caption">Meowwwwwwww</p>
<p>Go to <a href="/dog">the dog</a>.</p>
<p>Cat ipsum dolor sit amet, eat grass, throw it back up but refuse to leave cardboard box or groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked!. Hide from vacuum cleaner. Chirp at birds chew foot chase the pig around the house and meoooow!. Chase ball of string climb a tree, wait for a fireman jump to fireman then scratch his face claw drapes, for meow to be let in yet attack dog, run away and pretend to be victim meow loudly just to annoy owners. Touch water with paw then recoil in horror hide when guests come over, and tuxedo cats always looking dapper so has closed eyes but still sees you or a nice warm laptop for me to sit on pee in human's bed until he cleans the litter box. Steal the warm chair right after you get up cat not kitten around yet claws in your leg eat all the power cords. Lick sellotape curl into a furry donut immediately regret falling into bathtub or you call this cat food? and fall asleep on the washing machine. Purr for no reason hack up furballs and pelt around the house and up and down stairs chasing phantoms. If it smells like fish eat as much as you wish. Unwrap toilet paper chew iPad power cord white cat sleeps on a black shirt lick the other cats. Lounge in doorway mew. Has closed eyes but still sees you sleep on keyboard, so hunt anything that moves lick sellotape but slap owner's face at 5am until human fills food dish if it smells like fish eat as much as you wish. Meow to be let in find empty spot in cupboard and sleep all day and thug cat sit by the fire burrow under covers always hungry. Swat at dog hide when guests come over purrrrrr chew on cable so mark territory, yet howl on top of tall thing or find something else more interesting. Chase mice kitten is playing with dead mouse. Sit and stare if it fits, i sits. Mark territory damn that dog , but step on your keyboard while you're gaming and then turn in a circle put butt in owner's face human give me attention meow or eat and than sleep on your face. Friends are not food jump around on couch, meow constantly until given food, or walk on car leaving trail of paw prints on hood and windshield, and spread kitty litter all over house, going to catch the red dot today going to catch the red dot today. Jump off balcony, onto stranger's head.</p>

View File

@ -4,7 +4,7 @@
<table>
<thead>
<tr>
<th>Key</th><th>Value</th><th/>
<th>Key</th><th>Value</th><th />
</tr>
</thead>
<tbody>

View File

@ -4,7 +4,7 @@
<span>Element Example</span>
</div>
<div>
<nuxt/>
<nuxt />
</div>
</el-card>
</template>

View File

@ -4,26 +4,26 @@
<el-row type="flex" justify="flex-start">
<el-col :xs="24" :sm="10">
<el-form-item label="Account Name" prop="name" required>
<el-input v-model="account.name"/>
<el-input v-model="account.name" />
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" justify="flex-start">
<el-col :xs="24" :sm="10">
<el-form-item label="Date" prop="date" required>
<el-date-picker v-model="account.date" style="width: 100%;"/>
<el-date-picker v-model="account.date" style="width: 100%;" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="{span: 3, offset: 2}">
<el-form-item label="Subscribe" prop="subscribe">
<el-switch v-model="account.subscribe" on-text="" off-text=""/>
<el-switch v-model="account.subscribe" on-text="" off-text="" />
</el-form-item>
</el-col>
</el-row>
<el-row type="flex" justify="flex-start">
<el-col :xs="24" :sm="10">
<el-form-item label="Rate" prop="rate">
<el-rate v-model="account.rate" :colors="['#99A9BF', '#F7BA2A', '#FF9900']"/>
<el-rate v-model="account.rate" :colors="['#99A9BF', '#F7BA2A', '#FF9900']" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="{span: 10, offset: 2}">

View File

@ -27,7 +27,7 @@ describe('Feathers application tests', function () {
'Accept': 'text/html'
}
}, function (err, res, body) {
assert.equal(res.statusCode, 404)
assert.strictEqual(res.statusCode, 404)
assert.ok(body.indexOf('This page could not be found.') !== -1)
done(err)
})

View File

@ -5,7 +5,7 @@
<h1 @click="$router.push('/')">Nuxt.js + Firebase</h1>
</nav>
</div>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,3 +1,3 @@
<template>
<nuxt keep-alive/>
<nuxt keep-alive />
</template>

View File

@ -16,7 +16,7 @@
</mu-list>
</mu-drawer>
<div class="content">
<mu-raised-button label="Primary" class="demo-raised-button" primary/>
<mu-raised-button label="Primary" class="demo-raised-button" primary />
</div>
</div>
</template>

View File

@ -1,11 +1,11 @@
<template>
<!-- See https://tailwindcss.com/docs/container -->
<div class="container mx-auto">
<nuxt/>
<nuxt />
<a href="https://github.com/nuxt/nuxt.js/tree/dev/examples/with-purgecss" class="inline-flex items-center no-underline mt-4 rounded-full border border-grey-light bg-grey-lightest text-xs text-grey-darkest font-semibold p-2">
<span class="inline-flex rounded-full mr-1">
<svg class="h-4 w-4" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.73.084-.73 1.205.085 1.838 1.237 1.838 1.237 1.07 1.835 2.81 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.136-.303-.54-1.523.104-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.137 3 .404 2.28-1.552 3.285-1.23 3.285-1.23.644 1.653.24 2.873.12 3.176.764.84 1.23 1.91 1.23 3.22 0 4.61-2.806 5.625-5.476 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.824.57 4.8-1.574 8.236-6.074 8.236-11.37 0-6.626-5.373-12-12-12"/>
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.73.084-.73 1.205.085 1.838 1.237 1.838 1.237 1.07 1.835 2.81 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.136-.303-.54-1.523.104-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.4 3-.405 1.02.005 2.04.137 3 .404 2.28-1.552 3.285-1.23 3.285-1.23.644 1.653.24 2.873.12 3.176.764.84 1.23 1.91 1.23 3.22 0 4.61-2.806 5.625-5.476 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.824.57 4.8-1.574 8.236-6.074 8.236-11.37 0-6.626-5.373-12-12-12" />
</svg>
</span>
<span>Source code</span>

View File

@ -9,7 +9,7 @@
</li>
</ul>
</div>
<input v-model="message" class="inputMessage" type="text" placeholder="Type here..." @keyup.enter="sendMessage" >
<input v-model="message" class="inputMessage" type="text" placeholder="Type here..." @keyup.enter="sendMessage">
</li>
</ul>
</div>

View File

@ -17,7 +17,7 @@
<main>
<v-content>
<v-container fluid>
<nuxt/>
<nuxt />
</v-container>
</v-content>
</main>

View File

@ -1,6 +1,6 @@
<template>
<v-carousel>
<v-carousel-item v-for="(src, i) in images" :src="src" :key="i"/>
<v-carousel-item v-for="(src, i) in images" :key="i" :src="src" />
</v-carousel>
</template>

View File

@ -1,5 +1,5 @@
<template>
<div class="uk-container">
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -14,6 +14,6 @@
</vk-dropdown>
</div>
<hr class="uk-divider-icon">
<vk-icon icon="heart"/>
<vk-icon icon="heart" />
</vk-card>
</template>

View File

@ -1,5 +1,5 @@
<template>
<nuxt/>
<nuxt />
</template>
<style>

View File

@ -1,7 +1,7 @@
<template>
<div>
<group title="vux demo">
<cell title="cell" value="click me" is-link @click.native="alert"/>
<cell title="cell" value="click me" is-link @click.native="alert" />
</group>
</div>
</template>

View File

@ -656,7 +656,7 @@ export default class Builder {
.watch(nuxtRestartWatch, this.options.watchers.chokidar)
.on('change', (_path) => {
this.watchers.restart.close()
const {name, ext} = path.parse(_path)
const { name, ext } = path.parse(_path)
this.nuxt.callHook('watch:fileChanged', this, `${name}${ext}`)
})
}

View File

@ -138,16 +138,16 @@
"babel-plugin-dynamic-import-node": "^2.0.0",
"codecov": "^3.0.4",
"cross-env": "^5.2.0",
"eslint": "^4.19.1",
"eslint-config-standard": "^11.0.0",
"eslint-config-standard-jsx": "^5.0.0",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-standard": "^3.1.0",
"eslint-plugin-vue": "^4.5.0",
"eslint": "^5.4.0",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard-jsx": "^6.0.2",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.21.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^5.0.0-beta.3",
"express": "^4.16.2",
"finalhandler": "^1.1.1",
"get-port": "^4.0.0",

View File

@ -1,5 +1,5 @@
<template>
<div/>
<div />
</template>
<style>

View File

@ -5,7 +5,7 @@
<script>
export default {
fetch({ redirect }) {
return redirect({name: 'stateless'})
return redirect({ name: 'stateless' })
}
}
</script>

View File

@ -5,7 +5,7 @@
<script>
export default {
beforeRouteEnter(to, from, next) {
next({path: '/async-data'})
next({ path: '/async-data' })
}
}
</script>

View File

@ -1,6 +1,6 @@
<template>
<div>
<nuxt/>
<nuxt />
<ul>
<li><nuxt-link data-test-id="patch" to="/patch">/patch</nuxt-link></li>
<li><nuxt-link data-test-id="patch-id-1" to="/patch/1">/patch/1</nuxt-link></li>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>I am the {{ name }}</h1>
<nuxt-child/>
<nuxt-child />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>patch: <i data-date-patch>{{ date }}</i></h1>
<nuxt-child/>
<nuxt-child />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h2>_id: <i data-date-id>{{ date }}</i></h2>
<nuxt-child/>
<nuxt-child />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h3>child: <i data-date-child>{{ date }}</i></h3>
<nuxt-child/>
<nuxt-child />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<nuxt/>
<nuxt />
<p>I have custom layouts directory</p>
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<main>
<nuxt/>
<nuxt />
</main>
</template>

View File

@ -2,6 +2,6 @@
<div>
Custom layout
<br>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -2,6 +2,6 @@
<div>
Default layout
<br>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<async-test/>
<async-test />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<test/>
<test />
</div>
</template>

View File

@ -6,7 +6,7 @@
import { nextId } from '@/lib/db'
export default {
fetch({store}) {
fetch({ store }) {
// We use store just as a shared reference
store.__id = nextId()
}

View File

@ -1,6 +1,6 @@
<template>
<div>
<h1>Custom env layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<h1>Custom layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>Default layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>Default desktop layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div>
<h1>Default mobile layout</h1>
<nuxt/>
<nuxt />
</div>
</template>

View File

@ -55,7 +55,7 @@ describe('basic ssr csp', () => {
test(
'Contain Content-Security-Policy-Report-Only header, when explicitly asked for',
async () => {
nuxt = await startCspDevServer({reportOnly: true})
nuxt = await startCspDevServer({ reportOnly: true })
const { headers } = await rp(url('/stateless'), {
resolveWithFullResponse: true
})
@ -186,7 +186,7 @@ describe('basic ssr csp', () => {
test(
'Contain Content-Security-Policy header, when explicitly asked for',
async () => {
nuxt = await startCspDevServer({reportOnly: false})
nuxt = await startCspDevServer({ reportOnly: false })
const { headers } = await rp(url('/stateless'), {
resolveWithFullResponse: true
})

View File

@ -8,7 +8,7 @@ let nuxt = null
describe('dist options', () => {
beforeAll(async () => {
const options = await loadFixture('basic')
nuxt = new Nuxt(Object.assign(options, {dev: false}))
nuxt = new Nuxt(Object.assign(options, { dev: false }))
port = await getPort()
await nuxt.listen(port, '0.0.0.0')
})

View File

@ -15,7 +15,7 @@ let generator = null
describe('fallback generate', () => {
beforeAll(async () => {
const config = await loadFixture('basic', {generate: {dir: '.nuxt-generate-fallback'}})
const config = await loadFixture('basic', { generate: { dir: '.nuxt-generate-fallback' } })
nuxt = new Nuxt(config)
generator = new Generator(nuxt)

View File

@ -148,7 +148,7 @@ describe('with-config', () => {
window.scrollTo = () => {}
window._virtualConsole.emit('jsdomError', new Error('test'))
}),
virtualConsole: new jsdom.VirtualConsole().sendTo({error: fakeErrorLog})
virtualConsole: new jsdom.VirtualConsole().sendTo({ error: fakeErrorLog })
}
try {
await nuxt.renderAndGetWindow(url('/test/error'), mockOptions)

Some files were not shown because too many files have changed in this diff Show More