-
Notifications
You must be signed in to change notification settings - Fork 659
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* merge conflicts resolved * fix: link validation * fix: ordering * fix: js renamed to javascript * fix: removed accidentally committed generated files * fix: removed tauri * fix: added tauri * fix: releases should only be built in prod
- Loading branch information
Showing
210 changed files
with
936 additions
and
1,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
[submodule "packages/tauri-v2"] | ||
path = packages/tauri-v2 | ||
url = https://github.com/tauri-apps/tauri.git | ||
[submodule "packages/plugins-workspace"] | ||
path = packages/plugins-workspace | ||
url = https://github.com/tauri-apps/plugins-workspace.git | ||
branch = v2 | ||
[submodule "packages/tauri-v1"] | ||
path = packages/tauri-v1 | ||
url = https://github.com/tauri-apps/tauri.git | ||
[submodule "packages/awesome-tauri"] | ||
path = packages/awesome-tauri | ||
url = https://github.com/tauri-apps/awesome-tauri | ||
[submodule "packages/tauri"] | ||
path = packages/tauri | ||
url = https://github.com/tauri-apps/tauri.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tauri-v1
deleted from
596681
Submodule tauri-v2
deleted from
1b2d31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
async function chapterNavigation() { | ||
let navigating = false | ||
document.addEventListener("keydown", function (e) { | ||
if (navigating) return | ||
if (e.altKey || e.ctrlKey || e.metaKey) { | ||
return; | ||
} | ||
if (window.search && document.activeElement === window.search) { | ||
return; | ||
} | ||
|
||
switch (e.key) { | ||
case "ArrowLeft": | ||
e.preventDefault(); | ||
let previousButton = document.querySelector('a[rel="prev"]'); | ||
if (!previousButton && window.location.pathname !== '/') previousButton = { href: '/' } | ||
|
||
if (document.referrer.includes(window.location.host)) | ||
if (previousButton) { | ||
window.location.href = previousButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
case "ArrowRight": | ||
e.preventDefault(); | ||
let nextButton = document.querySelector('a[rel="next"]'); | ||
if (!nextButton && window.location.pathname === '/') nextButton = { href: "/start/" } | ||
|
||
if (nextButton) { | ||
window.location.href = nextButton.href; | ||
navigating = true; | ||
} | ||
break; | ||
} | ||
}); | ||
}; | ||
|
||
window.addEventListener('DOMContentLoaded', () => { | ||
chapterNavigation() | ||
}) | ||
|
||
window.onload = function () { | ||
document.body.setAttribute('tabindex', '-1'); | ||
document.body.focus(); | ||
}; |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.