Skip to content

Commit

Permalink
Uninstall the cookies_eu gem and its integration
Browse files Browse the repository at this point in the history
We are going to replace this feature with a GDPR compliant one.
  • Loading branch information
Senen committed Mar 8, 2024
1 parent d5abff6 commit 9e9b323
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 115 deletions.
5 changes: 0 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ GEM
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.2.2)
cookies_eu (1.7.8)
js_cookie_rails (~> 2.2.0)
crass (1.0.6)
daemons (1.4.1)
dalli (3.2.6)
Expand Down Expand Up @@ -295,8 +293,6 @@ GEM
actionpack (>= 3.1)
railties (>= 3.1)
sassc
js_cookie_rails (2.2.0)
railties (>= 3.1)
json (2.6.3)
jwt (2.7.1)
kaminari (1.2.2)
Expand Down Expand Up @@ -715,7 +711,6 @@ DEPENDENCIES
caxlsx_rails (~> 0.6.3)
ckeditor (~> 4.3.0)
cocoon (~> 1.2.15)
cookies_eu
daemons (~> 1.4.1)
dalli (~> 3.2.6)
delayed_job_active_record (~> 4.1.7)
Expand Down
1 change: 0 additions & 1 deletion Gemfile_custom
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@
# Add your custom gem dependencies here

gem "ruby-ntlm"
gem "cookies_eu"
gem "capistrano-systemd-multiservice", "~> 0.1.0.beta13", require: false
2 changes: 0 additions & 2 deletions app/assets/javascripts/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
// * Spanish: https://github.com/consuldemocracy/consuldemocracy/blob/master/CUSTOMIZE_ES.md#javascript
//
//
//= require cookies_eu

var initialize_modules = function() {
"use strict";

App.GoogleSearch.initialize();
App.ConsentBanner.initialize();
};

$(document).on("turbolinks:load", initialize_modules);
28 changes: 0 additions & 28 deletions app/assets/javascripts/custom/consent_banner.js

This file was deleted.

6 changes: 0 additions & 6 deletions app/assets/stylesheets/custom.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Override and add customized styles in this file.
//
@import "cookies_eu";
@import "font-awesome/icons";

// Registration and user account page
Expand Down Expand Up @@ -334,11 +333,6 @@
}
}

// COOKIES BANNER
.cookies-eu-ok {
background-color: $secondary !important;
}

// PAGES
.page-title {
border-bottom: 4px solid $secondary;
Expand Down
18 changes: 0 additions & 18 deletions app/components/custom/layout/consent_banner_component.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions app/components/custom/layout/consent_banner_component.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/views/custom/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<body class="<%= yield(:body_class) %> public">
<%= raw setting["html.per_page_code_body"] %>

<%= render Layout::ConsentBannerComponent.new %>

<div class="wrapper <%= yield(:wrapper_class) %>">
<%= render "layouts/header", with_subnavigation: true %>
<%= render "layouts/flash" %>
Expand Down
4 changes: 0 additions & 4 deletions config/locales/custom/es/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ es:
support_title: Atención Ciudadana
support_number: 922 239 500
search: Buscar
cookies_eu:
cookies_text: Este sitio web utiliza cookies propias y de terceros para el correcto funcionamiento de la página y para fines analíticos y publicitarios. Puedes aceptar las cookies pulsando el botón “Aceptar” u obtener información adicional para configurarlas o rechazar su uso clicando %{cookies_link}.
cookies_link: AQUÍ
ok: Aceptar
layouts:
footer:
links:
Expand Down
45 changes: 0 additions & 45 deletions spec/system/custom/consent_banner_spec.rb

This file was deleted.

1 change: 0 additions & 1 deletion spec/system/legislation/draft_versions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@
end

scenario "Publish new comment with errors for an existing annotation" do
allow_any_instance_of(Layout::ConsentBannerComponent).to receive(:render?).and_return(false)
create(:legislation_annotation, draft_version: draft_version)

visit legislation_process_draft_version_path(draft_version.process, draft_version)
Expand Down

0 comments on commit 9e9b323

Please sign in to comment.