(config: { addr: string; remoteMappings?: RemoteMappingEntry[] })
| 41 | import { computed, createVNode, onMounted, reactive, ref, type VNodeRef } from "vue"; |
| 42 | |
| 43 | export 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 | |
| 54 | interface TabItem { |
| 55 | name: string; |
no test coverage detected