From eef3c428874e91d661170b9850e85c7fb8392734 Mon Sep 17 00:00:00 2001 From: siujamo Date: Mon, 19 Jan 2026 17:42:14 +0800 Subject: [PATCH 1/3] refactor: rename BMI calculation function and update height unit comment - Renamed the function from `calculateBMI` to `calculateBodyMassIndex` for clarity. - Updated comment to change "meters" to "metres" for consistency with British English. --- src/page/bmi-calculator/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/page/bmi-calculator/index.tsx b/src/page/bmi-calculator/index.tsx index 267a00b..c897bc4 100644 --- a/src/page/bmi-calculator/index.tsx +++ b/src/page/bmi-calculator/index.tsx @@ -12,9 +12,9 @@ export default function BmiCalculator() { const [bmi, setBmi] = useState(null) const [bmiCategory, setBmiCategory] = useState("") - const calculateBMI = () => { + const calculateBodyMassIndex = () => { const weightNum = parseFloat(weight) - const heightNum = parseFloat(height) / 100 // Convert cm to meters + const heightNum = parseFloat(height) / 100 // Convert cm to metres if (weightNum > 0 && heightNum > 0) { const bmiValue = weightNum / (heightNum * heightNum) @@ -126,7 +126,7 @@ export default function BmiCalculator() { {/* Action Buttons */}
From d9860618f9bd37e81ff7ed5aa2c5d96be7bb2862 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Tue, 24 Feb 2026 15:02:02 +0800 Subject: [PATCH 3/3] feat: add new entry for JSON Path Highlighting in changelog --- src/page/changelog/index.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/page/changelog/index.tsx b/src/page/changelog/index.tsx index ba3fd0d..4705b09 100644 --- a/src/page/changelog/index.tsx +++ b/src/page/changelog/index.tsx @@ -16,6 +16,17 @@ interface ChangelogVersion { } const CHANGELOG_DATA: ChangelogVersion[] = [ + { + version: "1.1.1", + date: "2026-02-24", + entries: [ + { + type: "feat", + title: "JSON Path Highlighting", + description: "Add highlighting for JSON Path expression." + } + ] + }, { version: "1.1.0", date: "2026-02-24",