mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:09:24 +02:00
See #262: light messaging area and helpers for the front-end
This commit is contained in:
parent
4c81de9226
commit
3634c00ee6
6 changed files with 167 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<div id="app">
|
||||
<sidebar></sidebar>
|
||||
<service-messages v-if="messages.length > 0" />
|
||||
<router-view :key="$route.fullPath"></router-view>
|
||||
<div class="ui fitted divider"></div>
|
||||
<div id="footer" class="ui vertical footer segment">
|
||||
|
@ -44,9 +45,11 @@
|
|||
<script>
|
||||
import axios from 'axios'
|
||||
import _ from 'lodash'
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
import Sidebar from '@/components/Sidebar'
|
||||
import Raven from '@/components/Raven'
|
||||
import ServiceMessages from '@/components/ServiceMessages'
|
||||
|
||||
import PlaylistModal from '@/components/playlists/PlaylistModal'
|
||||
|
||||
|
@ -55,7 +58,8 @@ export default {
|
|||
components: {
|
||||
Sidebar,
|
||||
Raven,
|
||||
PlaylistModal
|
||||
PlaylistModal,
|
||||
ServiceMessages
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
@ -80,6 +84,9 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
messages: state => state.ui.messages
|
||||
}),
|
||||
version () {
|
||||
if (!this.nodeinfo) {
|
||||
return null
|
||||
|
@ -115,6 +122,14 @@ html, body {
|
|||
}
|
||||
transform: none !important;
|
||||
}
|
||||
.service-messages {
|
||||
position: fixed;
|
||||
bottom: 1em;
|
||||
left: 1em;
|
||||
@include media(">desktop") {
|
||||
left: 350px;
|
||||
}
|
||||
}
|
||||
.main-pusher {
|
||||
padding: 1.5rem 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue