2018-12-23 13:17:39 +00:00
< template >
2018-12-23 22:42:45 +00:00
< div >
2019-04-09 02:27:14 +01:00
< div v-if = "display == 'grid'" class="bg-white p-4 border-gray-400 rounded-sm border flex-1 shadow" >
2018-12-26 12:21:36 +00:00
< div class = "flex h-full" >
2018-12-26 12:36:48 +00:00
< div class = "flex-1 w-5/6 flex flex-col justify-between" >
2018-12-23 13:17:39 +00:00
< div >
2018-12-23 22:42:45 +00:00
< div >
2019-03-21 00:42:57 +00:00
< 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 >
2018-12-23 22:42:45 +00:00
< / div >
2018-12-26 12:21:36 +00:00
2019-03-21 00:42:57 +00:00
< div class = "truncate text-blue-300" >
2018-12-26 12:36:48 +00:00
< a href = "#0" class = "text-inherit no-underline hover:underline focus:underline focus:outline-none" > { { application . environments [ 'prod' ] . url } } < / a >
2018-12-23 22:42:45 +00:00
< / div >
2018-12-23 13:17:39 +00:00
< / div >
2018-12-23 22:42:45 +00:00
2019-04-09 00:57:44 +01:00
< php-version class = "mt-8" :application = "application" > < / php-version >
2018-12-23 13:17:39 +00:00
< / div >
2018-12-26 12:36:48 +00:00
< div class = "flex-none w-1/6 text-right" >
2018-12-26 13:37:23 +00:00
< star-toggle :application = "application" > < / star-toggle >
2018-12-26 12:21:36 +00:00
< / div >
2018-12-23 13:17:39 +00:00
< / div >
< / div >
2018-12-24 08:46:33 +00:00
2019-04-09 02:27:14 +01:00
< div v-if = "display == 'list'" class="bg-white p-3 border-gray-400 border-b" >
2018-12-25 21:04:17 +00:00
< div class = "-mx-2" >
2018-12-26 01:32:37 +00:00
< 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" >
2019-03-21 00:42:57 +00:00
< 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 >
2018-12-26 01:32:37 +00:00
< / div >
2018-12-24 08:46:33 +00:00
2018-12-26 01:32:37 +00:00
< div class = "w-2/5 px-2" >
2019-03-21 00:42:57 +00:00
< a href = "#0" class = "text-blue-300 no-underline hover:underline focus:underline" > { { application . environments [ 'prod' ] . url } } < / a >
2018-12-26 01:32:37 +00:00
< / div >
2019-04-09 00:57:44 +01:00
< div class = "w-1/5 px-2" >
< php-version :application = "application" > < / php-version >
< / div >
2018-12-24 08:46:33 +00:00
< / div >
2018-12-26 01:32:37 +00:00
< div class = "px-2" >
2018-12-26 13:37:23 +00:00
< star-toggle :application = "application" > < / star-toggle >
2018-12-26 01:32:37 +00:00
< / div >
2018-12-24 08:46:33 +00:00
< / div >
< / div >
< / div >
2018-12-23 13:17:39 +00:00
< / div >
< / template >
< script >
2019-03-31 19:05:34 +01:00
import ApiClient from '@/api-client.js'
2019-04-09 00:57:44 +01:00
import PhpVersion from '@/components/Application/PhpVersion'
2018-12-26 13:37:23 +00:00
import StarToggle from '@/components/Application/StarToggle'
2018-12-23 13:17:39 +00:00
export default {
2019-03-31 19:05:34 +01:00
mixins : [ ApiClient ] ,
2018-12-23 13:17:39 +00:00
components : {
2019-04-09 00:57:44 +01:00
PhpVersion ,
2019-03-30 00:09:48 +00:00
StarToggle
2018-12-23 13:17:39 +00:00
} ,
props : {
application : Object ,
2018-12-24 08:46:33 +00:00
display : String ,
2019-03-30 00:09:48 +00:00
id : Number
2018-12-23 13:17:39 +00:00
} ,
2019-03-30 00:09:48 +00:00
data ( ) {
2018-12-23 13:17:39 +00:00
return {
2019-03-30 00:09:48 +00:00
starred : false
2018-12-23 13:17:39 +00:00
}
}
}
< / script >