Skip to content

Commit

Permalink
Task #58593: added key for recaptcha in the env file
Browse files Browse the repository at this point in the history
  • Loading branch information
christyfernandes committed Jun 8, 2022
1 parent fc41227 commit 0aa3bcf
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/environments/environment.bm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const environment = {
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
portals: (window as { [key: string]: any })['env']['portals'] || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},

// mdoPortal: (window as { [key: string]: any })['env']['mdoPath'] || '',
// spvPortal: (window as { [key: string]: any })['env']['spvPath'] || '',
Expand Down
3 changes: 3 additions & 0 deletions src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const environment = {
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
portals: (window as { [key: string]: any })['env']['portals'] || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},

// mdoPortal: (window as { [key: string]: any })['env']['mdoPath'] || '',
// spvPortal: (window as { [key: string]: any })['env']['spvPath'] || '',
Expand Down
3 changes: 3 additions & 0 deletions src/environments/environment.np.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export const environment = {
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
portals: (window as { [key: string]: any })['env']['portals'] || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},
// mdoPortal: (window as { [key: string]: any })['env']['mdoPath'] || '',
// spvPortal: (window as { [key: string]: any })['env']['spvPath'] || '',
// cbcPortal: (window as { [key: string]: any })['env']['cbcPath'] || '',
Expand Down
3 changes: 3 additions & 0 deletions src/environments/environment.preprod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const environment = {
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
portals: (window as { [key: string]: any })['env']['portals'] || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},

// mdoPortal: (window as { [key: string]: any })['env']['mdoPath'] || '',
// spvPortal: (window as { [key: string]: any })['env']['spvPath'] || '',
Expand Down
3 changes: 3 additions & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export const environment = {
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
portals: (window as { [key: string]: any })['env']['portals'] || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},
// mdoPortal: (window as { [key: string]: any })['env']['mdoPath'] || '',
// spvPortal: (window as { [key: string]: any })['env']['spvPath'] || '',
// cbcPortal: (window as { [key: string]: any })['env']['cbcPath'] || '',
Expand Down
6 changes: 5 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const environment: IEnvironment = {
azureOldHost: (window as { [key: string]: any })['env']['azureOldHost'] || '',
azureOldBuket: (window as { [key: string]: any })['env']['azureOldBuket'] || '',
portalRoles: (((window as { [key: string]: any })['env']['portalRoles'] || '').split(',')) || [],
recaptcha: {
siteKey: '6LcwklIgAAAAALEMuE4evGODh2rT11GcBobiOkV-',
},
}
interface IEnvironment {
name: string,
Expand All @@ -36,7 +39,8 @@ interface IEnvironment {
contentHost: string
portalRoles: string[]
// otherPortalRoles: { cbp: string[], mdo: string[], cbc: string[], frac: string[] }
portals: [{ sr: number, id: string, name: string, desc: string, icon?: string, uriPath: string, roles: [], isPublic: boolean }]
portals: [{ sr: number, id: string, name: string, desc: string, icon?: string, uriPath: string, roles: [], isPublic: boolean }],
recaptcha?: any
}

/*
Expand Down

0 comments on commit 0aa3bcf

Please sign in to comment.