-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6898 from opengovsg/release_v6.89.0
build: release v6.89.0
- Loading branch information
Showing
44 changed files
with
1,368 additions
and
1,174 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
25 changes: 6 additions & 19 deletions
25
frontend/src/features/admin-form/settings/components/AuthSettingsSection/constants.ts
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 |
---|---|---|
@@ -1,29 +1,16 @@ | ||
import { FormAuthType, FormResponseMode } from '~shared/types/form' | ||
import { FormAuthType } from '~shared/types/form' | ||
|
||
export type EmailFormAuthType = FormAuthType | ||
export type StorageFormAuthType = | ||
| FormAuthType.NIL | ||
| FormAuthType.SP | ||
| FormAuthType.CP | ||
| FormAuthType.SGID | ||
export type StorageFormAuthType = FormAuthType | ||
|
||
export const STORAGE_MODE_AUTHTYPES: Record<StorageFormAuthType, string> = { | ||
[FormAuthType.NIL]: 'None', | ||
[FormAuthType.SGID]: 'Singpass App-only Login', | ||
[FormAuthType.SP]: 'Singpass', | ||
[FormAuthType.CP]: 'Singpass (Corporate)', | ||
} | ||
|
||
// Not using STORAGE_MODE_AUTHTYPES due to wanting a different order. | ||
export const EMAIL_MODE_AUTHTYPES: Record<EmailFormAuthType, string> = { | ||
export const FORM_AUTHTYPES: Record< | ||
StorageFormAuthType | EmailFormAuthType, | ||
string | ||
> = { | ||
[FormAuthType.NIL]: 'None', | ||
[FormAuthType.SGID]: 'Singpass App-only Login', | ||
[FormAuthType.SGID_MyInfo]: 'Singpass App-only with Myinfo', | ||
[FormAuthType.SP]: 'Singpass', | ||
[FormAuthType.MyInfo]: 'Singpass with Myinfo', | ||
[FormAuthType.CP]: 'Singpass (Corporate)', | ||
} | ||
export const AUTHTYPE_TO_TEXT = { | ||
[FormResponseMode.Email]: EMAIL_MODE_AUTHTYPES, | ||
[FormResponseMode.Encrypt]: STORAGE_MODE_AUTHTYPES, | ||
} |
Oops, something went wrong.