Enormous refactor adding IndexedDB space and syncing.

This commit is contained in:
Zef Hemel
2022-04-07 14:04:50 +02:00
parent eb781b9e19
commit fff2690e99
14 changed files with 168 additions and 110 deletions
+1
View File
@@ -68,6 +68,7 @@ export class ExpressServer {
// Page list
fsRouter.route("/").get(async (req, res) => {
res.header("Now-Timestamp", "" + Date.now());
res.json(await this.storage.listPages());
});
+1 -1
View File
@@ -141,7 +141,7 @@ export class DiskStorage implements Storage {
if (lastModified) {
let d = new Date(lastModified);
console.log("Going to set the modified time", d);
await utimes(localPath, lastModified, lastModified);
await utimes(localPath, d, d);
}
// Fetch new metadata
const s = await stat(localPath);