From 0a53808d734a4f369eb3d30b255d69c6024d55c8 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Dec 2018 02:38:19 +0000 Subject: [PATCH 01/21] Add environment page --- src/router/index.js | 7 ++ src/views/Environment.vue | 241 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 248 insertions(+) create mode 100644 src/views/Environment.vue diff --git a/src/router/index.js b/src/router/index.js index c1e959a..9ac83af 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,7 @@ import Vue from 'vue' import Router from 'vue-router' import Applications from '@/views/Applications' +import Environment from '@/views/Environment' import Environments from '@/views/Environments' Vue.use(Router) @@ -17,6 +18,12 @@ export default new Router({ name: 'environments', component: Environments, props: true, + }, + { + path: '/:id/environments/:environmentName', + name: 'environment', + component: Environment, + props: true, } ] }) diff --git a/src/views/Environment.vue b/src/views/Environment.vue new file mode 100644 index 0000000..b10e500 --- /dev/null +++ b/src/views/Environment.vue @@ -0,0 +1,241 @@ + + + From c9276f960a9a2ac120c70c19356e427c092e0b44 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Dec 2018 08:49:07 +0000 Subject: [PATCH 02/21] Add site health panel --- src/views/Environment.vue | 33 ++++++++++++++++----------------- tailwind.js | 3 ++- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/Environment.vue b/src/views/Environment.vue index b10e500..8cace1b 100644 --- a/src/views/Environment.vue +++ b/src/views/Environment.vue @@ -174,28 +174,27 @@ - - - + + +
+

Information

+
+
+
Git URL
+
{{ gitUrl }}
+
+ +
+
+ +
+
SSH URL
+
{{ sshUrl }}
+
+ +
+
+ +
+
+
IP Address
+
111.222.333.444
+
+ +
+
Region
+
eu-west-1
+
+ +
+
PHP version
+
7.1
+
+ +
+
Live development mode
+
Off
+
+
+
+
@@ -234,6 +283,12 @@ export default { }, environment: function () { return this.application['environments'][this.environmentName] + }, + gitUrl: function () { + return this.application.machineName + '@svn-1234.prod.hosting.acquia.com:' + this.application.machineName + '.git' + }, + sshUrl: function () { + return this.application.machineName + '.' + this.environmentName + '@staging-1234.prod.hosting.acquia.com' } }, } From eb8a4a11ec6057c5961e96c4df3917c002377055 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Dec 2018 09:48:24 +0000 Subject: [PATCH 04/21] Add links to environment pages --- src/components/Environment/EnvironmentCard.vue | 10 +++++++--- src/views/Environments.vue | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Environment/EnvironmentCard.vue b/src/components/Environment/EnvironmentCard.vue index 43cf97d..5f8a7bb 100644 --- a/src/components/Environment/EnvironmentCard.vue +++ b/src/components/Environment/EnvironmentCard.vue @@ -5,12 +5,15 @@
- +

{{ environment.name }}

-
+ +
{{ environment.label }}
@@ -49,6 +52,7 @@ export default { props: { environments: Object, + id: String, }, } diff --git a/src/views/Environments.vue b/src/views/Environments.vue index 5e4218b..584dbb1 100644 --- a/src/views/Environments.vue +++ b/src/views/Environments.vue @@ -58,7 +58,7 @@
- +
From 2364f9dbc149d59d73be5589171775a5d92e1ad3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Dec 2018 09:48:43 +0000 Subject: [PATCH 05/21] Revert "Rename component" This reverts commit d20e2890f547c01e65a2f55870b579c41a915de0. --- .../Environment/{EnvironmentCard.vue => EnvironmentCards.vue} | 0 src/views/Environments.vue | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/components/Environment/{EnvironmentCard.vue => EnvironmentCards.vue} (100%) diff --git a/src/components/Environment/EnvironmentCard.vue b/src/components/Environment/EnvironmentCards.vue similarity index 100% rename from src/components/Environment/EnvironmentCard.vue rename to src/components/Environment/EnvironmentCards.vue diff --git a/src/views/Environments.vue b/src/views/Environments.vue index 584dbb1..b7a2d87 100644 --- a/src/views/Environments.vue +++ b/src/views/Environments.vue @@ -75,7 +75,7 @@ diff --git a/src/views/Environment.vue b/src/views/Environment.vue index c74cf78..7d03c88 100644 --- a/src/views/Environment.vue +++ b/src/views/Environment.vue @@ -27,9 +27,9 @@ From 47703aee7a1770b0c58734970f1410f645f70a93 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 27 Dec 2018 12:29:23 +0000 Subject: [PATCH 20/21] Add rounded corners --- src/components/Environment/ActionCards.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Environment/ActionCards.vue b/src/components/Environment/ActionCards.vue index cabe3b9..a1988a7 100644 --- a/src/components/Environment/ActionCards.vue +++ b/src/components/Environment/ActionCards.vue @@ -1,9 +1,9 @@