| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 2 | <div class="quicklinks"> | 
|  | 3 | <div> | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 4 | <dl> | 
| Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 5 | <dt>{{ $t('pageOverview.quicklinks.bmcTime') }}</dt> | 
| Yoshie Muranaka | e45f54b | 2020-03-26 15:23:34 -0700 | [diff] [blame] | 6 | <dd v-if="bmcTime"> | 
|  | 7 | {{ bmcTime | formatDate }} {{ bmcTime | formatTime }} | 
|  | 8 | </dd> | 
|  | 9 | <dd v-else>--</dd> | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 10 | </dl> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 11 | </div> | 
|  | 12 | <div> | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 13 | <!-- TODO: add toggle LED on/off funtionality --> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 14 | <dl> | 
| Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 15 | <dt>{{ $t('pageOverview.quicklinks.serverLed') }}</dt> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 16 | <dd> | 
|  | 17 | <b-form-checkbox | 
|  | 18 | v-model="serverLedChecked" | 
|  | 19 | name="check-button" | 
|  | 20 | switch | 
|  | 21 | > | 
| Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 22 | <span v-if="serverLedChecked">{{ $t('global.status.on') }}</span> | 
|  | 23 | <span v-else>{{ $t('global.status.off') }}</span> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 24 | </b-form-checkbox> | 
|  | 25 | </dd> | 
|  | 26 | </dl> | 
|  | 27 | </div> | 
|  | 28 | <div> | 
| Gunnar Mills | f70db21 | 2020-01-28 20:21:37 -0600 | [diff] [blame] | 29 | <!-- TODO: link to network settings --> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 30 | <b-button | 
|  | 31 | href="#" | 
|  | 32 | variant="secondary" | 
|  | 33 | class="d-flex justify-content-between align-items-center" | 
|  | 34 | > | 
| Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 35 | <span>{{ $t('pageOverview.quicklinks.editNetworkSettings') }}</span> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 36 | <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 Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 46 | <span>{{ $t('pageOverview.quicklinks.solConsole') }}</span> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 47 | <icon-arrow-right /> | 
|  | 48 | </b-button> | 
|  | 49 | </div> | 
|  | 50 | </div> | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 51 | </template> | 
|  | 52 |  | 
|  | 53 | <script> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 54 | import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16'; | 
|  | 55 |  | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 56 | export default { | 
| Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 57 | name: 'QuickLinks', | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 58 | components: { | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 59 | IconArrowRight: ArrowRight16 | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 60 | }, | 
| Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 61 | data() { | 
|  | 62 | return { | 
| Dixsie Wolmers | cbcd213 | 2020-01-30 20:58:37 -0600 | [diff] [blame] | 63 | serverLedChecked: false | 
| Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 64 | }; | 
| Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 65 | }, | 
|  | 66 | computed: { | 
|  | 67 | bmcTime() { | 
| Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 68 | return this.$store.getters['global/bmcTime']; | 
| Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 69 | } | 
|  | 70 | }, | 
| Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 71 | created() { | 
| Yoshie Muranaka | 598bf7e | 2020-05-01 12:26:00 -0700 | [diff] [blame] | 72 | this.$store.dispatch('global/getBmcTime').finally(() => { | 
|  | 73 | this.$root.$emit('overview::quicklinks::complete'); | 
|  | 74 | }); | 
| Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 75 | } | 
|  | 76 | }; | 
|  | 77 | </script> | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 78 |  | 
|  | 79 | <style lang="scss" scoped> | 
| Derick Montague | 4086572 | 2020-04-13 17:01:19 -0500 | [diff] [blame] | 80 | @import 'src/assets/styles/helpers'; | 
|  | 81 |  | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 82 | dd, | 
|  | 83 | dl { | 
|  | 84 | margin: 0; | 
|  | 85 | } | 
|  | 86 |  | 
|  | 87 | .quicklinks { | 
| Derick Montague | 7f970a1 | 2020-03-02 17:56:09 -0600 | [diff] [blame] | 88 | background: $container-bgd; | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 89 | display: grid; | 
|  | 90 | grid-gap: 1rem; | 
|  | 91 | padding: 1rem; | 
|  | 92 | white-space: nowrap; | 
|  | 93 | align-items: center; | 
|  | 94 | } | 
|  | 95 |  | 
|  | 96 | @include media-breakpoint-up(sm) { | 
|  | 97 | .quicklinks { | 
|  | 98 | grid-template-columns: repeat(2, 1fr); | 
|  | 99 | } | 
|  | 100 | } | 
|  | 101 |  | 
| Yoshie Muranaka | 74f8687 | 2020-02-10 12:28:37 -0800 | [diff] [blame] | 102 | @include media-breakpoint-up(xl) { | 
| Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 103 | .quicklinks { | 
|  | 104 | grid-template-columns: repeat(4, 1fr); | 
|  | 105 | } | 
|  | 106 | } | 
|  | 107 | </style> |