π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
wip
Manav Rathidedc2f858587
diff --git a/desktop/src/main/services/store.ts b/desktop/src/main/services/store.tsindex a484080f53..f5c6274ba9 100644--- a/desktop/src/main/services/store.ts+++ b/desktop/src/main/services/store.ts@@ -2,7 +2,7 @@ import { safeStorage } from "electron/main";import { keysStore } from "../stores/keys.store";import { safeStorageStore } from "../stores/safeStorage.store";import { uploadStatusStore } from "../stores/upload.store";-import { watchStore } from "../stores/watch.store";+import { watchStore } from "../stores/watch";export const clearStores = () => {uploadStatusStore.clear();diff --git a/desktop/src/main/services/watch.ts b/desktop/src/main/services/watch.tsindex 53b50e31b5..4da5b45f96 100644--- a/desktop/src/main/services/watch.ts+++ b/desktop/src/main/services/watch.ts@@ -3,7 +3,7 @@ import ElectronLog from "electron-log";import fs from "node:fs/promises";import path from "node:path";import { FolderWatch, WatchStoreType } from "../../types/ipc";-import { watchStore } from "../stores/watch.store";+import { watchStore } from "../stores/watch";export const findFiles = async (dirPath: string) => {const items = await fs.readdir(dirPath, { withFileTypes: true });diff --git a/desktop/src/main/stores/watch.store.ts b/desktop/src/main/stores/watch.tssimilarity index 91%rename from desktop/src/main/stores/watch.store.tsrename to desktop/src/main/stores/watch.tsindex 55470ce868..e4b2efa7ac 100644--- a/desktop/src/main/stores/watch.store.ts+++ b/desktop/src/main/stores/watch.ts@@ -1,5 +1,9 @@import Store, { Schema } from "electron-store";-import { WatchStoreType } from "../../types/ipc";+import { type FolderWatch } from "../../types/ipc";++interface WatchStoreSchema {+ mappings: FolderWatch[];+}const watchStoreSchema: Schema<WatchStoreType> = {mappings: {diff --git a/desktop/src/types/ipc.ts b/desktop/src/types/ipc.tsindex 3dae605a8e..a568ad6e5b 100644--- a/desktop/src/types/ipc.ts+++ b/desktop/src/types/ipc.ts@@ -66,10 +66,6 @@ export interface ElectronFile {arrayBuffer: () => Promise<Uint8Array>;}-export interface WatchStoreType {- mappings: FolderWatch[];-}-export enum FILE_PATH_TYPE {/* eslint-disable no-unused-vars */FILES = "files",