Add file timeseries chart

This commit is contained in:
2023-05-25 23:07:17 +02:00
parent b29a1b2a97
commit 976a37f299
6 changed files with 204 additions and 33 deletions

View File

@@ -4,7 +4,12 @@ export const fs_split_path = (path) => {
}
export const fs_path_url = (bucket, path) => {
return window.api_endpoint + "/filesystem/" + bucket + encodeURIComponent(path)
// Encode all path elements separately to preserve forward slashes
let split = path.split("/")
for (let i = 0; i < split.length; i++) {
split[i] = encodeURIComponent(split[i])
}
return api_endpoint + "/filesystem/" + bucket + split.join("/")
}
export const fs_file_url = (bucket, path) => {