From 4057e4c88b4b949a3ec9e64558eed42e0bc486f7 Mon Sep 17 00:00:00 2001 From: minie4 Date: Mon, 2 Jan 2023 23:07:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Add=20text=20if=20there=20is=20n?= =?UTF-8?q?o=20entry=20for=20selected=20day?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Overlay if substitutions / history view is still loading - Overlay if no substitution exists for current day - Overlay if no history exists for current day --- src/components/history-list.vue | 87 ++++++++++++++----------- src/components/icons/bell-off-icon.vue | 22 +++++++ src/components/icons/clock-icon-big.vue | 19 ++++++ src/components/icons/clock-off-icon.vue | 24 +++++++ src/components/info-card.vue | 73 +++++++++++++++++++++ src/components/substitution-list.vue | 18 +++++ src/strings.js | 25 +++++++ 7 files changed, 231 insertions(+), 37 deletions(-) create mode 100644 src/components/icons/bell-off-icon.vue create mode 100644 src/components/icons/clock-icon-big.vue create mode 100644 src/components/icons/clock-off-icon.vue create mode 100644 src/components/info-card.vue diff --git a/src/components/history-list.vue b/src/components/history-list.vue index 24e4758..d9e44ba 100644 --- a/src/components/history-list.vue +++ b/src/components/history-list.vue @@ -3,6 +3,9 @@ import { history } from "../store"; import { getSubstitutionText } from "../util"; import { computed } from "vue"; import dayjs from "dayjs"; +import InfoCard from "./info-card.vue"; +import ClockIconBig from "./icons/clock-icon-big.vue"; +import ClockOffIcon from "./icons/clock-off-icon.vue"; const props = defineProps({ date: { @@ -22,45 +25,55 @@ const chars = { diff --git a/src/components/substitution-list.vue b/src/components/substitution-list.vue index a810793..d2d4260 100644 --- a/src/components/substitution-list.vue +++ b/src/components/substitution-list.vue @@ -2,6 +2,9 @@ import { substitutions } from "../store"; import { getSubstitutionText, getSubstitutionColor } from "../util"; import { computed } from "vue"; +import InfoCard from "./info-card.vue"; +import BellOffIcon from "./icons/bell-off-icon.vue"; +import ClockIconBig from "./icons/clock-icon-big.vue"; const props = defineProps({ date: { @@ -15,6 +18,21 @@ const substitutionsForDate = computed(() => {