-
Notifications
You must be signed in to change notification settings - Fork 22
/
AppDetails.vue
79 lines (75 loc) · 2.56 KB
/
AppDetails.vue
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
72
73
74
75
76
77
78
79
<template>
<main class="text-center">
<screenshot-list v-bind:screenshots="app.screenshot_images"></screenshot-list>
<div class="card subsection text-left p-3 app-details">
<h1>Description</h1> <hr>
<pre class="description">{{ app.description }}</pre>
<table class="extra-table">
<tr>
<td>Developer</td>
<td>{{ app.author }}</td>
</tr>
<tr>
<td>Category</td>
<td>
<router-link v-bind:to="'/collection/' + app.category_id + urlArguments"><span class="badge badge-pill badge-pebble">{{ app.category }}</span></router-link>
</td>
</tr>
<tr>
<td>Updated</td>
<td>{{ app.latest_release.published_date | formatDate }}</td>
</tr>
<tr>
<td>Version</td>
<td>{{ app.latest_release.version }}</td>
</tr>
</table>
<router-link v-bind:to="'/app/' + $route.params.id + '/versions/' + urlArguments" class="app-button">
<div>
Version Information <i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</router-link>
<a v-if="app.website != ''" v-bind:href="app.website" class="app-button">
<div>
Website Link <i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</a>
<!--a v-if="app.appInfo.supportUrl != ''" v-bind:href="app.appInfo.supportUrl" class="app-button">
<div>Support <i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</a-->
<a v-if="app.source != null" v-bind:href="app.source" class="app-button">
<div>Source code <i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</a>
<router-link v-bind:to="'/author/' + app.developer_id + urlArguments" class="app-button">
<div>More From This Developer<i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</router-link>
<a v-if="app.latest_release.pbw_file != ''" v-bind:href="app.latest_release.pbw_file" class="app-button">
<div>Download .pbw<i class="fa fa-angle-right float-right" aria-hidden="true"></i>
</div>
</a>
</div>
</main>
</template>
<script>
import ScreenshotList from './widgets/ScreenshotList'
export default {
name: 'app-details',
components: {
ScreenshotList
},
props: [
'urlArguments',
'app',
'clientWatchPlatform'
]
}
</script>
<style lang="scss" scoped>
// App details container (below screenshots)
.app-details {
margin-bottom: 0;
}
</style>