This repository has been archived on 2025-10-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rebuilding-uis/src/views/Environments.vue

105 lines
3.5 KiB
Vue
Raw Normal View History

2018-12-21 21:58:12 +00:00
<template>
<div>
2019-03-21 00:54:48 +00:00
<div class="fixed top-0 w-full 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-03-21 00:42:57 +00:00
<button type="button" class="text-sm font-bold text-blue-300 uppercase py-2 px-6 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-04-09 02:09:55 +01:00
<div class="-mt-6 md:-mt-3 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
<application-tags :type="getApplicationType(application)" :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-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
<quick-help :hidden="help.hidden"></quick-help>
<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>
2019-04-09 02:14:14 +01:00
<sidebar class="-mt-1 md:-mt-2px" :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>
2019-03-30 08:17:56 +00:00
import ApiClient from '@/api-client.js'
2018-12-26 01:26:09 +00:00
import ApplicationTags from '@/components/Application/ApplicationTags'
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 {
2019-03-30 08:17:56 +00:00
mixins: [ApiClient],
2018-12-21 21:58:12 +00:00
components: {
2018-12-23 15:19:16 +00:00
ApplicationTags,
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-03-24 20:45:05 +00:00
application: function () {
2019-03-30 08:17:56 +00:00
return this.getApplication(this.id)
2018-12-23 13:17:39 +00:00
}
2018-12-21 21:58:12 +00:00
}
}
</script>