From fe6c6a383f791e6288c1a0e53560c264ec1c3558 Mon Sep 17 00:00:00 2001 From: Jan Polonsky Date: Fri, 30 Aug 2024 20:52:24 +0200 Subject: [PATCH] Create manualy news item content with text format. Use same format for content as other collected news items from various source types. Before html now pure text. Problem was that content viewer show also all html tags but other items show just text --- src/gui/src/i18n/cs/messages.js | 1 + src/gui/src/i18n/en/messages.js | 1 + src/gui/src/i18n/sk/messages.js | 52 ++++++++++++++++--- src/gui/src/views/users/EnterView.vue | 73 ++++++++------------------- 4 files changed, 70 insertions(+), 57 deletions(-) diff --git a/src/gui/src/i18n/cs/messages.js b/src/gui/src/i18n/cs/messages.js index fcf12b3d..075088b1 100644 --- a/src/gui/src/i18n/cs/messages.js +++ b/src/gui/src/i18n/cs/messages.js @@ -107,6 +107,7 @@ const messages_cs = { review: "Souhrn", source: "Zdroj", link: "Odkaz", + content: "Obsah", successful: "Novinka byla vytvořena", }, diff --git a/src/gui/src/i18n/en/messages.js b/src/gui/src/i18n/en/messages.js index 7525737f..4d29df21 100644 --- a/src/gui/src/i18n/en/messages.js +++ b/src/gui/src/i18n/en/messages.js @@ -107,6 +107,7 @@ const messages_en = { review: "Review", source: "Source", link: "Link", + content: "Content", successful: "News item was successfully created" }, diff --git a/src/gui/src/i18n/sk/messages.js b/src/gui/src/i18n/sk/messages.js index f26fa17c..bd102d30 100644 --- a/src/gui/src/i18n/sk/messages.js +++ b/src/gui/src/i18n/sk/messages.js @@ -37,28 +37,68 @@ const messages_sk = { user_menu: { settings: "Nastavenia profilu", - logout: "Odhlásiť sa" + logout: "Odhlásiť sa", + dark_theme: "Tmavý motiv", }, main_menu: { - assess: "Zistiť", + enter: "Vložiť", + assess: "Vyhodnotiť", analyze: "Analyzovať", publish: "Publikovať", config: "Konfigurácia", - dashboard: "Dashboard" + dashboard: "Dashboard", + my_assets: "Aktíva" }, nav_menu: { - newsitems: "Nové zistenia", + enter: "Vytvoriť novinku", + newsitems: "Novinky", products: "Produkty", publications: "Publikácie", recent: "Najnovšie", popular: "Populárne", favourites: "Obľúbené", configuration: "Konfigurácia", - collectors_nodes: "Server zberačov údajov", + collectors_nodes: "Inštancie zberačov", + presenters_nodes: "Inštancie prezenterov", + publishers_nodes: "Inštancie publikateľov", + bots_nodes: "Inštancie robotov", osint_sources: "OSINT zdroje", + osint_source_groups: "OSINT skupiny", + publisher_presets: "Publikačné kanály", + bot_presets: "Roboti", collectors: "Zberače údajov", + report_items: "Analýzy", + attributes: "Atribúty", + report_types: "Typy analýz", + product_types: "Typy produktov", + roles: "Role", + acls: "ACL", + users: "Užívatelia", + organizations: "Organizácie", + word_lists: "Slovníky", + asset_groups: "Skupiny aktív", + notification_templates: "Šablóny oznámení", + remote_access: "Vzdialený prístup", + remote_nodes: "Vzdialené inštancie", + local: "Lokálne" + }, + + notification: { + close: "Zavrieť" + }, + + enter: { + create: "Vytvoriť", + validation_error: "Prosím vyplňte všetky povinné polia", + error: "Novinku sa nepodarilo vytvoriť", + title: "Názov", + review: "Súhrn", + source: "Zdroj", + link: "Odkaz", + content: "Obsah", + successful: "Novinka bola úspešne vytvorená", }, collectors_node: { @@ -81,7 +121,7 @@ const messages_sk = { add: "Pridať", cancel: "Zrušiť", validation_error: "Prosím vyplňte všetky povinné polia", - error: "Nepodarilo sa vytvoriť zadaný zdroj.", + error: "Nepodarilo sa vytvoriť zadaný zdroj", name: "Meno", description: "Popis", last_attempt: "Posledný pokus", diff --git a/src/gui/src/views/users/EnterView.vue b/src/gui/src/views/users/EnterView.vue index 001ee7b3..85525ec5 100644 --- a/src/gui/src/views/users/EnterView.vue +++ b/src/gui/src/views/users/EnterView.vue @@ -14,41 +14,36 @@ - - - - - + @@ -67,37 +62,17 @@