debian-mirror-gitlab/app/assets/javascripts/vulnerabilities/constants.js
2021-02-22 17:27:13 +05:30

15 lines
410 B
JavaScript

/**
* Vulnerability severities as provided by the backend on vulnerability
* objects.
*/
export const CRITICAL = 'critical';
export const HIGH = 'high';
export const MEDIUM = 'medium';
export const LOW = 'low';
export const INFO = 'info';
export const UNKNOWN = 'unknown';
/**
* All vulnerability severities in decreasing order.
*/
export const SEVERITIES = [CRITICAL, HIGH, MEDIUM, LOW, INFO, UNKNOWN];