refactoring: --YavscLib-- => Yavsc
This commit is contained in:
@ -6,7 +6,7 @@ using Microsoft.Extensions.Localization;
|
||||
|
||||
namespace Yavsc.ApiControllers
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
|
@ -20,7 +20,7 @@ using Microsoft.Data.Entity;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
[AllowAnonymous]
|
||||
|
||||
public class AccountController : Controller
|
||||
{
|
||||
private readonly UserManager<ApplicationUser> _userManager;
|
||||
@ -61,6 +61,13 @@ namespace Yavsc.Controllers
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
[Authorize(Roles=Constants.AdminGroupName)]
|
||||
public async Task<IActionResult> UserList ()
|
||||
{
|
||||
return View(await _dbContext.Users.ToArrayAsync());
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet(Constants.LoginPath)]
|
||||
public ActionResult SignIn(string returnUrl = null)
|
||||
{
|
||||
@ -79,6 +86,7 @@ namespace Yavsc.Controllers
|
||||
*/
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
public ActionResult AccessDenied(string requestUrl = null)
|
||||
{
|
||||
ViewBag.UserIsSignedIn = User.IsSignedIn();
|
||||
@ -89,6 +97,7 @@ namespace Yavsc.Controllers
|
||||
return View("AccessDenied",requestUrl);
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpPost(Constants.LoginPath)]
|
||||
public async Task<IActionResult> SignIn(SignInViewModel model)
|
||||
{
|
||||
@ -169,6 +178,7 @@ namespace Yavsc.Controllers
|
||||
|
||||
//
|
||||
// GET: /Account/Register
|
||||
[AllowAnonymous]
|
||||
[HttpGet]
|
||||
public IActionResult Register()
|
||||
{
|
||||
@ -178,6 +188,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// POST: /Account/Register
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Register(RegisterViewModel model)
|
||||
{
|
||||
@ -220,6 +231,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/ExternalLoginCallback
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null)
|
||||
{
|
||||
var info = await _signInManager.GetExternalLoginInfoAsync();
|
||||
@ -285,6 +297,7 @@ namespace Yavsc.Controllers
|
||||
// POST: /Account/ExternalLoginConfirmation
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl = null)
|
||||
{
|
||||
if (User.IsSignedIn())
|
||||
@ -324,6 +337,7 @@ namespace Yavsc.Controllers
|
||||
|
||||
// GET: /Account/ConfirmEmail
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> ConfirmEmail(string userId, string code)
|
||||
{
|
||||
if (userId == null || code == null)
|
||||
@ -342,6 +356,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/ForgotPassword
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ForgotPassword()
|
||||
{
|
||||
return View();
|
||||
@ -350,6 +365,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// POST: /Account/ForgotPassword
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> ForgotPassword(ForgotPasswordViewModel model)
|
||||
{
|
||||
@ -382,6 +398,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/ForgotPasswordConfirmation
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ForgotPasswordConfirmation()
|
||||
{
|
||||
return View();
|
||||
@ -390,6 +407,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/ResetPassword
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ResetPassword(string UserId, string code = null)
|
||||
{
|
||||
return code == null ? View("Error") : View();
|
||||
@ -398,6 +416,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// POST: /Account/ResetPassword
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> ResetPassword(ResetPasswordViewModel model)
|
||||
{
|
||||
@ -423,6 +442,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/ResetPasswordConfirmation
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public IActionResult ResetPasswordConfirmation()
|
||||
{
|
||||
return View();
|
||||
@ -489,6 +509,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// GET: /Account/VerifyCode
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> VerifyCode(string provider, bool rememberMe, string returnUrl = null)
|
||||
{
|
||||
// Require that the user has already logged in via username/password or external login
|
||||
@ -503,6 +524,7 @@ namespace Yavsc.Controllers
|
||||
//
|
||||
// POST: /Account/VerifyCode
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> VerifyCode(VerifyCodeViewModel model)
|
||||
{
|
||||
|
@ -81,6 +81,7 @@ namespace Yavsc.Controllers
|
||||
{
|
||||
var adminCount = await _userManager.GetUsersInRoleAsync(
|
||||
Constants.AdminGroupName);
|
||||
var userCount = await context.Users.CountAsync();
|
||||
var youAreAdmin = await _userManager.IsInRoleAsync(
|
||||
await _userManager.FindByIdAsync(User.GetUserId()),
|
||||
Constants.AdminGroupName);
|
||||
@ -98,7 +99,8 @@ namespace Yavsc.Controllers
|
||||
{
|
||||
Roles = roles.ToArray(),
|
||||
AdminCount = adminCount.Count,
|
||||
YouAreAdmin = youAreAdmin
|
||||
YouAreAdmin = youAreAdmin,
|
||||
UserCount = userCount
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ namespace Yavsc.Controllers
|
||||
using Models.Workflow;
|
||||
using Yavsc.Exceptions;
|
||||
using Yavsc.ViewModels.Workflow;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
[Authorize]
|
||||
public class DoController : Controller
|
||||
@ -22,7 +22,7 @@ namespace Yavsc.Controllers
|
||||
|
||||
public DoController(ApplicationDbContext context,ILogger<DoController> logger)
|
||||
{
|
||||
_context = context;
|
||||
_context = context;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ namespace Yavsc.Controllers
|
||||
// GET: Do/Details/5
|
||||
public IActionResult Details(string id, string activityCode)
|
||||
{
|
||||
|
||||
|
||||
if (id == null || activityCode == null)
|
||||
{
|
||||
return HttpNotFound();
|
||||
@ -54,20 +54,20 @@ namespace Yavsc.Controllers
|
||||
{
|
||||
return HttpNotFound();
|
||||
}
|
||||
|
||||
|
||||
bool hasConfigurableSettings = (userActivity.Does.SettingsClassName != null);
|
||||
if (hasConfigurableSettings) {
|
||||
ViewBag.ProfileType = Startup.ProfileTypes.Single(t=>t.FullName==userActivity.Does.SettingsClassName);
|
||||
var dbset = (IQueryable<ISpecializationSettings>) _context.GetDbSet(userActivity.Does.SettingsClassName);
|
||||
if (dbset == null) throw new InvalidWorkflowModelException($"pas de db set pour {userActivity.Does.SettingsClassName}, vous avez peut-être besoin de décorer votre propriété avec l'attribut [ActivitySettings]");
|
||||
return View(new UserActivityViewModel {
|
||||
Declaration = userActivity,
|
||||
return View(new UserActivityViewModel {
|
||||
Declaration = userActivity,
|
||||
HasSettings = dbset.Any(ua=>ua.UserId==id),
|
||||
NeedsSettings = hasConfigurableSettings
|
||||
} );
|
||||
}
|
||||
return View(new UserActivityViewModel {
|
||||
Declaration = userActivity,
|
||||
return View(new UserActivityViewModel {
|
||||
Declaration = userActivity,
|
||||
HasSettings = false,
|
||||
NeedsSettings = hasConfigurableSettings
|
||||
} );
|
||||
|
@ -5,7 +5,7 @@ using Microsoft.AspNet.Mvc;
|
||||
using Microsoft.Data.Entity;
|
||||
using Yavsc.Exceptions;
|
||||
using Yavsc.Models;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Controllers.Generic
|
||||
{
|
||||
@ -15,7 +15,7 @@ namespace Yavsc.Controllers.Generic
|
||||
protected ApplicationDbContext _context;
|
||||
private object dbSet;
|
||||
|
||||
protected DbSet<TSettings> Settings { get {
|
||||
protected DbSet<TSettings> Settings { get {
|
||||
return (DbSet<TSettings>) dbSet;
|
||||
} }
|
||||
|
||||
@ -47,7 +47,7 @@ namespace Yavsc.Controllers.Generic
|
||||
|
||||
return View(profile);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// GET: BrusherProfile/Create
|
||||
public IActionResult Create()
|
||||
@ -71,7 +71,7 @@ namespace Yavsc.Controllers.Generic
|
||||
return View(setting);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// GET: BrusherProfile/Delete/5
|
||||
[ActionName("Delete")]
|
||||
@ -106,7 +106,7 @@ namespace Yavsc.Controllers.Generic
|
||||
}
|
||||
return View("Edit",settings);
|
||||
}
|
||||
|
||||
|
||||
// POST: FormationSettings/Edit/5
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
@ -115,7 +115,7 @@ namespace Yavsc.Controllers.Generic
|
||||
if (settings.UserId == null) {
|
||||
settings.UserId = User.GetUserId();
|
||||
Settings.Add(settings);
|
||||
} else
|
||||
} else
|
||||
_context.Update(settings);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
@ -124,7 +124,7 @@ namespace Yavsc.Controllers.Generic
|
||||
}
|
||||
return View(settings);
|
||||
}
|
||||
|
||||
|
||||
// POST: FormationSettings/Delete/5
|
||||
[HttpPost, ActionName("Delete")]
|
||||
[ValidateAntiForgeryToken]
|
||||
@ -137,4 +137,4 @@ namespace Yavsc.Controllers.Generic
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
using Models;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
[AllowAnonymous]
|
||||
public class HomeController : Controller
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Helpers
|
||||
{
|
||||
|
@ -19,10 +19,10 @@ namespace Yavsc.Helpers
|
||||
|
||||
public TeXString(string str) : base(str)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public class Replacement
|
||||
@ -41,7 +41,7 @@ namespace Yavsc.Helpers
|
||||
}
|
||||
public static class TeXHelpers
|
||||
{
|
||||
public static readonly Replacement[] SpecialCharsRendering =
|
||||
public static readonly Replacement[] SpecialCharsDefaultRendering =
|
||||
{
|
||||
new Replacement("<","\\textless"),
|
||||
new Replacement(">","\\textgreater"),
|
||||
@ -70,7 +70,7 @@ namespace Yavsc.Helpers
|
||||
public static TeXString ToTeX(this string source)
|
||||
{
|
||||
string result=source;
|
||||
foreach (var r in SpecialCharsRendering)
|
||||
foreach (var r in SpecialCharsDefaultRendering)
|
||||
{
|
||||
result = r.Execute(result);
|
||||
}
|
||||
@ -172,4 +172,4 @@ namespace Yavsc.Helpers
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using YavscLib;
|
||||
using Yavsc
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
@ -7,4 +7,4 @@ namespace Yavsc.Interfaces
|
||||
ICircle Circle { get; set; }
|
||||
IApplicationUser Member { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using YavscLib;
|
||||
|
||||
|
||||
namespace Yavsc.Interfaces
|
||||
{
|
||||
public interface IGCMDeclaration
|
||||
@ -17,4 +16,4 @@ namespace Yavsc.Interfaces
|
||||
IApplicationUser DeviceOwner { get; set; }
|
||||
string DeviceOwnerId { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Billing {
|
||||
public interface IBillingClause {
|
||||
|
@ -2,7 +2,7 @@ using Microsoft.Data.Entity.Migrations;
|
||||
|
||||
namespace Yavsc.Migrations
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
public partial class bookQueryStatus : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
|
@ -4,13 +4,13 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Access
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public class Ban : IBaseTrackedEntity
|
||||
{
|
||||
public DateTime DateCreated
|
||||
{
|
||||
get; set;
|
||||
get; set;
|
||||
}
|
||||
|
||||
public DateTime DateModified
|
||||
|
@ -3,7 +3,7 @@ namespace Yavsc.Models.Access
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Models.Relationship;
|
||||
using Newtonsoft.Json;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public class CircleAuthorizationToBlogPost : ICircleAuthorization
|
||||
{
|
||||
@ -19,4 +19,4 @@ namespace Yavsc.Models.Access
|
||||
public virtual Circle Allowed { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace Yavsc.Models
|
||||
{
|
||||
using Relationship;
|
||||
using Forms;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
using Auth;
|
||||
using Billing;
|
||||
using Musical;
|
||||
|
@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public partial class AccountBalance: IAccountBalance {
|
||||
[Key]
|
||||
|
@ -5,7 +5,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace Yavsc.Models.Billing
|
||||
{
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
public class CommandLine : ICommandLine {
|
||||
|
||||
|
@ -9,7 +9,7 @@ namespace Yavsc.Models.Billing
|
||||
{
|
||||
using Models.Workflow;
|
||||
using Newtonsoft.Json;
|
||||
using YavscLib.Workflow;
|
||||
using Yavsc.Workflow;
|
||||
|
||||
public partial class Estimate : IEstimate
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Billing {
|
||||
public class FixedImpacter : IBillingImpacter
|
||||
|
@ -8,9 +8,9 @@ namespace Yavsc.Models.Billing
|
||||
using Newtonsoft.Json;
|
||||
using Workflow;
|
||||
using Yavsc.Models.Payment;
|
||||
using YavscLib;
|
||||
using YavscLib.Billing;
|
||||
using YavscLib.Workflow;
|
||||
using Yavsc;
|
||||
using Yavsc.Billing;
|
||||
using Yavsc.Workflow;
|
||||
|
||||
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Billing {
|
||||
public class ProportionalImpacter : IBillingImpacter
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Billing {
|
||||
|
||||
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc.Models.Access;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models
|
||||
{
|
||||
@ -27,7 +27,7 @@ namespace Yavsc.Models
|
||||
public string AuthorId { get; set; }
|
||||
|
||||
[Display(Name="Auteur")]
|
||||
|
||||
|
||||
[ForeignKey("AuthorId"),JsonIgnore]
|
||||
public ApplicationUser Author { set; get; }
|
||||
[Display(Name="Visible")]
|
||||
@ -56,7 +56,7 @@ namespace Yavsc.Models
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
[InverseProperty("Target")]
|
||||
[Display(Name="Liste de contrôle d'accès")]
|
||||
public virtual List<CircleAuthorizationToBlogPost> ACL { get; set; }
|
||||
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace Yavsc.Models.Chat
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public class Connection : IConnection
|
||||
{
|
||||
@ -18,5 +18,5 @@ namespace Yavsc.Models.Chat
|
||||
public string UserAgent { get; set; }
|
||||
public bool Connected { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Yavsc.Models.Workflow;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.Haircut
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Billing;
|
||||
using Yavsc.Models.Relationship;
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Haircut
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Billing;
|
||||
using Yavsc.Models.Relationship;
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
namespace Yavsc.Models.Haircut
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
using System;
|
||||
namespace YavscLib.Haircut
|
||||
namespace Yavsc.Haircut
|
||||
{
|
||||
public interface IProviderInfo
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace YavscLib
|
||||
namespace Yavsc
|
||||
{
|
||||
public interface IHairPrestation
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Yavsc.Models.Auth;
|
||||
using Yavsc.Models.Relationship;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.Haircut.Views
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.IT.Modeling
|
||||
{
|
||||
@ -37,4 +37,4 @@ namespace Yavsc.Models.IT.Modeling
|
||||
|
||||
public abstract IWord<TLetter> CreateWord(TLetter letter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.IT.Modeling
|
||||
{
|
||||
@ -13,4 +13,4 @@ namespace Yavsc.Models.IT.Modeling
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,19 +5,19 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace Yavsc.Models.Identity
|
||||
{
|
||||
using YavscLib;
|
||||
|
||||
using Yavsc;
|
||||
|
||||
[JsonObject]
|
||||
|
||||
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
|
||||
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
|
||||
public DateTime? LatestActivityUpdate { get; set; }
|
||||
}
|
||||
|
||||
public class GoogleCloudMobileDeclaration {
|
||||
|
||||
|
||||
[Required]
|
||||
public string GCMRegistrationId { get; set; }
|
||||
|
||||
|
||||
[Key,Required]
|
||||
public string DeviceId { get; set; }
|
||||
|
||||
@ -27,8 +27,8 @@ namespace Yavsc.Models.Identity
|
||||
public string DeviceOwnerId { get; set; }
|
||||
public DateTime DeclarationDate { get; set; }
|
||||
[JsonIgnore,ForeignKey("DeviceOwnerId")]
|
||||
public virtual ApplicationUser DeviceOwner { get; set; }
|
||||
|
||||
public virtual ApplicationUser DeviceOwner { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
namespace Yavsc.Models.Messaging
|
||||
{
|
||||
using Interfaces.Workflow;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
/// <summary>
|
||||
/// Base event.
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
@ -13,4 +13,4 @@ namespace Yavsc.Models.Musical.Profiles
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models.Workflow;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
@ -10,7 +10,7 @@ namespace Yavsc.Models.Musical.Profiles
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
|
||||
[ForeignKeyAttribute("UserId")]
|
||||
public virtual PerformerProfile User { get; set; }
|
||||
public long InstrumentId { get; set; }
|
||||
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
|
||||
[ForeignKeyAttribute("InstrumentId")]
|
||||
public virtual Instrument Tool { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Payment {
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
using Relationship;
|
||||
|
||||
public class PayPalPayment : IBaseTrackedEntity
|
||||
|
@ -8,7 +8,7 @@ using Newtonsoft.Json;
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using Yavsc.Models.Market;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public class Activity : IBaseTrackedEntity, IActivity
|
||||
{
|
||||
|
@ -3,20 +3,20 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
public class CoWorking: ICoWorking
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id {get; set; }
|
||||
|
||||
|
||||
public string PerformerId { get; set; }
|
||||
public string WorkingForId { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("PerformerId")]
|
||||
public virtual PerformerProfile Performer { get; set; }
|
||||
|
||||
[ForeignKey("WorkingForId")]
|
||||
public virtual ApplicationUser WorkingFor { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ using Newtonsoft.Json;
|
||||
|
||||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
public class CommandForm : ICommandForm
|
||||
{
|
||||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
@ -12,12 +12,12 @@ namespace Yavsc.Models.Workflow
|
||||
|
||||
public string ActionName { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
public string ActivityCode { get; set; }
|
||||
|
||||
[ForeignKey("ActivityCode"),JsonIgnore]
|
||||
public virtual Activity Context { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using System;
|
||||
using Models.Relationship;
|
||||
using YavscLib.Workflow;
|
||||
using Yavsc.Workflow;
|
||||
|
||||
public class PerformerProfile : IPerformerProfile {
|
||||
|
||||
|
@ -4,11 +4,11 @@ using System.ComponentModel.DataAnnotations;
|
||||
namespace Yavsc.Models.Workflow.Profiles
|
||||
{
|
||||
using Models.Workflow;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
public class FormationSettings : ISpecializationSettings
|
||||
{
|
||||
public virtual List<CoWorking> CoWorking { get; set; }
|
||||
|
||||
|
||||
[Key]
|
||||
public string UserId
|
||||
{
|
||||
@ -16,4 +16,4 @@ namespace Yavsc.Models.Workflow.Profiles
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ namespace Yavsc.Models.Workflow
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Models.Billing;
|
||||
using Yavsc.Models.Relationship;
|
||||
using YavscLib.Billing;
|
||||
using Yavsc.Billing;
|
||||
|
||||
/// <summary>
|
||||
/// Query, for a date, with a given perfomer, at this given place.
|
||||
|
@ -6,7 +6,7 @@ using Microsoft.AspNet.Builder;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Yavsc.Exceptions;
|
||||
using Yavsc.Models;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ using Microsoft.AspNet.Mvc.Rendering;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.ViewModels.Controls;
|
||||
using Yavsc.ViewModels.Relationship;
|
||||
using YavscLib;
|
||||
using Yavsc;
|
||||
|
||||
namespace Yavsc.ViewComponents
|
||||
{
|
||||
@ -16,31 +16,31 @@ namespace Yavsc.ViewComponents
|
||||
this.dbContext = dbContext;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public IViewComponentResult Invoke (ICircleAuthorized target)
|
||||
{
|
||||
var oid = target.GetOwnerId();
|
||||
ViewBag.ACL = dbContext.Circle.Where(
|
||||
c=>c.OwnerId == oid)
|
||||
.Select(
|
||||
c => new SelectListItem
|
||||
{
|
||||
Text = c.Name,
|
||||
Value = c.Id.ToString(),
|
||||
Selected = target.AuthorizeCircle(c.Id)
|
||||
c => new SelectListItem
|
||||
{
|
||||
Text = c.Name,
|
||||
Value = c.Id.ToString(),
|
||||
Selected = target.AuthorizeCircle(c.Id)
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
ViewBag.Access = dbContext.Circle.Where(
|
||||
c=>c.OwnerId == oid)
|
||||
.Select( c=>
|
||||
new AjaxCheckBoxInfo
|
||||
{
|
||||
Text = c.Name,
|
||||
Text = c.Name,
|
||||
Checked = target.AuthorizeCircle(c.Id),
|
||||
Value = c.Id.ToString()
|
||||
});
|
||||
return View(new CirclesViewModel(target));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@
|
||||
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
|
||||
"Microsoft.AspNet.OWin": "1.0.0-rc1-final",
|
||||
"System.Json": "4.0.20126.16343",
|
||||
"YavscLib": {
|
||||
"Yavsc.Abstract": {
|
||||
"type": "build",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
|
@ -2851,7 +2851,7 @@
|
||||
"lib/WebGrease.dll": {}
|
||||
}
|
||||
},
|
||||
"YavscLib/1.0.0": {
|
||||
"Yavsc.Abstract/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETFramework,Version=v4.5.1",
|
||||
"dependencies": {
|
||||
@ -5720,7 +5720,7 @@
|
||||
"lib/WebGrease.dll": {}
|
||||
}
|
||||
},
|
||||
"YavscLib/1.0.0": {
|
||||
"Yavsc.Abstract/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETFramework,Version=v4.5.1",
|
||||
"dependencies": {
|
||||
@ -8589,7 +8589,7 @@
|
||||
"lib/WebGrease.dll": {}
|
||||
}
|
||||
},
|
||||
"YavscLib/1.0.0": {
|
||||
"Yavsc.Abstract/1.0.0": {
|
||||
"type": "project",
|
||||
"framework": ".NETFramework,Version=v4.5.1",
|
||||
"dependencies": {
|
||||
@ -8611,9 +8611,9 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"YavscLib/1.0.0": {
|
||||
"Yavsc.Abstract/1.0.0": {
|
||||
"type": "project",
|
||||
"path": "../YavscLib/project.json"
|
||||
"path": "../Yavsc.Abstract/project.json"
|
||||
},
|
||||
"Antlr/3.4.1.9004": {
|
||||
"type": "package",
|
||||
@ -11622,7 +11622,7 @@
|
||||
"Microsoft.AspNet.Mvc.Formatters.Json >= 6.0.0-rc1-final",
|
||||
"Microsoft.AspNet.OWin >= 1.0.0-rc1-final",
|
||||
"System.Json >= 4.0.20126.16343",
|
||||
"YavscLib >= 1.0.0",
|
||||
"Yavsc.Abstract >= 1.0.0",
|
||||
"Extensions.AspNet.Authentication.Instagram >= 1.0.0-t150809211713",
|
||||
"Microsoft.AspNet.Http.Extensions >= 1.0.0-rc1-final",
|
||||
"Microsoft.DiaSymReader.Native >= 1.5.0",
|
||||
|
Reference in New Issue
Block a user