feat: list files in folder in webview

This commit is contained in:
tdurieux
2024-05-02 11:49:00 +01:00
parent ed11e9db36
commit ca04339529
2 changed files with 36 additions and 7 deletions
+7 -1
View File
@@ -62,6 +62,13 @@ export default class AnonymizedFile {
const filename = basename(this.anonymizedPath);
if (!this.anonymizedPath.includes(config.ANONYMIZATION_MASK)) {
if (this.anonymizedPath == "") {
return {
name: "",
path: "",
repoId: this.repository.repoId,
};
}
const query: FilterQuery<IFile> = {
repoId: this.repository.repoId,
path: fileDir,
@@ -284,7 +291,6 @@ export default class AnonymizedFile {
]);
// const hostName = new URL(config.STREAMER_ENTRYPOINT).hostname;
// const ipHost = await this.cacheableLookup.lookupAsync(hostName);
// console.timeLog("streamer"+ this.anonymizedPath, "got ip");
got
.stream(join(config.STREAMER_ENTRYPOINT, "api"), {
method: "POST",