|
| 1 | +export const SUPER_USER = 'super_user'; |
| 2 | +export const BORDER_COLOR = { |
| 3 | + PROFILE_VERIFIED: 'blue', |
| 4 | + PROFILE_BLOCKED: 'orangered', |
| 5 | + PROFILE_DIFF_REJECTED: 'red', |
| 6 | + PROFILE_DIFF_APPROVED: 'green', |
| 7 | + PROFILE_DIFF_STORED: '#ADD8E6', |
| 8 | +}; |
| 9 | + |
| 10 | +export const TYPE_NAME = { |
| 11 | + PROFILE_VERIFIED: 'PROFILE SERVICE VERIFIED', |
| 12 | + PROFILE_BLOCKED: 'PROFILE SERVICE BLOCKED', |
| 13 | + PROFILE_DIFF_REJECTED: 'PROFILE DIFFERENCE REJECTED', |
| 14 | + PROFILE_DIFF_APPROVED: 'PROFILE DIFFERENCE APPROVED', |
| 15 | + PROFILE_DIFF_STORED: 'PROFILE DIFFERENCE STORED', |
| 16 | +}; |
| 17 | + |
| 18 | +export const TYPE_DESCRIPTION = { |
| 19 | + PROFILE_VERIFIED: ({ username }) => |
| 20 | + `${username}'s profile has been verified and is now officially authenticated.`, |
| 21 | + PROFILE_BLOCKED: ({ username, reason }) => |
| 22 | + `${username}'s profile has been blocked. ${ |
| 23 | + reason ? `Reason provided: "${reason}."` : 'No reason provided!' |
| 24 | + }`, |
| 25 | + PROFILE_DIFF_REJECTED: ({ username, adminUserName, profileDiffId, reason }) => |
| 26 | + `${adminUserName} rejected a profile update request for ${username}. The request with Profile Diff ID ${profileDiffId} was declined due to: "${ |
| 27 | + reason || '' |
| 28 | + }"`, |
| 29 | + PROFILE_DIFF_APPROVED: ({ username, adminUserName, profileDiffId, reason }) => |
| 30 | + `${adminUserName} approved a profile update request for ${username}. The changes are now live. The request has a Profile Diff ID ${profileDiffId}. Message: "${ |
| 31 | + reason || '' |
| 32 | + }"`, |
| 33 | + PROFILE_DIFF_STORED: ({ username }) => |
| 34 | + `${username}'s profile changes have been saved for further review.`, |
| 35 | +}; |
| 36 | + |
| 37 | +export const BACKGROUND_COLOR = { |
| 38 | + PROFILE_VERIFIED: 'rgba(0,0,255,0.2)', |
| 39 | + PROFILE_BLOCKED: 'rgba(255,69,0,0.2)', |
| 40 | + PROFILE_DIFF_REJECTED: 'rgba(255,0,0,0.2)', |
| 41 | + PROFILE_DIFF_APPROVED: 'rgba(0,128,0,0.2)', |
| 42 | + PROFILE_DIFF_STORED: 'rgb(173,216,230,0.2)', |
| 43 | +}; |
0 commit comments