fix: correct typos in source code and locales (#3003)

- Fix Countrys -> Countries in comment
- Fix Scrolldown -> ScrollDown in variable name
- Fix completeTowFactor -> completeTwoFactor (3x)
- Fix deactiveTowFactor -> deactivateTwoFactor (3x)
- Fix activeOrDeactiveTwoFactor -> activeOrDeactivateTwoFactor
- Fix API route /two-factor/deactive -> /two-factor/deactivate
- Fix elment -> element in function param
- Fix synolog -> synology in comment
- Fix Chinese comment 制定 -> 指定
- Fix swapped BARK English translations on lines 360-361
This commit is contained in:
jmclulu
2026-05-31 00:32:04 +08:00
committed by GitHub
parent 2fe9470ff0
commit 3aab1233bb
9 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -29,10 +29,10 @@ const Terminal = ({
const lastLineRef = useRef<null | HTMLElement>(null);
// An effect that handles scrolling into view the last line of terminal input or output
const performScrolldown = useRef(false);
const performScrollDown = useRef(false);
useEffect(() => {
if (performScrolldown.current) {
// skip scrolldown when the component first loads
if (performScrollDown.current) {
// skip scrollDown when the component first loads
setTimeout(
() =>
lastLineRef?.current?.scrollIntoView({
@@ -42,7 +42,7 @@ const Terminal = ({
500,
);
}
performScrolldown.current = true;
performScrollDown.current = true;
}, [lineData.length]);
const renderedLineData = lineData.map((ld, i) => {