2018-12-21 21:58:12 +00:00
< template >
< div >
2018-12-25 23:20:12 +00:00
< div class = "fixed pin-t w-full z-30" >
< navbar > < / navbar >
2018-12-21 21:58:12 +00:00
2018-12-25 23:20:12 +00:00
< title-block >
< template slot = "left" >
< div class = "text-xs mb-3" >
< ol class = "list-reset flex" >
< li class = "flex items-center pr-1" >
< router-link to = "/" class = "text-blue-dark no-underline hover:underline mr-1" > Applications < / router-link >
< svg class = "w-3 h-3 fill-current text-grey" 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 >
< / li >
< li > { { application . name } } < / li >
< / ol >
< / div >
2018-12-21 21:58:12 +00:00
2018-12-25 23:20:12 +00:00
< button class = "flex flex-1 items-center justify-between md:justify-start" >
< div class = "text-2xl font-hairline mr-2" > { { application . name } } < / div >
< svg class = "h-6 w-6 text-blue-dark fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__down-arrow" > < / use > < / svg >
< / button >
< / template >
2018-12-21 21:58:12 +00:00
2018-12-25 23:20:12 +00:00
< template slot = "right" >
< header-buttons : links = " [
{ title : 'Add database' , icon : 'actions__new-database' , disabled : false } ,
{ title : 'Git Info' , icon : 'actions__info' , disabled : false } ,
2018-12-25 23:42:28 +00:00
{ title : 'Rename' , icon : 'actions__edit' , disabled : false } ,
2018-12-25 23:41:37 +00:00
{ title : 'Cancel' , icon : 'actions__remove--circle' , disabled : false } ,
2018-12-25 23:20:12 +00:00
] " > < / header-buttons >
< / 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-02-08 14:32:10 +00:00
< div class = "-mt-3 md:-mt-1 flex flex-row-reverse h-full" >
2019-02-08 14:05:53 +00:00
< div class = "flex-1 p-4 lg:p-12 ml-16 lg:ml-56 overflow-x-hidden" >
2018-12-25 23:20:12 +00:00
< div class = "mb-6" >
< div class = "lg:flex lg:items-baseline mb-2" >
< div class = "mr-16 mb-4 lg:mb-0" >
2019-02-08 14:22:19 +00:00
< h1 class = "text-4xl font-thin mb-2" > Environments < / h1 >
2018-12-21 21:58:12 +00:00
2018-12-25 23:20:12 +00:00
< application-tags :type = "application.type" :level = "application.level" > < / application-tags >
2018-12-22 01:17:47 +00:00
< / div >
2018-12-21 21:58:12 +00:00
2018-12-25 23:20:12 +00:00
< div class = "lg:flex lg:flex-row-reverse flex-1 justify-between _bg-blue items-baseline" >
< div class = "w-full lg:w-1/2 xl:w-1/3" >
< form action = "#" >
< input type = "text" placeholder = "Filter environments" class = "w-full py-2 px-3 border border-grey-darker rounded" >
< / 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
< quick-help :hidden = "help.hidden" > < / quick-help >
2018-12-27 09:49:26 +00:00
< environment-cards :environments = "application.environments" :id = "id" > < / environment-cards >
2019-03-11 23:18:10 +00:00
< task-log :tasks = "application.tasks" v-if = "application.tasks[0]" > < / task -log >
2018-12-21 21:58:12 +00:00
< / div >
2018-12-25 23:20:12 +00:00
< sidebar : links = " [
{ 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-23 13:17:39 +00:00
import data from '@/data.json'
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 ,
2018-12-21 23:02:15 +00:00
ToggleHelp ,
2018-12-21 21:58:12 +00:00
} ,
2018-12-21 23:58:35 +00:00
props : {
2018-12-25 22:34:41 +00:00
id : String ,
2018-12-21 23:58:35 +00:00
} ,
2018-12-21 21:58:12 +00:00
data ( ) {
return {
2018-12-23 13:17:39 +00:00
applications : data . applications ,
2018-12-21 23:02:15 +00:00
help : {
hidden : false ,
}
2018-12-21 21:58:12 +00:00
}
2018-12-23 13:17:39 +00:00
} ,
computed : {
application : function ( ) {
return this . applications [ this . id ]
}
2018-12-21 21:58:12 +00:00
}
}
< / script >