feat: pagination

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-09-05 20:14:40 -04:00
parent 47d97a8d1a
commit 6942469259
9 changed files with 200 additions and 326 deletions
+3 -10
View File
@@ -293,9 +293,7 @@ export function useFileUpload(options: UseFileUploadOptions) {
try {
// Create the folder
const collection = await nodesStore.createCollection(
currentProviderId(),
currentServiceId(),
parentId,
`${currentProviderId()}:${currentServiceId()}:${parentId || ROOT_ID}`,
{ label: folderName, owner: '' }
)
folderIdMap.set(folderPath, String(collection.identifier))
@@ -342,9 +340,7 @@ export function useFileUpload(options: UseFileUploadOptions) {
// Create the entity
const entity = await nodesStore.createEntity(
currentProviderId(),
currentServiceId(),
targetCollection || ROOT_ID,
`${currentProviderId()}:${currentServiceId()}:${targetCollection || ROOT_ID}`,
{
'@type': 'documents.properties',
urid: null,
@@ -360,10 +356,7 @@ export function useFileUpload(options: UseFileUploadOptions) {
// Write the content
await nodesStore.writeEntity(
currentProviderId(),
currentServiceId(),
targetCollection || ROOT_ID,
String(entity.identifier),
`${entity.provider}:${entity.service}:${entity.collection || ROOT_ID}:${entity.identifier}`,
content
)