2016-11-18 18:20:25 +00:00
|
|
|
<template lang="pug">
|
2017-07-11 03:09:31 +00:00
|
|
|
div
|
|
|
|
|
inbox-modal
|
|
|
|
|
nav.navbar.navbar-inverse.fixed-top.navbar-toggleable-sm
|
|
|
|
|
.navbar-header
|
|
|
|
|
.logo.svg-icon(v-html="icons.logo")
|
|
|
|
|
.collapse.navbar-collapse
|
|
|
|
|
ul.navbar-nav.mr-auto
|
|
|
|
|
router-link.nav-item(tag="li", :to="{name: 'tasks'}", exact)
|
|
|
|
|
a.nav-link(v-once) {{ $t('tasks') }}
|
|
|
|
|
router-link.nav-item.dropdown(tag="li", :to="{name: 'items'}", :class="{'active': $route.path.startsWith('/inventory')}")
|
|
|
|
|
a.nav-link(v-once) {{ $t('inventory') }}
|
|
|
|
|
.dropdown-menu
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'items'}", exact) {{ $t('items') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'equipment'}") {{ $t('equipment') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'stable'}") {{ $t('stable') }}
|
2017-07-27 17:41:23 +00:00
|
|
|
router-link.nav-item.dropdown(tag="li", :to="{name: 'market'}", :class="{'active': $route.path.startsWith('/shop')}")
|
2017-07-11 03:09:31 +00:00
|
|
|
a.nav-link(v-once) {{ $t('shops') }}
|
2017-07-27 17:41:23 +00:00
|
|
|
.dropdown-menu
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'market'}", exact) {{ $t('market') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'quests'}") {{ $t('quests') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'seasonal'}") {{ $t('titleSeasonalShop') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'time'}") {{ $t('titleTimeTravelers') }}
|
2017-07-11 03:09:31 +00:00
|
|
|
router-link.nav-item(tag="li", :to="{name: 'party'}")
|
|
|
|
|
a.nav-link(v-once) {{ $t('party') }}
|
|
|
|
|
router-link.nav-item.dropdown(tag="li", :to="{name: 'tavern'}", :class="{'active': $route.path.startsWith('/guilds')}")
|
|
|
|
|
a.nav-link(v-once) {{ $t('guilds') }}
|
|
|
|
|
.dropdown-menu
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'tavern'}") {{ $t('tavern') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'myGuilds'}") {{ $t('myGuilds') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'guildsDiscovery'}") {{ $t('guildsDiscovery') }}
|
2017-07-25 14:24:40 +00:00
|
|
|
router-link.nav-item.dropdown(tag="li", :to="{name: 'groupPlan'}", :class="{'active': $route.path.startsWith('/group-plan')}")
|
|
|
|
|
a.nav-link(v-once) {{ $t('group') }}
|
2017-07-20 20:52:46 +00:00
|
|
|
router-link.nav-item(tag="li", :to="{name: 'myChallenges'}", exact)
|
2017-07-11 03:09:31 +00:00
|
|
|
a.nav-link(v-once) {{ $t('challenges') }}
|
2017-07-31 19:54:52 +00:00
|
|
|
router-link.nav-item.dropdown(tag="li", to="/help", :class="{'active': $route.path.startsWith('/help')}", :to="{name: 'faq'}")
|
2017-07-11 03:09:31 +00:00
|
|
|
a.nav-link(v-once) {{ $t('help') }}
|
|
|
|
|
.dropdown-menu
|
2017-07-20 18:20:53 +00:00
|
|
|
router-link.dropdown-item(:to="{name: 'faq'}") {{ $t('faq') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'overview'}") {{ $t('overview') }}
|
|
|
|
|
router-link.dropdown-item(to="/groups/a29da26b-37de-4a71-b0c6-48e72a900dac") {{ $t('reportBug') }}
|
|
|
|
|
router-link.dropdown-item(to="/groups/5481ccf3-5d2d-48a9-a871-70a7380cee5a") {{ $t('askAQuestion') }}
|
|
|
|
|
a.dropdown-item(href="https://trello.com/c/odmhIqyW/440-read-first-table-of-contents", target='_blank') {{ $t('requestAF') }}
|
|
|
|
|
a.dropdown-item(href="http://habitica.wikia.com/wiki/Contributing_to_Habitica", target='_blank') {{ $t('contributing') }}
|
|
|
|
|
a.dropdown-item(href="http://habitica.wikia.com/wiki", target='_blank') {{ $t('wiki') }}
|
2017-07-11 03:09:31 +00:00
|
|
|
.item-with-icon
|
|
|
|
|
.svg-icon(v-html="icons.gem")
|
|
|
|
|
span {{userGems | roundBigNumber}}
|
|
|
|
|
.item-with-icon
|
|
|
|
|
.svg-icon(v-html="icons.gold")
|
|
|
|
|
span {{user.stats.gp | roundBigNumber}}
|
2017-07-25 14:24:40 +00:00
|
|
|
notification-menu
|
2017-07-11 03:09:31 +00:00
|
|
|
router-link.dropdown.item-with-icon.item-user(:to="{name: 'avatar'}")
|
|
|
|
|
.svg-icon(v-html="icons.user")
|
|
|
|
|
.dropdown-menu.dropdown-menu-right.user-dropdown
|
|
|
|
|
router-link.dropdown-item.edit-avatar(:to="{name: 'avatar'}")
|
|
|
|
|
h3 {{ user.profile.name }}
|
|
|
|
|
span.small-text {{ $t('editAvatar') }}
|
|
|
|
|
a.nav-link.dropdown-item(@click.prevent='showInbox()') {{ $t('inbox') }}
|
2017-07-18 04:18:17 +00:00
|
|
|
router-link.dropdown-item(:to="{name: 'backgrounds'}") {{ $t('backgrounds') }}
|
2017-07-11 03:09:31 +00:00
|
|
|
router-link.dropdown-item(:to="{name: 'stats'}") {{ $t('stats') }}
|
|
|
|
|
router-link.dropdown-item(:to="{name: 'achievements'}") {{ $t('achievements') }}
|
2017-07-18 04:18:17 +00:00
|
|
|
router-link.dropdown-item(:to="{name: 'profile'}") {{ $t('profile') }}
|
2017-07-20 18:01:00 +00:00
|
|
|
router-link.dropdown-item(:to="{name: 'site'}") {{ $t('settings') }}
|
2017-07-11 03:09:31 +00:00
|
|
|
a.nav-link.dropdown-item(to="/", @click.prevent='logout()') {{ $t('logout') }}
|
2016-11-18 18:20:25 +00:00
|
|
|
</template>
|
|
|
|
|
|
2017-03-06 19:09:34 +00:00
|
|
|
<style lang="scss" scoped>
|
2017-06-28 03:53:59 +00:00
|
|
|
@import '~client/assets/scss/colors.scss';
|
|
|
|
|
@import '~client/assets/scss/utils.scss';
|
|
|
|
|
|
|
|
|
|
nav.navbar {
|
|
|
|
|
background: $purple-100 url(~assets/svg/for-css/bits.svg) right no-repeat;
|
|
|
|
|
padding-left: 25px;
|
|
|
|
|
padding-right: 12.5px;
|
|
|
|
|
height: 56px;
|
|
|
|
|
box-shadow: 0 1px 2px 0 rgba($black, 0.24);
|
2017-03-06 19:09:34 +00:00
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.navbar-header {
|
|
|
|
|
margin-right: 48px;
|
|
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
|
width: 128px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
}
|
2017-03-06 19:09:34 +00:00
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.nav-item {
|
2017-03-06 19:09:34 +00:00
|
|
|
.nav-link {
|
2017-06-28 03:53:59 +00:00
|
|
|
font-size: 16px;
|
Client Redesign: Inventory pages, secondary menu, misc css and design items (#8631)
* add colors palette
* add secondary menu component and style it
* add box shadow to secondary menu
* misc css, fixes for secondary menu
* client: add equipment page with grouping, css: add some styles
* add typography
* more equipment
* stable: fix linting
* equipment: add styles (lots of general styles too)
* remove duplicate google fonts loading
* add dropdowns
* design: white search input background, remove gray from items
* start adding drawer and selected indicator
* wip equipment
* fix equipment
* equipment: correctly bind new properties on items.gear.equipped
* equipment: fix vue binding. version 2
* equipment: fix vue binding. version 3
* back to first fix for equip op, fix for sourcemaps, send http request when an item is equipped, load bootstrap-vue components where needed
* checkboxes and radio buttons
* correctly renders selected items in first postion during the first render
* add search
* general changes, constants part of app state, add popovers
* add toggle switch, rename css
* correct offset
* upgrade deps
* upgrade deps
* drawer and lot of other work
* update equipping mechanism
* finish equipment
* fix compilation and upgrade deps
* use v-show in place of v-if to fix ui issues
* v-show -> v-if
* fix linting in test/client
* fix es6 compilation in test/client
* fix babel compilation for tests
* fix groupsUtilities mixin tests
* client: buttons
* client: buttons: fix colors
* client: finish buttons and dropdowns
* upgrade bootstrap-vue, finish buttons and dropdowns
* fix tasks page layout
* misc fixes for buttons
* add textareas
* fix app menu
* add inputs
* fixes for toggleSwitch
* typography
* checkboxes and radio buttons
* add checkbox icon
* fix equip.js
* extract strings to newClient.json
* add Popover above 'Use Costume' / 'Auto Equip' slider - disable item select if costume-mode and 'useCostume' isn't active
* show "you have disabled your costume" error above the drawer items
* check errorMessage for null
* hide star if costume not enabled
* fix errorMessage (!errorMessage seems not to work for string)
* show minimize / expand icon - always centered by css
* drawer test
* drawer: fix centering on large screens
* fix show more button
* add margin when two dropdowns are next to each other
* adjust the page padding based on the drawer, misc fixes
* drawer fixes
2017-05-16 19:09:55 +00:00
|
|
|
color: $white;
|
2017-06-28 03:53:59 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
padding: 16px 24px;
|
|
|
|
|
transition: none;
|
2017-03-06 19:09:34 +00:00
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
&:hover {
|
|
|
|
|
.nav-link {
|
|
|
|
|
color: $white;
|
|
|
|
|
background: $purple-200;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.active:not(:hover) {
|
|
|
|
|
.nav-link {
|
|
|
|
|
box-shadow: 0px -4px 0px $purple-300 inset;
|
|
|
|
|
}
|
2017-03-06 19:09:34 +00:00
|
|
|
}
|
|
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
// Make the dropdown menu open on hover
|
|
|
|
|
.dropdown:hover .dropdown-menu {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-top: 0; // remove the gap so it doesn't close
|
|
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.dropdown + .dropdown {
|
|
|
|
|
margin-left: 0px;
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.dropdown-menu:not(.user-dropdown) {
|
|
|
|
|
background: $purple-200;
|
|
|
|
|
border-radius: 0px;
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
padding: 0px;
|
Client Redesign: Inventory pages, secondary menu, misc css and design items (#8631)
* add colors palette
* add secondary menu component and style it
* add box shadow to secondary menu
* misc css, fixes for secondary menu
* client: add equipment page with grouping, css: add some styles
* add typography
* more equipment
* stable: fix linting
* equipment: add styles (lots of general styles too)
* remove duplicate google fonts loading
* add dropdowns
* design: white search input background, remove gray from items
* start adding drawer and selected indicator
* wip equipment
* fix equipment
* equipment: correctly bind new properties on items.gear.equipped
* equipment: fix vue binding. version 2
* equipment: fix vue binding. version 3
* back to first fix for equip op, fix for sourcemaps, send http request when an item is equipped, load bootstrap-vue components where needed
* checkboxes and radio buttons
* correctly renders selected items in first postion during the first render
* add search
* general changes, constants part of app state, add popovers
* add toggle switch, rename css
* correct offset
* upgrade deps
* upgrade deps
* drawer and lot of other work
* update equipping mechanism
* finish equipment
* fix compilation and upgrade deps
* use v-show in place of v-if to fix ui issues
* v-show -> v-if
* fix linting in test/client
* fix es6 compilation in test/client
* fix babel compilation for tests
* fix groupsUtilities mixin tests
* client: buttons
* client: buttons: fix colors
* client: finish buttons and dropdowns
* upgrade bootstrap-vue, finish buttons and dropdowns
* fix tasks page layout
* misc fixes for buttons
* add textareas
* fix app menu
* add inputs
* fixes for toggleSwitch
* typography
* checkboxes and radio buttons
* add checkbox icon
* fix equip.js
* extract strings to newClient.json
* add Popover above 'Use Costume' / 'Auto Equip' slider - disable item select if costume-mode and 'useCostume' isn't active
* show "you have disabled your costume" error above the drawer items
* check errorMessage for null
* hide star if costume not enabled
* fix errorMessage (!errorMessage seems not to work for string)
* show minimize / expand icon - always centered by css
* drawer test
* drawer: fix centering on large screens
* fix show more button
* add margin when two dropdowns are next to each other
* adjust the page padding based on the drawer, misc fixes
* drawer fixes
2017-05-16 19:09:55 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
|
border-bottom-left-radius: 5px;
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.dropdown-item {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
color: $white;
|
|
|
|
|
border: none;
|
|
|
|
|
line-height: 1.5;
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
&.active {
|
|
|
|
|
background: $purple-300;
|
|
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
&:hover {
|
|
|
|
|
background: $purple-300;
|
Client Redesign: Inventory pages, secondary menu, misc css and design items (#8631)
* add colors palette
* add secondary menu component and style it
* add box shadow to secondary menu
* misc css, fixes for secondary menu
* client: add equipment page with grouping, css: add some styles
* add typography
* more equipment
* stable: fix linting
* equipment: add styles (lots of general styles too)
* remove duplicate google fonts loading
* add dropdowns
* design: white search input background, remove gray from items
* start adding drawer and selected indicator
* wip equipment
* fix equipment
* equipment: correctly bind new properties on items.gear.equipped
* equipment: fix vue binding. version 2
* equipment: fix vue binding. version 3
* back to first fix for equip op, fix for sourcemaps, send http request when an item is equipped, load bootstrap-vue components where needed
* checkboxes and radio buttons
* correctly renders selected items in first postion during the first render
* add search
* general changes, constants part of app state, add popovers
* add toggle switch, rename css
* correct offset
* upgrade deps
* upgrade deps
* drawer and lot of other work
* update equipping mechanism
* finish equipment
* fix compilation and upgrade deps
* use v-show in place of v-if to fix ui issues
* v-show -> v-if
* fix linting in test/client
* fix es6 compilation in test/client
* fix babel compilation for tests
* fix groupsUtilities mixin tests
* client: buttons
* client: buttons: fix colors
* client: finish buttons and dropdowns
* upgrade bootstrap-vue, finish buttons and dropdowns
* fix tasks page layout
* misc fixes for buttons
* add textareas
* fix app menu
* add inputs
* fixes for toggleSwitch
* typography
* checkboxes and radio buttons
* add checkbox icon
* fix equip.js
* extract strings to newClient.json
* add Popover above 'Use Costume' / 'Auto Equip' slider - disable item select if costume-mode and 'useCostume' isn't active
* show "you have disabled your costume" error above the drawer items
* check errorMessage for null
* hide star if costume not enabled
* fix errorMessage (!errorMessage seems not to work for string)
* show minimize / expand icon - always centered by css
* drawer test
* drawer: fix centering on large screens
* fix show more button
* add margin when two dropdowns are next to each other
* adjust the page padding based on the drawer, misc fixes
* drawer fixes
2017-05-16 19:09:55 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
&:last-child {
|
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
|
}
|
Client Redesign: Inventory pages, secondary menu, misc css and design items (#8631)
* add colors palette
* add secondary menu component and style it
* add box shadow to secondary menu
* misc css, fixes for secondary menu
* client: add equipment page with grouping, css: add some styles
* add typography
* more equipment
* stable: fix linting
* equipment: add styles (lots of general styles too)
* remove duplicate google fonts loading
* add dropdowns
* design: white search input background, remove gray from items
* start adding drawer and selected indicator
* wip equipment
* fix equipment
* equipment: correctly bind new properties on items.gear.equipped
* equipment: fix vue binding. version 2
* equipment: fix vue binding. version 3
* back to first fix for equip op, fix for sourcemaps, send http request when an item is equipped, load bootstrap-vue components where needed
* checkboxes and radio buttons
* correctly renders selected items in first postion during the first render
* add search
* general changes, constants part of app state, add popovers
* add toggle switch, rename css
* correct offset
* upgrade deps
* upgrade deps
* drawer and lot of other work
* update equipping mechanism
* finish equipment
* fix compilation and upgrade deps
* use v-show in place of v-if to fix ui issues
* v-show -> v-if
* fix linting in test/client
* fix es6 compilation in test/client
* fix babel compilation for tests
* fix groupsUtilities mixin tests
* client: buttons
* client: buttons: fix colors
* client: finish buttons and dropdowns
* upgrade bootstrap-vue, finish buttons and dropdowns
* fix tasks page layout
* misc fixes for buttons
* add textareas
* fix app menu
* add inputs
* fixes for toggleSwitch
* typography
* checkboxes and radio buttons
* add checkbox icon
* fix equip.js
* extract strings to newClient.json
* add Popover above 'Use Costume' / 'Auto Equip' slider - disable item select if costume-mode and 'useCostume' isn't active
* show "you have disabled your costume" error above the drawer items
* check errorMessage for null
* hide star if costume not enabled
* fix errorMessage (!errorMessage seems not to work for string)
* show minimize / expand icon - always centered by css
* drawer test
* drawer: fix centering on large screens
* fix show more button
* add margin when two dropdowns are next to each other
* adjust the page padding based on the drawer, misc fixes
* drawer fixes
2017-05-16 19:09:55 +00:00
|
|
|
}
|
2017-03-06 19:09:34 +00:00
|
|
|
}
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.item-with-icon {
|
2017-06-08 19:04:19 +00:00
|
|
|
color: $white;
|
2017-06-28 03:53:59 +00:00
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
|
|
|
|
|
.svg-icon {
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.item-notifications, .item-user {
|
|
|
|
|
padding-right: 12.5px;
|
|
|
|
|
padding-left: 12.5px;
|
|
|
|
|
color: $header-color;
|
|
|
|
|
transition: none;
|
2017-06-08 19:04:19 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
&:hover {
|
|
|
|
|
color: $white;
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.svg-icon {
|
|
|
|
|
margin-right: 0px;
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
2017-06-08 19:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
2017-06-28 03:53:59 +00:00
|
|
|
.item-user .edit-avatar {
|
|
|
|
|
h3 {
|
|
|
|
|
color: $gray-10;
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.small-text {
|
|
|
|
|
color: $gray-200;
|
|
|
|
|
font-style: normal;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
padding-bottom: 16px;
|
|
|
|
|
}
|
2016-11-18 18:20:25 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script>
|
2017-03-18 17:33:08 +00:00
|
|
|
import { mapState, mapGetters } from 'client/libs/store';
|
2017-06-08 19:04:19 +00:00
|
|
|
import gemIcon from 'assets/svg/gem.svg';
|
|
|
|
|
import goldIcon from 'assets/svg/gold.svg';
|
|
|
|
|
import userIcon from 'assets/svg/user.svg';
|
|
|
|
|
import logo from 'assets/svg/logo.svg';
|
2017-07-11 03:09:31 +00:00
|
|
|
import InboxModal from './userMenu/inbox.vue';
|
2017-07-25 14:24:40 +00:00
|
|
|
import notificationMenu from './notificationMenu';
|
2016-11-18 18:20:25 +00:00
|
|
|
|
|
|
|
|
export default {
|
2017-07-11 03:09:31 +00:00
|
|
|
components: {
|
|
|
|
|
InboxModal,
|
2017-07-25 14:24:40 +00:00
|
|
|
notificationMenu,
|
2017-07-11 03:09:31 +00:00
|
|
|
},
|
2017-06-08 19:04:19 +00:00
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
icons: Object.freeze({
|
|
|
|
|
gem: gemIcon,
|
|
|
|
|
gold: goldIcon,
|
|
|
|
|
user: userIcon,
|
|
|
|
|
logo,
|
|
|
|
|
}),
|
|
|
|
|
};
|
|
|
|
|
},
|
2016-11-18 18:20:25 +00:00
|
|
|
computed: {
|
2016-12-09 07:01:59 +00:00
|
|
|
...mapGetters({
|
|
|
|
|
userGems: 'user:gems',
|
|
|
|
|
}),
|
2017-03-18 17:33:08 +00:00
|
|
|
...mapState({user: 'user.data'}),
|
2016-11-18 18:20:25 +00:00
|
|
|
},
|
2017-06-28 03:53:59 +00:00
|
|
|
methods: {
|
|
|
|
|
logout () {
|
|
|
|
|
localStorage.removeItem('habit-mobile-settings');
|
|
|
|
|
this.$router.go('/');
|
|
|
|
|
},
|
2017-07-11 03:09:31 +00:00
|
|
|
showInbox () {
|
|
|
|
|
this.$root.$emit('show::modal', 'inbox-modal');
|
|
|
|
|
},
|
2017-06-28 03:53:59 +00:00
|
|
|
},
|
2016-11-18 18:20:25 +00:00
|
|
|
};
|
2017-06-02 20:55:02 +00:00
|
|
|
</script>
|