blob: 3f52d8169c7f27401b1be13a4e576532265c29cc [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>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05005 <!-- TODO: display timezone -->
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06006 <dt>BMC time</dt>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05007 <dd>{{ bmcTime | date('MMM DD, YYYY HH:MM:SS') }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06008 </dl>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05009 </div>
10 <div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060011 <!-- TODO: add toggle LED on/off funtionality -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050012 <dl>
13 <dt>Server LED</dt>
14 <dd>
15 <b-form-checkbox
16 v-model="serverLedChecked"
17 name="check-button"
18 switch
19 >
20 <span v-if="!serverLedChecked">On</span>
21 <span v-else>Off</span>
22 </b-form-checkbox>
23 </dd>
24 </dl>
25 </div>
26 <div>
Gunnar Millsf70db212020-01-28 20:21:37 -060027 <!-- TODO: link to network settings -->
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050028 <b-button
29 href="#"
30 variant="secondary"
31 class="d-flex justify-content-between align-items-center"
32 >
33 <span>Edit network settings</span>
34 <icon-arrow-right />
35 </b-button>
36 </div>
37 <div>
38 <!-- TODO: link to SOL -->
39 <b-button
40 href="#"
41 variant="secondary"
42 class="d-flex justify-content-between align-items-center"
43 >
44 <span>Serial over LAN console</span>
45 <icon-arrow-right />
46 </b-button>
47 </div>
48 </div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060049</template>
50
51<script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050052import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
53
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060054export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060055 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060056 components: {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050057 IconArrowRight: ArrowRight16
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060058 },
Derick Montague09e45cd2020-01-23 15:45:57 -060059 data() {
60 return {
Dixsie Wolmerscbcd2132020-01-30 20:58:37 -060061 serverLedChecked: false
Derick Montague09e45cd2020-01-23 15:45:57 -060062 };
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060063 },
64 computed: {
65 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060066 return this.$store.getters['global/bmcTime'];
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060067 }
68 },
Derick Montague09e45cd2020-01-23 15:45:57 -060069 created() {
70 this.getBmcTime();
71 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060072 methods: {
73 getBmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060074 this.$store.dispatch('global/getBmcTime');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060075 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060076 }
77};
78</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050079
80<style lang="scss" scoped>
81dd,
82dl {
83 margin: 0;
84}
85
86.quicklinks {
Yoshie Muranaka74f86872020-02-10 12:28:37 -080087 background: $gray-200;
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050088 display: grid;
89 grid-gap: 1rem;
90 padding: 1rem;
91 white-space: nowrap;
92 align-items: center;
93}
94
95@include media-breakpoint-up(sm) {
96 .quicklinks {
97 grid-template-columns: repeat(2, 1fr);
98 }
99}
100
Yoshie Muranaka74f86872020-02-10 12:28:37 -0800101@include media-breakpoint-up(xl) {
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500102 .quicklinks {
103 grid-template-columns: repeat(4, 1fr);
104 }
105}
106</style>