From d5e1304c0d5b1b80926efbd277f0fc946398ff45 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Tue, 7 Nov 2023 18:01:34 +0000 Subject: [PATCH] Connection status/error messages --- cista-front/src/assets/main.css | 11 +++- cista-front/src/components/FileExplorer.vue | 9 ++-- cista-front/src/components/HeaderMain.vue | 25 ++++----- cista-front/src/components/LoginModal.vue | 41 +++++++-------- cista-front/src/components/ModalDialog.vue | 22 +++++--- cista-front/src/repositories/Client.ts | 2 +- cista-front/src/repositories/WS.ts | 58 +++++++++++++-------- cista-front/src/stores/documents.ts | 10 +++- cista/api.py | 19 ++++++- cista/app.py | 2 + 10 files changed, 124 insertions(+), 75 deletions(-) diff --git a/cista-front/src/assets/main.css b/cista-front/src/assets/main.css index 60ead97..814bed8 100644 --- a/cista-front/src/assets/main.css +++ b/cista-front/src/assets/main.css @@ -3,9 +3,10 @@ :root { --primary-color: #000; --primary-background: #ddd; - --header-background: #246; + --header-background: var(--soft-color); --header-color: #ccc; --primary-color: #000; + --soft-color: #146; --accent-color: #f80; --transition-time: 0.2s; /* The following are overridden by responsive layouts */ @@ -16,7 +17,7 @@ @media (prefers-color-scheme: dark) { :root { --primary-color: #ddd; - --primary-background: #003; + --primary-background: var(--soft-color); --header-background: #000; --header-color: #ccc; } @@ -235,3 +236,9 @@ main { opacity: 0; } } +.error-message { + padding: .5em; + font-weight: bold; + background: var(--accent-color); + color: #000; +} diff --git a/cista-front/src/components/FileExplorer.vue b/cista-front/src/components/FileExplorer.vue index 9c4bc4c..cb9288d 100644 --- a/cista-front/src/components/FileExplorer.vue +++ b/cista-front/src/components/FileExplorer.vue @@ -129,8 +129,8 @@ - - {{props.documents.length}} items shown: + + {{props.documents.length}} items {{ formatSize(props.documents.reduce((a, b) => a + b.size, 0)) }} @@ -140,7 +140,7 @@