From 2797ad4a30026dd94d3892e9d2a0502da350db78 Mon Sep 17 00:00:00 2001 From: GooDRomka <53299930+GooDRomka@users.noreply.github.com> Date: Tue, 28 Jul 2020 16:03:16 +0500 Subject: [PATCH] copySitemapButton (#66) * Added simple version of copyButton * Added confirm action to copySitemapButton with input field for id. Needed to insert validation of this field * Added input field for id. Also added validation of this field * Attempt to make a new algorithm * Fixed some problems. Worked version * Removed buttons from another branch * Working version, but with this.sitemap and this.selector * Unified modal-input-field * Renamed some functions * Updated version * Messages mistake fixed Co-authored-by: Alexander <9622929+Yatskov@users.noreply.github.com> --- package.json | 2 +- src/_locales/en/messages.json | 10 ++- src/_locales/ru/messages.json | 10 ++- src/devtools/views/ActionConfirm.html | 16 +++- src/devtools/views/SitemapListItem.html | 6 ++ src/scripts/Controller.js | 115 +++++++++++++++++++----- 6 files changed, 132 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index bfd782c7..f4758203 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-scraper-chrome-extension", - "version": "0.3.619", + "version": "0.3.7", "description": "Web data extraction tool implemented as chrome extension", "scripts": { "lint": "eslint --ext .js src", diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 8273d140..4225fcb7 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -285,5 +285,13 @@ "modal_confirm_action_submit_delete_selector": { "message": "Confirm" }, "modal_confirm_action_cancel_delete_selector": { "message": "Cancel" }, "modal_confirm_action_submit_delete_sitemap": { "message": "Confirm" }, - "modal_confirm_action_cancel_delete_sitemap": { "message": "Cancel" } + "modal_confirm_action_cancel_delete_sitemap": { "message": "Cancel" }, + "create_copy_sitemap": { "message": "Copy" }, + "modal_confirm_action_submit_copy_sitemap": { "message": "Create sitemap" }, + "modal_confirm_action_cancel_copy_sitemap": { "message": "Cancel" }, + "modal_confirm_action_title_copy_sitemap": { + "message": "Copying sitemap ?" + }, + "modal_confirm_action_message_copy_sitemap": { "message": "Sitemap name" }, + "modal_confirm_action_input_copy_sitemap": { "message": "Sitemap name" } } diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index 401f249a..48fcc94c 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -317,5 +317,13 @@ "modal_confirm_action_submit_delete_selector": { "message": "Подтвердить" }, "modal_confirm_action_cancel_delete_selector": { "message": "Отмена" }, "modal_confirm_action_submit_delete_sitemap": { "message": "Подтвердить" }, - "modal_confirm_action_cancel_delete_sitemap": { "message": "Отмена" } + "modal_confirm_action_cancel_delete_sitemap": { "message": "Отмена" }, + "create_copy_sitemap": { "message": "Копировать" }, + "modal_confirm_action_submit_copy_sitemap": { "message": "Создать карту обхода" }, + "modal_confirm_action_cancel_copy_sitemap": { "message": "Отменить" }, + "modal_confirm_action_title_copy_sitemap": { + "message": "Копирование карты ?" + }, + "modal_confirm_action_message_copy_sitemap": { "message": "Идентификатор карты обхода" }, + "modal_confirm_action_input_copy_sitemap": { "message": "Идентификатор карты обхода" } } diff --git a/src/devtools/views/ActionConfirm.html b/src/devtools/views/ActionConfirm.html index f9cfe5cd..14916506 100644 --- a/src/devtools/views/ActionConfirm.html +++ b/src/devtools/views/ActionConfirm.html @@ -1,4 +1,4 @@ -