From 11f05e0f58c412a5e397f780fb3b8acbd2d6997e Mon Sep 17 00:00:00 2001 From: d00r5 <174354444+d00r5@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:30:41 +0200 Subject: [PATCH 1/8] chore: remove config for opensourcing --- frontend/src/entities/config.ts | 14 +------------- frontend/src/stores/components/graph.ts | 3 +-- frontend/src/views/CAB/DefaultTimeline.vue | 2 +- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/frontend/src/entities/config.ts b/frontend/src/entities/config.ts index c4ef8bfc..ce62aea4 100644 --- a/frontend/src/entities/config.ts +++ b/frontend/src/entities/config.ts @@ -1,29 +1,17 @@ // Import your theme here -import './DA/assets/theme.scss' -import './ORANGE/assets/theme.scss' import './RTE/assets/theme.scss' -import './SNCF/assets/theme.scss' // Import your types here -import type { DA } from './DA/types' -import type { ORANGE } from './ORANGE/types' import type { RTE } from './RTE/types' -import type { SNCF } from './SNCF/types' // Add your entity and config here // darkMode: use dark mode export const ENTITIES_CONFIG = { - DA: { darkMode: true }, - ORANGE: { darkMode: false }, - RTE: { darkMode: false }, - SNCF: { darkMode: false } + RTE: { darkMode: false } } as const Object.freeze(ENTITIES_CONFIG) // Bind your types here export type EntitiesTypes = { - DA: DA - ORANGE: ORANGE RTE: RTE - SNCF: SNCF } diff --git a/frontend/src/stores/components/graph.ts b/frontend/src/stores/components/graph.ts index fe520ddb..eb4d6b05 100644 --- a/frontend/src/stores/components/graph.ts +++ b/frontend/src/stores/components/graph.ts @@ -11,7 +11,6 @@ import { import { defineStore } from 'pinia' import { computed, ref } from 'vue' -//import type { CorrelationData, CorrelationKey, KPI } from '@/entities/ORANGE/types' import eventBus from '@/plugins/eventBus' import { type Card, CRITICALITIES } from '@/types/cards' import type { Link, Node } from '@/types/components/graph' @@ -212,7 +211,7 @@ export const useGraphStore = defineStore('graph', () => { ) ) - setStatuses(useCardsStore().cards('ORANGE')) + setStatuses(useCardsStore()._cards) } function setStatuses(cards: Card[]) { diff --git a/frontend/src/views/CAB/DefaultTimeline.vue b/frontend/src/views/CAB/DefaultTimeline.vue index 47cdc88a..e4df9d4b 100644 --- a/frontend/src/views/CAB/DefaultTimeline.vue +++ b/frontend/src/views/CAB/DefaultTimeline.vue @@ -1,7 +1,7 @@