From c3829a60df9d8b3bee58448ee04810d38e0efa55 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Tue, 26 Mar 2024 13:13:30 -0400 Subject: [PATCH] match directory structure of og lib --- src/nimbotsdk/{ => mixins}/AutojoinRoomsMixin.nim | 2 +- src/nimbotsdk/{ => preprocessors}/RichRepliesPreprocessor.nim | 2 +- src/nimbotsdk/{ => storage}/RustSdkCryptoStorageProvider.nim | 2 +- src/nimbotsdk/{ => storage}/SimpleFsStorageProvider.nim | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/nimbotsdk/{ => mixins}/AutojoinRoomsMixin.nim (95%) rename src/nimbotsdk/{ => preprocessors}/RichRepliesPreprocessor.nim (93%) rename src/nimbotsdk/{ => storage}/RustSdkCryptoStorageProvider.nim (94%) rename src/nimbotsdk/{ => storage}/SimpleFsStorageProvider.nim (95%) diff --git a/src/nimbotsdk/AutojoinRoomsMixin.nim b/src/nimbotsdk/mixins/AutojoinRoomsMixin.nim similarity index 95% rename from src/nimbotsdk/AutojoinRoomsMixin.nim rename to src/nimbotsdk/mixins/AutojoinRoomsMixin.nim index 1cd8122..a8a9ffa 100644 --- a/src/nimbotsdk/AutojoinRoomsMixin.nim +++ b/src/nimbotsdk/mixins/AutojoinRoomsMixin.nim @@ -1,6 +1,6 @@ {.emit:"/*INCLUDESECTION*/ import { AutojoinRoomsMixin } from 'matrix-bot-sdk';".} -import matrixTypes +import ../matrixTypes proc AutojoinRoomsMixinSetupOnClient*(client: Client): void {.importjs: "AutojoinRoomsMixin.setupOnClient(#)".} diff --git a/src/nimbotsdk/RichRepliesPreprocessor.nim b/src/nimbotsdk/preprocessors/RichRepliesPreprocessor.nim similarity index 93% rename from src/nimbotsdk/RichRepliesPreprocessor.nim rename to src/nimbotsdk/preprocessors/RichRepliesPreprocessor.nim index 79267d3..ffadc7d 100644 --- a/src/nimbotsdk/RichRepliesPreprocessor.nim +++ b/src/nimbotsdk/preprocessors/RichRepliesPreprocessor.nim @@ -1,6 +1,6 @@ {.emit:"/*INCLUDESECTION*/ import { RichRepliesPreprocessor } from 'matrix-bot-sdk';".} -import matrixTypes +import ../matrixTypes proc newRichRepliesPreprocessor*(): IPreprocessor {.importjs: "new RichRepliesPreprocessor()".} proc newRichRepliesPreprocessor*(fetchRealEventContents: bool): IPreprocessor {.importjs: "new RichRepliesPreprocessor(#)".} \ No newline at end of file diff --git a/src/nimbotsdk/RustSdkCryptoStorageProvider.nim b/src/nimbotsdk/storage/RustSdkCryptoStorageProvider.nim similarity index 94% rename from src/nimbotsdk/RustSdkCryptoStorageProvider.nim rename to src/nimbotsdk/storage/RustSdkCryptoStorageProvider.nim index fee7b71..3ac5d38 100644 --- a/src/nimbotsdk/RustSdkCryptoStorageProvider.nim +++ b/src/nimbotsdk/storage/RustSdkCryptoStorageProvider.nim @@ -1,6 +1,6 @@ {.emit:"/*INCLUDESECTION*/ import { RustSdkCryptoStorageProvider } from 'matrix-bot-sdk';".} -import matrixTypes +import ../matrixTypes proc newRustSdkCryptoStorageProvider*(storagePath: cstring): ICryptoStorageProvider {.importjs: "new RustSdkCryptoStorageProvider(#)"} proc newRustSdkCryptoStorageProvider*(storagePath: cstring, storageType: cstring): ICryptoStorageProvider {.importjs: "new RustSdkCryptoStorageProvider(#, #)"} \ No newline at end of file diff --git a/src/nimbotsdk/SimpleFsStorageProvider.nim b/src/nimbotsdk/storage/SimpleFsStorageProvider.nim similarity index 95% rename from src/nimbotsdk/SimpleFsStorageProvider.nim rename to src/nimbotsdk/storage/SimpleFsStorageProvider.nim index 6f60e61..5b11ad4 100644 --- a/src/nimbotsdk/SimpleFsStorageProvider.nim +++ b/src/nimbotsdk/storage/SimpleFsStorageProvider.nim @@ -1,6 +1,6 @@ {.emit:"/*INCLUDESECTION*/ import { SimpleFsStorageProvider } from 'matrix-bot-sdk';".} -import matrixTypes +import ../matrixTypes proc newSimpleFsStorageProvider*(filename: cstring): Storage {.importjs: "new SimpleFsStorageProvider(#)".} proc newSimpleFsStorageProvider*(filename: cstring, trackTransactionsInMemory: bool): Storage {.importjs: "new SimpleFsStorageProvider(#, #)".}