Remove creator's about, adds title.
Remove extra content properties. Change creator's colors to materials palette.
This commit is contained in:
@@ -49,7 +49,10 @@ internal class TestDataSeeder(
|
||||
creator.Id = creatorUser.Id;
|
||||
creator.CreatedBy = creator.Id;
|
||||
|
||||
await contentContext.Subscriptions.AddAsync(new() { CreatedBy = userA.Id, CreatorId = creator.Id });
|
||||
await contentContext.Subscriptions.AddAsync(new Subscription
|
||||
{
|
||||
CreatedBy = userA.Id, CreatorId = creator.Id
|
||||
});
|
||||
await contentContext.Creators.AddAsync(creator);
|
||||
|
||||
var contents = GenerateContent(creator, 10);
|
||||
@@ -57,7 +60,9 @@ internal class TestDataSeeder(
|
||||
{
|
||||
var messages = GenerateMessages(content, 10);
|
||||
|
||||
var parentMessages = messages.Where((_, index) => index % 2 == 0).ToList();
|
||||
var parentMessages = messages.Where((
|
||||
_,
|
||||
index) => index % 2 == 0).ToList();
|
||||
foreach (var parentMessage in parentMessages)
|
||||
{
|
||||
_ = GenerateReplies(content, parentMessage, 10);
|
||||
@@ -68,7 +73,9 @@ internal class TestDataSeeder(
|
||||
}
|
||||
}
|
||||
|
||||
private List<Content> GenerateContent(Creator creator, int contentCount)
|
||||
private List<Content> GenerateContent(
|
||||
Creator creator,
|
||||
int contentCount)
|
||||
{
|
||||
var currentDate = DateTimeOffset.UtcNow;
|
||||
|
||||
@@ -97,7 +104,9 @@ internal class TestDataSeeder(
|
||||
return contents;
|
||||
}
|
||||
|
||||
private List<Message> GenerateMessages(Content content, int messageCount)
|
||||
private List<Message> GenerateMessages(
|
||||
Content content,
|
||||
int messageCount)
|
||||
{
|
||||
var currentDate = content.CreatedAt;
|
||||
var messages = new List<Message>();
|
||||
@@ -126,7 +135,10 @@ internal class TestDataSeeder(
|
||||
return messages;
|
||||
}
|
||||
|
||||
private List<Message> GenerateReplies(Content content, Message parent, int replyCount)
|
||||
private List<Message> GenerateReplies(
|
||||
Content content,
|
||||
Message parent,
|
||||
int replyCount)
|
||||
{
|
||||
var currentDate = parent.CreatedAt;
|
||||
var replies = new List<Message>();
|
||||
@@ -157,7 +169,10 @@ internal class TestDataSeeder(
|
||||
return replies;
|
||||
}
|
||||
|
||||
private async Task<ApplicationUser> CreateUserAsync(string name, string? portraitUrl, params string[] roles)
|
||||
private async Task<ApplicationUser> CreateUserAsync(
|
||||
string name,
|
||||
string? portraitUrl,
|
||||
params string[] roles)
|
||||
{
|
||||
var user = new ApplicationUser
|
||||
{
|
||||
@@ -184,23 +199,28 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator HutopyCreator = new()
|
||||
{
|
||||
Name = "hutopy",
|
||||
About = new()
|
||||
Title = "Page officielle",
|
||||
Colors = new Colors
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description = "Site officiel pour Hutopy. Venez-nous-y retrouver avec tous vos fans!",
|
||||
},
|
||||
Colors = new()
|
||||
{
|
||||
BannerTop = "#A30E79", BannerBottom = "#6B0065", Accent = "#23393B", Menu = "#53B93B",
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials =
|
||||
new()
|
||||
new Socials
|
||||
{
|
||||
XUrl = "https://twitter.com/Hutopyinc",
|
||||
FacebookUrl = "https://www.facebook.com/Hutopy",
|
||||
InstagramUrl = "https://www.instagram.com/hutopy.inc/"
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/HutopyProfile/banners/banner01.png",
|
||||
Logo = "/images/usersmedia/HutopyProfile/profilepictures/profileHutopyProfile01.png"
|
||||
@@ -210,15 +230,21 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator ArpsCreator = new()
|
||||
{
|
||||
Name = "arps",
|
||||
About =
|
||||
new()
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description = "Site officiel pour Arps. Venez-nous-y retrouver avec tous vos fans!",
|
||||
},
|
||||
Colors =
|
||||
new() { BannerTop = "#231F20", BannerBottom = "#231F20", Accent = "#272526", Menu = "#FFFFFF" },
|
||||
Socials = new()
|
||||
Title = "Créateur de contenu",
|
||||
Colors = new Colors
|
||||
{
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials = new Socials
|
||||
{
|
||||
FacebookUrl = "https://www.facebook.com/arps.company",
|
||||
InstagramUrl = "https://www.instagram.com/arps.co/",
|
||||
@@ -227,7 +253,7 @@ internal class TestDataSeeder(
|
||||
LinkedInUrl = "https://www.linkedin.com/in/mickael-simard-96079a90/",
|
||||
WebsiteUrl = "https://www.arps.ca/"
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/ARPS/banners/bannerARPS01.png",
|
||||
Logo = "/images/usersmedia/ARPS/profilepictures/profileARPS.png"
|
||||
@@ -237,22 +263,27 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator ChloeBeaugrandCreator = new()
|
||||
{
|
||||
Name = "chloebeaugrand",
|
||||
About = new()
|
||||
Title = "Page officielle",
|
||||
Colors = new Colors
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description = "𝐿𝑎 𝑐𝑟𝑒́𝑎𝑡𝑖𝑣𝑖𝑡𝑒́ 𝑐’𝑒𝑠𝑡 𝑙’𝑖𝑛𝑡𝑒𝑙𝑙𝑖𝑔𝑒𝑛𝑐𝑒 𝑞𝑢𝑖 𝑠’𝑎𝑚𝑢𝑠𝑒!",
|
||||
},
|
||||
Colors = new()
|
||||
{
|
||||
BannerTop = "#231F20", BannerBottom = "#272526", Accent = "#231F20", Menu = "#231F20",
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials =
|
||||
new()
|
||||
new Socials
|
||||
{
|
||||
FacebookUrl = "https://www.facebook.com/chloegestionmedias",
|
||||
InstagramUrl = "https://www.instagram.com/chloe.photo_gms",
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/chloebeaugrand/banners/bannerChloeBeaugrand01.png",
|
||||
Logo = "/images/usersmedia/chloebeaugrand/profilepictures/profileChloeBeaugrand01.png"
|
||||
@@ -262,24 +293,28 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator GuillaumeMCreator = new()
|
||||
{
|
||||
Name = "guillaumem",
|
||||
About = new()
|
||||
Title = "Page officielle",
|
||||
Colors = new Colors
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description =
|
||||
"Mettre en lumière le côté humain des entrepreneurs. Chaque service, chaque produit est porteur d’une histoire, d’une passion, d’une vision unique. Mon objectif est de faire rayonner cette unicité, de créer des connexions authentiques entre ces entrepreneurs et leurs clients potentiels. Parce que derrière chaque entreprise, il y a des personnes inspirantes qui méritent d’être entendues et comprises. Et toi, quel est ton objectif pour cette année?",
|
||||
},
|
||||
Colors = new()
|
||||
{
|
||||
BannerTop = "#0BAAB2", BannerBottom = "#006D77", Accent = "#CC6F91", Menu = "#CC6F91",
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials =
|
||||
new()
|
||||
new Socials
|
||||
{
|
||||
FacebookUrl = "https://www.facebook.com/GuillaumeMousseau222",
|
||||
InstagramUrl = "https://www.instagram.com/guillaumeaime/",
|
||||
TikTokUrl = "https://www.tiktok.com/@guillaumeaime"
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/guillaumeMousseau/banners/bannerGuillaumeMousseau01.png",
|
||||
Logo =
|
||||
@@ -290,24 +325,28 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator LeffetCreator = new()
|
||||
{
|
||||
Name = "leffet",
|
||||
About = new()
|
||||
Title = "Page officielle",
|
||||
Colors = new Colors
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description =
|
||||
"Mettre en lumière le côté humain des entrepreneurs. Chaque service, chaque produit est porteur d’une histoire, d’une passion, d’une vision unique. Mon objectif est de faire rayonner cette unicité, de créer des connexions authentiques entre ces entrepreneurs et leurs clients potentiels. Parce que derrière chaque entreprise, il y a des personnes inspirantes qui méritent d’être entendues et comprises. Et toi, quel est ton objectif pour cette année?",
|
||||
},
|
||||
Colors = new()
|
||||
{
|
||||
BannerTop = "#CC6F91", BannerBottom = "#FBC702", Accent = "#FBC702", Menu = "#FBC702",
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials =
|
||||
new()
|
||||
new Socials
|
||||
{
|
||||
FacebookUrl = "https://www.facebook.com/Hutopy",
|
||||
InstagramUrl = "https://www.instagram.com/guillaumeaime/",
|
||||
WebsiteUrl = "https://fondationleffet.ca/"
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/leffet/banners/banner02.png",
|
||||
Logo = "/images/usersmedia/leffet/profilepictures/leffetProfile01.png"
|
||||
@@ -317,23 +356,27 @@ internal class TestDataSeeder(
|
||||
private readonly static Creator MathieuCaron = new()
|
||||
{
|
||||
Name = "mathieucaron",
|
||||
About = new()
|
||||
Title = "Page officielle",
|
||||
Colors = new Colors
|
||||
{
|
||||
Title = "Page officielle",
|
||||
Description =
|
||||
"Mettre en lumière le côté humain des entrepreneurs. Chaque service, chaque produit est porteur d’une histoire, d’une passion, d’une vision unique. Mon objectif est de faire rayonner cette unicité, de créer des connexions authentiques entre ces entrepreneurs et leurs clients potentiels. Parce que derrière chaque entreprise, il y a des personnes inspirantes qui méritent d’être entendues et comprises. Et toi, quel est ton objectif pour cette année?",
|
||||
},
|
||||
Colors = new()
|
||||
{
|
||||
BannerTop = "#101B49", BannerBottom = "#698FE7", Accent = "#1D1D1B", Menu = "#1D1D1B",
|
||||
Primary = "#A30E79",
|
||||
Secondary = "#6B0065",
|
||||
Background = "#53B93B",
|
||||
Surface = "#23393B",
|
||||
Error = "#B00020",
|
||||
OnPrimary = "#ffffff",
|
||||
OnSecondary = "#000000",
|
||||
OnBackground = "#000000",
|
||||
OnSurface = "#000000",
|
||||
OnError = "#ffffff",
|
||||
},
|
||||
Socials =
|
||||
new()
|
||||
new Socials
|
||||
{
|
||||
FacebookUrl = "https://www.facebook.com/MathieuCaronPro/",
|
||||
YoutubeUrl = "https://www.youtube.com/@lesinterviewsatypiquesdema4692",
|
||||
},
|
||||
Images = new()
|
||||
Images = new Images
|
||||
{
|
||||
Banner = "/images/usersmedia/mathieuCaron/banners/bannerMathieuCaron01.png",
|
||||
Logo = "/images/usersmedia/mathieuCaron/profilepictures/profileMathieuCaron01.png"
|
||||
|
||||
Reference in New Issue
Block a user