This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/src/views/ListApps.vue

50 lines
1.4 KiB
Vue
Raw Normal View History

2019-06-20 16:04:08 +00:00
<template>
<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>
2019-07-23 16:08:19 +00:00
<v-btn color="success" style="float:right;" @click="$router.push({name: 'newApp'})">Add App</v-btn>
2019-06-20 16:04:08 +00:00
<h1>Apps</h1>
<br><br>
<p>Here you can Administrate your apps</p>
</v-flex>
</v-layout>
<AppCards :apps="apps" v-on:appClick="navigateToAppSettingPage"></AppCards>
2019-06-20 16:04:08 +00:00
</v-container>
</div>
</template>
<script>
import AppService from '../services/Apps'
import AppCardsComponente from '../components/AppCards'
2019-06-20 16:04:08 +00:00
export default {
data () {
return {
apps: [],
2019-06-20 16:04:08 +00:00
}
},
components: {
"AppCards": AppCardsComponente
},
2019-06-20 16:04:08 +00:00
methods: {
getImageUrl: function(id) {
return AppService.getAppImage(id); // "https://account.keks.cloud/gui/apps/"+id+"/icon";
},
navigateToAppSettingPage: function(app) {
this.$router.push({name: 'appDetails', params: {id: app.id}});
2019-06-20 16:04:08 +00:00
}
},
mounted: function() {
AppService.listApps().then((res) => {
this.apps = res.data.data;
console.log(this.apps);
});
}
}
</script>