Skip to content

Commit

Permalink
Portal settings for CDEvents
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli committed Jun 26, 2023
1 parent 45879fc commit 5ffc9bd
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/portal/src/app/base/project/webhook/webhook.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ const EVENT_TYPES_TEXT_MAP = {
TAG_RETENTION: 'Tag retention finished',
};

export const PAYLOAD_FORMATS: string[] = ['Default', 'CloudEvents'];
export const PAYLOAD_FORMATS: string[] = ['Default', 'CloudEvents', 'CDEvents'];

export const PAYLOAD_FORMAT_I18N_MAP = {
[PAYLOAD_FORMATS[0]]: 'SCANNER.DEFAULT',
[PAYLOAD_FORMATS[1]]: 'WEBHOOK.CLOUD_EVENT',
[PAYLOAD_FORMATS[2]]: 'WEBHOOK.CDEVENT',
};

export enum WebhookType {
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/de-de-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "Gruppe",
Expand Down
4 changes: 2 additions & 2 deletions src/portal/src/i18n/lang/en-us-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"

"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "Group",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/es-es-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "Group",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/fr-fr-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"Group": "Groupe",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/pt-br-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"AUDIT_LOG": {
"USERNAME": "Nome do usuário",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/tr-tr-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@
"PAYLOAD_FORMAT": "Payload Format",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload Data",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "Grup",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/zh-cn-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@
"PAYLOAD_FORMAT": "载荷形式",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "载荷数据",
"SLACK_RATE_LIMIT": "请注意 Slack 的速率限制"
"SLACK_RATE_LIMIT": "请注意 Slack 的速率限制",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "",
Expand Down
3 changes: 2 additions & 1 deletion src/portal/src/i18n/lang/zh-tw-lang.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@
"PAYLOAD_FORMAT": "Payload 格式",
"CLOUD_EVENT": "CloudEvents",
"PAYLOAD_DATA": "Payload 資料",
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits"
"SLACK_RATE_LIMIT": "Please be aware of Slack Rate Limits",
"CDEVENT": "CDEvents"
},
"GROUP": {
"GROUP": "群組",
Expand Down

0 comments on commit 5ffc9bd

Please sign in to comment.