elstat/priv/frontend/src/icons.js
slice cb12d43aea
detect slow services and show an icon
The amount of latency a service needs before being considered "slow" is
configurable in config.json. By default, it is 2000ms (2s).

A side effect of this change is that the "service unresponsive" icon
that is shown when a service is unreachable has been changed to an X
instead of a !.

The slow icon now uses the ! icon.

Additionally, icon "titles" were added to aid any screen readers.
2018-07-16 10:44:06 -07:00

14 lines
292 B
JavaScript

import { library } from '@fortawesome/fontawesome-svg-core'
import {
faCheckCircle,
faTimesCircle,
faExclamationCircle,
} from '@fortawesome/free-solid-svg-icons'
export default function register () {
library.add(
faCheckCircle,
faTimesCircle,
faExclamationCircle,
)
}