blob: 76a062c0b269fb0361eb7f439ac1b9ed8715b04a [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>
63 <dd v-if="powerConsumption">{{ powerConsumption }} W</dd>
64 <dd v-else>{{ $t('global.status.notAvailable') }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060065 </dl>
66 </b-col>
67 <b-col sm="6">
68 <dl>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080069 <dt>{{ $t('pageOverview.powerCap') }}</dt>
Dixsie Wolmers75d3fb72020-02-10 21:58:55 -060070 <dd v-if="powerCapData">{{ powerCapData }} W</dd>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080071 <dd v-else>{{ $t('global.status.disabled') }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060072 </dl>
73 </b-col>
74 </b-row>
Derick Montague09e45cd2020-01-23 15:45:57 -060075 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060076 </b-col>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060077 </b-row>
Yoshie Muranaka547b5fc2020-02-24 15:42:40 -080078 <page-section :section-title="$t('pageOverview.highPriorityEvents')">
Derick Montague09e45cd2020-01-23 15:45:57 -060079 <overview-events />
80 </page-section>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060081 </b-container>
82</template>
83
84<script>
Derick Montaguee2fd1562019-12-20 13:26:53 -060085import OverviewQuickLinks from './OverviewQuickLinks';
86import OverviewEvents from './OverviewEvents';
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060087import OverviewNetwork from './OverviewNetwork';
Derick Montaguee2fd1562019-12-20 13:26:53 -060088import PageTitle from '../../components/Global/PageTitle';
89import PageSection from '../../components/Global/PageSection';
90import { mapState } from 'vuex';
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060091
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060092export default {
Derick Montaguee2fd1562019-12-20 13:26:53 -060093 name: 'Overview',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060094 components: {
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060095 OverviewQuickLinks,
96 OverviewEvents,
Dixsie Wolmers9d40e302020-02-13 13:29:40 -060097 OverviewNetwork,
Yoshie Muranaka8d129102019-12-19 09:51:55 -080098 PageTitle,
99 PageSection
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600100 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600101 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 Wolmers46a87442020-02-26 15:26:30 -0600106 hostFirmwareVersion: state => state.firmware.hostFirmwareVersion,
107 bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600108 powerConsumption: state => state.powerConsumption.powerConsumption,
Dixsie Wolmers9d40e302020-02-13 13:29:40 -0600109 powerCapValue: state => state.powerCap.powerCapValue
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600110 }),
Derick Montague09e45cd2020-01-23 15:45:57 -0600111 created() {
112 this.getOverviewInfo();
113 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600114 methods: {
115 getOverviewInfo() {
Derick Montaguee2fd1562019-12-20 13:26:53 -0600116 this.$store.dispatch('overview/getServerInfo');
117 this.$store.dispatch('global/getHostName');
Dixsie Wolmers46a87442020-02-26 15:26:30 -0600118 this.$store.dispatch('firmware/getBmcFirmware');
119 this.$store.dispatch('firmware/getHostFirmware');
Derick Montaguee2fd1562019-12-20 13:26:53 -0600120 this.$store.dispatch('powerConsumption/getPowerData');
121 this.$store.dispatch('powerCap/getPowerCapData');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -0600122 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -0600123 }
124};
125</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500126
127<style lang="scss" scoped>
128.quicklinks-section {
129 margin-bottom: $spacer * 2;
Dixsie Wolmers9d40e302020-02-13 13:29:40 -0600130 margin-left: $spacer * -1;
131}
132
133dd {
134 white-space: nowrap;
135 overflow: hidden;
136 text-overflow: ellipsis;
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -0500137}
138</style>