From f513ee8d07183eb402cbd5f36d925958b0332eab Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 14 Jun 2022 22:51:31 +0200 Subject: [PATCH] =?UTF-8?q?Mockup=20karty=20ze=20statystykami=20dy=C5=BCur?= =?UTF-8?q?nego?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JournalView/DispatcherStats.vue | 167 ++++++++++++++++++ .../JournalView/JournalDispatchers.vue | 5 +- src/store/store.ts | 3 - src/styles/card.scss | 17 +- 4 files changed, 185 insertions(+), 7 deletions(-) create mode 100644 src/components/JournalView/DispatcherStats.vue diff --git a/src/components/JournalView/DispatcherStats.vue b/src/components/JournalView/DispatcherStats.vue new file mode 100644 index 0000000..4285d6b --- /dev/null +++ b/src/components/JournalView/DispatcherStats.vue @@ -0,0 +1,167 @@ + + + + + diff --git a/src/components/JournalView/JournalDispatchers.vue b/src/components/JournalView/JournalDispatchers.vue index 5168856..4f2edcf 100644 --- a/src/components/JournalView/JournalDispatchers.vue +++ b/src/components/JournalView/JournalDispatchers.vue @@ -8,6 +8,8 @@ :sorter-option-ids="['timestampFrom', 'duration']" /> + + @@ -96,6 +98,7 @@ import { DataStatus } from '@/scripts/enums/DataStatus'; import ActionButton from '@/components/Global/ActionButton.vue'; import JournalOptions from '@/components/JournalView/JournalOptions.vue'; +import DispatcherStats from '@/components/JournalView/DispatcherStats.vue'; import { URLs } from '@/scripts/utils/apiURLs'; @@ -128,7 +131,7 @@ interface DispatcherHistoryItem { } export default defineComponent({ - components: { SearchBox, ActionButton, JournalOptions }, + components: { SearchBox, ActionButton, JournalOptions, DispatcherStats }, mixins: [dateMixin], props: { diff --git a/src/store/store.ts b/src/store/store.ts index a7724e0..73d0e8a 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -334,9 +334,6 @@ export const useStore = defineStore('store', { socket.on('UPDATE', (data: APIData) => { this.apiData = data; - - console.dir(data); - this.setOnlineData(); }); diff --git a/src/styles/card.scss b/src/styles/card.scss index ea06a19..93513d7 100644 --- a/src/styles/card.scss +++ b/src/styles/card.scss @@ -1,6 +1,18 @@ @import './variables.scss'; @import './responsive.scss'; +.card-dimmer { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + + z-index: 100; + + background: rgba(black, 0.65); +} + .card { position: fixed; top: 50%; @@ -12,8 +24,7 @@ overflow-x: hidden; background: #202020da; - - box-shadow: 0 0 20px 10px #292929; + box-shadow: 0 0 15px 5px #303030; width: 600px; @@ -36,4 +47,4 @@ cursor: pointer; } -} \ No newline at end of file +}