From ff9cda4bdbe23ca4bd7628168b2a72dc91e28267 Mon Sep 17 00:00:00 2001 From: Guillaume Weber <gweber@takima.fr> Date: Thu, 19 May 2022 17:37:46 +0200 Subject: [PATCH] refactor(challenge): change mention of "challenge" to "mission" the only mentions of "challenge" is for the "user-challenge.json" file --- deadlock-plugins/deadlock-extension/docs/README.md | 8 ++++---- .../src/customTypings/HttpStatusCode.ts | 2 +- .../deadlock-extension/src/view/briefingView.ts | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deadlock-plugins/deadlock-extension/docs/README.md b/deadlock-plugins/deadlock-extension/docs/README.md index 0c300bc5..966a1b46 100644 --- a/deadlock-plugins/deadlock-extension/docs/README.md +++ b/deadlock-plugins/deadlock-extension/docs/README.md @@ -1,13 +1,13 @@ # Deadlock Coding -Vscode extension to show a panel with : +VSCode extension to show a panel with : -- adresses availables for the current challenge pulled from `/home/config/user-challenge.json` -- challenge instruction pulled from the `README.md` +- adresses availables for the current mission pulled from `/home/config/user-challenge.json` +- mission instruction pulled from the `README.md` ## Quick start -- Run `setup-dev-env.sh` to mock challenge configuration +- Run `setup-dev-env.sh` to mock mission configuration - Run `install.sh` - Run `build.sh` - Press `F5` (or use `Run and Debug` tab). diff --git a/deadlock-plugins/deadlock-extension/src/customTypings/HttpStatusCode.ts b/deadlock-plugins/deadlock-extension/src/customTypings/HttpStatusCode.ts index e5bb61cc..8c7d46c6 100644 --- a/deadlock-plugins/deadlock-extension/src/customTypings/HttpStatusCode.ts +++ b/deadlock-plugins/deadlock-extension/src/customTypings/HttpStatusCode.ts @@ -158,7 +158,7 @@ export enum HttpStatusCode { /** * Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet - * been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the + * been provided. The response must include a WWW-Authenticate header field containing a mission applicable to the * requested resource. See Basic access authentication and Digest access authentication. 401 semantically means * "unauthenticated",i.e. the user does not have the necessary credentials. */ diff --git a/deadlock-plugins/deadlock-extension/src/view/briefingView.ts b/deadlock-plugins/deadlock-extension/src/view/briefingView.ts index c041518b..50ac81b8 100644 --- a/deadlock-plugins/deadlock-extension/src/view/briefingView.ts +++ b/deadlock-plugins/deadlock-extension/src/view/briefingView.ts @@ -89,7 +89,7 @@ export default class BriefingView extends WebviewBase { output += '<br/>'; if (userConfig.getUsername()) { - output += this.renderUserChallengeConfig(); + output += this.renderUserMissionConfig(); } else { output += 'Loading help..'; } @@ -97,7 +97,7 @@ export default class BriefingView extends WebviewBase { return output; } - private renderUserChallengeConfig() { + private renderUserMissionConfig() { let adresses = ''; let pathsLength = 0; @@ -116,7 +116,7 @@ export default class BriefingView extends WebviewBase { if (pathsLength > 0) { return `<h3>Configuration</h3> - You have the following adresses availables for your challenge : <ul>${adresses}</ul> + You have the following adresses availables for your mission : <ul>${adresses}</ul> </br> You also have access to these paths from: <ul> -- GitLab