Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Site
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Indienet
Site
Commits
5ad57917
Verified
Commit
5ad57917
authored
Mar 07, 2018
by
Aral Balkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: move (mocked) content type filter to its own component
parent
b3f2ee83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
27 deletions
+38
-27
components/contentTypeFilter.vue
components/contentTypeFilter.vue
+32
-0
pages/index.vue
pages/index.vue
+6
-27
No files found.
components/contentTypeFilter.vue
0 → 100644
View file @
5ad57917
<
template
>
<div
class=
'tabs is-toggle is-toggle-rounded is-centered content-filter-toggle'
>
<ul>
<li
class=
'is-active'
>
<a>
<span
class=
'icon is-small'
><i
class=
'fa fa-file'
></i></span>
<span>
Articles
</span>
</a>
</li>
<li>
<a>
<span
class=
'icon is-small'
><i
class=
'fa fa-photo'
></i></span>
<span>
Photos
</span>
</a>
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
/* Nothing yet. */
}
</
script
>
<
style
>
.content-filter-toggle.tabs
{
font-size
:
1.5vmax
;
margin-top
:
-1.5vmax
;
margin-bottom
:
4vmax
;
}
</
style
>
pages/index.vue
View file @
5ad57917
<
template
>
<div>
<!-- Site header -->
<indie
H
eader
@
followButtonPress=
'followModalActive = true'
/>
<indie
-h
eader
@
followButtonPress=
'followModalActive = true'
/>
<!-- Tabs with hard-coded content in first. -->
<b-tabs
position=
"is-centered"
class=
"block"
>
<b-tab-item
label=
"Me"
>
<!-- Filter by content type -->
<div
class=
'tabs is-toggle is-toggle-rounded is-centered content-filter-toggle'
>
<ul>
<li
class=
'is-active'
>
<a>
<span
class=
'icon is-small'
><i
class=
'fa fa-file'
></i></span>
<span>
Articles
</span>
</a>
</li>
<li>
<a>
<span
class=
'icon is-small'
><i
class=
'fa fa-photo'
></i></span>
<span>
Photos
</span>
</a>
</li>
</ul>
</div>
<content-type-filter
/>
<!-- Vue Quill Editor -->
<div
class=
'compose'
>
...
...
@@ -75,7 +60,7 @@
<div
class=
'control'
>
<no-ssr>
<vue-password
v-model=
'password'
classes=
'input'
>
<
template
slot=
"password-toggle"
scope=
"props"
>
<
template
slot=
"password-toggle"
s
lot-s
cope=
"props"
>
<button
class=
"button VuePassword__Toggle"
type=
"button"
v-on:click =
"props.toggle"
...
...
@@ -104,11 +89,13 @@ import 'font-awesome/css/font-awesome.min.css'
import
indieHeader
from
'
~/components/indieHeader
'
import
followModal
from
'
~/components/followModal
'
import
contentTypeFilter
from
'
~/components/contentTypeFilter
'
export
default
{
components
:
{
indieHeader
,
followModal
followModal
,
contentTypeFilter
},
computed
:
{
...
...
@@ -217,14 +204,6 @@ nav {
font-size
:
3vmax
;
}
/* Content filter toggle */
.content-filter-toggle.tabs
{
font-size
:
1.5vmax
;
margin-top
:
-1.5vmax
;
margin-bottom
:
4vmax
;
}
/* Modal: currently unused */
.modal
.tabs
{
...
...
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