Skip to content

Module: "renderer-api/components"#

Index#

Enumerations#

Classes#

Interfaces#

Type aliases#

Variables#

Functions#

Type aliases#

InputProps#

Ƭ InputProps: Omit‹InputElementProps, "onChange" | "onSubmit"› & object

Defined in src/renderer/components/input/input.tsx:21


Ƭ MenuContextValue: Menu

Defined in src/renderer/components/menu/menu.tsx:11


NotificationId#

Ƭ NotificationId: string | number

Defined in src/renderer/components/notifications/notifications.store.ts:7


NotificationMessage#

Ƭ NotificationMessage: React.ReactNode | React.ReactNode[] | JsonApiErrorParsed

Defined in src/renderer/components/notifications/notifications.store.ts:8


RadioProps#

Ƭ RadioProps: HTMLProps‹any› & object

Defined in src/renderer/components/radio/radio.tsx:40


TableCellElem#

Ƭ TableCellElem: ReactElement‹TableCellProps

Defined in src/renderer/components/table/table-cell.tsx:9


TableHeadElem#

Ƭ TableHeadElem: ReactElement‹TableHeadProps

Defined in src/renderer/components/table/table-head.tsx:6


TableOrderBy#

Ƭ TableOrderBy: "asc" | "desc" | string

Defined in src/renderer/components/table/table.tsx:18


TableRowElem#

Ƭ TableRowElem: ReactElement‹TableRowProps

Defined in src/renderer/components/table/table-row.tsx:7


TableSortBy#

Ƭ TableSortBy: string

Defined in src/renderer/components/table/table.tsx:17


TableSortCallback#

Ƭ TableSortCallback: function

Defined in src/renderer/components/table/table.tsx:20

Type declaration:#

▸ (data: D): string | number | (string | number)[]

Parameters:

Name Type
data D

TableSortParams#

Ƭ TableSortParams: object

Defined in src/renderer/components/table/table.tsx:19

Type declaration:#

Variables#

InputValidators#

InputValidators: InputValidators

Defined in src/renderer/components/input/input.tsx:14


Const MenuContext#

MenuContext: Context‹Menu‹›› = React.createContext(null)

Defined in src/renderer/components/menu/menu.tsx:10


Const TabLayout#

TabLayout: (Anonymous function) = observer(({ className, contentClass, tabs = [], children }: TabLayoutProps) => { const currentLocation = navigation.location.pathname; const hasTabs = tabs.length > 0; const startTabUrl = hasTabs ? (tabs.find(tab => tab.default) || tabs[0])?.url : null;

return (

{hasTabs && ( navigate(url)}> {tabs.map(({ title, routePath, url = routePath, exact }) => { const isActive = !!matchPath(currentLocation, { path: routePath, exact });

        return <Tab key={url} label={title} value={url} active={isActive}/>;
      })}
    </Tabs>
  )}
  <main className={cssNames(contentClass)}>
    <ErrorBoundary>
      {hasTabs && (
        <Switch>
          {tabs.map(({ routePath, exact, component }) => {
            return <Route key={routePath} exact={exact} path={routePath} component={component}/>;
          })}
          <Redirect to={startTabUrl}/>
        </Switch>
      )}
      {children}
    </ErrorBoundary>
  </main>
</div>

); })

Defined in src/renderer/components/layout/tab-layout.tsx:27


Const notificationsStore#

notificationsStore: NotificationsStore‹› = new NotificationsStore()

Defined in src/renderer/components/notifications/notifications.store.ts:77


Const terminalStore#

terminalStore: TerminalStore‹› = new TerminalStore()

Defined in src/renderer/components/dock/terminal.store.ts:124

Functions#

DrawerItemLabels#

DrawerItemLabels(props: DrawerItemLabelsProps): Element‹›

Defined in src/renderer/components/drawer/drawer-item-labels.tsx:9

Parameters:

Name Type
props DrawerItemLabelsProps

Returns: Element‹›


SubMenu(props: Partial‹MenuProps›): Element‹›

Defined in src/renderer/components/menu/menu.tsx:275

Parameters:

Name Type
props Partial‹MenuProps

Returns: Element‹›


createPodLogsTab#

createPodLogsTab(data: IPodLogsData, tabParams: Partial‹IDockTab›): IDockTab

Defined in src/renderer/components/dock/pod-logs.store.ts:210

Parameters:

Name Type Default
data IPodLogsData -
tabParams Partial‹IDockTab› {}

Returns: IDockTab


createTerminalTab#

createTerminalTab(tabParams: Partial‹ITerminalTab›): IDockTab

Defined in src/renderer/components/dock/terminal.store.ts:18

Parameters:

Name Type Default
tabParams Partial‹ITerminalTab› {}

Returns: IDockTab


withTooltip#

withTooltipT›(Target: T): T

Defined in src/renderer/components/tooltip/withTooltip.tsx:18

Type parameters:

T: React.ComponentType‹any›

Parameters:

Name Type
Target T

Returns: T