76 lines
2.4 KiB
Vue
76 lines
2.4 KiB
Vue
<template>
|
|
<div>
|
|
<div v-if="display == 'grid'" class="bg-white p-4 border-gray-400 rounded-sm border flex-1 shadow">
|
|
<div class="flex h-full">
|
|
<div class="flex-1 w-5/6 flex flex-col justify-between">
|
|
<div>
|
|
<div>
|
|
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-300 no-underline hover:underline focus:underline focus:outline-none"><h2 class="mb-1">{{ application.name }}</h2></router-link>
|
|
</div>
|
|
|
|
<div class="truncate text-blue-300">
|
|
<a href="#0" class="text-inherit no-underline hover:underline focus:underline focus:outline-none">{{ application.environments['prod'].url }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<php-version class="mt-8" :application="application"></php-version>
|
|
</div>
|
|
|
|
<div class="flex-none w-1/6 text-right">
|
|
<star-toggle :application="application"></star-toggle>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div v-if="display == 'list'" class="bg-white p-3 border-gray-400 border-b">
|
|
<div class="-mx-2">
|
|
<div class="flex flex-row-reverse items-center justify-between">
|
|
<div class="flex flex-1 justify-between items-center -mx-2">
|
|
<div class="flex-1 px-2">
|
|
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-300 no-underline hover:underline focus:underline"><h2 class="text-base font-normal mb-1">{{ application.name }}</h2></router-link>
|
|
</div>
|
|
|
|
<div class="w-2/5 px-2">
|
|
<a href="#0" class="text-blue-300 no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
|
|
</div>
|
|
|
|
<div class="w-1/5 px-2">
|
|
<php-version :application="application"></php-version>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="px-2">
|
|
<star-toggle :application="application"></star-toggle>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ApiClient from '@/api-client.js'
|
|
import PhpVersion from '@/components/Application/PhpVersion'
|
|
import StarToggle from '@/components/Application/StarToggle'
|
|
|
|
export default {
|
|
mixins: [ApiClient],
|
|
|
|
components: {
|
|
PhpVersion,
|
|
StarToggle
|
|
},
|
|
|
|
props: {
|
|
application: Object,
|
|
display: String,
|
|
id: Number
|
|
},
|
|
|
|
data () {
|
|
return {
|
|
starred: false
|
|
}
|
|
}
|
|
}
|
|
</script>
|