Compare commits

...

4 commits

Author SHA1 Message Date
c778f7e46b Merge pull request 'fix/auth-redirect-message' (#8) from fix/auth-redirect-message into main
Some checks failed
Dotnet build and test / log-the-inputs (push) Has been cancelled
Dotnet build and test / build (push) Has been cancelled
Reviewed-on: #8
2026-07-12 15:22:20 +01:00
b827f531aa Localisation
Some checks failed
Dotnet build and test / log-the-inputs (pull_request) Has been cancelled
Dotnet build and test / build (pull_request) Has been cancelled
2026-07-12 15:18:07 +01:00
5eb8019beb Audiences 2026-07-12 15:17:53 +01:00
0f73728b85 code format 2026-07-12 15:17:41 +01:00
4 changed files with 108 additions and 38 deletions

View file

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<!--
route name for the api controller used to tag the 'BlogPost' entity
-->
<data name="Redirecting-Title"><value>Redirection en cours</value></data>
<data name="Redirecting-Message"><value>Vous êtes maintenant authentifié, et vous devriez pouvoir fermer cette page.</value></data>
</root>

View file

@ -3,9 +3,9 @@
<html> <html>
<head> <head>
<meta http-equiv="refresh" content="0;url=@Model.RedirectUrl" /> <meta http-equiv="refresh" content="0;url=@Model.RedirectUrl" />
<title>@Localizer["Redirecting"]</title> <title>@Localizer["Redirecting-Title"]</title>
</head> </head>
<body> <body>
<p>@Localizer["Redirecting to"] <a href="@Model.RedirectUrl">@Model.RedirectUrl</a>…</p> @Localizer["Redirecting-Message"]
</body> </body>
</html> </html>

View file

@ -1,6 +1,7 @@
@using Yavsc.Models.Messaging; @using Yavsc.Models.Messaging;
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -17,6 +18,7 @@
<title>@ViewBag.Title - Yavsc</title> <title>@ViewBag.Title - Yavsc</title>
@await RenderSectionAsync("header", false) @await RenderSectionAsync("header", false)
</head> </head>
<body> <body>
<partial name="_Nav" /> <partial name="_Nav" />
@RenderSection("ctxmenu", required: false) @RenderSection("ctxmenu", required: false)
@ -27,8 +29,8 @@
<div class="alert alert-info alert-dismissable" data-nid="@n.Id"> <div class="alert alert-info alert-dismissable" data-nid="@n.Id">
<img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;" /> <img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;" />
<h2 markdown="@n.title"></h2> <h2 markdown="@n.title"></h2>
<a class="close" data-dismiss="alert" aria-label="close" <a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action == null) ?
onclick="notifClick(@n.Id)">@((n.click_action == null) ? Localizer["Fermer"] : Localizer[n.click_action])</a> Localizer["Fermer"] : Localizer[n.click_action])</a>
<asciidoc>@n.body</asciidoc> <asciidoc>@n.body</asciidoc>
</div> </div>
} }
@ -46,4 +48,5 @@
@await RenderSectionAsync("scripts", false) @await RenderSectionAsync("scripts", false)
</body> </body>
</html> </html>

View file

@ -16,6 +16,7 @@
"Slogan": "Yavsc!", "Slogan": "Yavsc!",
"StyleSheet": "/css/default.css", "StyleSheet": "/css/default.css",
"Authority": "https://[Your domaine name]", "Authority": "https://[Your domaine name]",
"Audience": ["blogs"],
"ExternalUrl": "https://[Your domaine name]", "ExternalUrl": "https://[Your domaine name]",
"CorsAllowedOrigins": [ "CorsAllowedOrigins": [
"*" "*"