-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #457 from HarperDB/stage
V4.8.14
- Loading branch information
Showing
15 changed files
with
513 additions
and
139 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
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
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
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#logs { | ||
height: 100%; | ||
.filters-header { | ||
color: $color-white; | ||
font-weight: $font-weight-bold; | ||
white-space: nowrap; | ||
font-size: 13px !important; | ||
} | ||
|
||
.instance-details { | ||
.card-body { | ||
padding-bottom: 0; | ||
} | ||
|
||
.nowrap-scroll { | ||
overflow: hidden; | ||
overflow-x: auto; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
.react-select__control { | ||
background-color: $color-white !important; | ||
} | ||
|
||
.react-select__single-value { | ||
color: $color-darkgrey !important; | ||
} | ||
|
||
.react-select__placeholder { | ||
color: $color-darkgrey !important; | ||
} | ||
|
||
.input-label { | ||
color: $color-white; | ||
font-weight: $font-weight-bold; | ||
white-space: nowrap; | ||
font-size: 13px !important; | ||
display: block; | ||
} | ||
|
||
.item-list { | ||
font-size: 0.65rem; | ||
padding: 0; | ||
|
||
.header { | ||
padding: 16px 16px 8px; | ||
} | ||
|
||
hr { | ||
background-color: $color-grey !important; | ||
} | ||
|
||
.item-scroller { | ||
height: calc(100vh - 275px); | ||
overflow: hidden auto; | ||
|
||
&::-webkit-scrollbar { | ||
width: 10px; | ||
} | ||
|
||
.item-row { | ||
border-bottom: 1px solid $lightest-grey-overlay; | ||
padding: 4px; | ||
|
||
.text-nowrap { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.error, | ||
.fatal { | ||
color: $color-danger; | ||
} | ||
|
||
.warn { | ||
color: $color-warning; | ||
} | ||
|
||
.complete, | ||
.notify { | ||
color: $color-success; | ||
} | ||
pre { | ||
margin-bottom: 0; | ||
font-size: 12px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.configLoader { | ||
height: 38px; | ||
padding-top: 15px; | ||
text-align: center; | ||
width: 100%; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import { Row, Col } from 'reactstrap'; | ||
|
||
import isObject from '../../../functions/util/isObject'; | ||
|
||
function LogsRow({ onRowClick, level, timestamp, message, tags, thread }) { | ||
return ( | ||
<Row xs="12" md="12" className="item-row" onClick={onRowClick}> | ||
<Col xs="2" md="1" className={`text-nowrap ${level?.toLowerCase()}`}> | ||
{level?.toUpperCase() || 'UNKNOWN'} | ||
</Col> | ||
<Col xs="2" md="2" lg="1"> | ||
{new Date(timestamp || null).toLocaleDateString()} | ||
</Col> | ||
<Col xs="2" md="2" lg="1"> | ||
{new Date(timestamp || null).toLocaleTimeString()} | ||
</Col> | ||
<Col xs="2" md="1" lg="1"> | ||
{thread} | ||
</Col> | ||
<Col xs="2" md="2" lg="1"> | ||
{tags?.join(', ')} | ||
</Col> | ||
<Col xs="2" md="4" lg="7"> | ||
{isObject(message) && message.error ? ( | ||
message.error | ||
) : ( | ||
<pre> | ||
<code>{message}</code> | ||
</pre> | ||
)} | ||
</Col> | ||
</Row> | ||
); | ||
} | ||
|
||
export default LogsRow; |
Oops, something went wrong.