-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
508aad5
commit c1d939e
Showing
8 changed files
with
108 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,77 @@ | ||
<template> | ||
<div>This is not the final modules page xD</div> | ||
<b-card-group columns> | ||
<b-card | ||
v-for="module in modules" | ||
:key="module.id" | ||
:title="module.name" | ||
> | ||
<b-card-text> | ||
<app-cli-badge | ||
:cli="module.terraformImage" | ||
badge-style="flat-square" | ||
style="margin-bottom: .75rem" | ||
/> | ||
<p>{{ module.description }}</p> | ||
|
||
<p v-if="module.estimatedMonthlyCost"> | ||
Estimated monthly cost : | ||
<b-badge variant="info"> | ||
{{ module.estimatedMonthlyCost }} $ | ||
</b-badge> | ||
</p> | ||
</b-card-text> | ||
|
||
<b-button | ||
:to="'/modules/'+module.id" | ||
title="Edit this module" | ||
variant="primary" | ||
class="mr-1" | ||
> | ||
<font-awesome-icon icon="edit" /> | ||
</b-button> | ||
|
||
<b-button | ||
:to="'/modules/'+module.id+'/description'" | ||
title="Detail of this module" | ||
variant="primary" | ||
class="mr-1" | ||
> | ||
<font-awesome-icon icon="info" /> | ||
</b-button> | ||
|
||
<b-button | ||
:to="'/modules/'+module.id+'/run'" | ||
title="Run this module" | ||
variant="primary" | ||
class="mr-1" | ||
> | ||
<font-awesome-icon icon="rocket" /> | ||
</b-button> | ||
</b-card> | ||
</b-card-group> | ||
</template> | ||
|
||
<script> | ||
import axios from 'axios'; | ||
import { AppCliBadge } from '@/shared/components'; | ||
export default { | ||
name: 'AppModules', | ||
}; | ||
</script> | ||
<style scoped> | ||
components: { | ||
AppCliBadge, | ||
}, | ||
data: function data() { | ||
return { | ||
modules: [], | ||
}; | ||
}, | ||
async created() { | ||
const response = await axios.get('/api/modules'); | ||
this.modules = response.data; | ||
}, | ||
</style> | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<img | ||
:src="'https://img.shields.io/badge/terraform-' + version + '-blue.svg?style=' + badgeStyle" | ||
:alt="version" | ||
:title="version" | ||
> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'AppCliBadge', | ||
props: { | ||
cli: { | ||
type: Object, | ||
required: true, | ||
}, | ||
badgeStyle: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
version() { | ||
return this.cli.repository === 'hashicorp/terraform' ? this.cli.tag : 'custom'; | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters