From 3cd680c3ddfa5a96f9168d3ab411d0cccfc3c52f Mon Sep 17 00:00:00 2001 From: Alvis Ng Date: Fri, 26 Jan 2024 13:22:55 +0800 Subject: [PATCH 1/3] [#2082] Fix typo in command in Setting Up page (#2083) Fix typo in Setting Up page The command given in the developer guide for checking the local Node.js version is `npm -v`, which displays the version of npm instead. Let's replace the command with `node -v`, which correctly displays the Node.js version. --- docs/dg/settingUp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dg/settingUp.md b/docs/dg/settingUp.md index a82a04e90b..6542919046 100644 --- a/docs/dg/settingUp.md +++ b/docs/dg/settingUp.md @@ -15,7 +15,7 @@ - Type `java -version`, `npm -v` and `git --version` respectively on your OS terminal and ensure that you have the correct version of each prerequisite installed. + Type `java -version`, `node -v` and `git --version` respectively on your OS terminal and ensure that you have the correct version of each prerequisite installed. From eb7a944532ba9b99e890d9fa1c45787dcbec33a0 Mon Sep 17 00:00:00 2001 From: jonasongg <120372506+jonasongg@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:45:04 +0800 Subject: [PATCH 2/3] [#2004] Remove redundant Segment class (#2085) Remove Segment class, replace with AuthorshipFileSegment The Segment class and AuthorshipFileSegment interface are equivalent in their usage and their redundancy seems to be a remnant when the code was migrated from JS to TS. Let's remove the Segment class for consistency and to improve runtime performance. --- frontend/src/components/c-segment-collection.vue | 4 ++-- frontend/src/components/c-segment.vue | 6 +++--- frontend/src/utils/segment.ts | 13 ------------- frontend/src/views/c-authorship.vue | 15 +++++++-------- 4 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 frontend/src/utils/segment.ts diff --git a/frontend/src/components/c-segment-collection.vue b/frontend/src/components/c-segment-collection.vue index e305083a31..591dbb247d 100644 --- a/frontend/src/components/c-segment-collection.vue +++ b/frontend/src/components/c-segment-collection.vue @@ -7,7 +7,7 @@