A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: @notesnook/core related changes
Abdullah Atta09c8c6684177
diff --git a/apps/web/src/common/db.ts b/apps/web/src/common/db.tsindex 468eb3392..6ee3830c7 100644--- a/apps/web/src/common/db.ts+++ b/apps/web/src/common/db.ts@@ -32,7 +32,6 @@ import { FileStorage } from "../interfaces/fs";const db = database;async function initializeDatabase(persistence: DatabasePersistence) {logger.measure("Database initialization");- const { Compressor } = await import("../utils/compressor");let databaseKey = await useKeyStore.getState().getValue("databaseKey");if (!databaseKey) {@@ -45,6 +44,7 @@ async function initializeDatabase(persistence: DatabasePersistence) {AUTH_HOST: "https://auth.streetwriters.co",SSE_HOST: "https://events.streetwriters.co",ISSUES_HOST: "https://issues.streetwriters.co",+ MONOGRAPH_HOST: "https://monogr.ph",SUBSCRIPTIONS_HOST: "https://subscriptions.streetwriters.co",...Config.get("serverUrls", {})});@@ -83,7 +83,8 @@ async function initializeDatabase(persistence: DatabasePersistence) {storage: storage,eventsource: EventSource,fs: FileStorage,- compressor: new Compressor(),+ compressor: () =>+ import("../utils/compressor").then(({ Compressor }) => new Compressor()),batchSize: 100});diff --git a/apps/web/src/utils/streams/attachment-stream.ts b/apps/web/src/utils/streams/attachment-stream.tsindex a4d9dd7e8..d2a25c641 100644--- a/apps/web/src/utils/streams/attachment-stream.ts+++ b/apps/web/src/utils/streams/attachment-stream.ts@@ -73,7 +73,7 @@ export class AttachmentStream extends ReadableStream<ZipFile> {if (file) {const filePath: string =attachment.filename === attachment.hash- ? getFileNameWithExtension(+ ? await getFileNameWithExtension(attachment.hash,attachment.mimeType)