From d285e04272e63463fe120f5e94c537f6913ec7f9 Mon Sep 17 00:00:00 2001
From: Andrea Vos
Date: Sat, 30 Jul 2022 00:57:51 +0200
Subject: [PATCH] TranslationMode progress
---
components/DialogueBox.vue | 9 ++++---
components/T.vue | 28 ++++++++++++++++-----
components/TranslationMode.vue | 35 ++++++++++++++++++++++++---
migrations/056-translations.sql | 18 ++++++++++++++
plugins/globals.js | 9 ++++---
server/index.js | 5 +---
server/routes/translations.js | 28 +++++++++++++++++++++
src/contact.js | 6 ++---
src/translator.js | 43 ++++++++++++++++++++++++---------
store/index.js | 20 ++++++++++++---
10 files changed, 161 insertions(+), 40 deletions(-)
create mode 100644 migrations/056-translations.sql
create mode 100644 server/routes/translations.js
diff --git a/components/DialogueBox.vue b/components/DialogueBox.vue
index 597a2df6b..0417e0776 100644
--- a/components/DialogueBox.vue
+++ b/components/DialogueBox.vue
@@ -9,11 +9,11 @@
-
+
@@ -53,6 +53,7 @@
icon: undefined,
header: undefined,
message: undefined,
+ margin: true,
color: null,
value: undefined,
size: undefined,
@@ -88,7 +89,8 @@
this.icon = message.icon || (choice ? 'map-marker-question' : null);
this.header = message.header;
this.message = message.message || (choice ? this.$t('confirm.header') : null);
- this.size = size;
+ this.margin = message.margin ?? true;
+ this.size = message.size ?? size;
this.color = color;
this.value = value;
this.shown = true;
@@ -118,6 +120,7 @@
this.icon = undefined;
this.header = undefined;
this.message = undefined;
+ this.margin = true;
this.color = null;
this.value = undefined;
this.size = undefined;
diff --git a/components/T.vue b/components/T.vue
index cdd00d2ea..e4b3b7f37 100644
--- a/components/T.vue
+++ b/components/T.vue
@@ -3,7 +3,7 @@