summaryrefslogtreecommitdiff
path: root/src/views/BMC/Firmware/FirmwarePage.vue
blob: ff3d8af8f3becceaee6b59057f65e41778e9ad94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<template>
  <b-container
    :style="{ display: 'flex', 'flex-direction': 'column' }"
    fluid="xxl pt-0 m-0"
  >
    <page-title />
    <!-- BMC table -->
    <page-section class="bootstrap-table__section">
      <b-table
        responsive="md"
        sort-by="id"
        class="bootstrap-fans-table bootstrap-fans-table__stripes"
        sort-icon-left
        no-sort-reset
        :sort-desc="sortDesc"
        :items="items"
        :fields="fields"
      >
        <template #cell(name)="{ value }">
          <span class="regular-12px tretiatry">
            {{ value }}
          </span>
        </template>
        <template #cell(minSpeedDate)="{ value }">
          <span class="regular-12px">
            {{ value.time }}
          </span>
          <span class="regular-12px tretiatry">
            {{ value.date }}
          </span>
        </template>
        <template #cell(maxSpeedDate)="{ value }">
          <span class="regular-12px">
            {{ value.time }}
          </span>
          <span class="regular-12px tretiatry">
            {{ value.date }}
          </span>
        </template>
      </b-table>
    </page-section>
  </b-container>
</template>

<script>
import TableSortMixin from '@/components/Mixins/TableSortMixin';
import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin';
import TableFilterMixin from '@/components/Mixins/TableFilterMixin';
import BVPaginationMixin from '@/components/Mixins/BVPaginationMixin';
import BVTableSelectableMixin from '@/components/Mixins/BVTableSelectableMixin';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin';
import TableRowExpandMixin from '@/components/Mixins/TableRowExpandMixin';

import PageTitle from '@/components/Global/PageTitle';
import PageSection from '@/components/Global/PageSection';
import iconChevronUp from '@carbon/icons-vue/es/chevron--up/16';

export default {
  components: {
    PageTitle,
    PageSection,
  },
  mixins: [
    BVPaginationMixin,
    BVTableSelectableMixin,
    BVToastMixin,
    LoadingBarMixin,
    TableFilterMixin,
    DataFormatterMixin,
    TableSortMixin,
    TableRowExpandMixin,
  ],
  data() {
    return {
      text: '',
      iconChevronUp: iconChevronUp,
      sortDesc: true,
      fields: [
        {
          key: 'name',
          label: 'Устройство',
          sortable: true,
          formatter: this.dataFormatter,
          thClass: 'bootstrap-fans-table__th medium-12px',
          tdClass: 'bootstrap-fans-table__td light-12px',
        },
        {
          key: 'version',
          label: 'Версия прошивки',
          sortable: false,
          formatter: this.dataFormatter,
          thClass: 'bootstrap-fans-table__th medium-12px',
          tdClass: 'bootstrap-fans-table__td light-12px',
        },
        {
          key: 'date',
          label: 'Дата прошивки',
          sortable: true,
          formatter: this.dataFormatter,
          thClass: 'bootstrap-fans-table__th medium-12px',
          tdClass: 'bootstrap-fans-table__td light-12px',
        },
      ],
      items: [
        {
          name: 'Встроенный контроллер Порт 1|Бокс 1|Вау 1',
          version: 'HGP1',
          date: '03.11.2021',
        },
        {
          name: 'Встроенный девайс',
          version: '2.5',
          date: '03.11.2021',
        },
        {
          name: 'Встроенный ALOM',
          version: '10.52.7',
          date: '03.11.2021',
        },
        {
          name: 'Встроенный RAID',
          version: '3.00',
          date: '03.11.2021',
        },
        {
          name: 'Системная плата',
          version: '2.30 Aug 24 2020',
          date: '03.11.2021',
        },

        {
          name: 'Системная плата',
          version: '11.0.0 Build 23',
          date: '03.11.2021',
        },
        {
          name: 'Системная плата',
          version: '3.46.4',
          date: '03.11.2021',
        },
        {
          name: 'Системная плата',
          version: '1.0.7',
          date: '03.11.2021',
        },
        {
          name: 'Встроенный контроллер Порт 1|Бокс 1|Вау 1',
          version: 'HPG0.9',
          date: '02.11.2021',
        },
        {
          name: 'Встроенный девайс',
          version: '2.5',
          date: '02.11.2021',
        },
        {
          name: 'Встроенный ALOM',
          version: '10.52.7',
          date: '02.11.2021',
        },
        {
          name: 'Встроенный RAID',
          version: '3.00',
          date: '02.11.2021',
        },
        {
          name: 'Системная плата',
          version: '2.30 Aug 24 2020',
          date: '02.11.2021',
        },
        {
          name: 'Системная плата',
          version: '11.0.0 Build 23',
          date: '02.11.2021',
        },
        {
          name: 'Системная плата',
          version: '3.46.4',
          date: '02.11.2021',
        },
        {
          name: 'Системная плата',
          version: '1.0.7',
          date: '02.11.2021',
        },
        {
          name: 'Встроенный контроллер Порт 1|Бокс 1|Вау 1',
          version: 'HPG0.8',
          date: '01.11.2021',
        },
        {
          name: 'Встроенный девайс',
          version: '2.5',
          date: '01.11.2021',
        },
        {
          name: 'Встроенный ALOM',
          version: '10.52.7',
          date: '01.11.2021',
        },
        {
          name: 'Встроенный RAID',
          version: '3.00',
          date: '01.11.2021',
        },
        {
          name: 'Системная плата',
          version: '2.30 Aug 24 2020',
          date: '01.11.2021',
        },

        {
          name: 'Системная плата',
          version: '11.0.0 Build 23',
          date: '01.11.2021',
        },
        {
          name: 'Системная плата',
          version: '3.46.4',
          date: '01.11.2021',
        },
        {
          name: 'Системная плата',
          version: '1.0.7',
          date: '01.11.2021',
        },
      ],
    };
  },
};
</script>
<style lang="scss">
.bootstrap-table__section
  .table.b-table
  > thead
  > tr
  > [aria-sort='ascending'] {
  background-image: url('../../../assets/images/event-logs/sort-icon-rotate.svg');
}

.bootstrap-table__section
  .table.b-table
  > thead
  > tr
  > [aria-sort='descending'],
.table.b-table > thead > tr > [aria-sort='none'] {
  background-image: url('../../../assets/images/event-logs/sort-icon.svg');
}

.bootstrap-fans-table__th {
  background-color: transparent !important;
  color: $text-primary !important;
  border-top: none !important;
  padding: 10px 5px !important;
  border-bottom: 1px solid $faint-secondary-primary-10;
}

.bootstrap-fans-table__td {
  padding: 5px !important;
  border-top: none !important;
}
</style>
<style lang="scss" scoped>
//nav items style
.nav-item,
.nav-link {
  padding: 0;
}

.nav-item {
  list-style-type: none;
}

.semi-bold-12px {
  display: inline-block;
  padding: 16px 0 0 2rem;
}

.bmc-configuration__bios-version {
  display: inline-block;
  color: #0c1c29;
  padding: 8px 2px 2rem 2rem;
}

a {
  color: $text-primary !important;
  &:hover {
    color: $text-primary !important;
  }
}

.fans-colors {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.row {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.medium-12px {
  color: $text-primary !important;
}
</style>