refactoring, enhancements, and some fixes
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
@ -43,18 +42,6 @@ namespace Oqtane.Models
|
||||
/// <inheritdoc />
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// todoc - unclear what this is for
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public DateTime SyncDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// todoc - unclear what this is for
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public List<SyncEvent> SyncEvents { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The path contains the url-part after the first slash.
|
||||
/// * If the Name is `oqtane.me` the Path is empty
|
||||
|
@ -16,5 +16,10 @@ namespace Oqtane.Models
|
||||
/// Message or error in case something failed.
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// current alias value from server
|
||||
/// </summary>
|
||||
public Alias Alias { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Sync
|
||||
{
|
||||
public DateTime SyncDate { get; set; }
|
||||
public List<SyncEvent> SyncEvents { get; set; }
|
||||
}
|
||||
|
||||
public class SyncEvent
|
||||
{
|
||||
public int TenantId { get; set; }
|
@ -76,5 +76,8 @@ namespace Oqtane.Shared {
|
||||
public static readonly string DefaultCulture = "en";
|
||||
|
||||
public static readonly string AuthenticationScheme = "Identity.Application";
|
||||
public static readonly string RequestVerificationToken = "__RequestVerificationToken";
|
||||
public static readonly string AntiForgeryTokenHeaderName = "X-XSRF-TOKEN-HEADER";
|
||||
public static readonly string AntiForgeryTokenCookieName = "X-XSRF-TOKEN-COOKIE";
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using Oqtane.Models;
|
||||
using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Shared
|
||||
{
|
||||
@ -6,6 +6,7 @@ namespace Oqtane.Shared
|
||||
public class SiteState
|
||||
{
|
||||
public Alias Alias { get; set; }
|
||||
public string AntiForgeryToken { get; set; } // for use in client services
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user