-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the logo and run Cypress in debug mod
- Loading branch information
1 parent
425d0b3
commit e5e540d
Showing
8 changed files
with
120 additions
and
86 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
This file was deleted.
Oops, something went wrong.
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,58 @@ | ||
<template> | ||
<nav class="navbar is-black" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<nuxt-link class="navbar-item" to="/" data-cy="home-link"> | ||
<strong>govueapp</strong> | ||
</nuxt-link> | ||
|
||
<button class="button navbar-burger"> | ||
<span /> | ||
<span /> | ||
<span /> | ||
</button> | ||
</div> | ||
|
||
<div class="navbar-end"> | ||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> | ||
Menu | ||
</a> | ||
|
||
<div class="navbar-dropdown is-right"> | ||
<nuxt-link class="navbar-item" to="/login"> | ||
Login | ||
</nuxt-link> | ||
<nuxt-link class="navbar-item" to="/about"> | ||
About | ||
</nuxt-link> | ||
<hr class="navbar-divider" /> | ||
<a v-if="isAuthenticated" class="dropdown-item" @click="logout" | ||
>Logout</a | ||
> | ||
<div class="navbar-item"> | ||
v0.5.0 | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters } from 'vuex' | ||
const Cookie = process.client ? require('js-cookie') : undefined | ||
export default { | ||
name: 'Menu', | ||
computed: { | ||
...mapGetters(['isAuthenticated']) | ||
}, | ||
methods: { | ||
logout() { | ||
Cookie.remove('auth') | ||
this.$store.commit('setAuth', null) | ||
this.$router.push('/login') | ||
} | ||
} | ||
} | ||
</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,54 @@ | ||
<template> | ||
<li> | ||
<div class="box"> | ||
<div class="content"> | ||
<div class="editable"> | ||
<input | ||
:id="id" | ||
v-model="imessage" | ||
type="text" | ||
class="input individual-note" | ||
@keyup="$emit('edit', index, id, imessage)" | ||
/> | ||
</div> | ||
</div> | ||
<nav class="level is-mobile"> | ||
<div class="level-left"> | ||
<a class="level-item"> | ||
<span class="icon is-small has-text-danger"> | ||
<i | ||
class="fa fa-trash-o" | ||
data-cy="delete-note-link" | ||
@click="$emit('remove', index, id)" | ||
></i> | ||
</span> | ||
</a> | ||
</div> | ||
</nav> | ||
</div> | ||
</li> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
index: { | ||
type: Number, | ||
required: true | ||
}, | ||
id: { | ||
type: String, | ||
required: true | ||
}, | ||
message: { | ||
type: String, | ||
required: true | ||
} | ||
}, | ||
data() { | ||
return { | ||
imessage: this.message | ||
} | ||
} | ||
} | ||
</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
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
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