From b48f10ff093fc631761d25200b671803410564a5 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Fri, 19 Aug 2022 12:23:37 +0300 Subject: remove PCI devices to Inventory --- src/env/components/AppNavigation/sila.js | 5 - src/env/router/sila.js | 9 -- src/locales/en-US.json | 2 + src/locales/ru-RU.json | 2 + src/views/_sila/Overview/Inventory/Inventory.vue | 16 +-- .../Overview/Inventory/InventoryPciDevices.vue | 144 +++++++++++++++++++++ src/views/_sila/PciDevices/PciDevices.vue | 126 ------------------ 7 files changed, 156 insertions(+), 148 deletions(-) create mode 100644 src/views/_sila/Overview/Inventory/InventoryPciDevices.vue delete mode 100644 src/views/_sila/PciDevices/PciDevices.vue diff --git a/src/env/components/AppNavigation/sila.js b/src/env/components/AppNavigation/sila.js index 31538b98..50aaf996 100644 --- a/src/env/components/AppNavigation/sila.js +++ b/src/env/components/AppNavigation/sila.js @@ -31,11 +31,6 @@ const AppNavigationMixin = { label: this.$t('appNavigation.dateTime'), route: '/date-time', }, - { - id: 'pci-devices', - label: this.$t('appNavigation.pciDevices'), - route: '/pci-devices', - }, ], }, { diff --git a/src/env/router/sila.js b/src/env/router/sila.js index 539f3c16..e7c4b19c 100644 --- a/src/env/router/sila.js +++ b/src/env/router/sila.js @@ -36,7 +36,6 @@ import FansDynamic from '@/views/_sila/Fans/Dynamic'; import MotherboardDynamic from '@/views/_sila/Motherboard/Dynamic'; import PowerStatic from '@/views/_sila/Power/Static'; import PowerDynamic from '@/views/_sila/Power/Dynamic'; -import PciDevices from '@/views/_sila/PciDevices'; import i18n from '@/i18n'; @@ -336,14 +335,6 @@ const routes = [ title: i18n.t('appPageTitle.virtualMedia'), }, }, - { - path: '/pci-devices', - name: 'pci-devices', - component: PciDevices, - meta: { - title: i18n.t('appPageTitle.pciDevices'), - }, - }, { path: '*', name: 'page-not-found', diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 9e5322c8..cd119b46 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -414,6 +414,7 @@ "quicklinkTitle": "Quick links to hardware components", "system": "System", "assemblies": "Assemblies", + "pci": "PCI-devices", "systemIndicator": { "powerStatus": "Power status", "identifyLed": "System identify LED", @@ -1110,6 +1111,7 @@ "health": "Health", "health_d": "OK", "type": "Type", + "class": "Class", "model": "Model", "manufacturer": "Manufacturer", "classCode": "Class Code", diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json index 66bfc489..a2d6f481 100644 --- a/src/locales/ru-RU.json +++ b/src/locales/ru-RU.json @@ -414,6 +414,7 @@ "quicklinkTitle": "Быстрые ссылки к компонентам оборудования", "assemblies": "Сборки", "system": "Система", + "pci": "PCI-устройства", "systemIndicator": { "powerStatus": "Состояние питания", "identifyLed": "Идентификационный LED системы", @@ -1110,6 +1111,7 @@ "health_d": "Работоспособен", "name": "Имя", "type": "Тип устройства", + "class": "Класс устройства", "model": "Модель", "manufacturer": "Производитель", "classCode": "Код класса", diff --git a/src/views/_sila/Overview/Inventory/Inventory.vue b/src/views/_sila/Overview/Inventory/Inventory.vue index 3bf9433f..cf909423 100644 --- a/src/views/_sila/Overview/Inventory/Inventory.vue +++ b/src/views/_sila/Overview/Inventory/Inventory.vue @@ -44,7 +44,7 @@ - + @@ -58,7 +58,7 @@ import TableFans from './InventoryTableFans'; import TableBmcManager from './InventoryTableBmcManager'; import TableChassis from './InventoryTableChassis'; import TableProcessors from './InventoryTableProcessors'; -import TableAssembly from './InventoryTableAssembly'; +import PciDevices from './InventoryPciDevices'; import LoadingBarMixin from '@/components/_sila/Mixins/LoadingBarMixin'; import PageSection from '@/components/_sila/Global/PageSection'; import JumpLinkMixin from '@/components/_sila/Mixins/JumpLinkMixin'; @@ -75,7 +75,7 @@ export default { TableBmcManager, TableChassis, TableProcessors, - TableAssembly, + PciDevices, PageSection, }, mixins: [LoadingBarMixin, JumpLinkMixin], @@ -131,10 +131,10 @@ export default { linkText: this.$t('pageInventory.processors'), }, { - id: 'assembly', - dataRef: 'assembly', - href: '#assembly', - linkText: this.$t('pageInventory.assemblies'), + id: 'pci', + dataRef: 'pci', + href: '#pci', + linkText: this.$t('pageInventory.pci'), }, ], }; @@ -174,7 +174,7 @@ export default { this.$root.$on('hardware-status-system-complete', () => resolve()); }); const assemblyTablePromise = new Promise((resolve) => { - this.$root.$on('hardware-status-assembly-complete', () => resolve()); + this.$root.$on('hardware-status-pci-complete', () => resolve()); }); // Combine all child component Promises to indicate // when page data load complete diff --git a/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue b/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue new file mode 100644 index 00000000..ff1255ce --- /dev/null +++ b/src/views/_sila/Overview/Inventory/InventoryPciDevices.vue @@ -0,0 +1,144 @@ + + + diff --git a/src/views/_sila/PciDevices/PciDevices.vue b/src/views/_sila/PciDevices/PciDevices.vue deleted file mode 100644 index 1b831a06..00000000 --- a/src/views/_sila/PciDevices/PciDevices.vue +++ /dev/null @@ -1,126 +0,0 @@ - - - -- cgit v1.2.3