Skip to content

Commit

Permalink
Merge pull request #2405 from alphagov/replace-scripts-with-gem-equiv…
Browse files Browse the repository at this point in the history
…alents

Clean up scripts
  • Loading branch information
alex-ju authored Mar 2, 2021
2 parents 4b7a75f + 8615490 commit 5784ddf
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 716 deletions.
30 changes: 0 additions & 30 deletions app/assets/javascripts/core.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/javascripts/header-footer-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
//= require vendor/polyfills/bind
//= require analytics
//= require start-modules
//= require govuk/selection-buttons
//= require govuk/shim-links-with-button-role
//= require govuk_publishing_components/components/layout-header
//= require core
117 changes: 0 additions & 117 deletions app/assets/javascripts/modules/sticky-element-container.js

This file was deleted.

64 changes: 0 additions & 64 deletions app/assets/javascripts/modules/toggle.js

This file was deleted.

54 changes: 0 additions & 54 deletions app/assets/javascripts/modules/track-click.js

This file was deleted.

12 changes: 5 additions & 7 deletions app/assets/javascripts/start-modules.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// = require govuk_publishing_components/modules
// = require govuk_publishing_components/components/cookie-banner
// = require modules/global-bar
// = require modules/sticky-element-container
// = require modules/toggle
// = require modules/track-click
// = require modules/cross-domain-tracking
//= require govuk_publishing_components/modules
//= require govuk_publishing_components/components/cookie-banner
//= require govuk_publishing_components/lib/track-click
//= require modules/global-bar
//= require modules/cross-domain-tracking

$(document).ready(function () {
GOVUK.modules.start()
Expand Down
6 changes: 0 additions & 6 deletions app/assets/stylesheets/header-footer-only.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ $govuk-use-legacy-palette: false;
@import "helpers/footer";
@import "helpers/header";
@import "helpers/emergency-banner";
@import "modules/*";

// This should be a component in the future. As the JavaScript and current
// implementation existing in multiple apps would need to be updated to make
// that change just make it available globally for the moment.
@import "helpers/selectable";

// The following overrides are in place to allow the govuk-header play nicely
// with govuk_template in our attempt to show account navigation in certain apps
Expand Down
63 changes: 0 additions & 63 deletions app/assets/stylesheets/helpers/_selectable.scss

This file was deleted.

23 changes: 0 additions & 23 deletions app/assets/stylesheets/modules/_sticky-element-container.scss

This file was deleted.

Loading

0 comments on commit 5784ddf

Please sign in to comment.