Code cleanup
This commit is contained in:
parent
bf1b34ea09
commit
380f2314dc
14 changed files with 105 additions and 103 deletions
|
|
@ -1,51 +1,61 @@
|
|||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
using Yavsc.Models.Relationship;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class SiteSettings
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Slogan { get; set; }
|
||||
public string Title { get; set; } = "Yavsc";
|
||||
public string Slogan { get; set; } = "";
|
||||
|
||||
public string StyleSheet { get; set; }
|
||||
public string FavIcon { get; set; }
|
||||
public string Logo { get; set; }
|
||||
public string StyleSheet { get; set; } = "site.css";
|
||||
public string FavIcon { get; set; } = "favicon.ico";
|
||||
public string Logo { get; set; } = "logo.png";
|
||||
/// <summary>
|
||||
/// Conceptually,
|
||||
/// This authorisation server only has this present site as unique audience.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Audience { get; set; }
|
||||
public string Audience { get; set; } = "lua.pschneider.fr";
|
||||
/// <summary>
|
||||
/// it's a very small company, with one domaine name only,
|
||||
/// so let it be the same as in the Audience field.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Authority { get; set; }
|
||||
public string Authority { get; set; } = "lua.pschneider.fr";
|
||||
/// <summary>
|
||||
/// Owner's email
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public StaticContact Owner { get; set; }
|
||||
public StaticContact Owner { get; set; } = new StaticContact
|
||||
{
|
||||
EMail = "root@lua.pschneider.fr",
|
||||
Name = "Root"
|
||||
} ;
|
||||
|
||||
/// <summary>
|
||||
/// Administrator's email
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public StaticContact Admin { get; set; }
|
||||
public StaticContact Admin { get; set; } = new StaticContact
|
||||
{
|
||||
EMail = "root@lua.pschneider.fr",
|
||||
Name = "Root"
|
||||
} ;
|
||||
|
||||
public string DataDir { get; set; }
|
||||
public string DataDir { get; set; } = "data";
|
||||
public string Avatars { get; set; } = "avatars";
|
||||
public long Quota { get; set; }
|
||||
public string Blog { get; set; } = "blogs";
|
||||
public string Bills { get; set; } = "bills";
|
||||
public string GitRepository { get; set; } = "sources";
|
||||
|
||||
public string BusinessName { get; set; }
|
||||
public string Street { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public string CountryCode { get; set; }
|
||||
public string BusinessName { get; set; } = "Yavsc";
|
||||
public string? Street { get; set; }
|
||||
public string? PostalCode { get; set; }
|
||||
public string? CountryCode { get; set; }
|
||||
|
||||
public string HomeViewName { get; set; }
|
||||
public string HomeViewName { get; set; } = "Home";
|
||||
/// <summary>
|
||||
/// Specifies the directory where should be
|
||||
/// generated pdf files using pandoc
|
||||
|
|
@ -53,17 +63,6 @@ namespace Yavsc
|
|||
/// <returns>The temporary directory to use</returns>
|
||||
public string TempDir { get; set; } = "temp";
|
||||
|
||||
/// <summary>
|
||||
/// Only one performer will capture payments
|
||||
/// </summary>
|
||||
/// <returns>user capturing payments id</returns>
|
||||
public string OnlyOnePerformerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Only one activity will be supported
|
||||
/// </summary>
|
||||
/// <returns>the supported activity code</returns>
|
||||
public string OnlyOneActivityCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Disk usage user list maximum length in memory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue