MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / getFileConfigAddr

Function getFileConfigAddr

frontend/src/hooks/useFileManager.ts:43–52  ·  view source on GitHub ↗
(config: { addr: string; remoteMappings?: RemoteMappingEntry[] })

Source from the content-addressed store, hash-verified

41import { computed, createVNode, onMounted, reactive, ref, type VNodeRef } from "vue";
42
43export function getFileConfigAddr(config: { addr: string; remoteMappings?: RemoteMappingEntry[] }) {
44 let addr = config.addr;
45 if (config.remoteMappings) {
46 const mapped = mapDaemonAddress(config.remoteMappings);
47 if (mapped) {
48 addr = mapped.addr + mapped.prefix;
49 }
50 }
51 return addr;
52}
53
54interface TabItem {
55 name: string;

Callers 3

selectedFilesFunction · 0.85
startUploadFunction · 0.85
getFileLinkFunction · 0.85

Calls 1

mapDaemonAddressFunction · 0.90

Tested by

no test coverage detected