Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julien Veyssier
funkwhale
Commits
62465342
Commit
62465342
authored
Mar 30, 2018
by
Bat
Browse files
Page title binding
Fix
#1
parent
7191a2a2
Changes
24
Hide whitespace changes
Inline
Side-by-side
front/src/main.js
View file @
62465342
...
...
@@ -30,6 +30,10 @@ require('masonry-layout')
Vue
.
use
(
VueMasonryPlugin
)
Vue
.
use
(
VueLazyload
)
Vue
.
config
.
productionTip
=
false
Vue
.
directive
(
'
title
'
,
{
inserted
:
(
el
,
binding
)
=>
{
console
.
log
(
binding
.
value
);
document
.
title
=
binding
.
value
+
'
- Funkwhale
'
},
updated
:
(
el
,
binding
)
=>
{
document
.
title
=
binding
.
value
+
'
- Funkwhale
'
}
})
axios
.
defaults
.
baseURL
=
config
.
API_URL
axios
.
interceptors
.
request
.
use
(
function
(
config
)
{
...
...
front/src/views/instance/Timeline.vue
View file @
62465342
<
template
>
<div
class=
"main pusher"
>
<div
class=
"main pusher"
v-title=
"'Instance Timeline'"
>
<div
class=
"ui vertical center aligned stripe segment"
>
<div
v-if=
"isLoading"
:class=
"['ui',
{'active': isLoading}, 'inverted', 'dimmer']">
<div
class=
"ui text loader"
>
Loading timeline...
</div>
...
...
front/src/views/playlists/Detail.vue
View file @
62465342
<
template
>
<div>
<div
v-if=
"isLoading"
class=
"ui vertical segment"
>
<div
v-if=
"isLoading"
class=
"ui vertical segment"
v-title=
"'Playlist'"
>
<div
:class=
"['ui', 'centered', 'active', 'inline', 'loader']"
></div>
</div>
<div
v-if=
"!isLoading && playlist"
class=
"ui head vertical center aligned stripe segment"
>
<div
v-if=
"!isLoading && playlist"
class=
"ui head vertical center aligned stripe segment"
v-title=
"playlist.name"
>
<div
class=
"segment-content"
>
<h2
class=
"ui center aligned icon header"
>
<i
class=
"circular inverted list yellow icon"
></i>
...
...
front/src/views/playlists/List.vue
View file @
62465342
<
template
>
<div>
<div
v-title=
"'Playlists'"
>
<div
class=
"ui vertical stripe segment"
>
<h2
class=
"ui header"
>
Browsing playlists
</h2>
<div
:class=
"['ui',
{'loading': isLoading}, 'form']">
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment