From e42a6cd06c739bc81f0ac6700f25f48cf412e74e Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 20 Oct 2022 09:10:49 +0100 Subject: [PATCH] updated copy --- package.json | 1 - pages/_document.js | 14 -------------- pages/api/notices/index.js | 7 +++---- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 066480ee..94fb9ee9 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "next-connect": "^0.12.2", "next-redux-wrapper": "^7.0.5", "next-translate": "^1.2.0", - "nextjs-basic-auth-middleware": "^0.2.1", "nodemailer": "^6.7.8", "nookies": "^2.5.2", "notifications-node-client": "^5.1.1", diff --git a/pages/_document.js b/pages/_document.js index 79606d2c..e8ec0253 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -1,7 +1,6 @@ import Document, { Html, Head, Main, NextScript } from "next/document"; import SkipLink from "../components/skiplink"; import { Tracking, TrackingNoScript } from "../components/tracking"; -import basicAuthMiddleware from "nextjs-basic-auth-middleware"; import { nanoid } from "nanoid"; class MyDocument extends Document { @@ -10,19 +9,6 @@ class MyDocument extends Document { let useGATracking = false; - //remove this block when not need after softlaunch - // let hasBasicAuth = - // typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined"; - - // console.log("hasbasicAuth:", hasBasicAuth); - - // if (ctx.req && ctx.res) { - // hasBasicAuth && - // (await basicAuthMiddleware(ctx.req, ctx.res, { - // users: process.env.BASIC_AUTH_CREDENTIALS, - // })); - // } - if (ctx.req && ctx.req.headers.cookie) { typeof ctx.req.cookies.CookiePolicy != "undefined" ? JSON.parse(ctx.req.cookies.CookiePolicy).usage == "accepted" diff --git a/pages/api/notices/index.js b/pages/api/notices/index.js index 1e4be093..8f29a6b5 100644 --- a/pages/api/notices/index.js +++ b/pages/api/notices/index.js @@ -4,12 +4,11 @@ const ApiResponse = (req, res) => { "value": [ { "notice_en": - "We have updated the Planning Casework service. If you are unable to view your recent activity please refresh your browser.", + "We have updated the Planning Casework service. If you are unable to view your recent activity, press Ctrl, Shift and R to refresh your browser (or Cmd and R if you are using a Mac).", "notice_cy": - "Rydym wedi diweddaru'r gwasanaeth Gwaith Achos Cynllunio. Os na allwch weld eich gweithgarwch diweddar adnewyddwch eich porwr.", - + "Rydym wedi diweddaru'r gwasanaeth Gwaith Achos Cynllunio. Os nad ydych yn gallu gweld eich gweithgarwch diweddar, pwyswch Ctrl, Shift ac R i adnewyddu eich porwr (neu Cmd ac R os ydych yn defnyddio Mac).", "dateFrom": "20/09/2022", - "dateTo": "20/09/2023", + "dateTo": "31/12/2022", }, ], });