(status)
| 46 | }; |
| 47 | |
| 48 | const getStatusColor = (status) => { |
| 49 | let first_digit = Math.floor(status / 100); |
| 50 | const colors = { |
| 51 | 1: "gray-500", 2: "green-500", 3: "yellow-500", 4: "red-500", 5: "rose-500", DEFAULT: "gray-500", |
| 52 | }; |
| 53 | return first_digit in colors ? colors[first_digit] : colors["DEFAULT"]; |
| 54 | }; |
| 55 | |
| 56 | const addRequest = (request) => { |
| 57 | let methodColor = getMethodColor(request.method); |
no outgoing calls
no test coverage detected