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> |
| 63 | <dd v-if="powerConsumption">{{ powerConsumption }} W</dd> |
| 64 | <dd v-else>{{ $t('global.status.notAvailable') }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 65 | </dl> |
| 66 | </b-col> |
| 67 | <b-col sm="6"> |
| 68 | <dl> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 69 | <dt>{{ $t('pageOverview.powerCap') }}</dt> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 70 | <dd v-if="powerCapData">{{ powerCapData }} W</dd> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 71 | <dd v-else>{{ $t('global.status.disabled') }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 72 | </dl> |
| 73 | </b-col> |
| 74 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 75 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 76 | </b-col> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 77 | </b-row> |
Yoshie Muranaka | 547b5fc | 2020-02-24 15:42:40 -0800 | [diff] [blame] | 78 | <page-section :section-title="$t('pageOverview.highPriorityEvents')"> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 79 | <overview-events /> |
| 80 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 81 | </b-container> |
| 82 | </template> |
| 83 | |
| 84 | <script> |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 85 | import OverviewQuickLinks from './OverviewQuickLinks'; |
| 86 | import OverviewEvents from './OverviewEvents'; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 87 | import OverviewNetwork from './OverviewNetwork'; |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 88 | import PageTitle from '../../components/Global/PageTitle'; |
| 89 | import PageSection from '../../components/Global/PageSection'; |
| 90 | import { mapState } from 'vuex'; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 91 | |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 92 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 93 | name: 'Overview', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 94 | components: { |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 95 | OverviewQuickLinks, |
| 96 | OverviewEvents, |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 97 | OverviewNetwork, |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 98 | PageTitle, |
| 99 | PageSection |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 100 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 101 | computed: mapState({ |
| 102 | serverModel: state => state.overview.serverModel, |
| 103 | serverManufacturer: state => state.overview.serverManufacturer, |
| 104 | serverSerialNumber: state => state.overview.serverSerialNumber, |
| 105 | hostName: state => state.global.hostName, |
Dixsie Wolmers | 46a8744 | 2020-02-26 15:26:30 -0600 | [diff] [blame^] | 106 | hostFirmwareVersion: state => state.firmware.hostFirmwareVersion, |
| 107 | bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 108 | powerConsumption: state => state.powerConsumption.powerConsumption, |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 109 | powerCapValue: state => state.powerCap.powerCapValue |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 110 | }), |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 111 | created() { |
| 112 | this.getOverviewInfo(); |
| 113 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 114 | methods: { |
| 115 | getOverviewInfo() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 116 | this.$store.dispatch('overview/getServerInfo'); |
| 117 | this.$store.dispatch('global/getHostName'); |
Dixsie Wolmers | 46a8744 | 2020-02-26 15:26:30 -0600 | [diff] [blame^] | 118 | this.$store.dispatch('firmware/getBmcFirmware'); |
| 119 | this.$store.dispatch('firmware/getHostFirmware'); |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 120 | this.$store.dispatch('powerConsumption/getPowerData'); |
| 121 | this.$store.dispatch('powerCap/getPowerCapData'); |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 122 | } |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 123 | } |
| 124 | }; |
| 125 | </script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 126 | |
| 127 | <style lang="scss" scoped> |
| 128 | .quicklinks-section { |
| 129 | margin-bottom: $spacer * 2; |
Dixsie Wolmers | 9d40e30 | 2020-02-13 13:29:40 -0600 | [diff] [blame] | 130 | margin-left: $spacer * -1; |
| 131 | } |
| 132 | |
| 133 | dd { |
| 134 | white-space: nowrap; |
| 135 | overflow: hidden; |
| 136 | text-overflow: ellipsis; |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 137 | } |
| 138 | </style> |