amelioration du style globale

This commit is contained in:
MiharyR 2021-11-26 17:05:12 +01:00
parent cd1f323686
commit d1ac1b77f0
36 changed files with 191 additions and 112 deletions

View file

@ -3,7 +3,7 @@ export interface Advert
_id: string,
userId: string,
title: string,
advertiser: string,
url: string,
images: {
url: string,
description: string,
@ -23,7 +23,7 @@ export interface AdvertWithCountViews {
_id: string,
userId: string,
title: string,
advertiser: string,
url: string,
images: {
url: string,
description: string,

View file

@ -12,6 +12,7 @@ export interface User
dateOfBirth: Date,
gender: string,
interests: string[],
company: string,
isActive: boolean,
isAccepted: boolean,
lastConnexion: Date,

View file

@ -9,7 +9,7 @@ const TAB_ADVERT: Advert[] = [
_id: "idNutella",
userId: "userId",
title: "pot de nutella XXL",
advertiser: "nutella",
url: "https://www.nutella.com/fr/fr/",
images: [
{ url: "nutella_v_1.jpeg", description: "image nutella 1" },
{ url: "nutella_v_2.png", description: "image nutella 2" },
@ -38,7 +38,7 @@ const TAB_ADVERT: Advert[] = [
_id: "idRolex",
userId: "userId",
title: "Rolex",
advertiser: "rolex",
url: "https://www.rolex.com",
images: [
{ url: "rolex_v_1.jpg", description: "rolex 1" },
{ url: "rolex_v_2.png", description: "rolex 2" },
@ -66,7 +66,7 @@ const TAB_ADVERT: Advert[] = [
_id: "idAlbion",
userId: "userId",
title: "Albion new version",
advertiser: "albion",
url: "https://www.rolex.com",
images: [
{ url: "rolex_v_1.jpg", description: "albion 1" },
{ url: "rolex_v_2.png", description: "albion 2" },

View file

@ -17,6 +17,7 @@ const USER: User = {
dateOfBirth: new Date(),
gender: "man",
interests: ["foot", "jeux-vidéo"],
company: "",
isActive: true,
isAccepted: true,
lastConnexion: new Date(),
@ -37,6 +38,7 @@ const ADVERTISER: User = {
dateOfBirth: null,
gender: "",
interests: [],
company: "My company",
isActive: true,
isAccepted: true,
lastConnexion: new Date(),
@ -57,6 +59,7 @@ const ADMIN: User = {
dateOfBirth: null,
gender: "",
interests: [],
company: "",
isActive: true,
isAccepted: true,
lastConnexion: new Date(),