mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
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:
parent
fa01cd76ff
commit
b11e9c0e51
@ -96,6 +96,6 @@ const errorHandler = (err, instance) => {
|
|||||||
.then(() => !oldInstance && nuxt.showReady(false))
|
.then(() => !oldInstance && nuxt.showReady(false))
|
||||||
.then(() => builder.watchServer())
|
.then(() => builder.watchServer())
|
||||||
// Handle errors
|
// Handle errors
|
||||||
.catch(err => errorHandler(err, {builder, nuxt}))
|
.catch(err => errorHandler(err, { builder, nuxt }))
|
||||||
)
|
)
|
||||||
})()
|
})()
|
||||||
|
@ -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>
|
<a href="https://github.com/nuxt/nuxt.js/tree/dev/examples/async-component-injection" target="_blank"><img src="~/assets/img/github.png"></a>
|
||||||
</p>
|
</p>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<component :is="component"/>
|
<component :is="component" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
<form v-if="!$store.state.authUser" @submit.prevent="login">
|
<form v-if="!$store.state.authUser" @submit.prevent="login">
|
||||||
<p v-if="formError" class="error">{{ formError }}</p>
|
<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><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>Username: <input v-model="formUsername" type="text" name="username"></p>
|
||||||
<p>Password: <input v-model="formPassword" type="password" name="password" ></p>
|
<p>Password: <input v-model="formPassword" type="password" name="password"></p>
|
||||||
<button type="submit">Login</button>
|
<button type="submit">Login</button>
|
||||||
</form>
|
</form>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Dog</h1>
|
<h1>Dog</h1>
|
||||||
<img :src="dog" >
|
<img :src="dog">
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="VueToNuxtLogo">
|
<div class="VueToNuxtLogo">
|
||||||
<div class="Triangle Triangle--two"/>
|
<div class="Triangle Triangle--two" />
|
||||||
<div class="Triangle Triangle--one"/>
|
<div class="Triangle Triangle--one" />
|
||||||
<div class="Triangle Triangle--three"/>
|
<div class="Triangle Triangle--three" />
|
||||||
<div class="Triangle Triangle--four"/>
|
<div class="Triangle Triangle--four" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<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>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>
|
<p>In the source code, the files generated are based on the build.filenames data.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="dark">
|
<div class="dark">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<img src="logo.png">
|
<img src="logo.png">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<img v-if="loaded" :src="data" alt="image" >
|
<img v-if="loaded" :src="data" alt="image">
|
||||||
<svg
|
<svg
|
||||||
v-else
|
v-else
|
||||||
width="60px"
|
width="60px"
|
||||||
@ -8,19 +8,22 @@
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
viewBox="0 0 100 100"
|
viewBox="0 0 100 100"
|
||||||
preserveAspectRatio="xMidYMid"
|
preserveAspectRatio="xMidYMid"
|
||||||
class="uil-ring"><rect
|
class="uil-ring"
|
||||||
x="0"
|
><rect
|
||||||
y="0"
|
x="0"
|
||||||
width="100"
|
y="0"
|
||||||
height="100"
|
width="100"
|
||||||
fill="none"
|
height="100"
|
||||||
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
|
fill="none"
|
||||||
attributeName="transform"
|
class="bk"
|
||||||
type="rotate"
|
/><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
|
||||||
from="0 50 50"
|
attributeName="transform"
|
||||||
to="360 50 50"
|
type="rotate"
|
||||||
repeatCount="indefinite"
|
from="0 50 50"
|
||||||
dur="1s"/></path></svg>
|
to="360 50 50"
|
||||||
|
repeatCount="indefinite"
|
||||||
|
dur="1s"
|
||||||
|
/></path></svg>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<p v-html="data"/>
|
<p>
|
||||||
|
{{ data }}
|
||||||
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<h1>Nuxt Chat</h1>
|
<h1>Nuxt Chat</h1>
|
||||||
<transition-group name="list" tag="ul">
|
<transition-group name="list" tag="ul">
|
||||||
<li v-for="(message, index) in messages" :key="index">
|
<li v-for="(message, index) in messages" :key="index">
|
||||||
<component :is="message.component" :data="message.data"/>
|
<component :is="message.component" :data="message.data" />
|
||||||
</li>
|
</li>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<h1>Nuxt Chat</h1>
|
<h1>Nuxt Chat</h1>
|
||||||
<transition-group name="list" tag="ul">
|
<transition-group name="list" tag="ul">
|
||||||
<li v-for="(message, index) in messages" :key="index">
|
<li v-for="(message, index) in messages" :key="index">
|
||||||
<component :is="message.component" :data="message.data"/>
|
<component :is="message.component" :data="message.data" />
|
||||||
</li>
|
</li>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="dark">
|
<div class="dark">
|
||||||
<div class="mobile-banner">Mobile website</div>
|
<div class="mobile-banner">Mobile website</div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<p v-html="data"/>
|
<p>
|
||||||
|
{{ data }}
|
||||||
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Secondary Layout</h1>
|
<h1>Secondary Layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<transition :name="transitionName" mode="out-in">
|
<transition :name="transitionName" mode="out-in">
|
||||||
<ul :key="page">
|
<ul :key="page">
|
||||||
<li v-for="user in users" :key="user.id">
|
<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>
|
<span>{{ user.first_name }} {{ user.last_name }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<a v-else class="disabled">Next ></a>
|
<a v-else class="disabled">Next ></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="user in users" :key="user.id">
|
<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>
|
<span>{{ user.first_name }} {{ user.last_name }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<span v-if="false"/>
|
<span v-if="false" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>About page</h1>
|
<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>
|
<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>
|
<p><nuxt-link to="/">Home page</nuxt-link></p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
<visits/>
|
<visits />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<p class="p">
|
<p class="p">
|
||||||
<slot/>
|
<slot />
|
||||||
</p>
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<h1 class="title">{{ title }}</h1>
|
<h1 class="title">{{ title }}</h1>
|
||||||
<slot/>
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<v-p>This is an example of a componentized blog post</v-p>
|
<v-p>This is an example of a componentized blog post</v-p>
|
||||||
</post>
|
</post>
|
||||||
|
|
||||||
<v-hr/>
|
<v-hr />
|
||||||
|
|
||||||
<post title="My second blog post">
|
<post title="My second blog post">
|
||||||
<v-p>Hello there</v-p>
|
<v-p>Hello there</v-p>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<v-p>Wa-hoo!</v-p>
|
<v-p>Wa-hoo!</v-p>
|
||||||
</post>
|
</post>
|
||||||
|
|
||||||
<v-hr/>
|
<v-hr />
|
||||||
|
|
||||||
<post title="The final blog post">
|
<post title="The final blog post">
|
||||||
<v-p>C'est la fin !</v-p>
|
<v-p>C'est la fin !</v-p>
|
||||||
@ -29,8 +29,8 @@ const vHr = { render: h => h('hr', { class: 'hr' }) }
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Post,
|
Post,
|
||||||
vP,
|
'v-p': vP,
|
||||||
vHr
|
'v-hr': vHr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<nuxt-child :key="$route.params.id"/>
|
<nuxt-child :key="$route.params.id" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img :src="thumbnailUrl" >
|
<img :src="thumbnailUrl">
|
||||||
<p><nuxt-link to="/">Home</nuxt-link> - About</p>
|
<p><nuxt-link to="/">Home</nuxt-link> - About</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<h1>Parent</h1>
|
<h1>Parent</h1>
|
||||||
Checkout
|
Checkout
|
||||||
<nuxt-link to="/parent/blue">Blue page</nuxt-link>
|
<nuxt-link to="/parent/blue">Blue page</nuxt-link>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<a v-else class="disabled">Next ></a>
|
<a v-else class="disabled">Next ></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="user in users" :key="user.id">
|
<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>
|
<span>{{ user.first_name }} {{ user.last_name }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<nuxt-link to="/about/contact">Contact</nuxt-link>
|
<nuxt-link to="/about/contact">Contact</nuxt-link>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
<nuxt-link to="/">Home page</nuxt-link>
|
<nuxt-link to="/">Home page</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="child">
|
<div class="child">
|
||||||
<h1>Contact</h1>
|
<h1>Contact</h1>
|
||||||
<div class="spacer" style="width: 100%; height: 3000px; background: grey"/>
|
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="child">
|
<div class="child">
|
||||||
<h1>Profile</h1>
|
<h1>Profile</h1>
|
||||||
<div class="spacer" style="width: 100%; height: 3000px; background: grey"/>
|
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
<p><nuxt-link to="/users">Lists of users</nuxt-link></p>
|
<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">Long page</nuxt-link></p>
|
||||||
<p><nuxt-link to="/long#anchor">Long page #anchor</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<a v-else class="disabled">Next ></a>
|
<a v-else class="disabled">Next ></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="user in users" :key="user.id">
|
<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>
|
<span>{{ user.first_name }} {{ user.last_name }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img src="~static/nuxt-black.png" >
|
<img src="~static/nuxt-black.png">
|
||||||
<h2>Thank you for testing nuxt.js</h2>
|
<h2>Thank you for testing nuxt.js</h2>
|
||||||
<p>Loaded from the {{ name }}</p>
|
<p>Loaded from the {{ name }}</p>
|
||||||
<p><nuxt-link to="/">Back home</nuxt-link></p>
|
<p><nuxt-link to="/">Back home</nuxt-link></p>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<img src="nuxt.png" >
|
<img src="nuxt.png">
|
||||||
<h2>Hello World.</h2>
|
<h2>Hello World.</h2>
|
||||||
<p><nuxt-link to="/about">About</nuxt-link></p>
|
<p><nuxt-link to="/about">About</nuxt-link></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
app
|
app
|
||||||
>
|
>
|
||||||
<v-list dense>
|
<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 slot="item">
|
||||||
<v-list-tile-action>
|
<v-list-tile-action>
|
||||||
<v-icon>{{ item.action }}</v-icon>
|
<v-icon>{{ item.action }}</v-icon>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
<v-toolbar app fixed clipped-left>
|
<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-title>Application</v-toolbar-title>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
<v-content>
|
<v-content>
|
||||||
@ -40,7 +40,7 @@
|
|||||||
<v-layout row wrap>
|
<v-layout row wrap>
|
||||||
<v-flex xs12>
|
<v-flex xs12>
|
||||||
<v-card dark color="primary">
|
<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-card>
|
||||||
</v-flex>
|
</v-flex>
|
||||||
</v-layout></v-container>
|
</v-layout></v-container>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="VueToNuxtLogo">
|
<div class="VueToNuxtLogo">
|
||||||
<div class="Triangle Triangle--two"/>
|
<div class="Triangle Triangle--two" />
|
||||||
<div class="Triangle Triangle--one"/>
|
<div class="Triangle Triangle--one" />
|
||||||
<div class="Triangle Triangle--three"/>
|
<div class="Triangle Triangle--three" />
|
||||||
<div class="Triangle Triangle--four"/>
|
<div class="Triangle Triangle--four" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
class="link"
|
class="link"
|
||||||
href="https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate"
|
href="https://github.com/white-rabbit-japan/vuetify-storyboard-boilerplate"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer">
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
vuetify-storyboard-boilerplate
|
vuetify-storyboard-boilerplate
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -1,36 +1,36 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app dark>
|
<v-app dark>
|
||||||
<v-navigation-drawer
|
<v-navigation-drawer
|
||||||
|
v-model="drawer"
|
||||||
:mini-variant="miniVariant"
|
:mini-variant="miniVariant"
|
||||||
:clipped="clipped"
|
:clipped="clipped"
|
||||||
v-model="drawer"
|
|
||||||
fixed
|
fixed
|
||||||
app
|
app
|
||||||
>
|
>
|
||||||
<v-list>
|
<v-list>
|
||||||
<v-list-tile
|
<v-list-tile
|
||||||
v-for="(item, i) in items"
|
v-for="(item, i) in items"
|
||||||
:to="item.to"
|
|
||||||
:key="i"
|
:key="i"
|
||||||
|
:to="item.to"
|
||||||
router
|
router
|
||||||
exact
|
exact
|
||||||
>
|
>
|
||||||
<v-list-tile-action>
|
<v-list-tile-action>
|
||||||
<v-icon v-html="item.icon"/>
|
<v-icon>{{ item.icon }}</v-icon>
|
||||||
</v-list-tile-action>
|
</v-list-tile-action>
|
||||||
<v-list-tile-content>
|
<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-content>
|
||||||
</v-list-tile>
|
</v-list-tile>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
<v-toolbar :clipped-left="clipped" fixed app>
|
<v-toolbar :clipped-left="clipped" fixed app>
|
||||||
<v-toolbar-side-icon @click="drawer = !drawer"/>
|
<v-toolbar-side-icon @click="drawer = !drawer" />
|
||||||
<v-btn
|
<v-btn
|
||||||
icon
|
icon
|
||||||
@click.stop="miniVariant = !miniVariant"
|
@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>
|
||||||
<v-btn
|
<v-btn
|
||||||
icon
|
icon
|
||||||
@ -44,8 +44,8 @@
|
|||||||
>
|
>
|
||||||
<v-icon>remove</v-icon>
|
<v-icon>remove</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-toolbar-title v-text="title"/>
|
<v-toolbar-title v-text="title" />
|
||||||
<v-spacer/>
|
<v-spacer />
|
||||||
<v-btn
|
<v-btn
|
||||||
icon
|
icon
|
||||||
@click.stop="rightDrawer = !rightDrawer"
|
@click.stop="rightDrawer = !rightDrawer"
|
||||||
@ -59,8 +59,8 @@
|
|||||||
</v-container>
|
</v-container>
|
||||||
</v-content>
|
</v-content>
|
||||||
<v-navigation-drawer
|
<v-navigation-drawer
|
||||||
:right="right"
|
|
||||||
v-model="rightDrawer"
|
v-model="rightDrawer"
|
||||||
|
:right="right"
|
||||||
temporary
|
temporary
|
||||||
fixed
|
fixed
|
||||||
>
|
>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chart.js": "^2.7.1",
|
"chart.js": "^2.7.1",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-chartjs": "^3.1.1",
|
"vue-chartjs": "^3.1.1",
|
||||||
"vuetify": "1.0.0-beta.5"
|
"vuetify": "1.0.0-beta.5"
|
||||||
},
|
},
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<v-layout column justify-center align-center>
|
<v-layout column justify-center align-center>
|
||||||
<v-flex xs12 sm8 md6>
|
<v-flex xs12 sm8 md6>
|
||||||
<div class="text-xs-center">
|
<div class="text-xs-center">
|
||||||
<logo/>
|
<logo />
|
||||||
<vuetify-logo/>
|
<vuetify-logo />
|
||||||
</div>
|
</div>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="headline">Welcome to the Vuetify + Nuxt.js template</v-card-title>
|
<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>
|
<a href="https://github.com/nuxt/nuxt.js" target="_blank">Nuxt GitHub</a>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-spacer/>
|
<v-spacer />
|
||||||
<v-btn color="primary" flat nuxt to="/inspire">Continue</v-btn>
|
<v-btn color="primary" flat nuxt to="/inspire">Continue</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- See https://tailwindcss.com/docs/container -->
|
<!-- See https://tailwindcss.com/docs/container -->
|
||||||
<div class="container mx-auto">
|
<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">
|
<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">
|
<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">
|
<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>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span>Source code</span>
|
<span>Source code</span>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ba b--black-20 mw5 ma2">
|
<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="flex flex-column items-center pa2 b--black-20">
|
||||||
<div class="f4">{{ person.first_name }} {{ person.last_name }}</div>
|
<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>
|
<button class="w-100 bg-blue dim mv2 pv2 bn pointer" @click="select(person.id)">Select</button>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap ph2 justify-between bg-white-80">
|
<div class="flex flex-wrap ph2 justify-between bg-white-80">
|
||||||
<div v-for="person in people" :key="person.id">
|
<div v-for="person in people" :key="person.id">
|
||||||
<Card :person="person"/>
|
<Card :person="person" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="uk-container">
|
<div class="uk-container">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="uk-card uk-card-body">
|
<div class="uk-card uk-card-body">
|
||||||
<p>Hi from {{ name }}</p>
|
<p>Hi from {{ name }}</p>
|
||||||
<span class="uk-margin-small-right" uk-icon="icon: check"/>
|
<span class="uk-margin-small-right" uk-icon="icon: check" />
|
||||||
<a href="#" uk-icon="icon: heart"/>
|
<a href="#" uk-icon="icon: heart" />
|
||||||
<hr class="uk-divider-icon">
|
<hr class="uk-divider-icon">
|
||||||
<nuxt-link to="/">Home page</nuxt-link>
|
<nuxt-link to="/">Home page</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<li><nuxt-link to="/">Activity</nuxt-link></li>
|
<li><nuxt-link to="/">Activity</nuxt-link></li>
|
||||||
<li><nuxt-link to="/contributors">Contributors</nuxt-link></li>
|
<li><nuxt-link to="/contributors">Contributors</nuxt-link></li>
|
||||||
</ul>
|
</ul>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="doughnut-chart">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="bar-chart">
|
<div class="bar-chart">
|
||||||
<bar-chart :data="barChartData" :options="{ maintainAspectRatio: false }"/>
|
<bar-chart :data="barChartData" :options="{ maintainAspectRatio: false }" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p/><h3>Index Module</h3>
|
<p /><h3>Index Module</h3>
|
||||||
<button @click="increment">{{ counter }}</button>
|
<button @click="increment">{{ counter }}</button>
|
||||||
<br>
|
<br>
|
||||||
<nuxt-link to="/about">About</nuxt-link>
|
<nuxt-link to="/about">About</nuxt-link>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="VueToNuxtLogo">
|
<div class="VueToNuxtLogo">
|
||||||
<div class="Triangle Triangle--two"/>
|
<div class="Triangle Triangle--two" />
|
||||||
<div class="Triangle Triangle--one"/>
|
<div class="Triangle Triangle--one" />
|
||||||
<div class="Triangle Triangle--three"/>
|
<div class="Triangle Triangle--three" />
|
||||||
<div class="Triangle Triangle--four"/>
|
<div class="Triangle Triangle--four" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="container">
|
<section class="container">
|
||||||
<div>
|
<div>
|
||||||
<app-logo/>
|
<app-logo />
|
||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
web-worker
|
web-worker
|
||||||
</h1>
|
</h1>
|
||||||
@ -18,21 +18,26 @@
|
|||||||
<a
|
<a
|
||||||
:class="needWorkerSetup ? 'hidden' : 'visible'"
|
:class="needWorkerSetup ? 'hidden' : 'visible'"
|
||||||
class="button button--green"
|
class="button button--green"
|
||||||
@click="test">Test Worker</a>
|
@click="test"
|
||||||
|
>Test Worker</a>
|
||||||
<a
|
<a
|
||||||
:class="needWorkerSetup ? 'hidden' : 'visible'"
|
:class="needWorkerSetup ? 'hidden' : 'visible'"
|
||||||
class="button button--green"
|
class="button button--green"
|
||||||
@click="long(4000)">Execute long running Worker</a>
|
@click="long(4000)"
|
||||||
|
>Execute long running Worker</a>
|
||||||
<a
|
<a
|
||||||
:class="needWorkerSetup || !longRunningWorkers.length ? 'hidden' : 'visible'"
|
:class="needWorkerSetup || !longRunningWorkers.length ? 'hidden' : 'visible'"
|
||||||
class="button button--green"
|
class="button button--green"
|
||||||
@click="freeWorker">Free long running Worker</a>
|
@click="freeWorker"
|
||||||
|
>Free long running Worker</a>
|
||||||
<a
|
<a
|
||||||
class="button button--grey"
|
class="button button--grey"
|
||||||
@click="removeWorker">Remove Web Worker</a>
|
@click="removeWorker"
|
||||||
|
>Remove Web Worker</a>
|
||||||
<a
|
<a
|
||||||
class="button button--grey"
|
class="button button--grey"
|
||||||
@click="createWorkers">Create more Workers</a>
|
@click="createWorkers"
|
||||||
|
>Create more Workers</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>The Dog</h1>
|
<h1>The Dog</h1>
|
||||||
<byline author="Meow Meow Fuzzyface"/>
|
<byline author="Meow Meow Fuzzyface" />
|
||||||
<amp-img src="/dog.jpg" width="470" height="350" layout="responsive" alt="Woof"/>
|
<amp-img src="/dog.jpg" width="470" height="350" layout="responsive" alt="Woof" />
|
||||||
<p class="caption">Woooooooooooof</p>
|
<p class="caption">Woooooooooooof</p>
|
||||||
<p>Go to <a href="/">the cat</a>.</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>
|
<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>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>The Cat</h1>
|
<h1>The Cat</h1>
|
||||||
<byline author="Dan Zajdband"/>
|
<byline author="Dan Zajdband" />
|
||||||
<amp-img src="/cat.jpg" width="470" height="350" layout="responsive" alt="Meow"/>
|
<amp-img src="/cat.jpg" width="470" height="350" layout="responsive" alt="Meow" />
|
||||||
<p class="caption">Meowwwwwwww</p>
|
<p class="caption">Meowwwwwwww</p>
|
||||||
<p>Go to <a href="/dog">the dog</a>.</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>
|
<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>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Key</th><th>Value</th><th/>
|
<th>Key</th><th>Value</th><th />
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<span>Element Example</span>
|
<span>Element Example</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
@ -4,26 +4,26 @@
|
|||||||
<el-row type="flex" justify="flex-start">
|
<el-row type="flex" justify="flex-start">
|
||||||
<el-col :xs="24" :sm="10">
|
<el-col :xs="24" :sm="10">
|
||||||
<el-form-item label="Account Name" prop="name" required>
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row type="flex" justify="flex-start">
|
<el-row type="flex" justify="flex-start">
|
||||||
<el-col :xs="24" :sm="10">
|
<el-col :xs="24" :sm="10">
|
||||||
<el-form-item label="Date" prop="date" required>
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="{span: 3, offset: 2}">
|
<el-col :xs="24" :sm="{span: 3, offset: 2}">
|
||||||
<el-form-item label="Subscribe" prop="subscribe">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row type="flex" justify="flex-start">
|
<el-row type="flex" justify="flex-start">
|
||||||
<el-col :xs="24" :sm="10">
|
<el-col :xs="24" :sm="10">
|
||||||
<el-form-item label="Rate" prop="rate">
|
<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-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="{span: 10, offset: 2}">
|
<el-col :xs="24" :sm="{span: 10, offset: 2}">
|
||||||
|
@ -27,7 +27,7 @@ describe('Feathers application tests', function () {
|
|||||||
'Accept': 'text/html'
|
'Accept': 'text/html'
|
||||||
}
|
}
|
||||||
}, function (err, res, body) {
|
}, 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)
|
assert.ok(body.indexOf('This page could not be found.') !== -1)
|
||||||
done(err)
|
done(err)
|
||||||
})
|
})
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h1 @click="$router.push('/')">Nuxt.js + Firebase</h1>
|
<h1 @click="$router.push('/')">Nuxt.js + Firebase</h1>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<template>
|
<template>
|
||||||
<nuxt keep-alive/>
|
<nuxt keep-alive />
|
||||||
</template>
|
</template>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</mu-list>
|
</mu-list>
|
||||||
</mu-drawer>
|
</mu-drawer>
|
||||||
<div class="content">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- See https://tailwindcss.com/docs/container -->
|
<!-- See https://tailwindcss.com/docs/container -->
|
||||||
<div class="container mx-auto">
|
<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">
|
<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">
|
<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">
|
<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>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span>Source code</span>
|
<span>Source code</span>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<main>
|
<main>
|
||||||
<v-content>
|
<v-content>
|
||||||
<v-container fluid>
|
<v-container fluid>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-content>
|
</v-content>
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-carousel>
|
<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>
|
</v-carousel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="uk-container">
|
<div class="uk-container">
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -14,6 +14,6 @@
|
|||||||
</vk-dropdown>
|
</vk-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<hr class="uk-divider-icon">
|
<hr class="uk-divider-icon">
|
||||||
<vk-icon icon="heart"/>
|
<vk-icon icon="heart" />
|
||||||
</vk-card>
|
</vk-card>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<group title="vux demo">
|
<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>
|
</group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -656,7 +656,7 @@ export default class Builder {
|
|||||||
.watch(nuxtRestartWatch, this.options.watchers.chokidar)
|
.watch(nuxtRestartWatch, this.options.watchers.chokidar)
|
||||||
.on('change', (_path) => {
|
.on('change', (_path) => {
|
||||||
this.watchers.restart.close()
|
this.watchers.restart.close()
|
||||||
const {name, ext} = path.parse(_path)
|
const { name, ext } = path.parse(_path)
|
||||||
this.nuxt.callHook('watch:fileChanged', this, `${name}${ext}`)
|
this.nuxt.callHook('watch:fileChanged', this, `${name}${ext}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
20
package.json
20
package.json
@ -138,16 +138,16 @@
|
|||||||
"babel-plugin-dynamic-import-node": "^2.0.0",
|
"babel-plugin-dynamic-import-node": "^2.0.0",
|
||||||
"codecov": "^3.0.4",
|
"codecov": "^3.0.4",
|
||||||
"cross-env": "^5.2.0",
|
"cross-env": "^5.2.0",
|
||||||
"eslint": "^4.19.1",
|
"eslint": "^5.4.0",
|
||||||
"eslint-config-standard": "^11.0.0",
|
"eslint-config-standard": "^12.0.0",
|
||||||
"eslint-config-standard-jsx": "^5.0.0",
|
"eslint-config-standard-jsx": "^6.0.2",
|
||||||
"eslint-plugin-import": "^2.12.0",
|
"eslint-plugin-import": "^2.14.0",
|
||||||
"eslint-plugin-jest": "^21.17.0",
|
"eslint-plugin-jest": "^21.21.0",
|
||||||
"eslint-plugin-node": "^6.0.0",
|
"eslint-plugin-node": "^7.0.1",
|
||||||
"eslint-plugin-promise": "^3.8.0",
|
"eslint-plugin-promise": "^4.0.0",
|
||||||
"eslint-plugin-react": "^7.8.2",
|
"eslint-plugin-react": "^7.11.1",
|
||||||
"eslint-plugin-standard": "^3.1.0",
|
"eslint-plugin-standard": "^4.0.0",
|
||||||
"eslint-plugin-vue": "^4.5.0",
|
"eslint-plugin-vue": "^5.0.0-beta.3",
|
||||||
"express": "^4.16.2",
|
"express": "^4.16.2",
|
||||||
"finalhandler": "^1.1.1",
|
"finalhandler": "^1.1.1",
|
||||||
"get-port": "^4.0.0",
|
"get-port": "^4.0.0",
|
||||||
|
2
test/fixtures/basic/pages/extractCSS.vue
vendored
2
test/fixtures/basic/pages/extractCSS.vue
vendored
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div/>
|
<div />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
2
test/fixtures/basic/pages/redirect-name.vue
vendored
2
test/fixtures/basic/pages/redirect-name.vue
vendored
@ -5,7 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
fetch({ redirect }) {
|
fetch({ redirect }) {
|
||||||
return redirect({name: 'stateless'})
|
return redirect({ name: 'stateless' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
2
test/fixtures/basic/pages/router-guard.vue
vendored
2
test/fixtures/basic/pages/router-guard.vue
vendored
@ -5,7 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
next({path: '/async-data'})
|
next({ path: '/async-data' })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
2
test/fixtures/children/layouts/patch.vue
vendored
2
test/fixtures/children/layouts/patch.vue
vendored
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
<ul>
|
<ul>
|
||||||
<li><nuxt-link data-test-id="patch" to="/patch">/patch</nuxt-link></li>
|
<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>
|
<li><nuxt-link data-test-id="patch-id-1" to="/patch/1">/patch/1</nuxt-link></li>
|
||||||
|
2
test/fixtures/children/pages/parent.vue
vendored
2
test/fixtures/children/pages/parent.vue
vendored
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>I am the {{ name }}</h1>
|
<h1>I am the {{ name }}</h1>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/children/pages/patch.vue
vendored
2
test/fixtures/children/pages/patch.vue
vendored
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>patch: <i data-date-patch>{{ date }}</i></h1>
|
<h1>patch: <i data-date-patch>{{ date }}</i></h1>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/children/pages/patch/_id.vue
vendored
2
test/fixtures/children/pages/patch/_id.vue
vendored
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h2>_id: <i data-date-id>{{ date }}</i></h2>
|
<h2>_id: <i data-date-id>{{ date }}</i></h2>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h3>child: <i data-date-child>{{ date }}</i></h3>
|
<h3>child: <i data-date-child>{{ date }}</i></h3>
|
||||||
<nuxt-child/>
|
<nuxt-child />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
<p>I have custom layouts directory</p>
|
<p>I have custom layouts directory</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/spa/layouts/custom.vue
vendored
2
test/fixtures/spa/layouts/custom.vue
vendored
@ -2,6 +2,6 @@
|
|||||||
<div>
|
<div>
|
||||||
Custom layout
|
Custom layout
|
||||||
<br>
|
<br>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
2
test/fixtures/spa/layouts/default.vue
vendored
2
test/fixtures/spa/layouts/default.vue
vendored
@ -2,6 +2,6 @@
|
|||||||
<div>
|
<div>
|
||||||
Default layout
|
Default layout
|
||||||
<br>
|
<br>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
2
test/fixtures/ssr/pages/asyncComponent.vue
vendored
2
test/fixtures/ssr/pages/asyncComponent.vue
vendored
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<async-test/>
|
<async-test />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/ssr/pages/component.vue
vendored
2
test/fixtures/ssr/pages/component.vue
vendored
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<test/>
|
<test />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
2
test/fixtures/ssr/pages/fetch.vue
vendored
2
test/fixtures/ssr/pages/fetch.vue
vendored
@ -6,7 +6,7 @@
|
|||||||
import { nextId } from '@/lib/db'
|
import { nextId } from '@/lib/db'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
fetch({store}) {
|
fetch({ store }) {
|
||||||
// We use store just as a shared reference
|
// We use store just as a shared reference
|
||||||
store.__id = nextId()
|
store.__id = nextId()
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Custom env layout</h1>
|
<h1>Custom env layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
2
test/fixtures/with-config/layouts/custom.vue
vendored
2
test/fixtures/with-config/layouts/custom.vue
vendored
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Custom layout</h1>
|
<h1>Custom layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Default layout</h1>
|
<h1>Default layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Default desktop layout</h1>
|
<h1>Default desktop layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>Default mobile layout</h1>
|
<h1>Default mobile layout</h1>
|
||||||
<nuxt/>
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ describe('basic ssr csp', () => {
|
|||||||
test(
|
test(
|
||||||
'Contain Content-Security-Policy-Report-Only header, when explicitly asked for',
|
'Contain Content-Security-Policy-Report-Only header, when explicitly asked for',
|
||||||
async () => {
|
async () => {
|
||||||
nuxt = await startCspDevServer({reportOnly: true})
|
nuxt = await startCspDevServer({ reportOnly: true })
|
||||||
const { headers } = await rp(url('/stateless'), {
|
const { headers } = await rp(url('/stateless'), {
|
||||||
resolveWithFullResponse: true
|
resolveWithFullResponse: true
|
||||||
})
|
})
|
||||||
@ -186,7 +186,7 @@ describe('basic ssr csp', () => {
|
|||||||
test(
|
test(
|
||||||
'Contain Content-Security-Policy header, when explicitly asked for',
|
'Contain Content-Security-Policy header, when explicitly asked for',
|
||||||
async () => {
|
async () => {
|
||||||
nuxt = await startCspDevServer({reportOnly: false})
|
nuxt = await startCspDevServer({ reportOnly: false })
|
||||||
const { headers } = await rp(url('/stateless'), {
|
const { headers } = await rp(url('/stateless'), {
|
||||||
resolveWithFullResponse: true
|
resolveWithFullResponse: true
|
||||||
})
|
})
|
||||||
|
@ -8,7 +8,7 @@ let nuxt = null
|
|||||||
describe('dist options', () => {
|
describe('dist options', () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const options = await loadFixture('basic')
|
const options = await loadFixture('basic')
|
||||||
nuxt = new Nuxt(Object.assign(options, {dev: false}))
|
nuxt = new Nuxt(Object.assign(options, { dev: false }))
|
||||||
port = await getPort()
|
port = await getPort()
|
||||||
await nuxt.listen(port, '0.0.0.0')
|
await nuxt.listen(port, '0.0.0.0')
|
||||||
})
|
})
|
||||||
|
@ -15,7 +15,7 @@ let generator = null
|
|||||||
|
|
||||||
describe('fallback generate', () => {
|
describe('fallback generate', () => {
|
||||||
beforeAll(async () => {
|
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)
|
nuxt = new Nuxt(config)
|
||||||
generator = new Generator(nuxt)
|
generator = new Generator(nuxt)
|
||||||
|
@ -148,7 +148,7 @@ describe('with-config', () => {
|
|||||||
window.scrollTo = () => {}
|
window.scrollTo = () => {}
|
||||||
window._virtualConsole.emit('jsdomError', new Error('test'))
|
window._virtualConsole.emit('jsdomError', new Error('test'))
|
||||||
}),
|
}),
|
||||||
virtualConsole: new jsdom.VirtualConsole().sendTo({error: fakeErrorLog})
|
virtualConsole: new jsdom.VirtualConsole().sendTo({ error: fakeErrorLog })
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await nuxt.renderAndGetWindow(url('/test/error'), mockOptions)
|
await nuxt.renderAndGetWindow(url('/test/error'), mockOptions)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user