now correctly continue fetching every page for the search instead of stopping on the first. also added the launch.sh and updated the gitignore

This commit is contained in:
jenz
2026-09-04 17:42:38 +02:00
parent c3193fa2e4
commit 9ba3f691d4
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -22,3 +22,7 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
.env
tsconfig.tsbuildinfo
package-lock.json
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
/snap/bin/node /home/nonroot/unloze-wrapper/server.js
+5
View File
@@ -204,6 +204,11 @@ export default defineComponent({
this.files.push(...(data.files || [])); this.files.push(...(data.files || []));
this.nextToken = data.nextToken; this.nextToken = data.nextToken;
this.loading = false; this.loading = false;
// Keep fetching until we've retrieved every page for this prefix/search
if (data.isTruncated && data.nextToken) {
await this.fetchList(false);
}
}, },
onSearch() { onSearch() {
this.nextToken = null; this.nextToken = null;