2018-12-27 10:59:03 +00:00
< template >
2018-12-27 11:45:29 +00:00
< div >
< ul class = "list-reset flex flex-wrap md:hidden -mx-1 mb-5" >
2019-03-21 00:42:57 +00:00
< li class = "w-1/3 px-1" > < button type = "button" class = "text-sm text-white w-full py-3 rounded" : class = "[active == 'code' ? 'bg-blue-400' : 'bg-blue-300']" @ click = "active = 'code'" > Code < / button > < / li >
< li class = "w-1/3 px-1" > < button type = "button" class = "text-sm text-white w-full py-3 rounded" : class = "[active == 'databases' ? 'bg-blue-400' : 'bg-blue-300']" @ click = "active = 'databases'" > Databases < / button > < / li >
< li class = "w-1/3 px-1" > < button type = "button" class = "text-sm text-white w-full py-3 rounded" : class = "[active == 'files' ? 'bg-blue-400' : 'bg-blue-300']" @ click = "active = 'files'" > Files < / button > < / li >
2018-12-27 11:45:29 +00:00
< / ul >
< div class = "flex flex-wrap -mx-4 -mb-4" >
< div class = "w-full md:w-1/3 md:block px-4 mb-4" : class = "[ active == 'code' ? 'block' : 'hidden' ]" >
2019-03-21 00:42:57 +00:00
< div class = "border border-grey-400 rounded shadow bg-white overflow-hidden" >
2018-12-27 11:45:29 +00:00
< div class = "border-t-4 border-teal" >
2019-03-21 00:42:57 +00:00
< div class = "border-b border-grey-400" >
2018-12-27 11:45:29 +00:00
< div class = "px-3 py-4" >
< div class = "flex flex-row-reverse" >
< div class = "flex-1" >
2019-03-21 00:42:57 +00:00
< h2 class = "text-grey-600 text-base mb-1" > Code < / h2 >
< div class = "text-xs text-grey-600" > { { environment . name } } : { { environment . label } } < / div >
2018-12-27 11:45:29 +00:00
< / div >
2018-12-27 10:59:03 +00:00
2018-12-27 11:45:29 +00:00
< div class = "mr-3" >
< svg class = "h-8 w-8 fill-current text-teal" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__code" > < / use > < / svg >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
2018-12-27 11:45:29 +00:00
< div >
< ul class = "list-reset flex -ml-px" >
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2019-03-21 00:54:48 +00:00
< button type = "button" class = "w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block" >
2018-12-27 11:45:29 +00:00
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__fork" > < / use > < / svg >
< span class = "block" > Deploy < / span >
< / button >
< / li >
2018-12-27 10:59:03 +00:00
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2019-03-21 00:54:48 +00:00
< button type = "button" class = "w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block" >
2018-12-27 11:45:29 +00:00
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__switch" > < / use > < / svg >
< span class = "block" > Switch < / span >
< / button >
< / li >
< / ul >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
2018-12-27 11:45:29 +00:00
< div class = "w-full md:w-1/3 md:block px-4 mb-4" : class = "[ active == 'databases' ? 'block' : 'hidden' ]" >
2019-03-21 00:42:57 +00:00
< div class = "border border-grey-400 rounded shadow bg-white overflow-hidden" >
2018-12-27 11:45:29 +00:00
< div class = "border-t-4 border-teal" >
2019-03-21 00:42:57 +00:00
< div class = "border-b border-grey-400" >
2018-12-27 11:45:29 +00:00
< div class = "px-3 py-4" >
< div class = "flex flex-row-reverse" >
< div class = "flex-1" >
2019-03-21 00:42:57 +00:00
< h2 class = "text-grey-600 text-base mb-1" > Databases < / h2 >
< div class = "text-xs text-grey-600" > { { environment . name } } < / div >
2018-12-27 11:45:29 +00:00
< / div >
2018-12-27 10:59:03 +00:00
2018-12-27 11:45:29 +00:00
< div class = "mr-3" >
< svg class = "h-8 w-8 fill-current text-teal" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__database" > < / use > < / svg >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
2018-12-27 11:45:29 +00:00
< div >
< ul class = "list-reset flex -ml-px" >
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2019-03-21 00:54:48 +00:00
< button type = "button" class = "w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block" >
2018-12-27 11:45:29 +00:00
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
< span class = "block" > Copy < / span >
< / button >
< / li >
2018-12-27 10:59:03 +00:00
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2019-03-21 00:54:48 +00:00
< button type = "button" class = "w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block" >
2018-12-27 11:45:29 +00:00
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__backup" > < / use > < / svg >
< span class = "block" > Back up < / span >
< / button >
< / li >
2018-12-27 10:59:03 +00:00
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2018-12-27 11:45:29 +00:00
< button
type = "button"
2019-03-21 00:54:48 +00:00
class = "w-full flex flex-col items-center py-3 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block"
2018-12-27 11:45:29 +00:00
: class = " {
2019-03-21 00:42:57 +00:00
'text-blue-300' : ! isProduction ,
'text-grey-500 cursor-not-allowed' : isProduction
2018-12-27 11:45:29 +00:00
} "
: disabled = "isProduction"
>
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__restore" > < / use > < / svg >
< span class = "block" > Restore < / span >
< / button >
< / li >
< / ul >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
2018-12-27 11:45:29 +00:00
< div class = "w-full md:w-1/3 md:block px-4 mb-4" : class = "[ active == 'files' ? 'block' : 'hidden' ]" >
2019-03-21 00:42:57 +00:00
< div class = "border border-grey-400 rounded shadow bg-white overflow-hidden" >
2018-12-27 11:45:29 +00:00
< div class = "border-t-4 border-teal" >
2019-03-21 00:42:57 +00:00
< div class = "border-b border-grey-400" >
2018-12-27 11:45:29 +00:00
< div class = "px-3 py-4" >
< div class = "flex flex-row-reverse" >
< div class = "flex-1" >
2019-03-21 00:42:57 +00:00
< h2 class = "text-grey-600 text-base mb-1" > Files < / h2 >
< div class = "text-xs text-grey-600" > { { environment . name } } < / div >
2018-12-27 11:45:29 +00:00
< / div >
2018-12-27 10:59:03 +00:00
2018-12-27 11:45:29 +00:00
< div class = "mr-3" >
< svg class = "h-8 w-8 fill-current text-teal" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__environment" > < / use > < / svg >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
2018-12-27 11:45:29 +00:00
< div >
< ul class = "list-reset flex -ml-px" >
2019-03-21 00:42:57 +00:00
< li class = "w-1/2 flex-1 text-center border-l border-grey-400" >
2019-03-21 00:54:48 +00:00
< button type = "button" class = "w-full flex flex-col items-center py-3 text-blue-300 text-xs font-bold no-underline hover:underline focus:underline hover:bg-grey-200 focus:bg-grey-lighter focus:outline-none block" >
2018-12-27 11:45:29 +00:00
< svg class = "h-6 w-6 fill-current mb-2" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
< span class = "block" > Copy < / span >
< / button >
< / li >
< / ul >
< / div >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / template >
< script >
export default {
props : {
environment : Object ,
isProduction : Boolean
} ,
2018-12-27 11:45:29 +00:00
data ( ) {
return {
active : 'code' ,
}
} ,
2018-12-27 10:59:03 +00:00
}
< / script >