Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
os-circular-fashion-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fibasile
os-circular-fashion-ng
Commits
ebfc9a99
Commit
ebfc9a99
authored
5 years ago
by
fibasile
Browse files
Options
Downloads
Patches
Plain Diff
added toolbar categories link
parent
d4abcf1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/TopToolbar.vue
+15
-50
15 additions, 50 deletions
src/components/TopToolbar.vue
with
15 additions
and
50 deletions
src/components/TopToolbar.vue
+
15
−
50
View file @
ebfc9a99
<
template
>
<q-toolbar
class=
"bg-white text-grey-6 no-border"
flat
>
<q-btn
flat
dense
round
@
click=
"toogleDrawer"
aria-label=
"Menu"
v-if=
"hasDrawer"
>
<q-toolbar
class=
"bg-white text-grey-6 no-border"
flat
>
<q-btn
flat
dense
round
@
click=
"toogleDrawer"
aria-label=
"Menu"
v-if=
"hasDrawer"
>
<q-icon
name=
"menu"
/>
</q-btn>
<q-toolbar-title>
<div
class=
"flex items-center"
>
<router-link
to=
"/"
>
<q-img
src=
"/statics/600x600fabr.png"
class=
"logo-img"
/>
<q-img
src=
"/statics/600x600fabr.png"
class=
"logo-img"
/>
</router-link>
<div
class=
"text-logo"
>
<span
class=
"text-open"
>
Open
-
source
</span>
...
...
@@ -29,45 +16,20 @@
</div>
</q-toolbar-title>
<q-space
/>
<q-btn
flat
label=
"Browse"
icon-right=
"arrow_drop_down"
class=
"q-ml-md gt-sm"
>
<q-btn
flat
label=
"Browse"
icon-right=
"arrow_drop_down"
class=
"q-ml-md gt-sm"
>
<q-menu>
<q-list
style=
"min-width: 80px"
>
<q-item
clickable
v-close-popup
v-for=
"cat,idx in categories"
:key=
"idx"
>
<q-item
clickable
v-close-popup
v-for=
"cat,idx in categories"
:key=
"idx"
>
<q-item-section>
{{
cat
.
label
}}
</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-btn>
<q-btn
flat
to=
"/collections"
class=
"gt-sm"
>
Collections
</q-btn>
<q-btn
flat
to=
"/account/projects/new"
class=
"gt-sm"
>
Upload a project
</q-btn>
<q-btn
flat
to=
"/collections"
class=
"gt-sm"
>
Collections
</q-btn>
<q-btn
flat
to=
"/account/projects/new"
class=
"gt-sm"
>
Upload a project
</q-btn>
<q-btn
to=
"/login"
flat
v-if=
"!user"
>
Sign in
</q-btn>
<UserPopupMenu
@
logout=
"handleLogout"
:user=
"user"
/>
<q-btn
to=
"/login"
flat
v-if=
"!user"
>
Sign in
</q-btn>
<UserPopupMenu
@
logout=
"handleLogout"
:user=
"user"
/>
<!--
<div>
Quasar v
{{
$q
.
version
}}
</div>
-->
</q-toolbar>
</
template
>
...
...
@@ -81,17 +43,20 @@ export default {
UserPopupMenu
},
props
:
[
"
hasDrawer
"
,
"
user
"
],
data
()
{
data
()
{
return
{};
},
methods
:
{
...
mapActions
({
loadCategories
:
"
categories/loadAll
"
}),
toogleDrawer
()
{
toogleDrawer
()
{
this
.
$emit
(
"
toggle
"
);
},
handleLogout
()
{
handleLogout
()
{
this
.
$emit
(
"
logout
"
);
}
},
computed
:
{
...
mapGetters
({
categories
:
"
categories/categories
"
})
}
};
</
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment