From ec404fb19d03367d44fbea0b6e430e89aaf3ae1b Mon Sep 17 00:00:00 2001
From: jfrer <76432831+jfrer@users.noreply.github.com>
Date: Tue, 11 Jun 2024 11:20:13 +0200
Subject: [PATCH] feat: add introductory text to workflows pages (#77)
---
src/components/Workflows.vue | 2 ++
.../workflows/WorkflowsIntroSection.vue | 34 +++++++++++++++++++
src/locales/de.json | 11 +++++-
src/locales/en.json | 8 ++++-
4 files changed, 53 insertions(+), 2 deletions(-)
create mode 100644 src/components/workflows/WorkflowsIntroSection.vue
diff --git a/src/components/Workflows.vue b/src/components/Workflows.vue
index adb64b7..fb1ed34 100644
--- a/src/components/Workflows.vue
+++ b/src/components/Workflows.vue
@@ -8,6 +8,7 @@
import Filters from "@/components/workflows/filters/Filters.vue"
import SelectButton from "primevue/selectbutton"
import WorkflowsTimeline from "@/components/workflows/WorkflowsTimeline.vue"
+ import WorkflowsIntroSection from "@/components/workflows/WorkflowsIntroSection.vue"
import filtersStore from "@/store/filters-store"
import workflowsStore from "@/store/workflows-store"
import type { ReleaseInfo } from "@/types";
@@ -78,6 +79,7 @@
diff --git a/src/components/workflows/WorkflowsIntroSection.vue b/src/components/workflows/WorkflowsIntroSection.vue
new file mode 100644
index 0000000..5a13a4a
--- /dev/null
+++ b/src/components/workflows/WorkflowsIntroSection.vue
@@ -0,0 +1,34 @@
+
+
+
+
{{ t('workflows_intro_text') }}
+
{{ t('workflows_intro_additional_text_timeline') }}
+
+
+
+ {{ t("ocrd_link") }}
+
+
+
+
+ {{ t("gt_guidelines_link") }}
+
+
+
+
diff --git a/src/locales/de.json b/src/locales/de.json
index 951f383..7f63644 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -61,5 +61,14 @@
"negative": "negativ",
"better": "besser",
"equal": "gleich",
- "worse": "schlechter"
+ "worse": "schlechter",
+ "percentage": "Prozent",
+ "pages": "Seiten",
+ "seconds": "Sekunden",
+ "workflows_intro_text": "Dies ist ein OCR-D-Benchmarking-Dashboard. Es gibt Ihnen einen Überblick über die verschiedenen Ground-Truth-Dokumente mit den jeweils durchgeführten Workflows und verwendeten Prozessoren sowie den daraus resultierenden Werten für verschiedene Metriken.",
+ "workflows_intro_additional_text_timeline": "Die Chronik zeigt den Verlauf der Werte für alle OCR-D-Basisversionen.",
+ "workflows_intro_additional_infos": "Weitere Informationen finden Sie auf der OCR-D-Website {ocrd_link}.",
+ "ocrd_link": "https://ocr-d.de/de/",
+ "workflows_intro_gt_guidelines": "Die OCR-D Ground Truth Richtlinien können unter {gt_guidelines_link} abgerufen werden.",
+ "gt_guidelines_link": "https://ocr-d.de/de/gt-guidelines/trans/"
}
diff --git a/src/locales/en.json b/src/locales/en.json
index ea04f5d..29c3fb4 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -58,5 +58,11 @@
"worse": "worse",
"percentage": "percentage",
"pages": "pages",
- "seconds": "seconds"
+ "seconds": "seconds",
+ "workflows_intro_text": "This is an OCR-D benchmarking dashboard. It gives you an overview of the various ground truth documents, with the respective workflows performed and processors used, and the resulting values for various metrics.",
+ "workflows_intro_additional_text_timeline": "The timeline shows the history of the values for all OCR-D core releases.",
+ "workflows_intro_additional_infos": "For more information see the OCR-D website {ocrd_link}.",
+ "ocrd_link": "https://ocr-d.de/en/",
+ "workflows_intro_gt_guidelines": "The OCR-D Ground Truth Guidelines can be found under {gt_guidelines_link}.",
+ "gt_guidelines_link": "https://ocr-d.de/en/gt-guidelines/trans/"
}