net-8, localization, privacy, and js ref's
This commit is contained in:
@ -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
|
||||
````
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net7.0</TargetFrameworks>
|
||||
<TargetFrameworks>net8.0</TargetFrameworks>
|
||||
<RootNamespace>nuget_cli</RootNamespace>
|
||||
<UserSecretsId>45b74c62-05bc-4603-95b4-3e80ae2fdf50</UserSecretsId>
|
||||
<Version>1.0.7</Version>
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ namespace isnd
|
||||
.AddDefaultUI()
|
||||
.AddDefaultTokenProviders();
|
||||
|
||||
services.AddMvc(o => o.EnableEndpointRouting = false);
|
||||
services.AddMvc(o => o.EnableEndpointRouting = false).AddMvcLocalization();
|
||||
|
||||
services.AddDataProtection();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -56,5 +57,8 @@ namespace isnd.ViewModels
|
||||
/// <value></value>
|
||||
[Required]
|
||||
public PackageType[] packageTypes { get; set; }
|
||||
|
||||
[JsonProperty("id")]
|
||||
public string PackageId { get; }
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
@ -3,4 +3,10 @@
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>Use this page to detail your site's privacy policy.</p>
|
||||
<p>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.
|
||||
</p>
|
||||
<p>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 .
|
||||
</p>
|
||||
|
12
src/isnd/Views/Home/Privacy.fr.cshtml
Normal file
12
src/isnd/Views/Home/Privacy.fr.cshtml
Normal file
@ -0,0 +1,12 @@
|
||||
@{
|
||||
ViewData["Title"] = "Politique concernant la vie privée";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>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.
|
||||
</p>
|
||||
<p>À 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.
|
||||
</p>
|
@ -47,13 +47,9 @@
|
||||
<footer class="border-top footer text-muted" style="position:bottom">
|
||||
isn @SiteHelpers.SemVer © 2021-2024 Paul Schneider - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</footer>
|
||||
<!-- <script src="/lib/jquery/dist/jquery.slim.min.js" ></script>
|
||||
<script src="/lib/popper/popper.min.js"></script>
|
||||
<script src="/lib/bootstrap/dist/js/bootstrap.min.js" ></script> -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
|
||||
<script src="~/lib/jquery/dist/jquery.slim.min.js" asp-append-version="true"></script>
|
||||
<script src="~/lib/popper/popper.min.js" asp-append-version="true"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.min.js" asp-append-version="true"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
|
@ -27,7 +27,10 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.3" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" IncludeAssets="All" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.3">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
|
||||
<PackageReference Include="NuGet.Packaging.Core" Version="6.9.1" />
|
||||
<PackageReference Include="MailKit" Version="4.4.0" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>test_isn</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
@ -11,6 +11,5 @@
|
||||
<Version>1.0.7</Version>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="isn.abst" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
Reference in New Issue
Block a user