mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-11 22:06:29 +02:00
Fix names still in french
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import getServiceAccessors from "./accessors"
|
||||
|
||||
export class PreMember {
|
||||
export class PreVolunteer {
|
||||
id = 0
|
||||
|
||||
firstname = ""
|
||||
@@ -16,7 +16,7 @@ export class PreMember {
|
||||
comment = ""
|
||||
}
|
||||
|
||||
export const translationPreMember: { [k in keyof PreMember]: string } = {
|
||||
export const translationPreVolunteer: { [k in keyof PreVolunteer]: string } = {
|
||||
id: "id",
|
||||
firstname: "prenom",
|
||||
lastname: "nom",
|
||||
@@ -26,16 +26,16 @@ export const translationPreMember: { [k in keyof PreMember]: string } = {
|
||||
comment: "commentaire",
|
||||
}
|
||||
|
||||
const elementName = "PreMember"
|
||||
const elementName = "PreVolunteer"
|
||||
|
||||
export type PreMemberWithoutId = Omit<PreMember, "id">
|
||||
export type PreVolunteerWithoutId = Omit<PreVolunteer, "id">
|
||||
|
||||
const { listGet, get, set, add } = getServiceAccessors<PreMemberWithoutId, PreMember>(
|
||||
const { listGet, get, set, add } = getServiceAccessors<PreVolunteerWithoutId, PreVolunteer>(
|
||||
elementName,
|
||||
translationPreMember
|
||||
translationPreVolunteer
|
||||
)
|
||||
|
||||
export const preMemberListGet = listGet()
|
||||
export const preMemberGet = get()
|
||||
export const preMemberAdd = add()
|
||||
export const preMemberSet = set()
|
||||
export const preVolunteerListGet = listGet()
|
||||
export const preVolunteerGet = get()
|
||||
export const preVolunteerAdd = add()
|
||||
export const preVolunteerSet = set()
|
||||
|
@@ -28,7 +28,7 @@ export class Volunteer {
|
||||
password = ""
|
||||
}
|
||||
|
||||
export const translationMember: { [k in keyof Volunteer]: string } = {
|
||||
export const translationVolunteer: { [k in keyof Volunteer]: string } = {
|
||||
id: "id",
|
||||
lastname: "nom",
|
||||
firstname: "prenom",
|
||||
@@ -50,7 +50,7 @@ export const emailRegexp =
|
||||
/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i
|
||||
export const passwordMinLength = 4
|
||||
|
||||
export interface MemberLogin {
|
||||
export interface VolunteerLogin {
|
||||
volunteer?: {
|
||||
firstname: string
|
||||
}
|
||||
@@ -62,7 +62,7 @@ export type VolunteerWithoutId = Omit<Volunteer, "id">
|
||||
|
||||
const { listGet, get, set, add } = getServiceAccessors<VolunteerWithoutId, Volunteer>(
|
||||
elementName,
|
||||
translationMember
|
||||
translationVolunteer
|
||||
)
|
||||
|
||||
export const volunteerListGet = listGet()
|
||||
|
Reference in New Issue
Block a user