From 500e807cc29916af7d830d623925526980906a41 Mon Sep 17 00:00:00 2001 From: Ed Date: Mon, 4 Mar 2024 22:33:17 -0500 Subject: [PATCH 1/3] INT-1211: Fix external URL links to not include trailing slash --- components/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/block.js b/components/block.js index f364482..c1dd20c 100644 --- a/components/block.js +++ b/components/block.js @@ -152,7 +152,7 @@ polarity.export = PolarityComponent.extend({ const recipeLinkWithoutInput = index === 0 - ? `${url}/#recipe=${operationString}` + ? `${url}#recipe=${operationString}` : `${agg[index - 1].recipeLinkWithoutInput}${operationString}`; return [ @@ -168,7 +168,7 @@ polarity.export = PolarityComponent.extend({ 'fullRecipeLink', operations.length ? operationsWithUpdatedLinks[operationsWithUpdatedLinks.length - 1].recipeLink - : `${url}/#input=${inputHash}` + : `${url}#input=${inputHash}` ); this.set('operations', operationsWithUpdatedLinks); From 057ef80b74aabb2c314fadc4b550936d60dabdd7 Mon Sep 17 00:00:00 2001 From: Ed Date: Mon, 4 Mar 2024 22:38:32 -0500 Subject: [PATCH 2/3] Make URL user can view only --- config/config.js | 2 +- config/config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.js b/config/config.js index 114cbec..8e96b85 100644 --- a/config/config.js +++ b/config/config.js @@ -39,7 +39,7 @@ module.exports = { 'Add your CyberChef Url to open up the CyberChef dashboard for full functionality. (e.g. https://gchq.github.io/CyberChef)', default: 'https://gchq.github.io/CyberChef', type: 'text', - userCanEdit: true, + userCanEdit: false, adminOnly: false }, { diff --git a/config/config.json b/config/config.json index 9bb1c54..cec6a05 100644 --- a/config/config.json +++ b/config/config.json @@ -27,7 +27,7 @@ "description": "Add your CyberChef Url to open up the CyberChef dashboard for full functionality. (e.g. https://gchq.github.io/CyberChef)", "default": "https://gchq.github.io/CyberChef", "type": "text", - "userCanEdit": true, + "userCanEdit": false, "adminOnly": false }, { From 841fd051c7cd146e0aa40fb3e560f6fbce3e0f60 Mon Sep 17 00:00:00 2001 From: Ed Date: Mon, 4 Mar 2024 22:38:39 -0500 Subject: [PATCH 3/3] Bump to 3.2.7 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e6abc4..68e99a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "CyberChefIntegration", - "version": "3.2.6", + "version": "3.2.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 44552cb..6114d93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CyberChefIntegration", - "version": "3.2.6", + "version": "3.2.7", "main": "./integration.js", "private": true, "dependencies": {