From ddfb75e1dd307a8e169045da037ef4bd7c155a9a Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 1 Aug 2022 11:38:22 +0200 Subject: [PATCH] Fix website attempt --- packages/web/boot.ts | 20 -------------------- scripts/build_website.sh | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/packages/web/boot.ts b/packages/web/boot.ts index 74eaf52..9afdf69 100644 --- a/packages/web/boot.ts +++ b/packages/web/boot.ts @@ -4,8 +4,6 @@ import { Space } from "@silverbulletmd/common/spaces/space"; import { HttpSpacePrimitives } from "@silverbulletmd/common/spaces/http_space_primitives"; safeRun(async () => { - // let localSpace = new Space(new IndexedDBSpacePrimitives("pages"), true); - // localSpace.watch(); let password: string | undefined = localStorage.getItem("password") || undefined; @@ -31,24 +29,6 @@ safeRun(async () => { console.log("Booting..."); - // // @ts-ignore - // window.syncer = async () => { - // let lastLocalSync = +(localStorage.getItem("lastLocalSync") || "0"), - // lastRemoteSync = +(localStorage.getItem("lastRemoteSync") || "0"); - // let syncer = new SpaceSync( - // serverSpace, - // localSpace, - // lastRemoteSync, - // lastLocalSync, - // "_trash/" - // ); - // await syncer.syncPages( - // SpaceSync.primaryConflictResolver(serverSpace, localSpace) - // ); - // localStorage.setItem("lastLocalSync", "" + syncer.secondaryLastSync); - // localStorage.setItem("lastRemoteSync", "" + syncer.primaryLastSync); - // console.log("Done!"); - // }; let editor = new Editor(serverSpace, document.getElementById("sb-root")!, ""); await editor.init(); // @ts-ignore diff --git a/scripts/build_website.sh b/scripts/build_website.sh index 0a7398e..a4433a2 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo "Building silver bullet" npm run clean-build