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