Build Environments page
This commit is contained in:
parent
ca9d7f7fc3
commit
a55b4828a8
12 changed files with 1553 additions and 77 deletions
65
src/components/EnvironmentCards.vue
Normal file
65
src/components/EnvironmentCards.vue
Normal file
|
@ -0,0 +1,65 @@
|
|||
<template>
|
||||
<div class="mb-6">
|
||||
<div class="flex flex-wrap -mx-4 -mb-6">
|
||||
<div v-for="environment in environments" class="w-1/3 px-4 mb-6">
|
||||
<div class="border border-grey rounded overflow-hidden">
|
||||
<div class="bg-white">
|
||||
<div class="border-t-4 border-teal p-4">
|
||||
<h2 class="text-grey-darkest mb-1">{{ environment.name }}</h2>
|
||||
<div class="text-grey-darker mb-2">{{ environment.url }}</div>
|
||||
<div class="text-grey-darker">{{ environment.label }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" class="flex items-center justify-between text-white pl-1 bg-blue-light hover:bg-blue-dark focus:bg-blue-dark focus:outline-none focus:underline text-sm w-full text-left">
|
||||
<svg class="h-6 w-5 text-white mr-2 fill-current" role="presentation"><use xlink:href="icons.symbol.svg#objects__grip-handle"></use></svg>
|
||||
<span class="flex-1">Code</span>
|
||||
<span class="border-l border-grey p-2">
|
||||
<svg class="h-6 w-6 text-white fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__switch"></use></svg>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="flex items-center justify-between text-white pl-1 bg-blue-light hover:bg-blue-dark focus:bg-blue-dark focus:outline-none focus:underline text-sm w-full text-left border-t border-grey">
|
||||
<svg class="h-6 w-5 text-white mr-2 fill-current" role="presentation"><use xlink:href="icons.symbol.svg#objects__grip-handle"></use></svg>
|
||||
<span class="flex-1">Databases</span>
|
||||
<span class="border-l border-grey p-2">
|
||||
<svg class="h-6 w-6 text-white fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__backup"></use></svg>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<button type="button" class="flex items-center text-white bg-blue-light hover:bg-blue-dark focus:bg-blue-dark focus:outline-none focus:underline px-1 py-3 text-sm w-full text-left border-t border-grey">
|
||||
<svg class="h-6 w-5 text-white mr-2 fill-current" role="presentation"><use xlink:href="icons.symbol.svg#objects__grip-handle"></use></svg>
|
||||
Files
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
environments: [
|
||||
{
|
||||
name: 'Dev',
|
||||
url: 'dev.rebuilding-acquia.com',
|
||||
label: 'develop'
|
||||
},
|
||||
{
|
||||
name: 'Stage',
|
||||
url: 'stg.rebuilding-acquia.com',
|
||||
label: 'master'
|
||||
},
|
||||
{
|
||||
name: 'Prod',
|
||||
url: 'rebuilding-acquia.com',
|
||||
label: 'tags/2018-12-21'
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
162
src/components/Environments.vue
Normal file
162
src/components/Environments.vue
Normal file
|
@ -0,0 +1,162 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="bg-white">
|
||||
<div class="mx-1 px-4 flex items-center leading-none">
|
||||
<div class="mr-24">
|
||||
<a href="#0"><img src="img/logo.png" alt="" class="h-10"></a>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col flex-1">
|
||||
<nav class="border-t-2 border-transparent">
|
||||
<a href="#0" class="inline-block text-sm border-b-4 border-blue-dark mx-2 px-4 py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Develop</a>
|
||||
<a href="#0" class="inline-block text-sm border-b-4 border-transparent mx-2 px-4 py-5 text-blue-dark uppercase no-underline hover:underline focus:underline">Manage</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center">
|
||||
<div><a class="text-sm text-blue-dark no-underline hover:underline uppercase" href="#0">Help</a></div>
|
||||
<div class="ml-6"><button type="button">
|
||||
<span class="hidden">Menu</span>
|
||||
<svg class="fill-current text-blue-dark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20"><path id="select-product" class="cls-1" d="M.77,0h4A.76.76,0,0,1,5.5.77v4a.76.76,0,0,1-.77.77h-4A.76.76,0,0,1,0,4.73v-4A.76.76,0,0,1,.77,0ZM7.25.77v4A.76.76,0,0,0,8,5.5h4a.76.76,0,0,0,.77-.77v-4A.76.76,0,0,0,12,0H8A.76.76,0,0,0,7.25.77Zm7.25,0v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,20,4.73v-4A.76.76,0,0,0,19.23,0h-4A.76.76,0,0,0,14.5.77ZM0,8v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,5.5,12V8a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,0,8ZM7.25,8v4a.76.76,0,0,0,.77.77h4a.76.76,0,0,0,.77-.77V8A.76.76,0,0,0,12,7.25H8A.76.76,0,0,0,7.25,8ZM14.5,8v4a.76.76,0,0,0,.77.77h4A.76.76,0,0,0,20,12V8a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,14.5,8ZM0,15.27v4A.76.76,0,0,0,.77,20h4a.76.76,0,0,0,.77-.77v-4a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,0,15.27Zm7.25,0v4A.76.76,0,0,0,8,20h4a.76.76,0,0,0,.77-.77v-4A.76.76,0,0,0,12,14.5H8A.76.76,0,0,0,7.25,15.27Zm7.25,0v4a.76.76,0,0,0,.77.77h4a.76.76,0,0,0,.77-.77v-4a.76.76,0,0,0-.77-.77h-4A.76.76,0,0,0,14.5,15.27Z"></path></svg>
|
||||
</button></div>
|
||||
<div class="ml-6"><button type="button">
|
||||
<span class="hidden">Activity</span>
|
||||
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#objects__notification"></use></svg>
|
||||
</button></div>
|
||||
<div class="ml-6">
|
||||
<img class="w-5 h-5 rounded-full" src="https://accounts.acquia.com/images/users/04950d70-7265-4ca7-9a52-2108961edb65/style/avatar" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="px-4 py-5 border-b-2 border-grey flex justify-between">
|
||||
<div>
|
||||
<div class="text-xs mb-3">
|
||||
<ol class="list-reset flex">
|
||||
<li class="mr-6"><a href="#0" class="text-blue-dark no-underline hover:underline">Applications</a></li>
|
||||
<li>{{ name }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center">
|
||||
<div class="text-2xl font-hairline mr-2">{{ name }}</div>
|
||||
<svg class="h-6 w-6 text-blue-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__down-arrow"></use></svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul class="list-reset flex">
|
||||
<li>
|
||||
<button type="button" class="text-xs text-blue-dark no-underline hover:underline flex flex-col items-center justify-center">
|
||||
<svg class="h-6 w-6 text-blue-dark fill-current mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__new-database"></use></svg>
|
||||
Add database
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<li class="ml-6">
|
||||
<button type="button" class="text-xs text-blue-dark no-underline hover:underline flex flex-col items-center justify-center">
|
||||
<svg class="h-6 w-6 text-blue-dark fill-current mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__info"></use></svg>
|
||||
Git Info
|
||||
</button>
|
||||
</li>
|
||||
|
||||
<li class="ml-6">
|
||||
<button type="button" class="text-xs text-grey no-underline flex flex-col items-center justify-center cursor-not-allowed" disabled>
|
||||
<svg class="h-6 w-6 fill-current mb-2" role="presentation"><use xlink:href="icons.symbol.svg#actions__edit"></use></svg>
|
||||
Rename
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-row-reverse h-full">
|
||||
<div class="flex-1 p-12">
|
||||
<div class="mb-6">
|
||||
<div class="flex items-start justify-between">
|
||||
<div class="flex items-baseline">
|
||||
<div class="mr-6">
|
||||
<h1 class="text-4xl font-thin mb-2">Environments</h1>
|
||||
</div>
|
||||
|
||||
<div class="flex-1">
|
||||
<button type="button" class="text-blue text-sm font-hairline flex items-center hover:underline focus:underline">
|
||||
<svg class="h-5 w-5 mr-1 text-blue-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__info"></use></svg>
|
||||
Hide quick help
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-1/5">
|
||||
<form action="#">
|
||||
<input type="text" placeholder="Filter environments" class="w-full py-2 px-3 border border-grey-darker rounded">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul class="list-reset flex -mr-2">
|
||||
<li class="text-2xs uppercase py-1 px-2 rounded border border-transparent bg-blue-light text-white mr-2">Drupal</li>
|
||||
<li class="text-2xs uppercase py-1 px-2 rounded border border-grey bg-white mr-2">Enterprise</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<quick-help></quick-help>
|
||||
<environment-cards></environment-cards>
|
||||
<task-log></task-log>
|
||||
</div>
|
||||
|
||||
<div class="w-64 bg-grey-darkest text-white antialiased">
|
||||
<div>
|
||||
<ul class="list-reset">
|
||||
<li>
|
||||
<a href="#0" class="flex items-center text-white no-underline hover:underline focus:underline border-l-6 border-blue px-4 py-5 hover:bg-grey-darker">
|
||||
<svg class="h-6 w-6 text-white fill-current mr-4" role="presentation"><use xlink:href="icons.symbol.svg#alpha__grid"></use></svg>
|
||||
Environments
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="flex items-center text-grey no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 cursor-not-allowed hover:bg-grey-darker">
|
||||
<svg class="h-6 w-6 text-grey fill-current mr-4" role="presentation"><use xlink:href="icons.symbol.svg#locations__keys"></use></svg>
|
||||
Product Keys
|
||||
</div>
|
||||
</li>
|
||||
<div class="flex items-center text-grey no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 cursor-not-allowed hover:bg-grey-darker">
|
||||
<svg class="h-6 w-6 text-grey fill-current mr-4" role="presentation"><use xlink:href="icons.symbol.svg#alpha__security"></use></svg>
|
||||
Security
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#0" class="flex items-center text-white no-underline hover:underline focus:underline border-l-6 border-transparent px-4 py-5 hover:bg-grey-darker">
|
||||
<svg class="h-6 w-6 text-white fill-current mr-4" role="presentation"><use xlink:href="icons.symbol.svg#actions__search"></use></svg>
|
||||
Acquia Search
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import QuickHelp from './QuickHelp'
|
||||
import EnvironmentCards from './EnvironmentCards'
|
||||
import TaskLog from './TaskLog'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
EnvironmentCards,
|
||||
QuickHelp,
|
||||
TaskLog,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
name: 'Rebuilding Acquia',
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -1,58 +0,0 @@
|
|||
<template>
|
||||
<div class="hello">
|
||||
<h1>{{ msg }}</h1>
|
||||
<p>
|
||||
For a guide and recipes on how to configure / customize this project,<br>
|
||||
check out the
|
||||
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
|
||||
</p>
|
||||
<h3>Installed CLI Plugins</h3>
|
||||
<ul>
|
||||
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
|
||||
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
|
||||
</ul>
|
||||
<h3>Essential Links</h3>
|
||||
<ul>
|
||||
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
|
||||
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
|
||||
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
|
||||
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
|
||||
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
|
||||
</ul>
|
||||
<h3>Ecosystem</h3>
|
||||
<ul>
|
||||
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
|
||||
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
|
||||
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
|
||||
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
|
||||
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'HelloWorld',
|
||||
props: {
|
||||
msg: String
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped>
|
||||
h3 {
|
||||
margin: 40px 0 0;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
li {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
}
|
||||
a {
|
||||
color: #42b983;
|
||||
}
|
||||
</style>
|
26
src/components/QuickHelp.vue
Normal file
26
src/components/QuickHelp.vue
Normal file
|
@ -0,0 +1,26 @@
|
|||
<template>
|
||||
<div class="bg-white border-t-10 border-purple flex mb-6">
|
||||
<div class="flex-none py-3 pl-3 pr-8 border-r border-grey-lighter">
|
||||
<div class="flex items-center">
|
||||
<svg class="h-6 w-6 mr-1 text-purple fill-current" role="presentation"><use xlink:href="icons.symbol.svg#actions__info"></use></svg>
|
||||
Quick help
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-4">
|
||||
<div class="flex mb-6">
|
||||
<button type="button" class="text-grey-darkest hover:underline mr-6">Deploying code</button>
|
||||
<button type="button" class="text-blue-dark hover:underline mr-6">Copying files</button>
|
||||
<button type="button" class="text-blue-dark hover:underline mr-6">Copying database</button>
|
||||
<button type="button" class="text-blue-dark hover:underline ">Task Log</button>
|
||||
</div>
|
||||
<div class="leading-normal">
|
||||
<p>Drag a code element from one environment to another environment, which creates a new tag for the HEAD of that branch and then deploys the tag. Learn more</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
94
src/components/TaskLog.vue
Normal file
94
src/components/TaskLog.vue
Normal file
|
@ -0,0 +1,94 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="bg-grey-light pb-4 pt-6 px-4">
|
||||
<h2 class="font-normal text-lg">Task Log</h2>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="list-reset bg-white">
|
||||
<li v-for="item in items" class="px-3 py-4 border-b border-grey-light flex">
|
||||
<div class="flex-none mr-3">
|
||||
<svg v-if="item.loading" class="h-5 w-5 text-grey fill-current" role="presentation"><use xlink:href="icons.symbol.svg#feedback__loading"></use></svg>
|
||||
<svg v-if="!item.loading && item.success" class="h-5 w-5 text-green fill-current" role="presentation"><use xlink:href="icons.symbol.svg#feedback__success-circle"></use></svg>
|
||||
<svg v-if="!item.loading && !item.success" class="h-5 w-5 text-red-dark fill-current" role="presentation"><use xlink:href="icons.symbol.svg#feedback__warning"></use></svg>
|
||||
</div>
|
||||
|
||||
<div class="flex-1">
|
||||
<div class="text-sm font-bold mb-2">{{ item.text }}</div>
|
||||
<div class="text-grey-darker text-2xs">{{ item.date }}</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button type="button">
|
||||
<svg class="h-5 w-5 text-grey-darker fill-current" role="presentation"><use xlink:href="icons.symbol.svg#alpha__chevron"></use></svg>
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
items: [
|
||||
{
|
||||
text: 'Commit: 8056d51 Add production URLs as settings refs/heads/master',
|
||||
date: 'Dec 21, 2018 1:34:13 PM UTC +0000',
|
||||
loading: true,
|
||||
success: false,
|
||||
},
|
||||
{
|
||||
text: 'Commit: 96ac151 Fix syntax refs/heads/master',
|
||||
date: 'Dec 21, 2018 1:23:43 PM UTC +0000',
|
||||
loading: false,
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Commit: 716e178 Configure stage_file_proxy refs/heads/master',
|
||||
date: 'Dec 21, 2018 1:18:25 PM UTC +0000',
|
||||
loading: false,
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Commit: 398945c Ensure stage_file_proxy is enabled refs/heads/master',
|
||||
date: 'Dec 21, 2018 1:09:19 PM UTC +0000',
|
||||
loading: false,
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Commit: e75c4a3 Merge branch \'voucher-code-bug-34\' refs/heads/master',
|
||||
date: 'Dec 21, 2018 12:55:49 PM UTC +0000',
|
||||
success: false,
|
||||
},
|
||||
{
|
||||
text: 'Deploy the code reference tags/2018-12-19 to test',
|
||||
date: 'Dec 20, 2018 10:25:07 PM UTC +0000',
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Deploy the code reference master to dev',
|
||||
date: 'Dec 20, 2018 10:13:48 PM UTC +0000',
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Deploy code from test to prod',
|
||||
date: 'Dec 19, 2018 3:55:29 PM UTC +0000',
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Commit: 9688c41 Update IP address refs/heads/master',
|
||||
date: 'Dec 19, 2018 3:50:31 PM UTC +0000',
|
||||
success: true,
|
||||
},
|
||||
{
|
||||
text: 'Commit: fdac923 Merge branch \'update-password-policy\' refs/heads/master',
|
||||
date: 'Dec 19, 2018 3:48:29 PM UTC +0000',
|
||||
success: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in a new issue