Line

ui/client/features/pages-editor/domain/CodeLinks

Cockpit client (features), v0.9. Source: ui/client/features/pages-editor/domain/CodeLinks.ts.

Functions#

linkSegments()#

linkSegments(source, references): CodeSegment[]

Defined in: ui/client/features/pages-editor/domain/CodeLinks.ts:11

Split source into runs of text, marking only references that RESOLVED to a project file. A reference with no target contributes nothing: it stays inside an ordinary text run, so it has no link markup to render.

Parameters#

source

string

references

NavReference[]

Returns#

CodeSegment[]


unlinkedReferences()#

unlinkedReferences(references): object[]

Defined in: ui/client/features/pages-editor/domain/CodeLinks.ts:28

References that are not links, one entry each (name + plain reason), de-duplicated by name and reason.

Parameters#

references

NavReference[]

Returns#

object[]