From c8fb10d4b1a8ec1402ca571439e3570e52b67662 Mon Sep 17 00:00:00 2001 From: Merul Dhiman Date: Thu, 6 Nov 2025 22:30:20 +0530 Subject: [PATCH 1/2] fix: check code --- .../evaults/[namespace]/[pod]/+page.svelte | 2 +- .../src/lib/crypto/HardwareKeyManager.ts | 4 +- .../src/lib/crypto/KeyManagerFactory.ts | 2 +- .../src/lib/global/controllers/evault.ts | 2 +- .../eid-wallet/src/lib/global/state.ts | 2 +- .../src/lib/services/NotificationService.ts | 6 +- .../src/routes/(app)/+layout.svelte | 6 +- .../src/routes/(app)/settings/+page.svelte | 2 +- .../src/routes/(auth)/onboarding/+page.svelte | 2 +- .../src/routes/(auth)/verify/+page.svelte | 4 +- .../(auth)/verify/steps/passport.svelte | 4 +- .../eid-wallet/src/routes/+layout.svelte | 4 +- infrastructure/web3-adapter/biome.json | 7 + .../src/__tests__/adapter.test.ts | 116 +- .../web3-adapter/src/__tests__/evault.test.ts | 372 +++--- infrastructure/web3-adapter/src/adapter.ts | 96 +- infrastructure/web3-adapter/src/db/index.js | 13 +- .../web3-adapter/src/db/mapping.db.js | 5 +- .../web3-adapter/src/db/mapping.db.ts | 308 +++-- .../web3-adapter/src/evault/evault.js | 1 - .../web3-adapter/src/evault/evault.ts | 1117 ++++++++--------- infrastructure/web3-adapter/src/index.d.ts | 4 +- infrastructure/web3-adapter/src/index.js | 27 +- infrastructure/web3-adapter/src/index.ts | 822 ++++++------ .../web3-adapter/src/logging/index.js | 13 +- .../web3-adapter/src/logging/logger.d.ts | 2 +- .../web3-adapter/src/logging/logger.js | 5 +- .../web3-adapter/src/logging/transport.js | 5 +- .../web3-adapter/src/logging/transport.ts | 26 +- .../web3-adapter/src/mapper/mapper.js | 1 - .../web3-adapter/src/mapper/mapper.ts | 660 +++++----- .../web3-adapter/src/mapper/mapper.types.js | 1 - .../web3-adapter/src/mapper/mapper.types.ts | 78 +- .../src/components/auth/login-screen.tsx | 7 +- .../client/src/components/group-card.tsx | 4 +- .../client/src/components/user-card.tsx | 2 +- .../dreamSync/client/src/lib/apiClient.ts | 4 +- .../dreamSync/client/src/lib/auth-context.tsx | 17 +- .../client/src/pages/wishlist-editor.tsx | 2 +- platforms/dreamSync/shared/schema.ts | 6 +- platforms/eReputation/server/auth.ts | 11 + platforms/eReputation/server/routes.ts | 13 +- .../eReputation/server/services/reputation.ts | 41 +- platforms/eReputation/shared/entities.ts | 12 +- platforms/eReputation/vite.config.ts | 27 +- platforms/pictique/src/env.d.ts | 3 + .../src/routes/(auth)/auth/+page.svelte | 4 +- 47 files changed, 1907 insertions(+), 1965 deletions(-) create mode 100644 infrastructure/web3-adapter/biome.json diff --git a/infrastructure/control-panel/src/routes/evaults/[namespace]/[pod]/+page.svelte b/infrastructure/control-panel/src/routes/evaults/[namespace]/[pod]/+page.svelte index 392b711d..1eccdfc2 100644 --- a/infrastructure/control-panel/src/routes/evaults/[namespace]/[pod]/+page.svelte +++ b/infrastructure/control-panel/src/routes/evaults/[namespace]/[pod]/+page.svelte @@ -26,7 +26,7 @@ const [logsData, detailsData] = await Promise.all([ EVaultService.getEVaultLogs(namespace, podName), - EVaultService.getEVaultDetails(namespace, podName) + EVaultService.getEVaultMetrics(namespace, podName) ]); logs = logsData; diff --git a/infrastructure/eid-wallet/src/lib/crypto/HardwareKeyManager.ts b/infrastructure/eid-wallet/src/lib/crypto/HardwareKeyManager.ts index dd30733a..98f9d9b0 100644 --- a/infrastructure/eid-wallet/src/lib/crypto/HardwareKeyManager.ts +++ b/infrastructure/eid-wallet/src/lib/crypto/HardwareKeyManager.ts @@ -1,5 +1,3 @@ -import type { KeyManager } from "./types"; -import { KeyManagerError, KeyManagerErrorCodes } from "./types"; import { exists as hwExists, generate as hwGenerate, @@ -7,6 +5,8 @@ import { signPayload as hwSignPayload, verifySignature as hwVerifySignature, } from "@auvo/tauri-plugin-crypto-hw-api"; +import type { KeyManager } from "./types"; +import { KeyManagerError, KeyManagerErrorCodes } from "./types"; /** * Hardware key manager implementation using Tauri crypto hardware API diff --git a/infrastructure/eid-wallet/src/lib/crypto/KeyManagerFactory.ts b/infrastructure/eid-wallet/src/lib/crypto/KeyManagerFactory.ts index a8f59787..1cc3dfea 100644 --- a/infrastructure/eid-wallet/src/lib/crypto/KeyManagerFactory.ts +++ b/infrastructure/eid-wallet/src/lib/crypto/KeyManagerFactory.ts @@ -1,6 +1,6 @@ -import type { KeyManager, KeyManagerConfig } from "./types"; import { HardwareKeyManager } from "./HardwareKeyManager"; import { SoftwareKeyManager } from "./SoftwareKeyManager"; +import type { KeyManager, KeyManagerConfig } from "./types"; import { KeyManagerError, KeyManagerErrorCodes } from "./types"; /** diff --git a/infrastructure/eid-wallet/src/lib/global/controllers/evault.ts b/infrastructure/eid-wallet/src/lib/global/controllers/evault.ts index 0f7e069c..75e17ea3 100644 --- a/infrastructure/eid-wallet/src/lib/global/controllers/evault.ts +++ b/infrastructure/eid-wallet/src/lib/global/controllers/evault.ts @@ -2,8 +2,8 @@ import { PUBLIC_REGISTRY_URL } from "$env/static/public"; import type { Store } from "@tauri-apps/plugin-store"; import axios from "axios"; import { GraphQLClient } from "graphql-request"; -import type { UserController } from "./user"; import NotificationService from "../../services/NotificationService"; +import type { UserController } from "./user"; const STORE_META_ENVELOPE = ` mutation StoreMetaEnvelope($input: MetaEnvelopeInput!) { diff --git a/infrastructure/eid-wallet/src/lib/global/state.ts b/infrastructure/eid-wallet/src/lib/global/state.ts index f2d77b36..eb9f6b51 100644 --- a/infrastructure/eid-wallet/src/lib/global/state.ts +++ b/infrastructure/eid-wallet/src/lib/global/state.ts @@ -1,8 +1,8 @@ import { Store } from "@tauri-apps/plugin-store"; +import NotificationService from "../services/NotificationService"; import { VaultController } from "./controllers/evault"; import { SecurityController } from "./controllers/security"; import { UserController } from "./controllers/user"; -import NotificationService from "../services/NotificationService"; /** * @author SoSweetHam * @description A centralized state that can be used to control the global state of the application, meant to be used as a singleton through the main layout component. diff --git a/infrastructure/eid-wallet/src/lib/services/NotificationService.ts b/infrastructure/eid-wallet/src/lib/services/NotificationService.ts index aff04897..24fb22c2 100644 --- a/infrastructure/eid-wallet/src/lib/services/NotificationService.ts +++ b/infrastructure/eid-wallet/src/lib/services/NotificationService.ts @@ -1,10 +1,10 @@ +import { PUBLIC_PROVISIONER_URL } from "$env/static/public"; +import { invoke } from "@tauri-apps/api/core"; import { - requestPermission, isPermissionGranted, + requestPermission, sendNotification, } from "@tauri-apps/plugin-notification"; -import { invoke } from "@tauri-apps/api/core"; -import { PUBLIC_PROVISIONER_URL } from "$env/static/public"; export interface DeviceRegistration { eName: string; diff --git a/infrastructure/eid-wallet/src/routes/(app)/+layout.svelte b/infrastructure/eid-wallet/src/routes/(app)/+layout.svelte index 0b34079c..a9ed5b2a 100644 --- a/infrastructure/eid-wallet/src/routes/(app)/+layout.svelte +++ b/infrastructure/eid-wallet/src/routes/(app)/+layout.svelte @@ -1,10 +1,10 @@