Initial alpha version of the Ratio Calculator.

This commit is contained in:
Roland 2025-01-18 10:08:11 -07:00
parent f321e9f6f3
commit fb187e1305
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 474 additions and 32 deletions

View file

@ -97,8 +97,9 @@ export function NavBar() {
// Red/Yellow colors will blend in to some navbar colors, swap the colors for high contrast.
const conflictingColors = ['red', 'orange', 'yellow', 'olive', 'pink'];
const lowWarningColor = conflictingColors.includes(navColor) ? 'white' : 'yellow';
const highWarningColor = conflictingColors.includes(navColor) ? 'black' : 'red';
const [lowWarningColor, highWarningColor] = conflictingColors.includes(navColor)
? [null, 'black']
: ['yellow', 'red'];
// Generic system load, the least important warning.
const {minute_1, mediumLoad, highLoad} = useLoad();
@ -172,7 +173,6 @@ export function NavBar() {
processingLink = '/map/manage';
}
}
const processingIcon = processingLink &&
<Link to={processingLink}>
<Icon loading name='circle notch' size='large'/>