2018-12-21 21:58:12 +00:00
< template >
< div class = "mb-6" >
< div class = "flex flex-wrap -mx-4 -mb-6" >
2018-12-22 01:18:06 +00:00
< div v-for ="(environment, key) in environments" class="w-full md:w-1/2 xl:w-1/3 px-4 mb-6" :key ="key" >
2019-03-21 00:42:57 +00:00
< div class = "border border-grey-400 rounded overflow-hidden" >
2018-12-21 21:58:12 +00:00
< div class = "bg-white" >
2018-12-22 01:20:15 +00:00
< div class = "border-t-4 border-teal p-3" >
2019-03-21 00:42:57 +00:00
< router-link : to = "{ name: 'environment', params: { environmentName: key, id: id }}" class = "flex items-baseline no-underline hover:underline focus:underline text-grey-600 hover:text-blue-300 focus:text-blue-300 focus:outline-none mb-1" >
2019-03-06 18:04:04 +00:00
< h2 > { { environment . name } } < / h2 >
2018-12-27 09:48:24 +00:00
< svg class = "w-4 h-4 fill-current text-inherit ml-2" viewBox = "0 0 20 20" xmlns = "http://www.w3.org/2000/svg" > < path d = "M12.95 10.707l.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z" fill -rule = " evenodd " / > < / svg >
< / router-link >
2018-12-22 00:36:38 +00:00
2019-03-06 18:04:04 +00:00
< div class = "mb-2" >
2019-03-21 00:42:57 +00:00
< a href = "#0" class = "no-underline hover:underline focus:underline text-grey-600 hover:text-blue-300 focus:text-blue-300 focus:outline-none" >
2018-12-27 09:48:24 +00:00
{ { environment . url } }
< / a >
2018-12-22 00:36:38 +00:00
< / div >
2019-03-21 00:42:57 +00:00
< div class = "text-grey-600" > { { environment . label } } < / div >
2018-12-21 21:58:12 +00:00
< / div >
< / div >
2018-12-22 01:18:06 +00:00
2018-12-21 21:58:12 +00:00
< div >
2019-03-21 00:42:57 +00:00
< button type = "button" class = "flex items-center justify-between text-white pl-1 bg-blue-200 hover:bg-blue-400 focus:bg-blue-400 focus:outline-none focus:underline text-sm w-full text-left" >
2018-12-23 13:17:39 +00:00
< svg class = "h-6 w-5 text-white mr-2 fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__grip-handle" > < / use > < / svg >
2018-12-21 21:58:12 +00:00
< span class = "flex-1" > Code < / span >
2019-03-21 00:42:57 +00:00
< span class = "border-l border-grey-400 p-2" >
2018-12-23 13:17:39 +00:00
< svg class = "h-6 w-6 text-white fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__switch" > < / use > < / svg >
2018-12-21 21:58:12 +00:00
< / span >
< / button >
2019-03-21 00:42:57 +00:00
< button type = "button" class = "flex items-center justify-between text-white pl-1 bg-blue-200 hover:bg-blue-400 focus:bg-blue-400 focus:outline-none focus:underline text-sm w-full text-left border-t border-grey-400" >
2018-12-23 13:17:39 +00:00
< svg class = "h-6 w-5 text-white mr-2 fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__grip-handle" > < / use > < / svg >
2018-12-21 21:58:12 +00:00
< span class = "flex-1" > Databases < / span >
2019-03-21 00:42:57 +00:00
< span class = "border-l border-grey-400 p-2" >
2018-12-23 13:17:39 +00:00
< svg class = "h-6 w-6 text-white fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__backup" > < / use > < / svg >
2018-12-21 21:58:12 +00:00
< / span >
< / button >
2019-03-21 00:42:57 +00:00
< button type = "button" class = "flex items-center text-white bg-blue-200 hover:bg-blue-400 focus:bg-blue-400 focus:outline-none focus:underline px-1 py-3 text-sm w-full text-left border-t border-grey-400" >
2018-12-23 13:17:39 +00:00
< svg class = "h-6 w-5 text-white mr-2 fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__grip-handle" > < / use > < / svg >
2018-12-21 21:58:12 +00:00
Files
< / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< / template >
< script >
export default {
2018-12-21 23:58:35 +00:00
props : {
2018-12-23 13:17:39 +00:00
environments : Object ,
2018-12-27 09:48:24 +00:00
id : String ,
2018-12-21 23:58:35 +00:00
} ,
2018-12-21 21:58:12 +00:00
}
< / script >