-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove GTM, GA, and the cookie banner
- Loading branch information
1 parent
3165590
commit eeb3e96
Showing
31 changed files
with
116 additions
and
869 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
app/assets/stylesheets/components/publish/_cookie_banner.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,47 @@ | ||
// Entry point for the build script in your package.json | ||
import 'babel-polyfill' | ||
import jQuery from 'jquery' | ||
import { initAll } from 'govuk-frontend' | ||
import "babel-polyfill"; | ||
import jQuery from "jquery"; | ||
import { initAll } from "govuk-frontend"; | ||
|
||
import { FilterToggleButton } from './filter-toggle-button' | ||
import initAutocomplete from './autocomplete' | ||
import dfeAutocomplete from './dfe-autocomplete' | ||
import CookieBanner from '../cookie_banner' | ||
import { FilterToggleButton } from "./filter-toggle-button"; | ||
import initAutocomplete from "./autocomplete"; | ||
import dfeAutocomplete from "./dfe-autocomplete"; | ||
|
||
import { Application } from '@hotwired/stimulus' | ||
import FilterSearchController from './controllers/filter_search_controller' | ||
import { Application } from "@hotwired/stimulus"; | ||
import FilterSearchController from "./controllers/filter_search_controller"; | ||
|
||
window.Stimulus = Application.start() | ||
Stimulus.register('filter-search', FilterSearchController) | ||
window.Stimulus = Application.start(); | ||
Stimulus.register("filter-search", FilterSearchController); | ||
|
||
window.jQuery = jQuery | ||
window.$ = jQuery | ||
window.jQuery = jQuery; | ||
window.$ = jQuery; | ||
|
||
initAll() | ||
initAll(); | ||
|
||
dfeAutocomplete({ rawAttribute: false, confirmOnBlur: false }) | ||
|
||
CookieBanner.init() | ||
dfeAutocomplete({ rawAttribute: false, confirmOnBlur: false }); | ||
|
||
initAutocomplete({ | ||
element: 'location-autocomplete', | ||
input: 'location', | ||
path: '/location-suggestions' | ||
}) | ||
element: "location-autocomplete", | ||
input: "location", | ||
path: "/location-suggestions", | ||
}); | ||
|
||
const filterToggleButton = new FilterToggleButton({ | ||
bigModeMediaQuery: '(min-width: 48.063em)', | ||
bigModeMediaQuery: "(min-width: 48.063em)", | ||
startHidden: false, | ||
toggleButton: { | ||
container: $('.app-filter-toggle'), | ||
showText: 'Show filters', | ||
hideText: 'Hide filters', | ||
classes: 'govuk-button--secondary' | ||
container: $(".app-filter-toggle"), | ||
showText: "Show filters", | ||
hideText: "Hide filters", | ||
classes: "govuk-button--secondary", | ||
}, | ||
closeButton: { | ||
container: $('.app-filter__header'), | ||
text: 'Close' | ||
container: $(".app-filter__header"), | ||
text: "Close", | ||
}, | ||
filter: { | ||
container: $('.app-filter-layout__filter') | ||
} | ||
}) | ||
container: $(".app-filter-layout__filter"), | ||
}, | ||
}); | ||
|
||
filterToggleButton.init() | ||
filterToggleButton.init(); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.