-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from LyonSyonII/dev
Overhaul chapter 5 and small fixes
- Loading branch information
Showing
9 changed files
with
108 additions
and
30 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
:::danger[WIP] | ||
This page is still Work In Progress, check back soon! | ||
:::danger[Page in testing phase] | ||
This page should be finished, but there might be some bugs or things that are hard to understand. | ||
Proceed with caution! | ||
::: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as checkpoints from "../components/Checkpoint/checkpoint"; | ||
import * as usercodes from "../components/CodeBlock/persistence"; | ||
|
||
export function login() { | ||
|
||
} | ||
|
||
export async function saveData() { | ||
const data = { | ||
checkpoints: await checkpoints.stringifyStore(), | ||
usercodes: await usercodes.stringifyStore(), | ||
}; | ||
fetch("...", { | ||
method: "POST", | ||
body: JSON.stringify(data) | ||
}) | ||
} | ||
|
||
export async function loadData() { | ||
const response = await fetch("...", { | ||
method: "GET" | ||
}); | ||
const parsed = JSON.parse(await response.json()); | ||
await checkpoints.parseStore(parsed.checkpoints); | ||
await usercodes.parseStore(parsed.usercodes); | ||
} |
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