style: auto-fix lint and format
This commit is contained in:
1 parent
2845f61d1b
commit
048335fd73
2 files changed
+15
-8
No files matched your search
@@ -228,14 +228,20 @@ const BoardNavigationHotkeys = () => {
|
|||||||
// board hasn't synced with the getAllBoards cache yet, currentIndex is -1 and
|
// board hasn't synced with the getAllBoards cache yet, currentIndex is -1 and
|
||||||
// the modulo arithmetic would otherwise jump to an unexpected board.
|
// the modulo arithmetic would otherwise jump to an unexpected board.
|
||||||
if (boards.length > 1 && currentIndex !== -1) {
|
if (boards.length > 1 && currentIndex !== -1) {
|
||||||
entries.push(["mod+shift+ArrowRight", () => {
|
entries.push([
|
||||||
const nextIndex = getNextBoardIndex(boards.length, currentIndex, 1);
|
"mod+shift+ArrowRight",
|
||||||
if (nextIndex !== null) navigateToBoard(nextIndex);
|
() => {
|
||||||
}]);
|
const nextIndex = getNextBoardIndex(boards.length, currentIndex, 1);
|
||||||
entries.push(["mod+shift+ArrowLeft", () => {
|
if (nextIndex !== null) navigateToBoard(nextIndex);
|
||||||
const nextIndex = getNextBoardIndex(boards.length, currentIndex, -1);
|
},
|
||||||
if (nextIndex !== null) navigateToBoard(nextIndex);
|
]);
|
||||||
}]);
|
entries.push([
|
||||||
|
"mod+shift+ArrowLeft",
|
||||||
|
() => {
|
||||||
|
const nextIndex = getNextBoardIndex(boards.length, currentIndex, -1);
|
||||||
|
if (nextIndex !== null) navigateToBoard(nextIndex);
|
||||||
|
},
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < Math.min(boards.length, 9); i++) {
|
for (let i = 0; i < Math.min(boards.length, 9); i++) {
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ export type HomarrDocumentationPath =
|
|||||||
| "/docs/tags/variables"
|
| "/docs/tags/variables"
|
||||||
| "/docs/tags/widgets"
|
| "/docs/tags/widgets"
|
||||||
| "/docs/advanced/command-line"
|
| "/docs/advanced/command-line"
|
||||||
|
| "/docs/advanced/command-line/development"
|
||||||
| "/docs/advanced/command-line/fix-usernames"
|
| "/docs/advanced/command-line/fix-usernames"
|
||||||
| "/docs/advanced/command-line/integrations"
|
| "/docs/advanced/command-line/integrations"
|
||||||
| "/docs/advanced/command-line/password-recovery"
|
| "/docs/advanced/command-line/password-recovery"
|
||||||
|
|||||||
Reference in new issue
Block a user