MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / navigateToHome

Function navigateToHome

src/pages/fileBrowser/fileBrowser.js:875–890  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

873 }
874
875 function navigateToHome() {
876 const navigationArray = [];
877 const dirs = home.split("/");
878 const { url: parsedUrl, query } = Url.parse(url);
879 let path = "";
880
881 for (let dir of dirs) {
882 path = Url.join(path, dir);
883 navigationArray.push({
884 url: `${Url.join(parsedUrl, path, "")}${query}`,
885 name: dir || name,
886 });
887 }
888
889 loadStates(navigationArray);
890 }
891
892 function file() {
893 $page.hide();

Callers 1

folderFunction · 0.85

Calls 1

loadStatesFunction · 0.85

Tested by

no test coverage detected