core-components: remove duplicate types from LogViewer
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -28,25 +28,6 @@ export interface LogViewerProps {
|
||||
text: string;
|
||||
}
|
||||
|
||||
export type AnsiColor =
|
||||
| 'black'
|
||||
| 'red'
|
||||
| 'green'
|
||||
| 'yellow'
|
||||
| 'blue'
|
||||
| 'magenta'
|
||||
| 'cyan'
|
||||
| 'white'
|
||||
| 'grey';
|
||||
|
||||
export interface ChunkModifiers {
|
||||
foreground?: AnsiColor;
|
||||
background?: AnsiColor;
|
||||
bold?: boolean;
|
||||
italic?: boolean;
|
||||
underline?: boolean;
|
||||
}
|
||||
|
||||
function applySearchFilter(lines: AnsiLine[], searchText: string) {
|
||||
if (!searchText) {
|
||||
return { lines };
|
||||
|
||||
Reference in New Issue
Block a user