From b4327ebac1130aa8875547e459377e94ffe47a0b Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Tue, 25 Jun 2024 10:50:13 -0300 Subject: [PATCH 1/2] Views: Configuration-Dev: Refactor component to new UI Signed-off-by: Arturo Manzoli --- src/views/ConfigurationDevelopmentView.vue | 76 +++++++++++++++------- 1 file changed, 52 insertions(+), 24 deletions(-) diff --git a/src/views/ConfigurationDevelopmentView.vue b/src/views/ConfigurationDevelopmentView.vue index bd9f00a58..96bd9b6ca 100644 --- a/src/views/ConfigurationDevelopmentView.vue +++ b/src/views/ConfigurationDevelopmentView.vue @@ -2,29 +2,48 @@ @@ -37,11 +56,14 @@ import { saveAs } from 'file-saver' import { onBeforeMount } from 'vue' import { ref } from 'vue' +import ExpansiblePanel from '@/components/ExpansiblePanel.vue' import { type SystemLog, cockpitSytemLogsDB } from '@/libs/system-logging' +import { useAppInterfaceStore } from '@/stores/appInterface' import { useDevelopmentStore } from '@/stores/development' import BaseConfigurationView from './BaseConfigurationView.vue' const devStore = useDevelopmentStore() +const interfaceStore = useAppInterfaceStore() /* eslint-disable jsdoc/require-jsdoc */ interface SystemLogsData { @@ -58,7 +80,7 @@ const headers = [ { title: 'Name', value: 'name' }, { title: 'Time (initial)', value: 'initialTime' }, { title: 'Date (initial)', value: 'initialDate' }, - { title: 'N. events', value: 'nEvents' }, + { title: 'events', value: 'nEvents' }, { title: 'Download', value: 'actions' }, ] @@ -82,3 +104,9 @@ const downloadLog = async (logName: string): Promise => { const reloadCockpit = (): void => location.reload() + From 0340a70ab331912bc44cb1b7a83f68d9bfe9cf79 Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Tue, 25 Jun 2024 10:51:38 -0300 Subject: [PATCH 2/2] Components: Glass-modal: Adjust small screen responsiveness Signed-off-by: Arturo Manzoli --- src/components/GlassModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GlassModal.vue b/src/components/GlassModal.vue index 88de32a50..60f53110f 100644 --- a/src/components/GlassModal.vue +++ b/src/components/GlassModal.vue @@ -51,7 +51,7 @@ const modalPositionStyle = computed(() => { return { top: '50%', left: interfaceStore.isOnSmallScreen - ? `${interfaceStore.mainMenuWidth - 20}px` + ? `${interfaceStore.mainMenuWidth - 30}px` : `${interfaceStore.mainMenuWidth + 30}px`, transform: 'translateY(-50%)', }