diff --git a/.env.local b/.env.local
index 2748700e..f4494e11 100644
--- a/.env.local
+++ b/.env.local
@@ -39,11 +39,11 @@ RELAYPATH = "dev-pedw-hc"
GOOGLE_TAG_MANAGER = GTM-T78CBC3
SHOWLOGIN = true
-//SHOWREPRESENTATIONS = true
+SHOWREPRESENTATIONS = true
SHOWFILEUPLOAD = "false"
SHOWMAPS = "false"
API_ROOT = "http://localhost:3000"
-
+CY_API_ROOT ="http://cymru.local:3000"
I18N_DOMAIN = "cymru.local"
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 562cc640..39c6d864 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -4,12 +4,18 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
- {
+ {
+ "name": "Next.js: debug server-side",
+ "type": "node-terminal",
+ "request": "launch",
+ "command": "yarn run dev"
+ },
+ {"name": "Launch Chrome against localhost",
"type": "pwa-chrome",
"request": "launch",
- "name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
+
]
}
\ No newline at end of file
diff --git a/actions/azurestorage.js b/actions/azurestorage.js
index 11222605..e014febb 100644
--- a/actions/azurestorage.js
+++ b/actions/azurestorage.js
@@ -422,7 +422,7 @@ export const downloadProgressFile = async (
const downloaded = await streamToBuffer(downloadedBlob.readableStreamBody);
- console.log("Downloaded blob content:", downloaded.toString());
+ //console.log("Downloaded blob content:", downloaded.toString());
return JSON.parse(downloaded.toString());
};
@@ -578,17 +578,17 @@ export const getProgressBlobs = async (containerName, caseReference) => {
blobCount++;
}
- console.log(
- "this is the casefolder and blobcount:",
- caseReference,
- blobCount
- );
+ // console.log(
+ // "this is the casefolder and blobcount:",
+ // caseReference,
+ // blobCount
+ // );
let blobObj = [];
for await (const blob of containerClient.listBlobsFlat({
prefix: caseReference + "/" + caseReference + "_appeal.json",
})) {
- console.log("getProgressBlobs in here");
+ //console.log("getProgressBlobs in here");
blobObj.push({
"name": blob.name.split("/")[1],
"path": blob.name,
@@ -680,11 +680,11 @@ export const getRepslobs = async (containerName, caseReference) => {
blobCount++;
}
- console.log(
- "this is the casefolder and blobcount:",
- caseReference,
- blobCount
- );
+ // console.log(
+ // "this is the casefolder and blobcount:",
+ // caseReference,
+ // blobCount
+ // );
let blobObj = [];
for await (const blob of containerClient.findBlobsByTags(
diff --git a/actions/index.js b/actions/index.js
index a660af8c..cbdab79d 100644
--- a/actions/index.js
+++ b/actions/index.js
@@ -1264,7 +1264,7 @@ export const uploadFiles = async (
for (let i = 0; i < files.length; i++) {
for (let j = 0; j < files[i].length; j++) {
- console.log(files[i][j].name);
+ console.log("upload files:", files[i][j].name);
formData.append(files[i][j].name, files[i][j]);
}
}
@@ -1308,7 +1308,7 @@ export const uploadRepFiles = async (
for (let i = 0; i < files.length; i++) {
for (let j = 0; j < files[i].length; j++) {
- console.log(files[i][j].name);
+ console.log("upload rep files:", files[i][j].name);
formData.append(files[i][j].name, files[i][j]);
}
}
@@ -1335,6 +1335,7 @@ export const uploadRepFiles = async (
export const getFilesFromBlob = (containerName, casefolderID) => {
console.log(
+ " get files from blob",
BASE_URL +
"/api/file/getbloblist?container=" +
containerName +
diff --git a/components/account/registerComplete.js b/components/account/registerComplete.js
index 66607e12..cac7970c 100644
--- a/components/account/registerComplete.js
+++ b/components/account/registerComplete.js
@@ -101,7 +101,16 @@ const RegisterComplete = (props) => {
onClick={() => {
setLogout(),
window.localStorage.clear(),
- destroyCookie({}, "pinsUser"),
+ destroyCookie(
+ null,
+ "next-auth.csrf-token"
+ ),
+ destroyCookie(
+ null,
+ "next-auth.callback-url"
+ ),
+ destroyCookie(null, "pedw_locale"),
+ destroyCookie(null, "pinsUser"),
signOut({ callbackUrl: "/logout" });
}}
>
diff --git a/components/breadcrumbs.js b/components/breadcrumbs.js
index 4a480c38..ea7d02f5 100644
--- a/components/breadcrumbs.js
+++ b/components/breadcrumbs.js
@@ -87,7 +87,9 @@ const Breadcrumbs = (props) => {
{
{router.pathname == "/myportal/advancedsearch" ? (
<>