Line

ui/client/features/notes/domain/NoteCompare

Pure (DOMAIN-001): the Compare view of a stale write, "mine" against "theirs", as one list of lines.

Cockpit client (features), v0.9. Source: ui/client/features/notes/domain/NoteCompare.ts.

Variables#

MAX_COMPARE_LINES#

const MAX_COMPARE_LINES: 2500 = 2500

Defined in: ui/client/features/notes/domain/NoteCompare.ts:6

Above this many differing lines on a side the LCS is skipped: the two texts are simply shown one after the other.

Functions#

compareLines()#

compareLines(mine, theirs): CompareLine[]

Defined in: ui/client/features/notes/domain/NoteCompare.ts:8

Parameters#

mine

string

theirs

string

Returns#

CompareLine[]


differs()#

differs(mine, theirs): boolean

Defined in: ui/client/features/notes/domain/NoteCompare.ts:60

True when the title or the text differs, i.e. there is something to choose between.

Parameters#

mine
body

string

title

string

theirs
body

string

title

string

Returns#

boolean