Merge branch 'availabilities-space-repartition-improvements' into releases/v0.0.4

This commit is contained in:
Arnaud 2024-10-10 11:01:13 +02:00
commit 984538bb99
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
2 changed files with 36 additions and 34 deletions

View File

@ -22,7 +22,8 @@
overflow: hidden; overflow: hidden;
transition: height 0.35s; transition: height 0.35s;
will-change: height; will-change: height;
padding: 0 1rem; padding-left: 3rem;
padding-right: 1rem;
} }
.availabilitySlotRow--active .availabilitySlotRow-cell-content { .availabilitySlotRow--active .availabilitySlotRow-cell-content {

View File

@ -3,6 +3,7 @@ import {
CodexData, CodexData,
CodexDataResponse, CodexDataResponse,
CodexMarketplace, CodexMarketplace,
CodexReservation,
SafeValue, SafeValue,
UploadResponse, UploadResponse,
} from "@codex-storage/sdk-js"; } from "@codex-storage/sdk-js";
@ -142,39 +143,39 @@ class CodexMarketplaceMock extends CodexMarketplace {
// }, // },
// }); // });
// } // }
// override reservations(): Promise<SafeValue<CodexReservation[]>> { override reservations(): Promise<SafeValue<CodexReservation[]>> {
// return Promise.resolve({ return Promise.resolve({
// error: false, error: false,
// data: [ data: [
// { {
// id: "0x123456789", id: "0x123456789",
// availabilityId: "0x12345678910", availabilityId: "0x12345678910",
// requestId: "0x1234567891011", requestId: "0x1234567891011",
// /** /**
// * Size in bytes * Size in bytes
// */ */
// size: 500_000_000 + "", size: 500_000_000 + "",
// /** /**
// * Slot Index as hexadecimal string * Slot Index as hexadecimal string
// */ */
// slotIndex: "2", slotIndex: "2",
// }, },
// { {
// id: "0x987654321", id: "0x987654321",
// availabilityId: "0x9876543210", availabilityId: "0x9876543210",
// requestId: "0x98765432100", requestId: "0x98765432100",
// /** /**
// * Size in bytes * Size in bytes
// */ */
// size: 500_000_000 + "", size: 500_000_000 + "",
// /** /**
// * Slot Index as hexadecimal string * Slot Index as hexadecimal string
// */ */
// slotIndex: "1", slotIndex: "1",
// }, },
// ], ],
// }); });
// } }
} }
export const CodexSdk = { export const CodexSdk = {