diff --git a/URL.tsx b/URL.tsx index 460c6f4..f7d7693 100644 --- a/URL.tsx +++ b/URL.tsx @@ -78,4 +78,8 @@ export const USER_PROMPT_UPDATE = DOMAIN + "/user/prompt/update" export const USER_SETTING_EMAIL_LIKE = DOMAIN + "/user/settings/emailLike/update/%s" export const USER_SETTING_EMAIL_CHAT = DOMAIN + "/user/settings/emailChat/update/%s" +export const USER_UPDATE_VERIFICATION_PICTURE = DOMAIN + "/user/update/verification-picture" +export const USER_UPDATE_VERIFICATION_PICTURE_UPVOTE = DOMAIN + "/user/update/verification-picture/upvote/%s" +export const USER_UPDATE_VERIFICATION_PICTURE_DOWNVOTE = DOMAIN + "/user/update/verification-picture/downvote/%s" + export const MESSAGE_SEND = DOMAIN + "/message/send/%s"; \ No newline at end of file diff --git a/i18n/de.json b/i18n/de.json index 921f2e8..d1a8542 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -159,6 +159,16 @@ "18": "Mein nutzloses Talent", "19": "Ich, aber in Emojis", "20": "Swipe nach rechts, wenn" + }, + "verification": { + "info-1": "Verifiziere dein Profil, um zu beweisen, dass es wirklich du bist", + "info-2": "Andere Personen können auch über deine Authentizität abstimmen", + "info-3": "Lade ein Bild von dir hoch, auf dem du eine handgeschriebene Notiz mit diesen Zeichen hältst", + "info-4": "Stell sicher, dass dein Gesicht vollständig sichtbar ist", + "info-5": "Wenn du dein Profilbild änderst musst du dich erneut verifizieren", + "verified-no": "Nicht verifiziert", + "verified-by-users": "Durch Abstimmung verifiziert", + "verified-by-admin": "Verifiziert" } }, "cancel": "Abbrechen", diff --git a/i18n/en.json b/i18n/en.json index 6e23bf4..1cf4592 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -158,6 +158,16 @@ "18": "My useless talent", "19": "Me, but in emojis", "20": "Swipe right if" + }, + "verification": { + "info-1": "Verify your profile to prove that you're real", + "info-2": "Other people can also vote on your authenticity", + "info-3": "Upload a picture of yourself holding a handwritten note containing these characters", + "info-4": "Make sure your face is completely visible", + "info-5": "You will have to verify again if you change your profile picture", + "verified-no": "Not verified", + "verified-by-users": "Verified by votes", + "verified-by-admin": "Verified" } }, "cancel": "Cancel", diff --git a/types.ts b/types.ts index 74338ad..b3a6f76 100644 --- a/types.ts +++ b/types.ts @@ -158,6 +158,7 @@ export type UserDto = { lastActiveState: number; userSettings: UserSettings; prompts: Array; + verificationPicture: UserDtoVerificationPicture; } export type UserSettings = { @@ -335,6 +336,18 @@ export type UserUsersResource = { user: UserDto; } +export type UserDtoVerificationPicture = { + verifiedByAdmin: boolean; + verifiedByUsers: boolean; + votedByCurrentUser: boolean; + hasPicture: boolean; + data: string; + text: string; + uuid: string; + userYes: number; + userNo: number; +} + export type AlertModel = { visible: boolean; message: string;