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 | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 8 | <b-col lg="8" sm="12"> |
| 9 | <page-section |
| 10 | :section-title="$t('overview.sectionTitle.serverInformation')" |
| 11 | > |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 12 | <b-row> |
| 13 | <b-col sm="6"> |
| 14 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 15 | <dt>{{ $t('overview.model') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 16 | <dd>{{ serverModel }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 17 | </dl> |
| 18 | </b-col> |
| 19 | <b-col sm="6"> |
| 20 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 21 | <dt>{{ $t('overview.manufacturer') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 22 | <dd>{{ serverManufacturer }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 23 | </dl> |
| 24 | </b-col> |
| 25 | <b-col sm="6"> |
| 26 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 27 | <dt>{{ $t('overview.serialNumber') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 28 | <dd>{{ serverSerialNumber }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 29 | </dl> |
| 30 | </b-col> |
| 31 | <b-col sm="6"> |
| 32 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 33 | <dt>{{ $t('overview.firmwareVersion') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 34 | <dd>{{ hostActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 35 | </dl> |
| 36 | </b-col> |
| 37 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 38 | </page-section> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 39 | <page-section |
| 40 | :section-title="$t('overview.sectionTitle.bmcInformation')" |
| 41 | > |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 42 | <b-row> |
| 43 | <b-col sm="6"> |
| 44 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 45 | <dt>{{ $t('overview.hostname') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 46 | <dd>{{ hostName }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 47 | </dl> |
| 48 | </b-col> |
| 49 | <b-col sm="6"> |
| 50 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 51 | <dt>{{ $t('overview.macAddress') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 52 | <dd>{{ macAddress }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 53 | </dl> |
| 54 | </b-col> |
| 55 | <b-col sm="6"> |
| 56 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 57 | <dt>{{ $t('overview.ipAddress') }}</dt> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 58 | <dd v-for="ip in ipAddress" :key="ip.id">{{ ip }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 59 | </dl> |
| 60 | </b-col> |
| 61 | <b-col sm="6"> |
| 62 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 63 | <dt>{{ $t('overview.firmwareVersion') }}</dt> |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 64 | <dd>{{ bmcActiveVersion }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 65 | </dl> |
| 66 | </b-col> |
| 67 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 68 | </page-section> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 69 | <page-section |
| 70 | :section-title="$t('overview.sectionTitle.powerConsumption')" |
| 71 | > |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 72 | <b-row> |
| 73 | <b-col sm="6"> |
| 74 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 75 | <dt>{{ $t('overview.powerConsumption') }}</dt> |
| 76 | <dd v-if="!powerConsumption"> |
| 77 | {{ $t('overview.state.notAvailable') }} |
| 78 | </dd> |
| 79 | <dd v-else>{{ powerConsumption }} W</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 80 | </dl> |
| 81 | </b-col> |
| 82 | <b-col sm="6"> |
| 83 | <dl> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 84 | <dt>{{ $t('overview.powerCap') }}</dt> |
| 85 | <dd v-if="powerCapData">{{ powerCapData }} W</dd> |
| 86 | <dd v-else>{{ $t('overview.state.notEnabled') }}</dd> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 87 | </dl> |
| 88 | </b-col> |
| 89 | </b-row> |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 90 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 91 | </b-col> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 92 | </b-row> |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 93 | <page-section |
| 94 | :section-title="$t('overview.sectionTitle.highPriorityEvents')" |
| 95 | > |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 96 | <overview-events /> |
| 97 | </page-section> |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 98 | </b-container> |
| 99 | </template> |
| 100 | |
| 101 | <script> |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 102 | import OverviewQuickLinks from './OverviewQuickLinks'; |
| 103 | import OverviewEvents from './OverviewEvents'; |
| 104 | import PageTitle from '../../components/Global/PageTitle'; |
| 105 | import PageSection from '../../components/Global/PageSection'; |
| 106 | import { mapState } from 'vuex'; |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 107 | export default { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 108 | name: 'Overview', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 109 | components: { |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 110 | OverviewQuickLinks, |
| 111 | OverviewEvents, |
Yoshie Muranaka | 8d12910 | 2019-12-19 09:51:55 -0800 | [diff] [blame] | 112 | PageTitle, |
| 113 | PageSection |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 114 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 115 | computed: mapState({ |
| 116 | serverModel: state => state.overview.serverModel, |
| 117 | serverManufacturer: state => state.overview.serverManufacturer, |
| 118 | serverSerialNumber: state => state.overview.serverSerialNumber, |
| 119 | hostName: state => state.global.hostName, |
| 120 | hostActiveVersion: state => state.firmware.hostActiveVersion, |
| 121 | bmcActiveVersion: state => state.firmware.bmcActiveVersion, |
| 122 | powerConsumption: state => state.powerConsumption.powerConsumption, |
Dixsie Wolmers | 75d3fb7 | 2020-02-10 21:58:55 -0600 | [diff] [blame] | 123 | powerCapData: state => state.powerCap.powerCapData, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 124 | ipAddress: state => state.networkSettings.ipAddress, |
| 125 | macAddress: state => state.networkSettings.macAddress |
| 126 | }), |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 127 | created() { |
| 128 | this.getOverviewInfo(); |
| 129 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 130 | methods: { |
| 131 | getOverviewInfo() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 132 | this.$store.dispatch('overview/getServerInfo'); |
| 133 | this.$store.dispatch('global/getHostName'); |
| 134 | this.$store.dispatch('firmware/getFirmwareInfo'); |
| 135 | this.$store.dispatch('powerConsumption/getPowerData'); |
| 136 | this.$store.dispatch('powerCap/getPowerCapData'); |
| 137 | this.$store.dispatch('networkSettings/getNetworkData'); |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 138 | } |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 139 | } |
| 140 | }; |
| 141 | </script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 142 | |
| 143 | <style lang="scss" scoped> |
| 144 | .quicklinks-section { |
| 145 | margin-bottom: $spacer * 2; |
| 146 | margin-left: -1rem; |
| 147 | } |
| 148 | </style> |