Skip to content

kubev2v/forklift-console-types

Repository files navigation

@kubev2v/types

Manual and auto generated typescript models and constants for Forklift console plugin.

Auto generated

Auto generated types:

Manual

Manual types:

Setting the models color and abbr.

The model constants are auto generated with abbr that defaults to first two letters of the kind, and undefined color. It is sometimes advisable to manual change the defaults.

For example:

export const HostModel = {
  label: 'Host',
  labelPlural: 'Hosts',

  abbr: 'HO',
  color: undefined,
  ...
};

can be manually edited to:

export const HostModel = {
  label: 'Forklift Host',
  labelPlural: 'Forklift Hosts',

  abbr: 'H',
  color: '#f00',
  ...
};