blob: 156667bc8c3be5ca416bcd72626c3d7b7905cc82 [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
2 <b-container fluid>
Derick Montague09e45cd2020-01-23 15:45:57 -06003 <page-title />
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -05004 <div class="quicklinks-section">
5 <overview-quick-links />
6 </div>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06007 <b-row>
Dixsie Wolmers9d40e302020-02-13 13:29:40 -06008 <b-col>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -08009 <page-section :section-title="$t('pageOverview.bmcInformation')">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060010 <b-row>
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060011 <b-col>
12 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080013 <dt>{{ $t('pageOverview.firmwareVersion') }}</dt>
Dixsie Wolmers46a87442020-02-26 15:26:30 -060014 <dd>{{ bmcFirmwareVersion }}</dd>
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060015 </dl>
16 </b-col>
17 </b-row>
18 </page-section>
19 <b-row>
20 <b-col>
21 <page-section
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080022 :section-title="$t('pageOverview.networkInformation')"
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060023 >
24 <overview-network />
25 </page-section>
26 </b-col>
27 </b-row>
28 </b-col>
29 <b-col>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080030 <page-section :section-title="$t('pageOverview.serverInformation')">
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060031 <b-row>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060032 <b-col sm="6">
33 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080034 <dt>{{ $t('pageOverview.model') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060035 <dd>{{ serverModel }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060036 </dl>
37 </b-col>
38 <b-col sm="6">
39 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080040 <dt>{{ $t('pageOverview.manufacturer') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060041 <dd>{{ serverManufacturer }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060042 </dl>
43 </b-col>
44 <b-col sm="6">
45 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080046 <dt>{{ $t('pageOverview.serialNumber') }}</dt>
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060047 <dd>{{ serverSerialNumber }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060048 </dl>
49 </b-col>
50 <b-col sm="6">
51 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080052 <dt>{{ $t('pageOverview.firmwareVersion') }}</dt>
Dixsie Wolmers46a87442020-02-26 15:26:30 -060053 <dd>{{ hostFirmwareVersion }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060054 </dl>
55 </b-col>
56 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060057 </page-section>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080058 <page-section :section-title="$t('pageOverview.powerConsumption')">
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060059 <b-row>
60 <b-col sm="6">
61 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080062 <dt>{{ $t('pageOverview.powerConsumption') }}</dt>
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060063 <dd v-if="powerConsumptionValue == null">
64 {{ $t('global.status.notAvailable') }}
65 </dd>
66 <dd v-else>{{ powerConsumptionValue }} W</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060067 </dl>
68 </b-col>
69 <b-col sm="6">
70 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080071 <dt>{{ $t('pageOverview.powerCap') }}</dt>
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060072 <dd v-if="powerCapValue == null">
73 {{ $t('global.status.disabled') }}
74 </dd>
75 <dd v-else>{{ powerCapValue }} W</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060076 </dl>
77 </b-col>
78 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060079 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060080 </b-col>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060081 </b-row>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080082 <page-section :section-title="$t('pageOverview.highPriorityEvents')">
Derick Montague09e45cd2020-01-23 15:45:57 -060083 <overview-events />
84 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060085 </b-container>
86</template>
87
88<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -060089import OverviewQuickLinks from './OverviewQuickLinks';
90import OverviewEvents from './OverviewEvents';
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060091import OverviewNetwork from './OverviewNetwork';
Derick Montaguee2fd1562019-12-20 13:26:53 -060092import PageTitle from '../../components/Global/PageTitle';
93import PageSection from '../../components/Global/PageSection';
94import { mapState } from 'vuex';
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060095
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060096export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -060097 name: 'Overview',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060098 components: {
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060099 OverviewQuickLinks,
100 OverviewEvents,
Dixsie Wolmers9d40e302020-02-13 13:29:40 -0600101 OverviewNetwork,
Yoshie Muranaka8d129102019-12-19 09:51:55 -0800102 PageTitle,
103 PageSection
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600104 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600105 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 Muranaka36016e42020-03-11 12:52:33 -0700110 hostFirmwareVersion: state => state.firmware.hostFirmwareVersion,
111 bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion,
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -0600112 powerCapValue: state => state.powerControl.powerCapValue,
113 powerConsumptionValue: state => state.powerControl.powerConsumptionValue
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600114 }),
Derick Montague09e45cd2020-01-23 15:45:57 -0600115 created() {
116 this.getOverviewInfo();
117 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600118 methods: {
119 getOverviewInfo() {
Derick Montaguee2fd1562019-12-20 13:26:53 -0600120 this.$store.dispatch('overview/getServerInfo');
121 this.$store.dispatch('global/getHostName');
Yoshie Muranaka36016e42020-03-11 12:52:33 -0700122 this.$store.dispatch('firmware/getBmcFirmware');
123 this.$store.dispatch('firmware/getHostFirmware');
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -0600124 this.$store.dispatch('powerControl/getPowerControl');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600125 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600126 }
127};
128</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500129
130<style lang="scss" scoped>
131.quicklinks-section {
132 margin-bottom: $spacer * 2;
Dixsie Wolmers9d40e302020-02-13 13:29:40 -0600133 margin-left: $spacer * -1;
134}
135
136dd {
137 white-space: nowrap;
138 overflow: hidden;
139 text-overflow: ellipsis;
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500140}
141</style>