blob: 9f3ba52eb5cf495daeea9f977bc7db563c25fd33 [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05002 <div class="quicklinks">
3 <div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06004 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -08005 <dt>{{ $t('pageOverview.quicklinks.bmcTime') }}</dt>
Dixsie Wolmers97f41872020-02-23 15:56:16 -06006 <dd>{{ bmcTime | formatDate }} {{ bmcTime | formatTime }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06007 </dl>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05008 </div>
9 <div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060010 <!-- TODO: add toggle LED on/off funtionality -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050011 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080012 <dt>{{ $t('pageOverview.quicklinks.serverLed') }}</dt>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050013 <dd>
14 <b-form-checkbox
15 v-model="serverLedChecked"
16 name="check-button"
17 switch
18 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080019 <span v-if="serverLedChecked">{{ $t('global.status.on') }}</span>
20 <span v-else>{{ $t('global.status.off') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050021 </b-form-checkbox>
22 </dd>
23 </dl>
24 </div>
25 <div>
Gunnar Millsf70db212020-01-28 20:21:37 -060026 <!-- TODO: link to network settings -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050027 <b-button
28 href="#"
29 variant="secondary"
30 class="d-flex justify-content-between align-items-center"
31 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080032 <span>{{ $t('pageOverview.quicklinks.editNetworkSettings') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050033 <icon-arrow-right />
34 </b-button>
35 </div>
36 <div>
37 <!-- TODO: link to SOL -->
38 <b-button
39 href="#"
40 variant="secondary"
41 class="d-flex justify-content-between align-items-center"
42 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080043 <span>{{ $t('pageOverview.quicklinks.solConsole') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050044 <icon-arrow-right />
45 </b-button>
46 </div>
47 </div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060048</template>
49
50<script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050051import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
52
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060053export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060054 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060055 components: {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050056 IconArrowRight: ArrowRight16
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060057 },
Derick Montague09e45cd2020-01-23 15:45:57 -060058 data() {
59 return {
Dixsie Wolmerscbcd2132020-01-30 20:58:37 -060060 serverLedChecked: false
Derick Montague09e45cd2020-01-23 15:45:57 -060061 };
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060062 },
63 computed: {
64 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060065 return this.$store.getters['global/bmcTime'];
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060066 }
67 },
Derick Montague09e45cd2020-01-23 15:45:57 -060068 created() {
69 this.getBmcTime();
70 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060071 methods: {
72 getBmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060073 this.$store.dispatch('global/getBmcTime');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060074 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060075 }
76};
77</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050078
79<style lang="scss" scoped>
80dd,
81dl {
82 margin: 0;
83}
84
85.quicklinks {
Derick Montague7f970a12020-03-02 17:56:09 -060086 background: $container-bgd;
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050087 display: grid;
88 grid-gap: 1rem;
89 padding: 1rem;
90 white-space: nowrap;
91 align-items: center;
92}
93
94@include media-breakpoint-up(sm) {
95 .quicklinks {
96 grid-template-columns: repeat(2, 1fr);
97 }
98}
99
Yoshie Muranaka74f86872020-02-10 12:28:37 -0800100@include media-breakpoint-up(xl) {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500101 .quicklinks {
102 grid-template-columns: repeat(4, 1fr);
103 }
104}
105</style>