summaryrefslogtreecommitdiff
path: root/src/views/Operations
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-05-23 16:46:24 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-05-23 16:46:24 +0300
commit5c7a1dd3d6a22e02b983a01be39b654b8eaa6ad1 (patch)
tree3f11b86aa27b02fa6b33142f53e5b2c25b33f85f /src/views/Operations
parent8086773d610f64ab71a11bd13cc896111b710fc8 (diff)
downloadwebui-vue-5c7a1dd3d6a22e02b983a01be39b654b8eaa6ad1.tar.xz
Add pages: BMC, Ipv4/6, console settings. Fix routes: add console mixin, disable fullscreen console, add global styles.
Diffstat (limited to 'src/views/Operations')
-rw-r--r--src/views/Operations/ConsoleSettings/ConsoleSettings.vue97
-rw-r--r--src/views/Operations/ConsoleSettings/index.js2
-rw-r--r--src/views/Operations/SerialOverLan/SerialOverLan.vue3
3 files changed, 100 insertions, 2 deletions
diff --git a/src/views/Operations/ConsoleSettings/ConsoleSettings.vue b/src/views/Operations/ConsoleSettings/ConsoleSettings.vue
new file mode 100644
index 00000000..bd95fa46
--- /dev/null
+++ b/src/views/Operations/ConsoleSettings/ConsoleSettings.vue
@@ -0,0 +1,97 @@
+<template>
+ <b-container
+ :style="{ display: 'flex', 'flex-direction': 'column' }"
+ fluid="xxl pt-0 m-0"
+ >
+ <page-title />
+ <!-- BMC table -->
+ <div class="main-container">
+ <page-section class="bootstrap-table__section">
+ <b-table
+ responsive="md"
+ show-empty
+ class="bootstrap-rounded-table"
+ :items="systems"
+ :fields="fields"
+ :empty-text="$t('global.table.emptyMessage')"
+ >
+ </b-table>
+ </page-section>
+ </div>
+ </b-container>
+</template>
+
+<script>
+import PageTitle from '@/components/Global/PageTitle';
+// import BMCConfigurationTable from './BMCConfigurationTable';
+// import BMCConfigurationControl from './BMCConfigurationControl';
+import PageSection from '@/components/Global/PageSection';
+import BVToastMixin from '@/components/Mixins/BVToastMixin';
+// import iconChevronUp from '@carbon/icons-vue/es/chevron--up/16';
+import TableRowExpandMixin, {
+ expandRowLabel,
+} from '@/components/Mixins/TableRowExpandMixin';
+
+export default {
+ components: {
+ PageTitle,
+ // BMCConfigurationControl,
+ // BMCConfigurationTable,
+ PageSection,
+ },
+ mixins: [BVToastMixin, TableRowExpandMixin],
+ data() {
+ return {
+ text: '',
+ isBusy: true,
+ fields: [
+ {
+ key: 'attributes',
+ label: 'Атрибуты',
+ formatter: this.dataFormatter,
+ thClass: 'semi-bold-12px__caps bootstrap-rounded-table__head_bg',
+ class: 'bootstrap-rounded-table__column-first',
+ tdClass: 'regular-12px bootstrap-rounded-table__td',
+ },
+ {
+ key: 'value',
+ label: 'Значение',
+ formatter: this.dataFormatter,
+ thClass: 'semi-bold-12px__caps bootstrap-rounded-table__head_bg',
+ class: `bootstrap-rounded-table__column-last
+ bootstrap-rounded-table__column-last___console`,
+ tdClass: 'regular-12px bootstrap-rounded-table__td',
+ },
+ ],
+ expandRowLabel: expandRowLabel,
+ systems: [
+ { attributes: 'Включена', value: 'Включено' },
+ { attributes: 'Максимальное количество сеансов', value: '6' },
+ { attributes: 'Активные сеансы', value: '0' },
+ { attributes: 'Порт удаленного доступа', value: '5900' },
+ { attributes: 'Статус шифрования видео', value: 'Включено' },
+ { attributes: 'Видео с локального сервера', value: 'Включено' },
+ {
+ attributes:
+ 'Действие по умолчанию при истечении времени ожидания запроса на общий доступ к сеансу',
+ value: 'Полный доступ',
+ },
+ {
+ attributes: 'Автоматическая блокировка системы',
+ value: 'Не включено',
+ },
+ {
+ attributes: 'Состояние подключения клавиатуры/мыши',
+ value: 'Автоматическое',
+ },
+ ],
+ // iconChevronUp: iconChevronUp,
+ };
+ },
+};
+</script>
+<style lang="scss">
+.bootstrap-rounded-table__column-last___console {
+ width: 30%;
+}
+</style>
diff --git a/src/views/Operations/ConsoleSettings/index.js b/src/views/Operations/ConsoleSettings/index.js
new file mode 100644
index 00000000..860ee595
--- /dev/null
+++ b/src/views/Operations/ConsoleSettings/index.js
@@ -0,0 +1,2 @@
+import ConsoleSettings from './ConsoleSettings.vue';
+export default ConsoleSettings;
diff --git a/src/views/Operations/SerialOverLan/SerialOverLan.vue b/src/views/Operations/SerialOverLan/SerialOverLan.vue
index 48a68345..08a67d84 100644
--- a/src/views/Operations/SerialOverLan/SerialOverLan.vue
+++ b/src/views/Operations/SerialOverLan/SerialOverLan.vue
@@ -1,7 +1,6 @@
<template>
<b-container fluid="xl">
- <page-title class="mb-4" :description="$t('pageSerialOverLan.subTitle')" />
-
+ <page-title />
<page-section class="mb-0">
<serial-over-lan-console :is-full-window="false" />
</page-section>