blob: da56b5d16ffc6a5c176633dacf9dfdfcf4465a3b [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>
Yoshie Muranakae45f54b2020-03-26 15:23:34 -07006 <dd v-if="bmcTime">
7 {{ bmcTime | formatDate }} {{ bmcTime | formatTime }}
8 </dd>
9 <dd v-else>--</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060010 </dl>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050011 </div>
12 <div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060013 <!-- TODO: add toggle LED on/off funtionality -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050014 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080015 <dt>{{ $t('pageOverview.quicklinks.serverLed') }}</dt>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050016 <dd>
17 <b-form-checkbox
18 v-model="serverLedChecked"
19 name="check-button"
20 switch
21 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080022 <span v-if="serverLedChecked">{{ $t('global.status.on') }}</span>
23 <span v-else>{{ $t('global.status.off') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050024 </b-form-checkbox>
25 </dd>
26 </dl>
27 </div>
28 <div>
Gunnar Millsf70db212020-01-28 20:21:37 -060029 <!-- TODO: link to network settings -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050030 <b-button
31 href="#"
32 variant="secondary"
33 class="d-flex justify-content-between align-items-center"
34 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080035 <span>{{ $t('pageOverview.quicklinks.editNetworkSettings') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050036 <icon-arrow-right />
37 </b-button>
38 </div>
39 <div>
40 <!-- TODO: link to SOL -->
41 <b-button
42 href="#"
43 variant="secondary"
44 class="d-flex justify-content-between align-items-center"
45 >
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080046 <span>{{ $t('pageOverview.quicklinks.solConsole') }}</span>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050047 <icon-arrow-right />
48 </b-button>
49 </div>
50 </div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060051</template>
52
53<script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050054import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
55
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060056export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060057 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060058 components: {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050059 IconArrowRight: ArrowRight16
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060060 },
Derick Montague09e45cd2020-01-23 15:45:57 -060061 data() {
62 return {
Dixsie Wolmerscbcd2132020-01-30 20:58:37 -060063 serverLedChecked: false
Derick Montague09e45cd2020-01-23 15:45:57 -060064 };
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060065 },
66 computed: {
67 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060068 return this.$store.getters['global/bmcTime'];
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060069 }
70 },
Derick Montague09e45cd2020-01-23 15:45:57 -060071 created() {
72 this.getBmcTime();
73 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060074 methods: {
75 getBmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060076 this.$store.dispatch('global/getBmcTime');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060077 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060078 }
79};
80</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050081
82<style lang="scss" scoped>
Derick Montague40865722020-04-13 17:01:19 -050083@import 'src/assets/styles/helpers';
84
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050085dd,
86dl {
87 margin: 0;
88}
89
90.quicklinks {
Derick Montague7f970a12020-03-02 17:56:09 -060091 background: $container-bgd;
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050092 display: grid;
93 grid-gap: 1rem;
94 padding: 1rem;
95 white-space: nowrap;
96 align-items: center;
97}
98
99@include media-breakpoint-up(sm) {
100 .quicklinks {
101 grid-template-columns: repeat(2, 1fr);
102 }
103}
104
Yoshie Muranaka74f86872020-02-10 12:28:37 -0800105@include media-breakpoint-up(xl) {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500106 .quicklinks {
107 grid-template-columns: repeat(4, 1fr);
108 }
109}
110</style>