From ea11f2b76a8e4338f34370146e2dcf7984c8bf7f Mon Sep 17 00:00:00 2001 From: tripledoublev Date: Tue, 3 Dec 2024 09:48:13 -0600 Subject: [PATCH] Remove unused ActivityPub modal components --- _includes/activity_pub/button.html | 22 -------- .../activity_pub/fediverse_interactions.html | 2 - _includes/activity_pub/generic_modal.html | 48 ---------------- _includes/activity_pub/image_modal.html | 27 --------- _includes/activity_pub/login_modal.html | 56 ------------------- _includes/activity_pub/text_modal.html | 16 ------ 6 files changed, 171 deletions(-) delete mode 100644 _includes/activity_pub/button.html delete mode 100644 _includes/activity_pub/fediverse_interactions.html delete mode 100644 _includes/activity_pub/generic_modal.html delete mode 100644 _includes/activity_pub/image_modal.html delete mode 100644 _includes/activity_pub/login_modal.html delete mode 100644 _includes/activity_pub/text_modal.html diff --git a/_includes/activity_pub/button.html b/_includes/activity_pub/button.html deleted file mode 100644 index 388d678f..00000000 --- a/_includes/activity_pub/button.html +++ /dev/null @@ -1,22 +0,0 @@ -{%- comment -%} - Un botón con link, por ejemplo para Support Us. Si el link es externo, - agregar el parámetro de seguridad noopener. - - @param :fa [String] - @param :header [Capture] el contenido del encabezado - @param :body [Capture] el contenido del cuerpo principal - @param :footer [Capture] el contenido del footer - @param :header_class [String] las clases que lleva el encabezado - @param :body_class [String] las clases que lleva el cuerpo principal - @param :footer_class [String] las clases que lleva el footer - @param :content_class [String] las clases que lleva todo el bloque de contenido - @param :button_class [String] las clases que lleva cada botón -{%- endcomment -%} - -
- - - {% include activity_pub/generic_modal.html header=include.header body=include.body footer=include.footer header_class=include.header_class body_class=include.body_class footer_class=include.footer_class content_class=include.content_class %} -
diff --git a/_includes/activity_pub/fediverse_interactions.html b/_includes/activity_pub/fediverse_interactions.html deleted file mode 100644 index 5deaacb2..00000000 --- a/_includes/activity_pub/fediverse_interactions.html +++ /dev/null @@ -1,2 +0,0 @@ -{% assign extra = 'data-action="tabs#toggle" data-tabs-target="value"' %} -{% include bootstrap/custom_select.html extra=extra options=site.i18n.fediverse_interactions %} diff --git a/_includes/activity_pub/generic_modal.html b/_includes/activity_pub/generic_modal.html deleted file mode 100644 index 7eaa32b5..00000000 --- a/_includes/activity_pub/generic_modal.html +++ /dev/null @@ -1,48 +0,0 @@ -{%- comment -%} - Modal preparado para recibir contenido + header y footer - - @param :header [Capture] contenido del header - @param :body [Capture] contenido del modal - @param :footer [Capture] contenido del footer - @param :header_class [String] clases del header - @param :body_class [String] clases del cuerpo principal - @param :footer_class [String] clases del header - @param :content_class [String] clases todo el bloque -{%- endcomment -%} - -{% assign header = include.header %} -{% assign header_class = include.header_class %} -{% assign body = include.body %} -{% assign body_class = include.body_class %} -{% assign footer = include.footer %} -{% assign footer_class = include.footer_class %} -{% assign content_class = include.content_class %} - - diff --git a/_includes/activity_pub/image_modal.html b/_includes/activity_pub/image_modal.html deleted file mode 100644 index 52ed58af..00000000 --- a/_includes/activity_pub/image_modal.html +++ /dev/null @@ -1,27 +0,0 @@ -{%- comment -%} - Modal con imagen - - @param :image [Image] la imagen que queremos en el modal, contiene url y alt text -{%- endcomment -%} - -{% assign extra = 'data-action="click->modal#show"' %} -{% assign alt = include.image.name | strip_html | escape %} -{% assign src = include.image.url | strip_html | uri_escape %} - -{% capture body %} - {{ alt }} -{% endcapture %} - -
- {% - include embed_responsive.html - x=16 - y=9 - src=src - alt=alt - extra=extra - width=300 - img_class="cursor-pointer min-w-100px w-100 object-fit-cover" - %} - {% include activity_pub/generic_modal.html header_class="text-white" body=body body_class="d-flex justify-content-center" footer_class="d-none" content_class="background-transparent border-0" %} -
diff --git a/_includes/activity_pub/login_modal.html b/_includes/activity_pub/login_modal.html deleted file mode 100644 index 641f2432..00000000 --- a/_includes/activity_pub/login_modal.html +++ /dev/null @@ -1,56 +0,0 @@ -{%- comment -%} - Modal para loguearse al fediverso - - @param :action [String] acción que le usuarie quiere realizar desde el fediverso - @param :fa [String] nombre del ícono que usa fork-awesome - @param :uri [String] la URL sobre la que se interactúa - @param :profile [ActivityDrop] Actor -{%- endcomment -%} - -{% assign action = include.action %} -{% assign fa = include.fa %} -{% capture name %} - {% include activity_pub/actor.html actor=include.profile %} -{% endcapture %} - -{% capture header %} - -
- - -{{ site.i18n.login_modal[action.title].text | replace: "$usuarie", name }} -
-× -{{ site.i18n.close }} -
-
-
-{% endcapture %} - -{% capture body %} -

{{site.i18n.login_modal.top_text | markdownify | replace: "$action", site.i18n.login_modal[action.title].title }}

-
{{site.i18n.login_modal.question | markdownify}}
-
-
-
-
- - -
- {{- site.i18n.login_modal.authorize_interaction_unsupported -}} -
-
-
- -
-
-
-
-{{site.i18n.login_modal.small_text}} -{{site.i18n.login_modal.bottom_text | markdownify}} -{% endcapture %} - -{% capture footer %} -{% endcapture %} - -{% include activity_pub/button.html header=header body=body footer=footer header_class="justify-content-center border-bottom-0" body_class="justify-content-center" footer_class="border-top-0" content_class="p-2" button_class="mx-1" fa=action.icon description=include.description %} diff --git a/_includes/activity_pub/text_modal.html b/_includes/activity_pub/text_modal.html deleted file mode 100644 index 6aeca64f..00000000 --- a/_includes/activity_pub/text_modal.html +++ /dev/null @@ -1,16 +0,0 @@ -{%- comment -%} - Modal para mostrar texto - - @param :text [String] contenido del modal - @param :fa [String] nombre del ícono que usa fork-awesome -{%- endcomment -%} - -{% capture body %} -{{ include.text }} -{% endcapture %} - -{% capture footer %} -{% endcapture %} - -{% assign fa = include.fa %} -{% include activity_pub/button.html body=body footer=footer body_class="justify-content-center" footer_class="border-top-0 d-none" content_class="p-2" fa=fa %}