Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed May 2, 2024
1 parent 8b495b7 commit 85bb36f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
28 changes: 14 additions & 14 deletions resources/nanoo-tools-account-generator.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<head>
<title> </title>
<style>
Expand Down Expand Up @@ -745,19 +745,19 @@
128 > l
? n.push(l)
: 2048 > l
? n.push(192 | (l >> 6), 128 | (63 & l))
: 65536 > l
? n.push(
224 | (l >> 12),
128 | ((l >> 6) & 63),
128 | (63 & l)
)
: n.push(
240 | (l >> 18),
128 | ((l >> 12) & 63),
128 | ((l >> 6) & 63),
128 | (63 & l)
)
? n.push(192 | (l >> 6), 128 | (63 & l))
: 65536 > l
? n.push(
224 | (l >> 12),
128 | ((l >> 6) & 63),
128 | (63 & l)
)
: n.push(
240 | (l >> 18),
128 | ((l >> 12) & 63),
128 | ((l >> 6) & 63),
128 | (63 & l)
)
}
return n
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<!-- The first thing in any HTML file should be the charset -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default class RepresentativeTelemetry extends React.Component {
const bandwidthValue = bandwidth
? `${(bandwidth / (1024 * 1024)).toFixed(1)}Mb`
: typeof bandwidth !== 'undefined'
? 'Unlimited'
: '-'
? 'Unlimited'
: '-'

const blockCount = account.getIn(['telemetry', 'block_count'], 0)
const blockBehind = account.getIn(['telemetry', 'block_behind'], 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export default function RepresentativeUptime({ account }) {
last_60_pct > 95
? 'online'
: last_60_pct < 70
? 'offline'
: last_60_pct < 80
? 'warning'
: ''
? 'offline'
: last_60_pct < 80
? 'warning'
: ''

const last_90 = account.getIn(['uptime_summary', 'days_90'], {})
const last_90_pct =
Expand Down Expand Up @@ -72,10 +72,10 @@ export default function RepresentativeUptime({ account }) {
uptime_pct > 90
? 'online'
: uptime_pct < 50
? 'offline'
: uptime_pct < 75
? 'warning'
: ''
? 'offline'
: uptime_pct < 75
? 'warning'
: ''
}
return (
<div className='representative__section representative__uptime'>
Expand Down

0 comments on commit 85bb36f

Please sign in to comment.