Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
4cfa118e
Commit
4cfa118e
authored
Feb 09, 2023
by
vietanh-0511
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update navbar ui
parent
a415f7f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
10 deletions
+58
-10
Navbar.vue
components/Navbar.vue
+58
-10
No files found.
components/Navbar.vue
View file @
4cfa118e
<!-- eslint-disable vue/multi-word-component-names -->
<
template
>
<
template
>
<div>
<div>
<v-toolbar
<v-toolbar
...
@@ -10,37 +11,75 @@
...
@@ -10,37 +11,75 @@
<v-toolbar-title>
<v-toolbar-title>
<v-btn
href=
"/users"
>
<v-btn
href=
"/users"
>
<span>
USER
</span>
<span>
USER
</span>
<v-icon
dense
>
mdi-account
</v-icon>
<v-icon
dense
>
mdi-account
</v-icon>
</v-btn>
</v-btn>
<v-btn
href=
"/categories"
>
<v-btn
href=
"/categories"
>
<span>
CATEGORY
</span>
<span>
CATEGORY
</span>
<v-icon
dense
>
mdi-heart
</v-icon>
<v-icon
dense
>
mdi-heart
</v-icon>
</v-btn>
</v-btn>
<v-btn
href=
"/products"
>
<v-btn
href=
"/products"
>
<span>
PRODUCT
</span>
<span>
PRODUCT
</span>
<v-icon
dense
>
mdi-briefcase
</v-icon>
<v-icon
dense
>
mdi-briefcase
</v-icon>
</v-btn>
</v-btn>
<v-btn
href=
"/posts"
>
<v-btn
href=
"/posts"
>
<span>
POST
</span>
<span>
POST
</span>
<v-icon
dense
>
mdi-newspaper
</v-icon>
<v-icon
dense
>
mdi-newspaper
</v-icon>
</v-btn>
</v-btn>
</v-toolbar-title>
</v-toolbar-title>
<v-spacer
/>
<v-spacer
/>
<v-toolbar-title>
{{
$auth
.
$storage
.
getUniversal
(
"
userName
"
)
}}
</v-toolbar-title>
<v-toolbar-title
class=
"profile"
>
{{
$auth
.
$storage
.
getUniversal
(
"
userName
"
)
}}
<v-btn
icon
@
click=
"logout"
>
</v-toolbar-title>
<v-icon>
mdi-export
</v-icon>
<div
class=
"text-center"
>
<v-menu
offset-y
>
<template
#activator
="
{ on, attrs }">
<v-btn
icon
dark
v-bind=
"attrs"
v-on=
"on"
>
<v-icon>
mdi-menu-down
</v-icon>
</v-btn>
</v-btn>
</
template
>
<v-list>
<v-list-item-group
v-model=
"selectedItem"
color=
"primary"
>
<v-list-item
@
click=
"logout()"
>
<v-list-item-icon>
<v-icon>
mdi-logout
</v-icon>
</v-list-item-icon>
<v-list-item-title>
Logout
</v-list-item-title>
</v-list-item>
</v-list-item-group>
</v-list>
</v-menu>
</div>
</v-toolbar>
</v-toolbar>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
export
default
{
export
default
{
methods
:
{
methods
:
{
logout
()
{
logout
()
{
...
@@ -63,3 +102,12 @@ export default {
...
@@ -63,3 +102,12 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.v-toolbar--prominent
:not
(
.v-toolbar--bottom
)
.v-toolbar__title.profile
{
align-self
:
baseline
;
padding-top
:
5px
;
}
.v-application--is-ltr
.v-list-item__action
:first-child
,
.v-application--is-ltr
.v-list-item__icon
:first-child
{
margin-right
:
15px
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment