2018-12-27 10:59:03 +00:00
< template >
2018-12-27 11:45:29 +00:00
< div >
2019-03-21 01:39:11 +00:00
< ul class = "flex flex-wrap md:hidden -mx-1 mb-5" >
2019-03-21 02:31:54 +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" >
2019-03-21 02:31:54 +00:00
< div class = "wrapper" : class = "[ active == 'code' ? 'block' : 'hidden' ]" >
< action-card title = "Code" description = "Prod: tags/2018-12-21" >
< svg slot = "icon" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__code" > < / use > < / svg >
< ul slot = "buttons" class = "button-list" >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Deploy" >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__fork" > < / use > < / svg >
< / action-card-button >
< / li >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Switch" >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__switch" > < / use > < / svg >
< / action-card-button >
< / li >
< / ul >
< / action-card >
2018-12-27 10:59:03 +00:00
< / div >
2019-03-21 02:31:54 +00:00
< div class = "wrapper" : class = "[ active == 'databases' ? 'block' : 'hidden' ]" >
< action-card title = "Databases" description = "Prod" >
< svg slot = "icon" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__database" > < / use > < / svg >
< ul slot = "buttons" class = "button-list" >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Copy" >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
< / action-card-button >
< / li >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Back up" >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__backup" > < / use > < / svg >
< / action-card-button >
< / li >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Restore" :disabled = "isProduction" : class = " {
'text-blue-300' : ! isProduction ,
'text-grey-500 cursor-not-allowed' : isProduction
} " >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__restore" > < / use > < / svg >
< / action-card-button >
< / li >
< / ul >
< / action-card >
2018-12-27 10:59:03 +00:00
< / div >
2019-03-21 02:31:54 +00:00
< div class = "wrapper" : class = "[ active == 'files' ? 'block' : 'hidden' ]" >
< action-card title = "Files" description = "Prod" >
< svg slot = "icon" class = "h-8 w-8 fill-current text-teal" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#objects__environment" > < / use > < / svg >
< ul slot = "buttons" class = "button-list" >
2019-03-21 18:01:56 +00:00
< li >
2019-03-21 02:31:54 +00:00
< action-card-button label = "Copy" >
< svg role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
< / action-card-button >
< / li >
< / ul >
< / action-card >
2018-12-27 10:59:03 +00:00
< / div >
< / div >
< / div >
< / template >
< script >
2019-03-21 02:31:54 +00:00
import ActionCard from '@/components/Environment/ActionCard'
2019-03-21 01:33:49 +00:00
import ActionCardButton from '@/components/Environment/ActionCardButton'
2018-12-27 10:59:03 +00:00
export default {
2019-03-21 02:31:54 +00:00
components : {
ActionCard ,
ActionCardButton ,
} ,
2019-03-21 01:33:49 +00:00
2018-12-27 10:59:03 +00:00
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 >
2019-03-21 01:37:32 +00:00
< style scoped >
2019-03-21 02:31:54 +00:00
. wrapper {
@ apply w - full px - 4 mb - 4 ;
2019-03-21 02:18:22 +00:00
2019-03-21 02:31:54 +00:00
@ screen md {
@ apply w - 1 / 3 block
2019-03-21 02:18:22 +00:00
}
2019-03-21 01:37:32 +00:00
}
2019-03-21 02:31:54 +00:00
. button - list {
@ apply flex - ml - px
}
2019-03-21 18:01:56 +00:00
. button - list > li {
2019-03-21 02:31:54 +00:00
@ apply w - 1 / 2 flex - 1 text - center border - l border - grey - 400
2019-03-21 01:37:32 +00:00
}
< / style >