Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
KEGustafsson committed Feb 3, 2024
1 parent 63d0101 commit 542696f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions packages/server-admin-ui/src/views/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ const Dashboard = (props) => {
linkType = providerStatus.find(
(item) => item.id === providerId
).statusType
} catch (error) {}
} catch (error) { }
const inputPulseIconClass =
'icon-login' +
(providerStats.deltaRate > 50
? ' text-primary fa-pulse-fast'
: providerStats.deltaRate > 0
? ' text-primary fa-pulse'
: '')
? ' text-primary fa-pulse'
: '')
const outputPulseIconClass =
'icon-logout' +
(providerStats.writeRate > 50
? ' text-primary fa-pulse-fast'
: providerStats.writeRate > 0
? ' text-primary fa-pulse'
: '')
? ' text-primary fa-pulse'
: '')
if (linkType === 'provider') {
return (
<li
Expand Down Expand Up @@ -174,7 +174,7 @@ const Dashboard = (props) => {
}
})}
</ul>
<br></br>
<br></br>
<div className="text-muted">Plugins activity</div>
<ul className="horizontal-bars type-2">
{Object.keys(providerStatistics || {}).sort().map((providerId) => {
Expand All @@ -184,21 +184,21 @@ const Dashboard = (props) => {
linkType = providerStatus.find(
(item) => item.id === providerId
).statusType
} catch (error) {}
} catch (error) { }
const inputPulseIconClass =
'icon-login' +
(providerStats.deltaRate > 50
? ' text-primary fa-pulse-fast'
: providerStats.deltaRate > 0
? ' text-primary fa-pulse'
: '')
? ' text-primary fa-pulse'
: '')
const outputPulseIconClass =
'icon-logout' +
(providerStats.writeRate > 50
? ' text-primary fa-pulse-fast'
: providerStats.writeRate > 0
? ' text-primary fa-pulse'
: '')
? ' text-primary fa-pulse'
: '')
if (linkType === 'plugin') {
return (
<li
Expand Down Expand Up @@ -309,19 +309,19 @@ const Dashboard = (props) => {
const lastError =
status.lastError && status.lastError != status.message
? status.lastErrorTimeStamp +
': ' +
status.lastError
': ' +
status.lastError
: ''
return (
<tr
key={status.id}
onClick={() => {
props.history.push(
'/serverConfiguration/' +
(status.statusType === 'plugin'
? 'plugins/'
: 'connections/') +
status.id
(status.statusType === 'plugin'
? 'plugins/'
: 'connections/') +
status.id
)
}}
>
Expand Down

0 comments on commit 542696f

Please sign in to comment.