-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import com.saveourtool.save.validation.* | |
|
||
private const val URL_PLACEHOLDER = "https://example.com" | ||
private const val EMAIL_PLACEHOLDER = "[email protected]" | ||
private const val SEVERITY_VECTOR_PLACEHOLDER = "CVSS:3.1/AV:_/AC:_/PR:_/UI:_/S:_/C:_/I:_/A:_" | ||
|
||
private const val NAME_TOOLTIP = "Allowed symbols: letters, digits, dots, hyphens and underscores." + | ||
"No dot, hyphen or underscore at the beginning and at the end of the line." | ||
|
@@ -18,6 +19,9 @@ private const val NAME_ORG_PROJECT_TOOLTIP = "Name must not be longer than $NAMI | |
"Allowed symbols: letters, digits, dots, hyphens and underscores." + | ||
"No dot, hyphen or underscore at the beginning and at the end of the line." | ||
|
||
private const val SEVERITY_VECTOR_TOOLTIP = "It's a string representation of the Common Vulnerability Scoring System (CVSS)." + | ||
"If you know it, please indicate in this field." | ||
|
||
/** | ||
* @property str | ||
* @property placeholder | ||
|
@@ -148,6 +152,12 @@ enum class InputTypes( | |
tooltip = "If you know the vulnerability identifier, you can enter it here", | ||
), | ||
CVE_DATE("CVE date"), | ||
COSV_VECTORE( | ||
"Severity score vector", | ||
SEVERITY_VECTOR_ERROR_MESSAGE, | ||
placeholder = SEVERITY_VECTOR_PLACEHOLDER, | ||
tooltip = SEVERITY_VECTOR_TOOLTIP, | ||
), | ||
; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters