antares/src/renderer/App.vue

70 lines
1.5 KiB
Vue
Raw Normal View History

2020-04-30 17:48:53 +02:00
<template>
2020-05-07 17:45:04 +02:00
<div id="wrapper">
2020-05-08 18:02:18 +02:00
<!-- <TheHeader /> -->
<TheSettingBar />
<TheExploreBar />
<div id="main-content" class="container">
2020-05-07 17:45:04 +02:00
<!-- <BaseLoaderLayer
id="main-loader"
:is-loading="isLoading"
/> -->
2020-05-13 18:40:49 +02:00
<TheAppWelcome v-if="!connections.length" @newConn="showNewConnModal" />
2020-05-07 17:45:04 +02:00
</div>
2020-05-08 18:02:18 +02:00
<TheFooter />
2020-05-12 18:27:31 +02:00
<ModalNewConnection v-if="isNewConnModal" />
2020-04-30 17:48:53 +02:00
</div>
</template>
<script>
2020-05-12 18:27:31 +02:00
import { mapActions, mapGetters } from 'vuex';
2020-05-08 18:02:18 +02:00
import TheSettingBar from '@/components/TheSettingBar';
import TheExploreBar from '@/components/TheExploreBar';
import TheFooter from '@/components/TheFooter';
import TheAppWelcome from '@/components/TheAppWelcome';
2020-05-12 18:27:31 +02:00
import ModalNewConnection from '@/components/ModalNewConnection';
2020-04-30 17:48:53 +02:00
export default {
name: 'App',
components: {
2020-05-08 18:02:18 +02:00
TheSettingBar,
TheExploreBar,
TheFooter,
TheAppWelcome,
2020-05-12 18:27:31 +02:00
ModalNewConnection
2020-05-07 17:45:04 +02:00
},
data () {
return {
};
},
computed: {
2020-05-12 18:27:31 +02:00
...mapGetters({
isLoading: 'application/isLoading',
2020-05-13 18:40:49 +02:00
isNewConnModal: 'connections/isNewModal',
connections: 'connections/getConnections'
2020-05-08 18:02:18 +02:00
})
2020-05-07 17:45:04 +02:00
},
methods: {
2020-05-08 18:02:18 +02:00
...mapActions({
showNewConnModal: 'connections/showNewConnModal'
})
2020-04-30 17:48:53 +02:00
}
};
</script>
<style>
2020-05-07 17:45:04 +02:00
html,
body{
height: 100%;
2020-05-08 18:02:18 +02:00
}
#wrapper{
display: flex;
height: 100vh;
position: relative;
}
2020-05-11 18:05:34 +02:00
/* #main-content{
background: #232524;
} */
2020-04-30 17:48:53 +02:00
</style>