ui/client/features/feature-catalog/domain/FeatureView
Pure (DOMAIN-001): the Features screen's rows and the details of one feature, made from what construct summarize already answers.
Cockpit client (features), next. Source: ui/client/features/feature-catalog/domain/FeatureView.ts.
Functions#
buildFeatureView()#
buildFeatureView(
summary):FeatureView|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:46
Parameters#
summary
Returns#
FeatureView | null
fileHref()#
fileHref(
feature,layer,path):string|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:23
Where a file can be opened on another screen: components on Components, pages on Pages; other layers have no screen of their own.
Parameters#
feature
string
layer
string
path
string
Returns#
string | null
findFeature()#
findFeature(
features,name):FeatureRow|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:18
The row for a name only when it is in the list (a stale or hand-edited ?feature= selects nothing).
Parameters#
features
name
string | null
Returns#
FeatureRow | null
legacyNote()#
legacyNote(
featuresRoot,legacy):string|null
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:12
"Legacy, outside / (N files, not managed)" -- only for a non-default root with files to report.
Parameters#
featuresRoot
string | undefined
legacy
LegacyFiles | undefined
Returns#
string | null
toListItems()#
toListItems(
features):object[]
Defined in: ui/client/features/feature-catalog/domain/FeatureView.ts:7
Parameters#
features
Returns#
object[]