From 6706486aff1a8e49de64fc2ac7b71826ffac2b99 Mon Sep 17 00:00:00 2001 From: Anna No Date: Wed, 11 May 2022 13:18:03 +0700 Subject: [PATCH] Add TextAreaEditor (#1694) * Add TextAreaEditor Signed-off-by: Anna No * fix formatting Signed-off-by: Anna No * fix formatting Signed-off-by: Anna No --- packages/ui/lang/en.json | 1 + packages/ui/lang/ru.json | 1 + .../ui/src/components/TextAriaEditor.svelte | 72 ++++++++++++++++++ packages/ui/src/index.ts | 1 + packages/ui/src/plugin.ts | 1 + .../components/add-card/AddCardEditor.svelte | 76 +++---------------- 6 files changed, 88 insertions(+), 64 deletions(-) create mode 100644 packages/ui/src/components/TextAriaEditor.svelte diff --git a/packages/ui/lang/en.json b/packages/ui/lang/en.json index faed064e55..8434e967ba 100644 --- a/packages/ui/lang/en.json +++ b/packages/ui/lang/en.json @@ -3,6 +3,7 @@ "EditBoxPlaceholder": "Type text...", "Ok": "Ok", "Cancel": "Cancel", + "Save": "Save", "Minutes": "{minutes, plural, =0 {less than a minute ago} =1 {a minute ago} other {# minutes ago}}", "Hours": "{hours, plural, =0 {less than an hour ago} =1 {an hour ago} other {# hours ago}}", "Days": "{days, plural, =0 {today} =1 {yesterday} other {# days ago}}", diff --git a/packages/ui/lang/ru.json b/packages/ui/lang/ru.json index 00ec555ca0..97b57f565c 100644 --- a/packages/ui/lang/ru.json +++ b/packages/ui/lang/ru.json @@ -3,6 +3,7 @@ "EditBoxPlaceholder": "Введите текст здесь", "Ok": "Ок", "Cancel": "Отменить", + "Save": "Сохранить", "Minutes": "{minutes, plural, =0 {меньше минуты назад} =1 {минуту назад} other {# минут назад}}", "Hours": "{hours, plural, =0 {меньше часа назад} =1 {час назад} other {# часов назад}}", "Days": "{days, plural, =0 {сегода} =1 {вчера} other {# дней назад}}", diff --git a/packages/ui/src/components/TextAriaEditor.svelte b/packages/ui/src/components/TextAriaEditor.svelte new file mode 100644 index 0000000000..c22f49f632 --- /dev/null +++ b/packages/ui/src/components/TextAriaEditor.svelte @@ -0,0 +1,72 @@ + + + +
+
+