2018-12-21 21:58:12 +00:00
< template >
< div >
2019-06-27 19:11:44 +01:00
< div class = "w-full fixed top-0 z-30" >
2018-12-25 23:20:12 +00:00
< navbar > < / navbar >
2018-12-21 21:58:12 +00:00
2019-04-09 01:37:07 +01:00
< title-block :application = "application" >
2018-12-25 23:20:12 +00:00
< template slot = "right" >
2019-03-15 14:17:28 +00:00
< div class = "flex items-center" >
< div class = "hidden md:block" >
2019-06-27 19:11:44 +01:00
< button type = "button" class = "py-2 px-6 text-sm font-bold text-blue-300 uppercase border border-blue-300 hover:text-blue-400 hover:border-blue-400 focus:border-blue-400" >
2019-03-15 14:17:28 +00:00
Steps to launch
< / button >
< / div >
< header-buttons class = "ml-5" : links = " [
{ title : 'Add database' , icon : 'actions__new-database' , disabled : false } ,
{ title : 'Git Info' , icon : 'actions__info' , disabled : false } ,
{ title : 'Rename' , icon : 'actions__edit' , disabled : false } ,
{ title : 'Cancel' , icon : 'actions__remove--circle' , disabled : false } ,
] " > < / header-buttons >
< / div >
2018-12-25 23:20:12 +00:00
< / template >
< / title-block >
2018-12-21 21:58:12 +00:00
< / div >
2018-12-25 23:20:12 +00:00
< div class = "mt-48" >
2019-06-27 19:11:44 +01:00
< div class = "-mt-3 h-full flex flex-row-reverse" >
< div class = "ml-16 p-4 flex-1 overflow-x-hidden lg:p-12 lg:ml-56" >
2018-12-25 23:20:12 +00:00
< div class = "mb-6" >
2019-06-27 19:11:44 +01:00
< div class = "mb-2 lg:flex lg:items-baseline" >
2018-12-25 23:20:12 +00:00
< div class = "mr-16 mb-4 lg:mb-0" >
2019-06-27 19:11:44 +01:00
< h1 class = "mb-2 text-4xl font-thin" > Environments < / h1 >
2018-12-21 21:58:12 +00:00
2019-06-27 12:40:04 +01:00
< application-tags :application = "application" :types = "$attrs.types" / >
2018-12-22 01:17:47 +00:00
< / div >
2018-12-21 21:58:12 +00:00
2019-06-27 19:11:44 +01:00
< div class = "flex-1 justify-between items-baseline lg:flex lg:flex-row-reverse" >
2018-12-25 23:20:12 +00:00
< div class = "w-full lg:w-1/2 xl:w-1/3" >
< form action = "#" >
2019-06-27 19:11:44 +01:00
< input type = "text" placeholder = "Filter environments" class = "py-2 px-3 w-full border border-gray-600 rounded" >
2018-12-25 23:20:12 +00:00
< / form >
< / div >
< div class = "flex-1" >
< toggle-help @ toggle = "help.hidden = !help.hidden" > < / toggle-help >
< / div >
2018-12-22 01:17:47 +00:00
< / div >
< / div >
2018-12-21 21:58:12 +00:00
< / div >
2018-12-25 23:20:12 +00:00
2019-06-27 21:25:01 +01:00
< div class = "spaced-y-6" >
< quick-help :hidden = "help.hidden" > < / quick-help >
< environment-cards :application = "application" :id = "id" / >
< task-log :tasks = "application.tasks" v-if = "application.tasks[0]" > < / task -log >
< / div >
2018-12-21 21:58:12 +00:00
< / div >
2019-04-09 13:11:41 +01:00
< sidebar : links = " [
2018-12-25 23:20:12 +00:00
{ title : 'Environments' , icon : 'alpha__grid' , active : true , disabled : false } ,
{ title : 'Product Keys' , icon : 'locations__keys' , active : false , disabled : true } ,
{ title : 'Security' , icon : 'alpha__security' , active : false , disabled : true } ,
{ title : 'Acquia Search' , icon : 'actions__search' , active : false , disabled : false } ,
] " > < / sidebar >
2018-12-21 21:58:12 +00:00
< / div >
< / div >
< / div >
< / template >
< script >
2018-12-26 01:26:09 +00:00
import ApplicationTags from '@/components/Application/ApplicationTags'
2018-12-27 09:48:43 +00:00
import EnvironmentCards from '@/components/Environment/EnvironmentCards'
2018-12-26 01:26:09 +00:00
import QuickHelp from '@/components/Environment/QuickHelp'
import TaskLog from '@/components/Environment/TaskLog/TaskLog'
import ToggleHelp from '@/components/Environment/ToggleHelp'
2018-12-21 21:58:12 +00:00
export default {
components : {
2018-12-23 15:19:16 +00:00
ApplicationTags ,
2018-12-27 09:48:43 +00:00
EnvironmentCards ,
2018-12-21 21:58:12 +00:00
QuickHelp ,
TaskLog ,
2019-03-24 20:45:05 +00:00
ToggleHelp
2018-12-21 21:58:12 +00:00
} ,
2018-12-21 23:58:35 +00:00
props : {
2019-03-24 20:45:05 +00:00
id : String
2018-12-21 23:58:35 +00:00
} ,
2019-03-24 20:45:05 +00:00
data ( ) {
2018-12-21 21:58:12 +00:00
return {
2018-12-21 23:02:15 +00:00
help : {
2019-03-24 20:45:05 +00:00
hidden : false
2018-12-21 23:02:15 +00:00
}
2018-12-21 21:58:12 +00:00
}
2018-12-23 13:17:39 +00:00
} ,
computed : {
2019-06-27 12:40:04 +01:00
application ( ) {
return this . $attrs . applications [ this . id ]
2018-12-23 13:17:39 +00:00
}
2018-12-21 21:58:12 +00:00
}
}
< / script >