From 5ee718ba5c96a09cd696d96ae3ad618c7e384e48 Mon Sep 17 00:00:00 2001 From: Sean Leong Date: Fri, 20 Dec 2024 02:18:21 +0800 Subject: [PATCH 1/3] feat + refactor: added messenger sharing --- frontend/components/btn/BtnShareIcon.vue | 138 +++++++++ frontend/components/modal/ModalSharePage.vue | 307 +++++-------------- frontend/i18n/de.json | 4 +- frontend/i18n/en-US.json | 4 +- frontend/i18n/es.json | 4 +- frontend/i18n/fr.json | 4 +- frontend/i18n/pt.json | 4 +- 7 files changed, 233 insertions(+), 232 deletions(-) create mode 100644 frontend/components/btn/BtnShareIcon.vue diff --git a/frontend/components/btn/BtnShareIcon.vue b/frontend/components/btn/BtnShareIcon.vue new file mode 100644 index 000000000..5121c5a22 --- /dev/null +++ b/frontend/components/btn/BtnShareIcon.vue @@ -0,0 +1,138 @@ + + + diff --git a/frontend/components/modal/ModalSharePage.vue b/frontend/components/modal/ModalSharePage.vue index 0fb20e528..841136c26 100644 --- a/frontend/components/modal/ModalSharePage.vue +++ b/frontend/components/modal/ModalSharePage.vue @@ -14,186 +14,94 @@
- - - - + - - - + - - - - - - + + + + - - -
- - -
-
- - -
+ :native-behavior-options="nativeBehaviorOptions" + /> +
@@ -218,28 +126,11 @@
- diff --git a/frontend/i18n/de.json b/frontend/i18n/de.json index 75f0e3ef6..dd545344a 100644 --- a/frontend/i18n/de.json +++ b/frontend/i18n/de.json @@ -75,6 +75,8 @@ "components._global.upvote_application_aria_label": "Stimmen Sie ab, um die Organisation zu unterstützen, die sich der Aktivistin anschließt", "components._global.working_groups_subtext": "Die folgenden Arbeitsgruppen sind innerhalb von {entity_name}", "components.btn_road_map.aria_label": "Erfahren Sie mehr über die Roadmap für Aktivist*innen", + "components.btn_share_icon.url_copied": "URL kopiert", + "components.btn_share_icon.opening_signal": "Signal wird geöffnet", "components.card.about._global.full_text": "Für den vollständigen Text anklicken", "components.card.about._global.full_text_aria_label": "Klicken Sie hier, um ein Popup mit dem vollständigen Text anzuzeigen", "components.card.about._global.members_lower": "Mitglieder", @@ -290,10 +292,8 @@ "components.modal_share_page.messenger": "Messenger", "components.modal_share_page.offline": "Offline", "components.modal_share_page.online": "Online", - "components.modal_share_page.opening_signal": "Signal wird geöffnet", "components.modal_share_page.signal": "Signal", "components.modal_share_page.telegram": "Telegram", - "components.modal_share_page.url_copied": "URL kopiert", "components.modal_upload_images.drag_image": "Bild hierher ziehen oder hier klicken, um es hinzuzufügen", "components.modal_upload_images.drag_images": "Bilder hierher ziehen oder hier klicken, um sie hinzuzufügen", "components.modal_upload_images.drop_image": "Bild hier ablegen, um es hinzuzufügen", diff --git a/frontend/i18n/en-US.json b/frontend/i18n/en-US.json index 4aca74f57..aa34df10f 100644 --- a/frontend/i18n/en-US.json +++ b/frontend/i18n/en-US.json @@ -75,6 +75,8 @@ "components._global.upvote_application_aria_label": "Vote to support the organization joining activist", "components._global.working_groups_subtext": "The following are working groups within {entity_name}", "components.btn_road_map.aria_label": "Learn about the activist roadmap", + "components.btn_share_icon.url_copied": "URL copied", + "components.btn_share_icon.opening_signal": "Opening Signal", "components.card.about._global.full_text": "Click for full text", "components.card.about._global.full_text_aria_label": "Click to view a popup with the full text", "components.card.about._global.members_lower": "members", @@ -291,10 +293,8 @@ "components.modal_share_page.messenger": "Messenger", "components.modal_share_page.offline": "Offline", "components.modal_share_page.online": "Online", - "components.modal_share_page.opening_signal": "Opening Signal", "components.modal_share_page.signal": "Signal", "components.modal_share_page.telegram": "Telegram", - "components.modal_share_page.url_copied": "URL copied", "components.modal_upload_images.drag_image": "Drag your image or click here to add it", "components.modal_upload_images.drag_images": "Drag your images or click here to add them", "components.modal_upload_images.drop_image": "Drop the image here to add it", diff --git a/frontend/i18n/es.json b/frontend/i18n/es.json index 7f574b95f..2574331b6 100644 --- a/frontend/i18n/es.json +++ b/frontend/i18n/es.json @@ -75,6 +75,8 @@ "components._global.upvote_application_aria_label": "Vota para apoyar a la organización que se une a los activistas", "components._global.working_groups_subtext": "Los siguientes son grupos de trabajo dentro de {entity_name}", "components.btn_road_map.aria_label": "Conozca la hoja de ruta de activist", + "components.btn_share_icon.url_copied": "URL copiada", + "components.btn_share_icon.opening_signal": "Abriendo Signal", "components.card.about._global.full_text": "Click para texto completo", "components.card.about._global.full_text_aria_label": "Click para ver una ventana emergente con el texto completo", "components.card.about._global.members_lower": "miembros", @@ -291,10 +293,8 @@ "components.modal_share_page.messenger": "Messenger", "components.modal_share_page.offline": "Desconectado", "components.modal_share_page.online": "Conectado", - "components.modal_share_page.opening_signal": "Abriendo Signal", "components.modal_share_page.signal": "Signal", "components.modal_share_page.telegram": "Telegram", - "components.modal_share_page.url_copied": "URL copiada", "components.modal_upload_images.drag_image": "Arrastra tu imagen o haz clic aquí para agregarla", "components.modal_upload_images.drag_images": "Arrastra tus imágenes o haz clic aquí para agregarlas", "components.modal_upload_images.drop_image": "Suelta la imagen aquí para agregarla", diff --git a/frontend/i18n/fr.json b/frontend/i18n/fr.json index 0ef3781e2..2c76b7fd6 100644 --- a/frontend/i18n/fr.json +++ b/frontend/i18n/fr.json @@ -75,6 +75,8 @@ "components._global.upvote_application_aria_label": "Voter pour soutenir l’organisation qui rejoint le mouvement", "components._global.working_groups_subtext": "Les groupes de travail suivants font partie de {entity_name}", "components.btn_road_map.aria_label": "En savoir plus sur la feuille de route d'Activist", + "components.btn_share_icon.url_copied": "URL copiée", + "components.btn_share_icon.opening_signal": "Signal d'ouverture", "components.card.about._global.full_text": "Cliquer pour texte intégral", "components.card.about._global.full_text_aria_label": "Cliquez pour afficher une fenêtre contextuelle avec le texte intégral", "components.card.about._global.members_lower": "membres", @@ -291,10 +293,8 @@ "components.modal_share_page.messenger": "Messenger", "components.modal_share_page.offline": "Hors ligne", "components.modal_share_page.online": "En ligne", - "components.modal_share_page.opening_signal": "Signal d'ouverture", "components.modal_share_page.signal": "Signal", "components.modal_share_page.telegram": "Télégram", - "components.modal_share_page.url_copied": "URL copiée", "components.modal_upload_images.drag_image": "Faites glisser votre image ou cliquez ici pour l’ajouter", "components.modal_upload_images.drag_images": "Faites glisser vos images ou cliquez ici pour les ajouter", "components.modal_upload_images.drop_image": "Déposez l’image ici pour l’ajouter", diff --git a/frontend/i18n/pt.json b/frontend/i18n/pt.json index 48fe70b0f..ab5b3b003 100644 --- a/frontend/i18n/pt.json +++ b/frontend/i18n/pt.json @@ -75,6 +75,8 @@ "components._global.upvote_application_aria_label": "Votar para apoiar a organização a juntar-se ao ativista", "components._global.working_groups_subtext": "Os seguintes são grupos de trabalho dentro de {entity_name}", "components.btn_road_map.aria_label": "Saber mais sobre o roadmap do ativista", + "components.btn_share_icon.url_copied": "URL copiado", + "components.btn_share_icon.opening_signal": "A abrir o Signal", "components.card.about._global.full_text": "Clique para o texto completo", "components.card.about._global.full_text_aria_label": "Clique para ver um popup com o texto completo", "components.card.about._global.members_lower": "membros", @@ -291,10 +293,8 @@ "components.modal_share_page.messenger": "Messenger", "components.modal_share_page.offline": "Offline", "components.modal_share_page.online": "Online", - "components.modal_share_page.opening_signal": "A abrir o Signal", "components.modal_share_page.signal": "Signal", "components.modal_share_page.telegram": "Telegram", - "components.modal_share_page.url_copied": "URL copiado", "components.modal_upload_images.drag_image": "Arraste a sua imagem ou clique aqui para adicioná-la", "components.modal_upload_images.drag_images": "Arraste as suas imagens ou clique aqui para adicioná-las", "components.modal_upload_images.drop_image": "Solte a imagem aqui para adicioná-la", From 05ef792af02dbd20c878dd8bcbbf0bdefcd31e44 Mon Sep 17 00:00:00 2001 From: Sean Leong Date: Fri, 20 Dec 2024 02:32:34 +0800 Subject: [PATCH 2/3] hotfix: ESLint fix --- frontend/components/btn/BtnShareIcon.vue | 2 +- frontend/components/modal/ModalSharePage.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/components/btn/BtnShareIcon.vue b/frontend/components/btn/BtnShareIcon.vue index 5121c5a22..cc8531c3c 100644 --- a/frontend/components/btn/BtnShareIcon.vue +++ b/frontend/components/btn/BtnShareIcon.vue @@ -1,12 +1,12 @@