Skip to content

Commit

Permalink
Initial commit for #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonononoki committed Jun 9, 2024
1 parent 228024c commit 9c56501
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions URL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
10 changes: 10 additions & 0 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export type UserDto = {
lastActiveState: number;
userSettings: UserSettings;
prompts: Array<UserPrompt>;
verificationPicture: UserDtoVerificationPicture;
}

export type UserSettings = {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9c56501

Please sign in to comment.