Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> |
| 2 | <b-container fluid> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 3 | <page-title /> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 4 | <div class="quicklinks-section"> |
| 5 | <overview-quick-links /> |
| 6 | </div> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 7 | <b-row> |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 8 | <b-col> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 9 | <page-section :section-title="$t('pageOverview.bmcInformation')"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 10 | <b-row> |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 11 | <b-col> |
| 12 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 13 | <dt>{{ $t('pageOverview.firmwareVersion') }}</dt> |
Dixsie Wolmers | 46a8744 | 2020-02-26 15:26:30 -0600 | [diff] [blame] | 14 | <dd>{{ bmcFirmwareVersion }}</dd> |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 15 | </dl> |
| 16 | </b-col> |
| 17 | </b-row> |
| 18 | </page-section> |
| 19 | <b-row> |
| 20 | <b-col> |
| 21 | <page-section |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 22 | :section-title="$t('pageOverview.networkInformation')" |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 23 | > |
| 24 | <overview-network /> |
| 25 | </page-section> |
| 26 | </b-col> |
| 27 | </b-row> |
| 28 | </b-col> |
| 29 | <b-col> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 30 | <page-section :section-title="$t('pageOverview.serverInformation')"> |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 31 | <b-row> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 32 | <b-col sm="6"> |
| 33 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 34 | <dt>{{ $t('pageOverview.model') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 35 | <dd>{{ serverModel }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 36 | </dl> |
| 37 | </b-col> |
| 38 | <b-col sm="6"> |
| 39 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 40 | <dt>{{ $t('pageOverview.manufacturer') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 41 | <dd>{{ serverManufacturer }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 42 | </dl> |
| 43 | </b-col> |
| 44 | <b-col sm="6"> |
| 45 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 46 | <dt>{{ $t('pageOverview.serialNumber') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 47 | <dd>{{ serverSerialNumber }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 48 | </dl> |
| 49 | </b-col> |
| 50 | <b-col sm="6"> |
| 51 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 52 | <dt>{{ $t('pageOverview.firmwareVersion') }}</dt> |
Dixsie Wolmers | 46a8744 | 2020-02-26 15:26:30 -0600 | [diff] [blame] | 53 | <dd>{{ hostFirmwareVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 54 | </dl> |
| 55 | </b-col> |
| 56 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 57 | </page-section> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 58 | <page-section :section-title="$t('pageOverview.powerConsumption')"> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 59 | <b-row> |
| 60 | <b-col sm="6"> |
| 61 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 62 | <dt>{{ $t('pageOverview.powerConsumption') }}</dt> |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 63 | <dd v-if="powerConsumptionValue == null"> |
| 64 | {{ $t('global.status.notAvailable') }} |
| 65 | </dd> |
| 66 | <dd v-else>{{ powerConsumptionValue }} W</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 67 | </dl> |
| 68 | </b-col> |
| 69 | <b-col sm="6"> |
| 70 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 71 | <dt>{{ $t('pageOverview.powerCap') }}</dt> |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 72 | <dd v-if="powerCapValue == null"> |
| 73 | {{ $t('global.status.disabled') }} |
| 74 | </dd> |
| 75 | <dd v-else>{{ powerCapValue }} W</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 76 | </dl> |
| 77 | </b-col> |
| 78 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 79 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 80 | </b-col> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 81 | </b-row> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 82 | <page-section :section-title="$t('pageOverview.highPriorityEvents')"> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 83 | <overview-events /> |
| 84 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 85 | </b-container> |
| 86 | </template> |
| 87 | |
| 88 | <script> |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 89 | import OverviewQuickLinks from './OverviewQuickLinks'; |
| 90 | import OverviewEvents from './OverviewEvents'; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 91 | import OverviewNetwork from './OverviewNetwork'; |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 92 | import PageTitle from '../../components/Global/PageTitle'; |
| 93 | import PageSection from '../../components/Global/PageSection'; |
| 94 | import { mapState } from 'vuex'; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 95 | |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 96 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 97 | name: 'Overview', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 98 | components: { |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 99 | OverviewQuickLinks, |
| 100 | OverviewEvents, |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 101 | OverviewNetwork, |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 102 | PageTitle, |
| 103 | PageSection |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 104 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 105 | computed: mapState({ |
| 106 | serverModel: state => state.overview.serverModel, |
| 107 | serverManufacturer: state => state.overview.serverManufacturer, |
| 108 | serverSerialNumber: state => state.overview.serverSerialNumber, |
| 109 | hostName: state => state.global.hostName, |
Yoshie Muranaka | 36016e4 | 2020-03-11 12:52:33 -0700 | [diff] [blame] | 110 | hostFirmwareVersion: state => state.firmware.hostFirmwareVersion, |
| 111 | bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion, |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 112 | powerCapValue: state => state.powerControl.powerCapValue, |
| 113 | powerConsumptionValue: state => state.powerControl.powerConsumptionValue |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 114 | }), |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 115 | created() { |
| 116 | this.getOverviewInfo(); |
| 117 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 118 | methods: { |
| 119 | getOverviewInfo() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 120 | this.$store.dispatch('overview/getServerInfo'); |
| 121 | this.$store.dispatch('global/getHostName'); |
Yoshie Muranaka | 36016e4 | 2020-03-11 12:52:33 -0700 | [diff] [blame] | 122 | this.$store.dispatch('firmware/getBmcFirmware'); |
| 123 | this.$store.dispatch('firmware/getHostFirmware'); |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 124 | this.$store.dispatch('powerControl/getPowerControl'); |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 125 | } |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 126 | } |
| 127 | }; |
| 128 | </script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 129 | |
| 130 | <style lang="scss" scoped> |
| 131 | .quicklinks-section { |
| 132 | margin-bottom: $spacer * 2; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 133 | margin-left: $spacer * -1; |
| 134 | } |
| 135 | |
| 136 | dd { |
| 137 | white-space: nowrap; |
| 138 | overflow: hidden; |
| 139 | text-overflow: ellipsis; |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 140 | } |
| 141 | </style> |