blob: 86b739985f3368b393797860407514bcb6028fc1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<style lang="scss" scoped>
@import '../../styles/colors.scss';
section { background-color: $backgroundLight1 !important; }
section.hero div.hero-body {
align-items: baseline;
}
</style>
<style lang="scss">
@import '../../styles/colors.scss';
</style>
<template>
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-narrow">
<Sidebar/>
</div>
<div class="column">
<!--
<h1 class="title">Uploads</h1>
<h2 class="subtitle">Keep track of all your uploads in here</h2>
<hr>
-->
<Grid v-if="files.length"
:files="files"/>
</div>
</div>
</div>
</div>
</section>
</template>
<script>
import Sidebar from '../../components/sidebar/Sidebar.vue';
import Grid from '../../components/grid/Grid.vue';
export default {
components: {
Sidebar,
Grid
},
data() {
return { files: [] };
},
metaInfo() {
return { title: 'Uploads' };
},
mounted() {
this.getFiles();
this.$ga.page({
page: '/dashboard',
title: 'Dashboard',
location: window.location.href
});
},
methods: {
async getFiles() {
try {
const response = await this.axios.get(`${this.$config.baseURL}/files`);
this.files = response.data.files;
console.log(this.files);
} catch (error) {
console.error(error);
}
}
}
};
</script>
|