2019-06-20 16:04:08 +00:00
|
|
|
<template>
|
2019-08-17 18:21:55 +00:00
|
|
|
<div style="margin-top:50px;">
|
2019-08-11 18:48:02 +00:00
|
|
|
<v-container grid-list-md pa-10 >
|
2019-06-20 16:04:08 +00:00
|
|
|
<v-layout row wrap>
|
|
|
|
<v-flex md12>
|
|
|
|
<h1>Dashboard</h1>
|
|
|
|
<br><br>
|
2019-07-23 16:08:19 +00:00
|
|
|
<h3>Hello {{$store.getters.getMe["username"]}}, login to</h3>
|
2019-08-17 18:21:55 +00:00
|
|
|
<AppCards :apps="apps" v-on:appClick="navigateToApp"></AppCards>
|
2019-06-20 16:04:08 +00:00
|
|
|
</v-flex>
|
|
|
|
</v-layout>
|
|
|
|
</v-container>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import ServerService from '../services/Server'
|
|
|
|
import UserService from '../services/User'
|
2019-07-23 16:08:19 +00:00
|
|
|
import AppService from '../services/Apps'
|
2019-08-17 18:21:55 +00:00
|
|
|
import AppCardsComponente from '../components/AppCards'
|
2019-06-20 16:04:08 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
nameBig: '',
|
|
|
|
nameSmall: '',
|
2019-07-23 16:08:19 +00:00
|
|
|
apps: []
|
2019-06-20 16:04:08 +00:00
|
|
|
}
|
|
|
|
},
|
2019-08-17 18:21:55 +00:00
|
|
|
components: {
|
|
|
|
"AppCards": AppCardsComponente
|
|
|
|
},
|
2019-06-20 16:04:08 +00:00
|
|
|
methods: {
|
2019-07-23 16:08:19 +00:00
|
|
|
'getImageUrl' : function (id) {
|
|
|
|
return AppService.getAppImage(id);
|
|
|
|
},
|
|
|
|
'navigateToApp': function(item) {
|
|
|
|
location.href = item.directUrl;
|
|
|
|
},
|
|
|
|
'getStartpageApps': function () {
|
|
|
|
AppService.getStartPageApps().then((res) => {
|
|
|
|
this.apps = res.data.data;
|
2019-06-20 16:04:08 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted: function() {
|
|
|
|
this.nameBig = this.$store.getters.getSettingValue("name_big");
|
|
|
|
this.nameSmall = this.$store.getters.getSettingValue("name_small");
|
2019-07-23 16:08:19 +00:00
|
|
|
this.getStartpageApps();
|
2019-06-20 16:04:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2019-08-17 18:21:55 +00:00
|
|
|
.header {
|
|
|
|
background-image: url('~@/assets/manhattan-407703_1920.jpg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
margin-top: -100px;
|
|
|
|
height: 30vh;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.header h1{
|
|
|
|
padding-top: 200px;
|
|
|
|
font-size: 56px !important;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 32px !important;
|
|
|
|
letter-spacing: normal !important;
|
|
|
|
}
|
|
|
|
.header h1 .small{
|
|
|
|
font-weight: 300 !important;
|
|
|
|
}
|
|
|
|
.header h2{
|
|
|
|
padding-top: 30px;
|
|
|
|
font-size: 34px !important;
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 32px !important;
|
|
|
|
letter-spacing: normal !important;
|
|
|
|
}
|
|
|
|
h1{
|
|
|
|
font-weight: 300;
|
2019-06-20 16:04:08 +00:00
|
|
|
line-height: 32px !important;
|
|
|
|
letter-spacing: normal !important;
|
|
|
|
}
|
2019-08-17 18:21:55 +00:00
|
|
|
h2{
|
|
|
|
font-weight: 300;
|
|
|
|
line-height: 32px !important;
|
|
|
|
letter-spacing: normal !important;
|
2019-06-20 16:04:08 +00:00
|
|
|
}
|
|
|
|
</style>
|