diff --git a/src/models/backup.model.ts b/src/models/backup.model.ts index bb36699..0b660f3 100644 --- a/src/models/backup.model.ts +++ b/src/models/backup.model.ts @@ -1,4 +1,4 @@ -import { Device, Process, SecretsStore } from "../../pkg/sdk_client.js"; +import { Device, Process, SecretsStore } from ".././pkg/sdk_client.js"; export interface BackUp { device: Device, diff --git a/src/pages/account/document-validation.ts b/src/pages/account/document-validation.ts index b86e835..53cd303 100644 --- a/src/pages/account/document-validation.ts +++ b/src/pages/account/document-validation.ts @@ -1,4 +1,4 @@ -import { ProcessState } from '../../pkg/sdk_client.js'; +import { ProcessState } from '.././pkg/sdk_client.js'; import Services from '../../services/service'; interface State { diff --git a/src/pages/account/key-value-section.ts b/src/pages/account/key-value-section.ts index 74e8460..4f75026 100644 --- a/src/pages/account/key-value-section.ts +++ b/src/pages/account/key-value-section.ts @@ -1,4 +1,4 @@ -import { ValidationRule, RoleDefinition } from '../../pkg/sdk_client.js'; +import { ValidationRule, RoleDefinition } from '.././pkg/sdk_client.js'; import { showValidationRuleModal } from '../../components/validation-rule-modal/validation-rule-modal'; export function createKeyValueSection(title: string, id: string, isRoleSection = false) { diff --git a/src/pages/account/process-creation.ts b/src/pages/account/process-creation.ts index 1ed3206..884b1a3 100644 --- a/src/pages/account/process-creation.ts +++ b/src/pages/account/process-creation.ts @@ -1,7 +1,7 @@ import { createKeyValueSection } from './key-value-section'; import { loadValidationRuleModal } from '../../components/validation-rule-modal/validation-rule-modal'; import Services from '../../services/service'; -import { RoleDefinition } from '../../pkg/sdk_client.js'; +import { RoleDefinition } from '.././pkg/sdk_client.js'; export async function getProcessCreation(container: HTMLElement) { await loadValidationRuleModal(); diff --git a/src/pages/chat/chat.ts b/src/pages/chat/chat.ts index 41db150..dca9e62 100755 --- a/src/pages/chat/chat.ts +++ b/src/pages/chat/chat.ts @@ -5,7 +5,7 @@ } import { membersMock } from '../../mocks/mock-signature/membersMocks'; -import { ApiReturn, Device, Member, Process, RoleDefinition } from '../../pkg/sdk_client.js'; +import { ApiReturn, Device, Member, Process, RoleDefinition } from '.././pkg/sdk_client.js'; import { getCorrectDOM } from '../../utils/document.utils'; import chatStyle from '../../../public/style/chat.css?inline'; import { addressToEmoji } from '../../utils/sp-address.utils'; diff --git a/src/pages/process-element/process-element.ts b/src/pages/process-element/process-element.ts index 52c89b5..999c482 100755 --- a/src/pages/process-element/process-element.ts +++ b/src/pages/process-element/process-element.ts @@ -1,6 +1,6 @@ import { interpolate } from '../../utils/html.utils'; import Services from '../../services/service'; -import { Process } from '../../pkg/sdk_client.js'; +import { Process } from '.././pkg/sdk_client.js'; import { getCorrectDOM } from '~/utils/document.utils'; let currentPageStyle: HTMLStyleElement | null = null; diff --git a/src/router.ts b/src/router.ts index b662d2c..751059c 100755 --- a/src/router.ts +++ b/src/router.ts @@ -10,7 +10,7 @@ import { prepareAndSendPairingTx } from './utils/sp-address.utils'; import ModalService from './services/modal.service'; import { MessageType } from './models/process.model'; import { splitPrivateData, isValid32ByteHex } from './utils/service.utils'; -import { MerkleProofResult } from '../../pkg/sdk_client.js'; +import { MerkleProofResult } from '.././pkg/sdk_client.js'; const routes: { [key: string]: string } = { home: '/src/pages/home/home.html', diff --git a/src/services/modal.service.ts b/src/services/modal.service.ts index 0a9584e..b5a9d46 100755 --- a/src/services/modal.service.ts +++ b/src/services/modal.service.ts @@ -4,7 +4,7 @@ import validationModalStyle from '../components/validation-modal/validation-moda import Services from './service'; import { init, navigate } from '../router'; import { addressToEmoji } from '../utils/sp-address.utils'; -import { RoleDefinition } from '../../pkg/sdk_client.js'; +import { RoleDefinition } from '.././pkg/sdk_client.js'; import { initValidationModal } from '~/components/validation-modal/validation-modal'; import { interpolate } from '~/utils/html.utils'; diff --git a/src/services/service.ts b/src/services/service.ts index 588cc62..cfb69fa 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -1,7 +1,7 @@ import { INotification } from '~/models/notification.model'; import { IProcess } from '~/models/process.model'; import { initWebsocket, sendMessage } from '../websockets'; -import { ApiReturn, Device, HandshakeMessage, Member, MerkleProofResult, NewTxMessage, OutPointProcessMap, Process, ProcessState, RoleDefinition, SecretsStore, UserDiff } from '../../pkg/sdk_client.js'; +import { ApiReturn, Device, HandshakeMessage, Member, MerkleProofResult, NewTxMessage, OutPointProcessMap, Process, ProcessState, RoleDefinition, SecretsStore, UserDiff } from '.././pkg/sdk_client.js'; import ModalService from './modal.service'; import Database from './database.service'; import { navigate } from '../router'; @@ -60,7 +60,7 @@ export default class Services { public async init(): Promise { this.notifications = this.getNotifications(); // SDK ES module est déjà importé statiquement si nécessaire - this.sdkClient = await import('../../pkg/sdk_client.js'); + this.sdkClient = await import('.././pkg/sdk_client.js'); this.sdkClient.setup(); // Initialise la base locale (IndexedDB) avant toute utilisation this.database = await Database.getInstance(); diff --git a/src/websockets.ts b/src/websockets.ts index a44fe73..2a80331 100755 --- a/src/websockets.ts +++ b/src/websockets.ts @@ -1,4 +1,4 @@ -import { AnkFlag } from '../../pkg/sdk_client.js'; +import { AnkFlag } from '.././pkg/sdk_client.js'; import Services from './services/service'; let ws: WebSocket;