-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from DesignByOnyx/master
chore: create layouts folder, move static assets from feathers to nuxt
- Loading branch information
Showing
8 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<section> | ||
<navigation /> | ||
<Nuxt /> | ||
</section> | ||
</template> | ||
|
||
<script> | ||
import Navigation from '../components/navigation'; | ||
export default { | ||
name: 'DefautlLayout', | ||
components: { Navigation }, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<main> | ||
<h1 v-if="error.statusCode === 404">Page not found</h1> | ||
<h1 v-else>An error occurred</h1> | ||
<NuxtLink to="/">Home page</NuxtLink> | ||
</main> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['error'], | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<template> | ||
<section> | ||
<navigation /> | ||
<main> | ||
<h1>Authenticate!</h1> | ||
<form class="auth-form"> | ||
<ul> | ||
|
@@ -9,17 +8,14 @@ | |
</ul> | ||
<button :class="{ 'is-loading': isLoggingIn }" @click.prevent="login">Login</button> or <button :class="{ 'is-loading': isSigningUp }" class="ghost" @click.prevent="signup">Sign up</button> | ||
</form> | ||
</section> | ||
</main> | ||
</template> | ||
|
||
<script> | ||
import { mapActions } from 'vuex'; | ||
import Navigation from '../components/navigation'; | ||
export default { | ||
name: 'Login', | ||
components: { Navigation }, | ||
data() { | ||
return { | ||
email: '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
<template> | ||
<section> | ||
<navigation /> | ||
<main> | ||
<h1>Feathers + Nuxt</h1> | ||
<p>This is a <strong>very basic</strong> demo/boilerplate for <code>nuxt</code> + <code>feathers</code> + <code>feathers-vuex</code>.</p> | ||
<p>Use the nav links above to switch between pages. There's a secret page that requires user authentication.</p> | ||
<p>For simplicity's sake, the <code>users</code> service is using NeDB. Feel free to switch to MongoDB, PostgreSQL, or whatever you feel like using.</p> | ||
</section> | ||
</main> | ||
</template> | ||
|
||
<script> | ||
import Navigation from '../components/navigation'; | ||
export default { | ||
name: 'Home', | ||
components: { Navigation } | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters