forked from patternfly/react-log-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'patternfly:main' into main
- Loading branch information
Showing
15 changed files
with
94 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
...odule/patternfly-docs/content/extensions/react-log-viewer/examples/ANSIColorLogViewer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import React from 'react'; | ||
import { data } from './realTestData.js'; | ||
import { data } from '@patternfly/react-log-viewer/patternfly-docs/content/extensions/react-log-viewer/examples/realTestData.js'; | ||
import { LogViewer } from '@patternfly/react-log-viewer'; | ||
|
||
const ANSIColorLogViewer = () => ( | ||
<LogViewer | ||
hasLineNumbers={false} | ||
height={300} | ||
data={data.data4} | ||
theme="dark" | ||
/> | ||
); | ||
|
||
export default ANSIColorLogViewer; | ||
export const ANSIColorLogViewer = () => ( | ||
<LogViewer | ||
hasLineNumbers={false} | ||
height={300} | ||
data={data.data4} | ||
theme="dark" | ||
/> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
...ule/patternfly-docs/content/extensions/react-log-viewer/examples/BasicSearchLogViewer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
import React from 'react'; | ||
import { data } from './realTestData'; | ||
import { data } from '@patternfly/react-log-viewer/patternfly-docs/content/extensions/react-log-viewer/examples/realTestData.js'; | ||
import { LogViewer, LogViewerSearch } from '@patternfly/react-log-viewer'; | ||
import { Toolbar, ToolbarContent, ToolbarItem } from '@patternfly/react-core'; | ||
|
||
const BasicSearchLogViewer = () => ( | ||
<LogViewer | ||
data={data.data} | ||
toolbar={ | ||
<Toolbar> | ||
<ToolbarContent> | ||
<ToolbarItem> | ||
<LogViewerSearch placeholder="Search value" /> | ||
</ToolbarItem> | ||
</ToolbarContent> | ||
</Toolbar> | ||
} | ||
/> | ||
); | ||
|
||
export default BasicSearchLogViewer; | ||
export const BasicSearchLogViewer = () => ( | ||
<LogViewer | ||
data={data.data} | ||
toolbar={ | ||
<Toolbar> | ||
<ToolbarContent> | ||
<ToolbarItem> | ||
<LogViewerSearch placeholder="Search value" /> | ||
</ToolbarItem> | ||
</ToolbarContent> | ||
</Toolbar> | ||
} | ||
/> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
...patternfly-docs/content/extensions/react-log-viewer/examples/HeaderComponentLogViewer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import React from 'react'; | ||
import { data } from './realTestData'; | ||
import { data } from '@patternfly/react-log-viewer/patternfly-docs/content/extensions/react-log-viewer/examples/realTestData.js'; | ||
import { LogViewer } from '@patternfly/react-log-viewer'; | ||
import { Banner } from '@patternfly/react-core'; | ||
|
||
const HeaderComponentLogViewer = () => ( | ||
<LogViewer | ||
hasLineNumbers={false} | ||
height={300} | ||
data={data.data} | ||
theme="dark" | ||
header={<Banner>5019 lines</Banner>} | ||
/> | ||
); | ||
|
||
export default HeaderComponentLogViewer; | ||
export const HeaderComponentLogViewer = () => ( | ||
<LogViewer | ||
hasLineNumbers={false} | ||
height={300} | ||
data={data.data} | ||
theme="dark" | ||
header={<Banner>5019 lines</Banner>} | ||
/> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.