From 0cbf1713dc23e0039653891fab1fa2c52b4bfaf3 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Wed, 1 Jun 2022 17:40:28 +0300 Subject: Add PopoverSlot restyled DateTime and ServerPowerOrerations pages add reload BMC. --- src/assets/images/fans-page/notWorking.svg | 3 - src/assets/images/fans-page/working.svg | 3 - src/assets/images/status/off.svg | 3 + src/assets/images/status/on.svg | 3 + src/assets/styles/bmc/custom/_buttons.scss | 18 +- src/assets/styles/bmc/custom/_forms.scss | 44 +- src/assets/styles/bmc/custom/_pagination.scss | 12 +- src/assets/styles/bmc/custom/_tables.scss | 47 +- src/components/AppHeader/AppHeader.vue | 19 +- src/components/AppNavigation/AppNavigationMixin.js | 17 +- src/components/Global/LoadingBar.vue | 4 +- src/components/Global/Popover.vue | 90 ++-- .../SilaComponents/InventoryControlSystem.vue | 42 +- .../Global/SilaComponents/NtpPopover.vue | 4 +- .../Global/SilaComponents/PopoverWithSlot.vue | 225 +++++++++ src/components/Global/TableToolbar.vue | 11 +- src/components/Global/TableToolbarExport.vue | 13 +- src/components/SubHeader/SubHeader.vue | 10 +- src/locales/ru-RU.json | 11 +- src/main.js | 17 + src/router/routes.js | 2 +- .../BMC/Configuration/BMCConfigurationControl.vue | 10 +- .../BMC/Configuration/BMCConfigurationTable.vue | 72 ++- .../Fans/StaticInformation/FansStaticPage.vue | 10 +- src/views/HardwareStatus/Inventory/Inventory.vue | 73 +-- src/views/Logs/EventLogs/EventLogs.vue | 465 ++++++++--------- .../Specification/MemoryStaticPage.vue | 10 +- src/views/Operations/Kvm/Kvm.vue | 13 +- .../Operations/SerialOverLan/SerialOverLan.vue | 13 +- .../ServerPowerOperations/BootSettings.vue | 38 +- .../ServerPowerOperations.vue | 370 +++++++------- .../Specification/PowerStaticPage.vue | 5 +- .../AcceleratorSpecificationTable.vue | 7 +- .../Specification/ProcessorsSpecificationTable.vue | 7 +- src/views/SILA/EventLogs/EventLogs.vue | 548 ++++++--------------- src/views/SILA/PciDevices/PciDevicesPage.vue | 5 +- .../RAID/Specification/RAIDSpecificationPage.vue | 7 +- src/views/Settings/DateTime/DateTime.vue | 62 ++- .../Info/InventoryTableSystem.vue | 47 +- .../SystemDescription/Info/SystemDescription.vue | 138 +++--- 40 files changed, 1289 insertions(+), 1209 deletions(-) delete mode 100644 src/assets/images/fans-page/notWorking.svg delete mode 100644 src/assets/images/fans-page/working.svg create mode 100644 src/assets/images/status/off.svg create mode 100644 src/assets/images/status/on.svg create mode 100644 src/components/Global/SilaComponents/PopoverWithSlot.vue diff --git a/src/assets/images/fans-page/notWorking.svg b/src/assets/images/fans-page/notWorking.svg deleted file mode 100644 index d84bedbc..00000000 --- a/src/assets/images/fans-page/notWorking.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/images/fans-page/working.svg b/src/assets/images/fans-page/working.svg deleted file mode 100644 index e97abf4a..00000000 --- a/src/assets/images/fans-page/working.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/assets/images/status/off.svg b/src/assets/images/status/off.svg new file mode 100644 index 00000000..d84bedbc --- /dev/null +++ b/src/assets/images/status/off.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/status/on.svg b/src/assets/images/status/on.svg new file mode 100644 index 00000000..e97abf4a --- /dev/null +++ b/src/assets/images/status/on.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/styles/bmc/custom/_buttons.scss b/src/assets/styles/bmc/custom/_buttons.scss index 04c612ec..d9c929db 100644 --- a/src/assets/styles/bmc/custom/_buttons.scss +++ b/src/assets/styles/bmc/custom/_buttons.scss @@ -13,6 +13,11 @@ } } +.btn-md { + width: 220px; + height: 36px; +} + .btn-primary { background-color: $red-brand-primary; border-radius: 8px; @@ -126,7 +131,6 @@ } .btn-link { - // font-weight: $headings-font-weight; color: $text-primary; text-decoration: none !important; &:hover { @@ -136,11 +140,6 @@ &:active { background-color: gray("300"); } - &:focus { - // box-shadow: inset 0 0 0 2px theme-color("primary"); - // color: theme-color("primary"); - // outline: none; - } &:disabled { box-shadow: $btn-focus-box-shadow; } @@ -180,8 +179,6 @@ .collapse-button { height: 56px; width: 100%; - padding: 0 0 0 2rem; - margin: 0; display: flex; flex-flow: row nowrap; justify-content: flex-start; @@ -193,4 +190,9 @@ &:hover { color: $text-primary; } +} + +.table-toolbar-button { + width: 220px; + height: 36px; } \ No newline at end of file diff --git a/src/assets/styles/bmc/custom/_forms.scss b/src/assets/styles/bmc/custom/_forms.scss index 51dc0ed6..8cb8e242 100644 --- a/src/assets/styles/bmc/custom/_forms.scss +++ b/src/assets/styles/bmc/custom/_forms.scss @@ -209,6 +209,48 @@ color: $red-brand-primary; } +.cb label{ + padding-top: 4px; +} .system-control__radio label { padding-top: 4px; -} \ No newline at end of file +} + +//radio buttons global style + .custom-radio ::before { + border: 1px solid $red-brand-primary; + background-color: #fff; + border-radius: 100%; +} + +.custom-radio +.custom-control-input:checked +~ .custom-control-label::before { + border: 2px solid $red-brand-primary; + background-color: $red-brand-primary; + box-shadow: 0px 0px 0px 2.5px $white inset; + border-radius: 100%; +} + + .custom-radio + .custom-control-input:hover + ~ .custom-control-label::before { + background-color: $red-brand-primary-hover !important; + box-shadow: 0px 0px 0px 2.5px $white inset; + border-color: $red-brand-primary-hover; +} + +.custom-radio +.custom-control-input:checked +~ .custom-control-label::after { + background-image: none !important; + border-radius: 100%; +} + +.custom-radio +.custom-control-input:active +~ .custom-control-label::before { + background-color: $red-brand-primary-active !important; + box-shadow: 0px 0px 0px 2.5px $white inset; + border-color: $red-brand-primary-active; +} diff --git a/src/assets/styles/bmc/custom/_pagination.scss b/src/assets/styles/bmc/custom/_pagination.scss index d38ce5d2..bce593ef 100644 --- a/src/assets/styles/bmc/custom/_pagination.scss +++ b/src/assets/styles/bmc/custom/_pagination.scss @@ -15,10 +15,20 @@ @include media-breakpoint-up(sm) { justify-content: flex-end; } + + .page-link { + border: transparent; + &:hover { + background-color: transparent; + } + &:focus { + box-shadow: none; + } + } .page-item.active button { color: theme-color("dark"); background-color: color("white"); - border-color: $border-color; + border-color: transparent; box-shadow: inset 0px -3px theme-color("primary"); } } \ No newline at end of file diff --git a/src/assets/styles/bmc/custom/_tables.scss b/src/assets/styles/bmc/custom/_tables.scss index d76d4982..bb56ba83 100644 --- a/src/assets/styles/bmc/custom/_tables.scss +++ b/src/assets/styles/bmc/custom/_tables.scss @@ -86,7 +86,6 @@ } } .b-table-sort-icon-left { - background-position: left calc(1.5rem / 2) center !important; padding-left: calc(1.2rem + 0.65em) !important; &:focus { outline: none; @@ -171,12 +170,22 @@ // } } +.indicators-Critical { + color: $indicators-errors !important; +} + +.indicators-Warning { + color: $indicators-warning !important; +} + +.indicators-OK { + color: $indicators-succes !important; +} + .bootstrap-table__stripes tr:nth-of-type(even) { background-color: rgb(255 255 255); } - -////// не работает .bootstrap-table__stripes_odd tr:nth-of-type(odd) { background-color: rgb(255 255 255); } @@ -308,4 +317,36 @@ -ms-border-radius: 0; -o-border-radius: 0; -khtml-border-radius: 0; +} + +// logs tables styles +#logs-table { + margin: 0 !important; +} + +#logs-table-wrapper div { + overflow-y: overlay; + &::-webkit-scrollbar { + position: absolute; + width: 10px; + } + &::-webkit-scrollbar-thumb { + border: 4px solid transparent; + border-top: 52px solid transparent; + background: $faint-secondary-primary-20; + border-radius: 16px; + background-clip: content-box; + } +} + +.logs-table__th { + background-color: #f8f8f8 !important; + border-bottom: 1px solid $faint-secondary-primary-20 !important; + border-top: 1px solid $faint-secondary-primary-20 !important; + color: $text-primary !important; +} + +.logs-table__td { + border-bottom: 1px solid $faint-secondary-primary-10 !important; + height: 64px; } \ No newline at end of file diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue index 70631fbf..939ec5af 100644 --- a/src/components/AppHeader/AppHeader.vue +++ b/src/components/AppHeader/AppHeader.vue @@ -64,19 +64,6 @@ {{ $t('appHeader.servers') }} - - {{ $t('appHeader.settings') }} - - {{ $t('appHeader.power') }} -