MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / flowHref

Function flowHref

ui/src/lib/navigation.ts:152–161  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

150 },
151
152 flowHref(opts = {}) {
153 const params = new URLSearchParams();
154 if (opts.from) params.set('from', opts.from);
155 if (opts.to) params.set('to', opts.to);
156 if (opts.symbols) params.set('symbols', opts.symbols);
157 // `t`, not `trail`: the trail already travels under that name everywhere
158 // else, and a flow read from one is the same walk under a different lens.
159 if (opts.trail) params.set('t', opts.trail);
160 return `#/flow${query(params)}`;
161 },
162
163 entryHref() {
164 return '#/entry';

Callers 1

ui-package.test.tsFile · 0.85

Calls 3

flowHrefMethod · 0.80
queryFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected