2018-12-27 02:38:19 +00:00
< template >
< div >
2019-03-21 00:54:48 +00:00
< div class = "fixed top-0 w-full z-30" >
2018-12-27 02:38:19 +00:00
< navbar > < / navbar >
2019-04-09 01:37:07 +01:00
< title-block :application = "application" :environment = "environment" >
2018-12-27 02:38:19 +00:00
< template slot = "right" >
< header-buttons : links = " [
2018-12-27 10:46:20 +00:00
! isProduction ? { title : 'Install Drupal' , icon : 'actions__upload' , disabled : false } : { } ,
2018-12-27 10:01:20 +00:00
{ title : 'Clear Varnish' , icon : 'alpha__clear-cache' , disabled : false } ,
2018-12-27 10:46:20 +00:00
! isProduction ? { title : 'Live development' , icon : 'actions__publish-settings' , disabled : false } : { title : 'Production mode' , icon : 'state__locked' , disabled : false } ,
2018-12-27 02:38:19 +00:00
{ title : 'Rename' , icon : 'actions__edit' , disabled : false } ,
2018-12-27 10:01:20 +00:00
{ title : 'Configure' , icon : 'actions__setting' , disabled : false } ,
2018-12-27 02:38:19 +00:00
] " > < / header-buttons >
< / template >
< / title-block >
< / div >
< div class = "mt-48" >
2019-04-09 13:11:41 +01:00
< div class = "-mt-3 flex flex-row-reverse h-full" >
2019-06-27 19:11:44 +01:00
< div class = "ml-16 p-4 flex-1 overflow-x-hidden lg:ml-56 lg:p-12" >
2018-12-27 10:20:03 +00:00
< div >
2018-12-27 02:38:19 +00:00
< div >
2019-06-27 19:11:44 +01:00
< h1 class = "mb-2 text-4xl font-thin" > Overview < / h1 >
2018-12-27 02:38:19 +00:00
2019-06-27 12:40:04 +01:00
< application-tags :application = "application" :types = "$attrs.types" / >
2018-12-27 02:38:19 +00:00
< / div >
< div class = "my-10" >
2019-03-21 00:42:57 +00:00
< a :href = "environment.url" class = "flex items-center text-sm text-blue-300 no-underline hover:underline focus:underline" >
2018-12-27 02:38:19 +00:00
< svg class = "h-6 w-6 fill-current mr-1" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#alpha__globe" > < / use > < / svg >
{ { environment . url } }
< / a >
< / div >
2019-02-08 14:19:02 +00:00
< div class = "spaced-y-10" >
< div >
< action-cards :environment = "environment" :is-production = "isProduction" > < / action-cards >
2018-12-27 02:38:19 +00:00
< / div >
2018-12-27 09:27:03 +00:00
2019-06-27 21:25:01 +01:00
< div class = "mt-8 shadow-md overflow-hidden" >
2019-06-27 19:11:44 +01:00
< div class = "p-3 bg-white border-b-2 border-gray-300" > < h2 class = "text-lg" > Site Health < / h2 > < / div >
< div class = "p-4 bg-white" >
2019-06-27 21:25:01 +01:00
< div >
2019-04-09 02:27:14 +01:00
< p class = "text-lg font-hairline text-gray-700" > Uptime monitoring < / p >
2018-12-27 09:27:03 +00:00
< / div >
2019-06-27 21:25:01 +01:00
< div class = "mt-6 text-center leading-normal" >
2019-04-09 02:27:14 +01:00
< p class = "text-gray-600" >
2019-02-08 14:19:02 +00:00
Acquia uses a specially tuned uptime monitoring solution to keep track < br class = "hidden md:inline" >
of whether your Drupal site is really up and running .
< / p >
2018-12-27 09:27:03 +00:00
< / div >
2019-06-27 21:25:01 +01:00
< div class = "mt-5 flex justify-center" >
2019-03-05 12:15:24 +00:00
< button type = "button" class = "btn" > Enable Uptime < / button >
< button type = "button" class = "btn is-secondary" > Learn more < / button >
2018-12-27 09:27:03 +00:00
< / div >
2019-02-08 14:19:02 +00:00
< / div >
< / div >
2018-12-27 09:27:03 +00:00
2019-02-08 14:19:02 +00:00
< div class = "shadow-md overflow-hidden" >
2019-06-27 19:11:44 +01:00
< div class = "p-3 bg-white border-b-2 border-gray-300" > < h2 class = "text-lg" > Information < / h2 > < / div >
< div class = "px-4 py-6 bg-white" >
2019-02-08 14:19:02 +00:00
< div class = "mb-6 relative" >
2019-06-27 19:11:44 +01:00
< div class = "mb-1 text-xs" > Git URL < / div >
< div class = "p-3 border border-gray-500 rounded truncate" > { { gitUrl } } < / div >
2019-03-21 00:54:48 +00:00
< div class = "absolute top-0 right-0" >
2019-03-21 00:42:57 +00:00
< button type = "button" class = "flex items-center text-xs text-blue-300 hover:underline focus:underline" >
2019-06-27 19:11:44 +01:00
< svg class = "mr-1 h-3 w-3 fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
2019-02-08 14:19:02 +00:00
Copy < span class = "visuallyhidden" > Git URL to your clipboard < / span >
< / button >
< / div >
2018-12-27 09:27:03 +00:00
< / div >
2019-02-08 14:19:02 +00:00
< div class = "mb-6 relative" >
2019-06-27 19:11:44 +01:00
< div class = "mb-1 text-xs" > SSH URL < / div >
< div class = "p-3 border border-gray-500 rounded truncate" > { { sshUrl } } < / div >
2019-03-21 00:54:48 +00:00
< div class = "absolute top-0 right-0" >
2019-03-21 00:42:57 +00:00
< button type = "button" class = "flex items-center text-xs text-blue-300 hover:underline focus:underline" >
2019-06-27 19:11:44 +01:00
< svg class = "mr-1 h-3 w-3 fill-current" role = "presentation" > < use xlink :href = "/img/icons.symbol.svg#actions__copy" > < / use > < / svg >
2019-02-08 14:19:02 +00:00
Copy < span class = "visuallyhidden" > SSH URL to your clipboard < / span >
< / button >
< / div >
2018-12-27 09:27:03 +00:00
< / div >
2019-06-27 19:11:44 +01:00
< div class = "-mx-4 -mb-4 flex flex-wrap lg:-mb-6" >
< div class = "mb-4 px-4 w-full lg:w-1/2 lg:mb-6" >
2019-04-09 02:27:14 +01:00
< div class = "mb-1 text-xs text-gray-600" > IP Address < / div >
2019-02-08 14:19:02 +00:00
< div > 1.2 .3 .4 < / div >
< / div >
2019-06-27 19:11:44 +01:00
< div class = "mb-4 px-4 w-full lg:w-1/2 lg:mb-6" >
2019-04-09 02:27:14 +01:00
< div class = "mb-1 text-xs text-gray-600" > Region < / div >
2019-02-08 14:19:02 +00:00
< div > eu - west - 1 < / div >
< / div >
2019-06-27 19:11:44 +01:00
< div class = "mb-4 px-4 w-full lg:w-1/2 lg:mb-6" >
2019-04-09 02:27:14 +01:00
< div class = "mb-1 text-xs text-gray-600" > PHP version < / div >
2019-04-09 02:29:55 +01:00
< div v-text = "phpVersion" > < / div >
2019-02-08 14:19:02 +00:00
< / div >
2019-06-27 19:11:44 +01:00
< div class = "mb-4 px-4 w-full lg:w-1/2 lg:mb-6" >
2019-04-09 02:27:14 +01:00
< div class = "mb-1 text-xs text-gray-600" > Live development mode < / div >
2019-02-08 14:19:02 +00:00
< div > Off < / div >
< / div >
2018-12-27 09:27:03 +00:00
< / div >
< / div >
< / div >
< / div >
2018-12-27 08:49:07 +00:00
< / div >
2018-12-27 02:38:19 +00:00
< / div >
2019-04-09 13:11:41 +01:00
< sidebar : links = " [
2018-12-27 10:27:33 +00:00
{ title : 'Overview' , icon : 'sections__applications' , active : true , disabled : false } ,
{ title : 'Stack Metrics' , icon : 'sections__activity' , active : false , disabled : false } ,
{ title : 'Servers' , icon : 'alpha__server' , active : false , disabled : false } ,
{ title : 'Databases' , icon : 'alpha__database-38' , active : false , disabled : false } ,
{ title : 'Domains' , icon : 'alpha__globe' , active : false , disabled : false } ,
{ title : 'Users & Keys' , icon : 'locations__keys' , active : false , disabled : false } ,
{ title : 'SSL' , icon : 'alpha__ssl' , active : false , disabled : false } ,
{ title : 'Logs' , icon : 'alpha__page' , active : false , disabled : false } ,
{ title : 'Insight' , icon : 'alpha__insight' , active : false , disabled : false } ,
{ title : 'Scheduled jobs' , icon : 'alpha__recent' , active : false , disabled : false } ,
{ title : 'Uptime' , icon : 'alpha__grid' , active : false , disabled : false } ,
{ title : 'Variables' , icon : 'objects__variable' , active : false , disabled : false } ,
2018-12-27 02:38:19 +00:00
] " > < / sidebar >
< / div >
< / div >
< / div >
< / template >
< script >
2018-12-27 10:59:03 +00:00
import ActionCards from '@/components/Environment/ActionCards'
2018-12-27 02:38:19 +00:00
import ApplicationTags from '@/components/Application/ApplicationTags'
export default {
components : {
2018-12-27 10:59:03 +00:00
ActionCards ,
2019-03-30 00:09:48 +00:00
ApplicationTags
2018-12-27 02:38:19 +00:00
} ,
props : {
id : String ,
2019-03-30 00:09:48 +00:00
environmentName : String
2018-12-27 02:38:19 +00:00
} ,
computed : {
application : function ( ) {
2019-06-27 12:40:04 +01:00
return this . $attrs . applications [ this . id ]
2018-12-27 02:38:19 +00:00
} ,
2018-12-27 10:36:11 +00:00
2018-12-27 02:38:19 +00:00
environment : function ( ) {
2019-06-27 12:40:04 +01:00
return this . application . environments [ this . environmentName ]
2018-12-27 09:27:03 +00:00
} ,
2018-12-27 10:36:11 +00:00
2018-12-27 09:27:03 +00:00
gitUrl : function ( ) {
2019-04-09 02:34:35 +01:00
return ` ${ this . application . machineName } @svn-1234.prod.hosting.acquia.com: ${ this . application . machineName } .git `
2018-12-27 09:27:03 +00:00
} ,
2018-12-27 10:36:11 +00:00
isProduction : function ( ) {
2019-03-30 00:09:48 +00:00
return this . environmentName === 'prod'
2018-12-27 10:36:11 +00:00
} ,
2018-12-27 09:27:03 +00:00
sshUrl : function ( ) {
2019-04-09 02:34:35 +01:00
return ` ${ this . application . machineName } . ${ this . environmentName } @staging-1234.prod.hosting.acquia.com `
2019-04-09 02:29:55 +01:00
} ,
phpVersion : function ( ) {
2019-06-27 12:40:04 +01:00
return this . environment . versions . php
2018-12-27 02:38:19 +00:00
}
2019-03-30 00:09:48 +00:00
}
2018-12-27 02:38:19 +00:00
}
< / script >