-
Notifications
You must be signed in to change notification settings - Fork 21
[DO NOT MERGE] WIP #4748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[DO NOT MERGE] WIP #4748
Conversation
- for now, limit to non prod environment
bf33ddd
to
cfda04e
Compare
cfda04e
to
c968a92
Compare
b416033
to
0f7a0d7
Compare
ff03aad
to
7f1ba15
Compare
7f1ba15
to
db57a84
Compare
db57a84
to
1143981
Compare
1143981
to
d4ee288
Compare
@andysellick I've got it working without any Linting/CI/CSP errors anymore - One of the main things that took me a while to figure out were the remaining Content Security Policy issues but I managed to get there in the end. I've also made it so the Content Security Policy only applies to this specific Controller (saw they did this in |
Going to try and see if I can use this instead of |
Nice work @AshGDS 👍 |
d4ee288
to
29b222d
Compare
7ac4acd
to
0ea5407
Compare
0ea5407
to
2a22a0c
Compare
- remove fetches, as data is local - remove omnivore, as CSV data has been converted to geojson (and omnivore was causing an error with our CSP) - remove Promise, as fetches no longer required - reindent
I don't think it's worth importing a font just for some branding, so allow it to use the fallback font instead.
Taken from https://github.com/OrdnanceSurvey/os-api-branding/tree/main/img and https://github.com/Leaflet/Leaflet/tree/main/dist/images - I have run the SVGs through a compression tool as they were 58KB each, which felt excessive.
…a rules Fixes data:image CSP error
Jasmine was trying to import the const files multiple times, which errors as a const can only be defined once. Therefore I've changed it to be on window.GOVUK
Stylelint was run on this previously which helped the spacing/formatting look nicer. However stylelint has 60+ things it can't autofix, which may be too much of a burden atm to fix so disabling this for now.
As I'm not sure how you'd write tests for these.
This stops an unsafe-inline CSP issue.
2a22a0c
to
dc3f01c
Compare
What
Why
Visual changes
Trello card: https://trello.com/c/zVqSZM6D