Merged PR 931: updated copy

updated copy

Related work items: #7945
This commit is contained in:
Robert Bond
2022-10-20 08:11:59 +00:00
3 changed files with 3 additions and 19 deletions
-1
View File
@@ -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",
-14
View File
@@ -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"
+3 -4
View File
@@ -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",
},
],
});