Skip to content

Commit

Permalink
sonar fixes and welsh fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-cognizant committed Aug 12, 2024
1 parent 18ef316 commit 206b7f4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN npm run build

CMD [ "npm", "run", "docker:dev" ]

FROM development as productionBuild
FROM development AS productionBuild

ENV NODE_ENV production

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/server/data/cy/cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WELSH_TITLE } from './constants'
import { WELSH_TITLE } from '~/src/server/data/constants'

export const welsh = {
checkLocalAirQuality: {
Expand Down Expand Up @@ -327,7 +327,7 @@ export const welsh = {
footer: {
privacy: {
pageTitle: 'Gwiriwch ansawdd aer lleol - GOV.UK',
title: 'Gwiriwch hysbysiad preifatrwydd ansawdd aer lleol',
title: 'Hysbysiad preifatrwydd Gwirio ansawdd aer lleol',
heading: 'Gwiriwch ansawdd aer lleol',
headings: {
a: 'Pwy sy’n casglu’ch data personol',
Expand Down
2 changes: 1 addition & 1 deletion src/server/privacy/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const privacyController = {
cookieBanner,
phaseBanner,
footerTxt,
multipleLocations: serviceName
multipleLocations: { serviceName }
} = english
/* eslint-disable camelcase */
const {
Expand Down
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const webpackConfig = {
components: path.resolve(__dirname, 'src', 'server', 'common', 'components')
}
}
const ASSETS_RESOURCE_PATH = 'asset/resource'

module.exports = {
entry: {
Expand Down Expand Up @@ -74,21 +75,21 @@ module.exports = {
},
{
test: /\.(png|svg|jpe?g|gif)$/,
type: 'asset/resource',
type: ASSETS_RESOURCE_PATH,
generator: {
filename: 'images/[name].[contenthash][ext]'
}
},
{
test: /\.(ico)$/,
type: 'asset/resource',
type: ASSETS_RESOURCE_PATH,
generator: {
filename: 'images/[name][ext]'
}
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
type: 'asset/resource',
type: ASSETS_RESOURCE_PATH,
generator: {
filename: 'fonts/[name].[contenthash][ext]'
}
Expand Down

0 comments on commit 206b7f4

Please sign in to comment.