diff --git a/README.md b/README.md index 9445c22..b508aa2 100644 --- a/README.md +++ b/README.md @@ -80,13 +80,13 @@ Dans le détail, la séquence serait du style : ````bash # compiler tout dotnet build -c Release -dotnet publish -c Release -f net7.0 src/isnd +dotnet publish -c Release -f net8.0 src/isnd # MAJ du serveur sudo systemctl stop isnd -sudo cp -a src/isnd/bin/Release/net7.0/publish/* /srv/www/isnd +sudo cp -a src/isnd/bin/Release/net8.0/publish/* /srv/www/isnd sudo systemctl start isnd # MAJ du client -sudo cp -a src/isn/bin/Release/net7.0/* /usr/local/lib/isn +sudo cp -a src/isn/bin/Release/net8.0/* /usr/local/lib/isn sudo chown -R root:root /usr/local/lib/isn ```` diff --git a/src/isn/isn.csproj b/src/isn/isn.csproj index dfbcadd..4fe7d07 100644 --- a/src/isn/isn.csproj +++ b/src/isn/isn.csproj @@ -1,7 +1,7 @@  Exe - net7.0 + net8.0 nuget_cli 45b74c62-05bc-4603-95b4-3e80ae2fdf50 1.0.7 diff --git a/src/isnd/Data/ApplicationUser.cs b/src/isnd/Data/ApplicationUser.cs index 4814bba..03e48d3 100644 --- a/src/isnd/Data/ApplicationUser.cs +++ b/src/isnd/Data/ApplicationUser.cs @@ -5,6 +5,8 @@ namespace isnd.Data // Add profile data for application users by adding properties to the ApplicationUser class public class ApplicationUser : IdentityUser { + + [PersonalData] public string FullName { get; set; } } } diff --git a/src/isnd/Startup.cs b/src/isnd/Startup.cs index 9888036..38c3efb 100644 --- a/src/isnd/Startup.cs +++ b/src/isnd/Startup.cs @@ -60,7 +60,7 @@ namespace isnd .AddDefaultUI() .AddDefaultTokenProviders(); - services.AddMvc(o => o.EnableEndpointRouting = false); + services.AddMvc(o => o.EnableEndpointRouting = false).AddMvcLocalization(); services.AddDataProtection(); diff --git a/src/isnd/ViewModels/PackageHit.cs b/src/isnd/ViewModels/PackageHit.cs index 5919599..f9fa840 100644 --- a/src/isnd/ViewModels/PackageHit.cs +++ b/src/isnd/ViewModels/PackageHit.cs @@ -8,8 +8,9 @@ namespace isnd.ViewModels { public class PackageHit : Permalink { - public PackageHit(string id) : base(id, "Package") + public PackageHit(string id, string packageId) : base(id, "Package") { + PackageId = packageId; } /// @@ -56,5 +57,8 @@ namespace isnd.ViewModels /// [Required] public PackageType[] packageTypes { get; set; } + + [JsonProperty("id")] + public string PackageId { get; } } } \ No newline at end of file diff --git a/src/isnd/ViewModels/PackageSearchResult.cs b/src/isnd/ViewModels/PackageSearchResult.cs index 464e347..be117e2 100644 --- a/src/isnd/ViewModels/PackageSearchResult.cs +++ b/src/isnd/ViewModels/PackageSearchResult.cs @@ -32,7 +32,7 @@ namespace isnd.ViewModels private static PackageHit NewPackageHit(string apiBase, Package package) { string regId = $"{apiBase}{ApiConfig.Registration}/{package.Id}/index.json"; - return new PackageHit(regId) + return new PackageHit(regId, package.Id) { version = package.GetLatestVersion(), description = package.Description, diff --git a/src/isnd/Views/Home/Privacy.cshtml b/src/isnd/Views/Home/Privacy.cshtml index a850e76..7c1db69 100644 --- a/src/isnd/Views/Home/Privacy.cshtml +++ b/src/isnd/Views/Home/Privacy.cshtml @@ -3,4 +3,10 @@ }

@ViewData["Title"]

-

Use this page to detail your site's privacy policy.

+

Your informations are only used in order to render the service, + that is, providing a NuGet package source, that trying and implement a V3 version of its API, + and a web access, with authentication needed, in case of package provider, or admin access. +

+

At the time of this writting, your email won't be used for anything else than the authentication validation, + your name's free, and as personal information, you'll face nothing more than technical requirment . +

diff --git a/src/isnd/Views/Home/Privacy.fr.cshtml b/src/isnd/Views/Home/Privacy.fr.cshtml new file mode 100644 index 0000000..725a690 --- /dev/null +++ b/src/isnd/Views/Home/Privacy.fr.cshtml @@ -0,0 +1,12 @@ +@{ + ViewData["Title"] = "Politique concernant la vie privée"; +} +

@ViewData["Title"]

+ +

Vos informations ne sont utilisées que pour rendre le service, + c'est à dire, fournire une source de paquets NuGet, qui essaye d'implémenter une version V3 de son API, + et un accès web, avec nécessité d'autentification, en cas d'accès de fournisseur de paquet, ou d'administrateur. +

+

À l'heure de cet écrit, votre email ne sera utilisé pour rien d'autre que la validation de votre autentification, + votre nom est libre, et comme informations personnelles, vous n'aurez affaire qu'à des prérequis techniques. +

diff --git a/src/isnd/Views/Shared/_Layout.cshtml b/src/isnd/Views/Shared/_Layout.cshtml index c72f981..d0b15f1 100644 --- a/src/isnd/Views/Shared/_Layout.cshtml +++ b/src/isnd/Views/Shared/_Layout.cshtml @@ -47,13 +47,9 @@
isn @SiteHelpers.SemVer © 2021-2024 Paul Schneider - Privacy
- - - - - + + + @await RenderSectionAsync("Scripts", required: false) diff --git a/src/isnd/isnd.csproj b/src/isnd/isnd.csproj index f239c1c..4215863 100644 --- a/src/isnd/isnd.csproj +++ b/src/isnd/isnd.csproj @@ -27,7 +27,10 @@ - + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + diff --git a/test/data/test-isn/test-isn.csproj b/test/data/test-isn/test-isn.csproj index 4d141a3..85e5cf3 100644 --- a/test/data/test-isn/test-isn.csproj +++ b/test/data/test-isn/test-isn.csproj @@ -1,7 +1,7 @@  Exe - net7.0 + net8.0 test_isn enable enable @@ -11,6 +11,5 @@ 1.0.7 - - \ No newline at end of file +