forked from vue-bulma/vue-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to bulma 0.6 and remove unused things
- Loading branch information
Showing
49 changed files
with
62 additions
and
4,850 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div align="center"> | ||
div align="center"> | ||
<p><img width="200" src="https://github.com/vue-bulma/vue-admin/blob/master/client/assets/[email protected]"></p> | ||
|
||
<h1>Vue Admin</h1> | ||
|
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
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,99 +1,67 @@ | ||
<template> | ||
<section class="hero is-bold app-navbar animated" :class="{ slideInDown: show, slideOutDown: !show }"> | ||
<div class="hero-head"> | ||
<nav class="nav"> | ||
<div class="nav-left"> | ||
<a class="nav-item is-hidden-tablet" @click="toggleSidebar({opened: !sidebar.opened})"> | ||
<i class="fa fa-bars" aria-hidden="true" v-show="!sidebar.hidden"></i> | ||
</a> | ||
</div> | ||
<div class="nav-center"> | ||
<a class="nav-item hero-brand" href="/"> | ||
<img src="~assets/logo.svg" :alt="pkginfo.description"> | ||
<tooltip :label="'v' + pkginfo.version" placement="right" type="success" size="small" :no-animate="true" :always="true" :rounded="true"> | ||
<div class="is-hidden-mobile"> | ||
<span class="vue">Vue</span><strong class="admin">Admin</strong> | ||
</div> | ||
</tooltip> | ||
<nav class="navbar is-fixed-top" id="main-navbar" role="navigation" aria-label="main navigation"> | ||
<div class="navbar-brand"> | ||
<router-link :to="{name: 'dashboard'}"> | ||
<img src="~assets/logo.png" alt="" width="42" class="header-logo"> | ||
</router-link> | ||
|
||
|
||
<button class="button navbar-burger" @click="toggleSidebar({opened: !sidebar.opened})"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</button> | ||
</div> | ||
|
||
<div class="navbar-menu"> | ||
<div class="navbar-start"> | ||
<!-- navbar items --> | ||
</div> | ||
|
||
<div class="navbar-end"> | ||
<div class="navbar-item has-dropdown is-hoverable"> | ||
<a class="navbar-link"> | ||
Usuario | ||
</a> | ||
<div class="navbar-dropdown is-boxed"> | ||
<hr class="navbar-divider"> | ||
<a class="navbar-item">Cerrar sesion</a> | ||
</div> | ||
</div> | ||
<div class="nav-right is-flex"> | ||
<router-link v-if="!$auth.check()" to="/login" class="nav-item">Login</router-link> | ||
<a v-if="$auth.check()" @click="logout" class="nav-item">Logout</a> | ||
<div class="navbar-item"> | ||
|
||
</div> | ||
</nav> | ||
</div> | ||
</div> | ||
</section> | ||
</nav> | ||
</template> | ||
|
||
<script> | ||
import Tooltip from 'vue-bulma-tooltip' | ||
import { mapGetters, mapActions } from 'vuex' | ||
import { mapGetters, mapActions } from 'vuex' | ||
export default { | ||
export default { | ||
components: { | ||
Tooltip | ||
}, | ||
components: { | ||
}, | ||
props: { | ||
show: Boolean | ||
}, | ||
props: { | ||
show: Boolean | ||
}, | ||
computed: mapGetters({ | ||
pkginfo: 'pkg', | ||
sidebar: 'sidebar' | ||
}), | ||
computed: mapGetters({ | ||
sidebar: 'sidebar' | ||
}), | ||
methods: { | ||
...mapActions([ | ||
'toggleSidebar' | ||
]), | ||
logout () { | ||
this.$auth.logout({ | ||
redirect: 'Home', | ||
makeRequest: false | ||
// params: {}, | ||
// success: function () {}, | ||
// error: function () {}, | ||
// etc... | ||
}) | ||
methods: { | ||
...mapActions([ | ||
'toggleSidebar' | ||
]) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '~bulma/sass/utilities/variables'; | ||
.app-navbar { | ||
position: fixed; | ||
min-width: 100%; | ||
z-index: 1024; | ||
box-shadow: 0 2px 3px rgba(17, 17, 17, 0.1), 0 0 0 1px rgba(17, 17, 17, 0.1); | ||
.container { | ||
margin: auto 10px; | ||
} | ||
.nav-right { | ||
align-items: stretch; | ||
align-items: stretch; | ||
flex: 1; | ||
justify-content: flex-end; | ||
overflow: hidden; | ||
overflow-x: auto; | ||
white-space: nowrap; | ||
} | ||
} | ||
.hero-brand { | ||
.vue { | ||
margin-left: 10px; | ||
color: #36AC70; | ||
} | ||
.admin { | ||
color: #28374B; | ||
} | ||
} | ||
<style lang="sass"> | ||
#main-navbar | ||
z-index: 1024 | ||
box-shadow: 1px 1px 1px #ccc | ||
</style> |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.