|
73 | 73 | {value: 'PACKAGE_URL', text: this.$t('message.package_url')}, |
74 | 74 | {value: 'CPE', text: this.$t('message.cpe_full')}, |
75 | 75 | {value: 'SWID_TAGID', text: this.$t('message.swid_tagid')}, |
76 | | - {value: 'VERSION', text: this.$t('message.version')} |
| 76 | + {value: 'VERSION', text: this.$t('message.version')}, |
| 77 | + {value: 'COMPONENT_HASH', text: this.$t('message.component_hash')} |
77 | 78 | ], |
78 | 79 | objectOperators: [ |
79 | 80 | {value: 'IS', text: this.$t('operator.is')}, |
|
91 | 92 | {value: 'NUMERIC_GREATER_THAN_OR_EQUAL', text: '≥'}, |
92 | 93 | {value: 'NUMERIC_LESSER_THAN_OR_EQUAL', text: '≤'} |
93 | 94 | ], |
| 95 | + hashAlgorithms: [ |
| 96 | + {value: 'MD5', text: this.$t('hashes.md5')}, |
| 97 | + {value: 'SHA-1', text: this.$t('hashes.sha_1')}, |
| 98 | + {value: 'SHA-256', text: this.$t('hashes.sha_256')}, |
| 99 | + {value: 'SHA-384', text: this.$t('hashes.sha_384')}, |
| 100 | + {value: 'SHA-512', text: this.$t('hashes.sha_512')}, |
| 101 | + {value: 'SHA3-256', text: this.$t('hashes.sha3_256')}, |
| 102 | + {value: 'SHA3-384', text: this.$t('hashes.sha3_384')}, |
| 103 | + {value: 'SHA3-512', text: this.$t('hashes.sha3_512')}, |
| 104 | + {value: 'BLAKE2b-256', text: this.$t('hashes.blake_256')}, |
| 105 | + {value: 'BLAKE2b-384', text: this.$t('hashes.blake_384')}, |
| 106 | + {value: 'BLAKE2b-512', text: this.$t('hashes.blake_512')}, |
| 107 | + {value: 'BLAKE3', text: this.$t('hashes.blake3')}, |
| 108 | + ], |
94 | 109 | operators: [], |
95 | 110 | possibleValues: [] |
96 | 111 | } |
|
120 | 135 | return false; |
121 | 136 | case 'VERSION': |
122 | 137 | return false; |
| 138 | + case 'COMPONENT_HASH': |
| 139 | + return false; |
123 | 140 | default: |
124 | 141 | return false; |
125 | 142 | } |
|
149 | 166 | break; |
150 | 167 | case 'SEVERITY': |
151 | 168 | this.operators = this.objectOperators; |
152 | | - this.populateSeverity() |
| 169 | + this.populateSeverity(); |
153 | 170 | break; |
154 | 171 | case 'COORDINATES': |
155 | 172 | this.operators = this.regexOperators; |
|
174 | 191 | case 'VERSION': |
175 | 192 | this.operators = this.numericOperators; |
176 | 193 | break; |
| 194 | + case 'COMPONENT_HASH': |
| 195 | + this.operators = this.hashAlgorithms; |
| 196 | + break; |
177 | 197 | default: |
178 | 198 | this.operators = []; |
179 | 199 | } |
|
0 commit comments