diff --git a/docs/index.html b/docs/index.html index 1a1827a1e5..316f84145d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -157,6 +157,36 @@ function onclickFiles(files) { controller.mainContainer.messageHandlePing("filesLoadRequest", files, null); } + function onclickVSTS(path, token) { + let vstsFunc = async function() { + console.log(path, token); + let files = null + await getVSTSCall(path, token).then(data =>{ + files = data; + }); + files = files.value; + var filteredFiles = []; + + for(var i = 0; i < files.length; i++) + { + if(files[i].path.includes(".cdm.json")) + { + let file = null; + await getVSTSCall(files[i].url, token).then(data =>{ + file = data; + }); + files[i].fileData = file; + files[i].lastModified = 0; + files[i].name = files[i].path.split("/")[files[i].path.split("/").length - 1]; + files[i].type = "application/json"; + filteredFiles.push(files[i]); + } + } + + controller.mainContainer.messageHandlePing("vstsLoadRequest", filteredFiles, [path, token]); + } + vstsFunc(); + } function onclickFolderItem(event) { controller.mainContainer.messageHandlePing("navigateEntitySelect", this.folderState, event.ctrlKey); @@ -200,6 +230,12 @@ + +