refactoring: --YavscLib-- => Yavsc

This commit is contained in:
2017-05-27 16:22:58 +02:00
parent e07c06b32e
commit 2a8b078024
102 changed files with 218 additions and 211 deletions

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface IAccountBalance public interface IAccountBalance
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib.Billing namespace Yavsc.Billing
{ {
public interface IBillItem { public interface IBillItem {
string Name { get; set; } string Name { get; set; }

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace YavscLib.Billing namespace Yavsc.Billing
{ {
public interface IBillable { public interface IBillable {
string Description { get; set; } string Description { get; set; }

View File

@ -1,5 +1,5 @@
namespace YavscLib.Billing namespace Yavsc.Billing
{ {
public interface IBillingImpacter {  public interface IBillingImpacter { 
decimal Impact(decimal orgValue); decimal Impact(decimal orgValue);

View File

@ -1,4 +1,5 @@
namespace YavscLib.Billing
namespace Yavsc.Billing
{ {
public interface ICommandLine : IBillItem public interface ICommandLine : IBillItem

View File

@ -1,4 +1,4 @@
namespace YavscLib.Workflow namespace Yavsc
{ {
using System.Collections.Generic; using System.Collections.Generic;
public interface IEstimate public interface IEstimate
@ -14,4 +14,4 @@
string Title { get; set; } string Title { get; set; }
} }
} }

View File

@ -1,7 +1,7 @@
 
using YavscLib.Interfaces;
namespace YavscLib
namespace Yavsc
{ {
public interface IBlog : IBaseTrackedEntity, IIdentified<long>, IRating<long>, ITitle public interface IBlog : IBaseTrackedEntity, IIdentified<long>, IRating<long>, ITitle
{ {

View File

@ -1,6 +1,6 @@
using System; using System;
namespace YavscLib namespace Yavsc
{ {
public interface IBaseTrackedEntity public interface IBaseTrackedEntity
{ {

View File

@ -19,7 +19,7 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace YavscLib namespace Yavsc
{ {
/// <summary> /// <summary>
/// I identified. /// I identified.

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace YavscLib namespace Yavsc
{ {
public interface ILetter<T> : IEqualityComparer<T> { public interface ILetter<T> : IEqualityComparer<T> {
} }
@ -19,4 +19,4 @@ namespace YavscLib
IWord<TLetter> CreateWord(TLetter letter); IWord<TLetter> CreateWord(TLetter letter);
} }
} }

View File

@ -18,7 +18,7 @@
// //
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace YavscLib namespace Yavsc
{ {
public interface ITitle public interface ITitle
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface IApplicationUser public interface IApplicationUser
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface IConnection public interface IConnection
{ {
@ -18,4 +18,4 @@ namespace YavscLib
string[] Roles { get; set; } string[] Roles { get; set; }
} }
} }

View File

@ -1,8 +1,8 @@
namespace YavscLib namespace Yavsc
{ {
public interface ICircleAuthorization public interface ICircleAuthorization
{ {
long CircleId { get; set; } long CircleId { get; set; }
} }
} }

View File

@ -1,11 +1,11 @@
namespace YavscLib namespace Yavsc
{ {
public interface ICircleAuthorized public interface ICircleAuthorized
{ {
long Id { get; set; } long Id { get; set; }
string GetOwnerId (); string GetOwnerId ();
bool AuthorizeCircle(long circleId); bool AuthorizeCircle(long circleId);
ICircleAuthorization [] GetACL(); ICircleAuthorization [] GetACL();
} }
} }

View File

@ -1,6 +1,6 @@
using System; using System;
namespace YavscLib namespace Yavsc
{ {
public interface IActivity public interface IActivity
{ {

View File

@ -1,10 +1,10 @@
namespace YavscLib namespace Yavsc
{ {
public interface ICoWorking public interface ICoWorking
{ {
long Id {get; set; } long Id {get; set; }
string PerformerId { get; set; } string PerformerId { get; set; }
string WorkingForId { get; set; } string WorkingForId { get; set; }
} }
} }

View File

@ -1,11 +1,11 @@
namespace YavscLib namespace Yavsc
{ {
public interface ICommandForm public interface ICommandForm
{ {
long Id { get; set; } long Id { get; set; }
string ActionName { get; set; } string ActionName { get; set; }
string Title { get; set; } string Title { get; set; }
string ActivityCode { get; set; } string ActivityCode { get; set; }
} }
} }

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface IContact public interface IContact
{ {

View File

@ -1,24 +1,24 @@
// Copyright (C) 2016 Paul Schneider // Copyright (C) 2016 Paul Schneider
// //
// This file is part of yavsc. // This file is part of yavsc.
// //
// yavsc is free software: you can redistribute it and/or modify // yavsc is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by // it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 2 of the License, or // the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version. // (at your option) any later version.
// //
// yavsc is distributed in the hope that it will be useful, // yavsc is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// //
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with yavsc. If not, see <http://www.gnu.org/licenses/>. // along with yavsc. If not, see <http://www.gnu.org/licenses/>.
// //
using System; using System;
namespace YavscLib namespace Yavsc
{ {
public interface IGCMDeclaration public interface IGCMDeclaration
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface ILocation public interface ILocation
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib.Workflow namespace Yavsc.Workflow
{ {
public interface IPerformerProfile public interface IPerformerProfile
{ {
@ -14,4 +14,4 @@ namespace YavscLib.Workflow
int? MinDailyCost { get; set; } int? MinDailyCost { get; set; }
int Rate { get; set; } int Rate { get; set; }
} }
} }

View File

@ -1,7 +1,7 @@
namespace YavscLib.Workflow namespace Yavsc.Workflow
{ {
using YavscLib; using Yavsc;
using YavscLib.Billing; using Yavsc.Billing;
public interface IQuery: IBaseTrackedEntity, IBillable public interface IQuery: IBaseTrackedEntity, IBillable
{ {

View File

@ -19,7 +19,7 @@
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace YavscLib.Interfaces namespace Yavsc
{ {
/// <summary> /// <summary>

View File

@ -1,7 +1,7 @@
namespace YavscLib namespace Yavsc
{ {
public interface ISpecializationSettings public interface ISpecializationSettings
{ {
string UserId { get ; set ; } string UserId { get ; set ; }
} }
} }

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
/// <summary> /// <summary>
/// Status, /// Status,

View File

@ -8,8 +8,8 @@
<ProjectGuid>{67F9D3A8-F71E-4428-913F-C37AE82CDB24}</ProjectGuid> <ProjectGuid>{67F9D3A8-F71E-4428-913F-C37AE82CDB24}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Yavsc.Client</RootNamespace> <RootNamespace>Yavsc</RootNamespace>
<AssemblyName>Yavsc.Client</AssemblyName> <AssemblyName>Yavsc.Abstract</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile111</TargetFrameworkProfile> <TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
@ -73,11 +73,17 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Billing\IAccountBalance.cs" />
<Compile Include="Billing\IcommandLine.cs" />
<Compile Include="Billing\IEstimate.cs" />
<Compile Include="Blogspot\IBlog.cs" />
<Compile Include="IBaseTrackedEntity.cs" /> <Compile Include="IBaseTrackedEntity.cs" />
<Compile Include="IIdentified.cs" />
<Compile Include="ITitle.cs" />
<Compile Include="Billing\IAccountBalance.cs" />
<Compile Include="Billing\IBillable.cs" />
<Compile Include="Billing\IBillingImpacter.cs" />
<Compile Include="Billing\IBillItem.cs" />
<Compile Include="Billing\ICommandLine.cs" />
<Compile Include="Billing\IEstimate.cs" />
<Compile Include="Workflow\IRating.cs" />
<Compile Include="Blogspot\IBlog.cs" />
<Compile Include="Identity\IApplicationUser.cs" /> <Compile Include="Identity\IApplicationUser.cs" />
<Compile Include="Identity\IChatUserInfo.cs" /> <Compile Include="Identity\IChatUserInfo.cs" />
<Compile Include="Identity\Security\ICircleAuthorization.cs" /> <Compile Include="Identity\Security\ICircleAuthorization.cs" />

View File

@ -6,7 +6,7 @@ using Microsoft.Extensions.Localization;
namespace Yavsc.ApiControllers namespace Yavsc.ApiControllers
{ {
using YavscLib; using Yavsc;
using System; using System;
using System.Linq; using System.Linq;
using System.Security.Claims; using System.Security.Claims;

View File

@ -20,7 +20,7 @@ using Microsoft.Data.Entity;
namespace Yavsc.Controllers namespace Yavsc.Controllers
{ {
[AllowAnonymous]
public class AccountController : Controller public class AccountController : Controller
{ {
private readonly UserManager<ApplicationUser> _userManager; private readonly UserManager<ApplicationUser> _userManager;
@ -61,6 +61,13 @@ namespace Yavsc.Controllers
_dbContext = dbContext; _dbContext = dbContext;
} }
[Authorize(Roles=Constants.AdminGroupName)]
public async Task<IActionResult> UserList ()
{
return View(await _dbContext.Users.ToArrayAsync());
}
[AllowAnonymous]
[HttpGet(Constants.LoginPath)] [HttpGet(Constants.LoginPath)]
public ActionResult SignIn(string returnUrl = null) public ActionResult SignIn(string returnUrl = null)
{ {
@ -79,6 +86,7 @@ namespace Yavsc.Controllers
*/ */
} }
[AllowAnonymous]
public ActionResult AccessDenied(string requestUrl = null) public ActionResult AccessDenied(string requestUrl = null)
{ {
ViewBag.UserIsSignedIn = User.IsSignedIn(); ViewBag.UserIsSignedIn = User.IsSignedIn();
@ -89,6 +97,7 @@ namespace Yavsc.Controllers
return View("AccessDenied",requestUrl); return View("AccessDenied",requestUrl);
} }
[AllowAnonymous]
[HttpPost(Constants.LoginPath)] [HttpPost(Constants.LoginPath)]
public async Task<IActionResult> SignIn(SignInViewModel model) public async Task<IActionResult> SignIn(SignInViewModel model)
{ {
@ -169,6 +178,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/Register // GET: /Account/Register
[AllowAnonymous]
[HttpGet] [HttpGet]
public IActionResult Register() public IActionResult Register()
{ {
@ -178,6 +188,7 @@ namespace Yavsc.Controllers
// //
// POST: /Account/Register // POST: /Account/Register
[HttpPost] [HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> Register(RegisterViewModel model) public async Task<IActionResult> Register(RegisterViewModel model)
{ {
@ -220,6 +231,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/ExternalLoginCallback // GET: /Account/ExternalLoginCallback
[HttpGet] [HttpGet]
[AllowAnonymous]
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null) public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null)
{ {
var info = await _signInManager.GetExternalLoginInfoAsync(); var info = await _signInManager.GetExternalLoginInfoAsync();
@ -285,6 +297,7 @@ namespace Yavsc.Controllers
// POST: /Account/ExternalLoginConfirmation // POST: /Account/ExternalLoginConfirmation
[HttpPost] [HttpPost]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
[AllowAnonymous]
public async Task<IActionResult> ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl = null) public async Task<IActionResult> ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl = null)
{ {
if (User.IsSignedIn()) if (User.IsSignedIn())
@ -324,6 +337,7 @@ namespace Yavsc.Controllers
// GET: /Account/ConfirmEmail // GET: /Account/ConfirmEmail
[HttpGet] [HttpGet]
[AllowAnonymous]
public async Task<IActionResult> ConfirmEmail(string userId, string code) public async Task<IActionResult> ConfirmEmail(string userId, string code)
{ {
if (userId == null || code == null) if (userId == null || code == null)
@ -342,6 +356,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/ForgotPassword // GET: /Account/ForgotPassword
[HttpGet] [HttpGet]
[AllowAnonymous]
public IActionResult ForgotPassword() public IActionResult ForgotPassword()
{ {
return View(); return View();
@ -350,6 +365,7 @@ namespace Yavsc.Controllers
// //
// POST: /Account/ForgotPassword // POST: /Account/ForgotPassword
[HttpPost] [HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> ForgotPassword(ForgotPasswordViewModel model) public async Task<IActionResult> ForgotPassword(ForgotPasswordViewModel model)
{ {
@ -382,6 +398,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/ForgotPasswordConfirmation // GET: /Account/ForgotPasswordConfirmation
[HttpGet] [HttpGet]
[AllowAnonymous]
public IActionResult ForgotPasswordConfirmation() public IActionResult ForgotPasswordConfirmation()
{ {
return View(); return View();
@ -390,6 +407,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/ResetPassword // GET: /Account/ResetPassword
[HttpGet] [HttpGet]
[AllowAnonymous]
public IActionResult ResetPassword(string UserId, string code = null) public IActionResult ResetPassword(string UserId, string code = null)
{ {
return code == null ? View("Error") : View(); return code == null ? View("Error") : View();
@ -398,6 +416,7 @@ namespace Yavsc.Controllers
// //
// POST: /Account/ResetPassword // POST: /Account/ResetPassword
[HttpPost] [HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> ResetPassword(ResetPasswordViewModel model) public async Task<IActionResult> ResetPassword(ResetPasswordViewModel model)
{ {
@ -423,6 +442,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/ResetPasswordConfirmation // GET: /Account/ResetPasswordConfirmation
[HttpGet] [HttpGet]
[AllowAnonymous]
public IActionResult ResetPasswordConfirmation() public IActionResult ResetPasswordConfirmation()
{ {
return View(); return View();
@ -489,6 +509,7 @@ namespace Yavsc.Controllers
// //
// GET: /Account/VerifyCode // GET: /Account/VerifyCode
[HttpGet] [HttpGet]
[AllowAnonymous]
public async Task<IActionResult> VerifyCode(string provider, bool rememberMe, string returnUrl = null) 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 // Require that the user has already logged in via username/password or external login
@ -503,6 +524,7 @@ namespace Yavsc.Controllers
// //
// POST: /Account/VerifyCode // POST: /Account/VerifyCode
[HttpPost] [HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public async Task<IActionResult> VerifyCode(VerifyCodeViewModel model) public async Task<IActionResult> VerifyCode(VerifyCodeViewModel model)
{ {

View File

@ -81,6 +81,7 @@ namespace Yavsc.Controllers
{ {
var adminCount = await _userManager.GetUsersInRoleAsync( var adminCount = await _userManager.GetUsersInRoleAsync(
Constants.AdminGroupName); Constants.AdminGroupName);
var userCount = await context.Users.CountAsync();
var youAreAdmin = await _userManager.IsInRoleAsync( var youAreAdmin = await _userManager.IsInRoleAsync(
await _userManager.FindByIdAsync(User.GetUserId()), await _userManager.FindByIdAsync(User.GetUserId()),
Constants.AdminGroupName); Constants.AdminGroupName);
@ -98,7 +99,8 @@ namespace Yavsc.Controllers
{ {
Roles = roles.ToArray(), Roles = roles.ToArray(),
AdminCount = adminCount.Count, AdminCount = adminCount.Count,
YouAreAdmin = youAreAdmin YouAreAdmin = youAreAdmin,
UserCount = userCount
}); });
} }

View File

@ -12,7 +12,7 @@ namespace Yavsc.Controllers
using Models.Workflow; using Models.Workflow;
using Yavsc.Exceptions; using Yavsc.Exceptions;
using Yavsc.ViewModels.Workflow; using Yavsc.ViewModels.Workflow;
using YavscLib; using Yavsc;
[Authorize] [Authorize]
public class DoController : Controller public class DoController : Controller
@ -22,7 +22,7 @@ namespace Yavsc.Controllers
public DoController(ApplicationDbContext context,ILogger<DoController> logger) public DoController(ApplicationDbContext context,ILogger<DoController> logger)
{ {
_context = context; _context = context;
_logger = logger; _logger = logger;
} }
@ -42,7 +42,7 @@ namespace Yavsc.Controllers
// GET: Do/Details/5 // GET: Do/Details/5
public IActionResult Details(string id, string activityCode) public IActionResult Details(string id, string activityCode)
{ {
if (id == null || activityCode == null) if (id == null || activityCode == null)
{ {
return HttpNotFound(); return HttpNotFound();
@ -54,20 +54,20 @@ namespace Yavsc.Controllers
{ {
return HttpNotFound(); return HttpNotFound();
} }
bool hasConfigurableSettings = (userActivity.Does.SettingsClassName != null); bool hasConfigurableSettings = (userActivity.Does.SettingsClassName != null);
if (hasConfigurableSettings) { if (hasConfigurableSettings) {
ViewBag.ProfileType = Startup.ProfileTypes.Single(t=>t.FullName==userActivity.Does.SettingsClassName); ViewBag.ProfileType = Startup.ProfileTypes.Single(t=>t.FullName==userActivity.Does.SettingsClassName);
var dbset = (IQueryable<ISpecializationSettings>) _context.GetDbSet(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]"); 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 { return View(new UserActivityViewModel {
Declaration = userActivity, Declaration = userActivity,
HasSettings = dbset.Any(ua=>ua.UserId==id), HasSettings = dbset.Any(ua=>ua.UserId==id),
NeedsSettings = hasConfigurableSettings NeedsSettings = hasConfigurableSettings
} ); } );
} }
return View(new UserActivityViewModel { return View(new UserActivityViewModel {
Declaration = userActivity, Declaration = userActivity,
HasSettings = false, HasSettings = false,
NeedsSettings = hasConfigurableSettings NeedsSettings = hasConfigurableSettings
} ); } );

View File

@ -5,7 +5,7 @@ using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity; using Microsoft.Data.Entity;
using Yavsc.Exceptions; using Yavsc.Exceptions;
using Yavsc.Models; using Yavsc.Models;
using YavscLib; using Yavsc;
namespace Yavsc.Controllers.Generic namespace Yavsc.Controllers.Generic
{ {
@ -15,7 +15,7 @@ namespace Yavsc.Controllers.Generic
protected ApplicationDbContext _context; protected ApplicationDbContext _context;
private object dbSet; private object dbSet;
protected DbSet<TSettings> Settings { get { protected DbSet<TSettings> Settings { get {
return (DbSet<TSettings>) dbSet; return (DbSet<TSettings>) dbSet;
} } } }
@ -47,7 +47,7 @@ namespace Yavsc.Controllers.Generic
return View(profile); return View(profile);
} }
// GET: BrusherProfile/Create // GET: BrusherProfile/Create
public IActionResult Create() public IActionResult Create()
@ -71,7 +71,7 @@ namespace Yavsc.Controllers.Generic
return View(setting); return View(setting);
} }
// GET: BrusherProfile/Delete/5 // GET: BrusherProfile/Delete/5
[ActionName("Delete")] [ActionName("Delete")]
@ -106,7 +106,7 @@ namespace Yavsc.Controllers.Generic
} }
return View("Edit",settings); return View("Edit",settings);
} }
// POST: FormationSettings/Edit/5 // POST: FormationSettings/Edit/5
[HttpPost] [HttpPost]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
@ -115,7 +115,7 @@ namespace Yavsc.Controllers.Generic
if (settings.UserId == null) { if (settings.UserId == null) {
settings.UserId = User.GetUserId(); settings.UserId = User.GetUserId();
Settings.Add(settings); Settings.Add(settings);
} else } else
_context.Update(settings); _context.Update(settings);
if (ModelState.IsValid) if (ModelState.IsValid)
{ {
@ -124,7 +124,7 @@ namespace Yavsc.Controllers.Generic
} }
return View(settings); return View(settings);
} }
// POST: FormationSettings/Delete/5 // POST: FormationSettings/Delete/5
[HttpPost, ActionName("Delete")] [HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
@ -137,4 +137,4 @@ namespace Yavsc.Controllers.Generic
} }
} }
} }

View File

@ -14,7 +14,7 @@ using System.Threading.Tasks;
namespace Yavsc.Controllers namespace Yavsc.Controllers
{ {
using Models; using Models;
using YavscLib; using Yavsc;
[AllowAnonymous] [AllowAnonymous]
public class HomeController : Controller public class HomeController : Controller

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Helpers namespace Yavsc.Helpers
{ {

View File

@ -19,10 +19,10 @@ namespace Yavsc.Helpers
public TeXString(string str) : base(str) public TeXString(string str) : base(str)
{ {
} }
} }
public class Replacement public class Replacement
@ -41,7 +41,7 @@ namespace Yavsc.Helpers
} }
public static class TeXHelpers public static class TeXHelpers
{ {
public static readonly Replacement[] SpecialCharsRendering = public static readonly Replacement[] SpecialCharsDefaultRendering =
{ {
new Replacement("<","\\textless"), new Replacement("<","\\textless"),
new Replacement(">","\\textgreater"), new Replacement(">","\\textgreater"),
@ -70,7 +70,7 @@ namespace Yavsc.Helpers
public static TeXString ToTeX(this string source) public static TeXString ToTeX(this string source)
{ {
string result=source; string result=source;
foreach (var r in SpecialCharsRendering) foreach (var r in SpecialCharsDefaultRendering)
{ {
result = r.Execute(result); result = r.Execute(result);
} }
@ -172,4 +172,4 @@ namespace Yavsc.Helpers
} }
} }
} }
} }

View File

@ -1,4 +1,4 @@
using YavscLib; using Yavsc
namespace Yavsc.Interfaces namespace Yavsc.Interfaces
{ {
@ -7,4 +7,4 @@ namespace Yavsc.Interfaces
ICircle Circle { get; set; } ICircle Circle { get; set; }
IApplicationUser Member { get; set; } IApplicationUser Member { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
using YavscLib; 
namespace Yavsc.Interfaces namespace Yavsc.Interfaces
{ {
public interface IGCMDeclaration public interface IGCMDeclaration
@ -17,4 +16,4 @@ namespace Yavsc.Interfaces
IApplicationUser DeviceOwner { get; set; } IApplicationUser DeviceOwner { get; set; }
string DeviceOwnerId { get; set; } string DeviceOwnerId { get; set; }
} }
} }

View File

@ -1,4 +1,4 @@
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Billing { namespace Yavsc.Models.Billing {
public interface IBillingClause {  public interface IBillingClause { 

View File

@ -2,7 +2,7 @@ using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations namespace Yavsc.Migrations
{ {
using YavscLib; using Yavsc;
public partial class bookQueryStatus : Migration public partial class bookQueryStatus : Migration
{ {
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)

View File

@ -4,13 +4,13 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Access namespace Yavsc.Models.Access
{ {
using YavscLib; using Yavsc;
public class Ban : IBaseTrackedEntity public class Ban : IBaseTrackedEntity
{ {
public DateTime DateCreated public DateTime DateCreated
{ {
get; set; get; set;
} }
public DateTime DateModified public DateTime DateModified

View File

@ -3,7 +3,7 @@ namespace Yavsc.Models.Access
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Models.Relationship; using Models.Relationship;
using Newtonsoft.Json; using Newtonsoft.Json;
using YavscLib; using Yavsc;
public class CircleAuthorizationToBlogPost : ICircleAuthorization public class CircleAuthorizationToBlogPost : ICircleAuthorization
{ {
@ -19,4 +19,4 @@ namespace Yavsc.Models.Access
public virtual Circle Allowed { get; set; } public virtual Circle Allowed { get; set; }
} }
} }

View File

@ -12,7 +12,7 @@ namespace Yavsc.Models
{ {
using Relationship; using Relationship;
using Forms; using Forms;
using YavscLib; using Yavsc;
using Auth; using Auth;
using Billing; using Billing;
using Musical; using Musical;

View File

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models namespace Yavsc.Models
{ {
using YavscLib; using Yavsc;
public partial class AccountBalance: IAccountBalance { public partial class AccountBalance: IAccountBalance {
[Key] [Key]

View File

@ -5,7 +5,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Billing namespace Yavsc.Models.Billing
{ {
using YavscLib.Billing; using Yavsc.Billing;
public class CommandLine : ICommandLine { public class CommandLine : ICommandLine {

View File

@ -9,7 +9,7 @@ namespace Yavsc.Models.Billing
{ {
using Models.Workflow; using Models.Workflow;
using Newtonsoft.Json; using Newtonsoft.Json;
using YavscLib.Workflow; using Yavsc.Workflow;
public partial class Estimate : IEstimate public partial class Estimate : IEstimate
{ {

View File

@ -1,4 +1,4 @@
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Billing   { namespace Yavsc.Models.Billing   {
public class FixedImpacter : IBillingImpacter public class FixedImpacter : IBillingImpacter

View File

@ -8,9 +8,9 @@ namespace Yavsc.Models.Billing
using Newtonsoft.Json; using Newtonsoft.Json;
using Workflow; using Workflow;
using Yavsc.Models.Payment; using Yavsc.Models.Payment;
using YavscLib; using Yavsc;
using YavscLib.Billing; using Yavsc.Billing;
using YavscLib.Workflow; using Yavsc.Workflow;
public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long> public abstract class NominativeServiceCommand : IBaseTrackedEntity, IQuery, IIdentified<long>
{ {

View File

@ -1,4 +1,4 @@
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Billing   { namespace Yavsc.Models.Billing   {
public class ProportionalImpacter : IBillingImpacter public class ProportionalImpacter : IBillingImpacter

View File

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Billing { namespace Yavsc.Models.Billing {

View File

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
using System.Linq; using System.Linq;
using Newtonsoft.Json; using Newtonsoft.Json;
using Yavsc.Models.Access; using Yavsc.Models.Access;
using YavscLib; using Yavsc;
namespace Yavsc.Models namespace Yavsc.Models
{ {
@ -27,7 +27,7 @@ namespace Yavsc.Models
public string AuthorId { get; set; } public string AuthorId { get; set; }
[Display(Name="Auteur")] [Display(Name="Auteur")]
[ForeignKey("AuthorId"),JsonIgnore] [ForeignKey("AuthorId"),JsonIgnore]
public ApplicationUser Author { set; get; } public ApplicationUser Author { set; get; }
[Display(Name="Visible")] [Display(Name="Visible")]
@ -56,7 +56,7 @@ namespace Yavsc.Models
{ {
get; set; get; set;
} }
[InverseProperty("Target")] [InverseProperty("Target")]
[Display(Name="Liste de contrôle d'accès")] [Display(Name="Liste de contrôle d'accès")]
public virtual List<CircleAuthorizationToBlogPost> ACL { get; set; } public virtual List<CircleAuthorizationToBlogPost> ACL { get; set; }

View File

@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Chat namespace Yavsc.Models.Chat
{ {
using YavscLib; using Yavsc;
public class Connection : IConnection public class Connection : IConnection
{ {
@ -18,5 +18,5 @@ namespace Yavsc.Models.Chat
public string UserAgent { get; set; } public string UserAgent { get; set; }
public bool Connected { get; set; } public bool Connected { get; set; }
} }
} }

View File

@ -2,7 +2,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json; using Newtonsoft.Json;
using Yavsc.Models.Workflow; using Yavsc.Models.Workflow;
using YavscLib; using Yavsc;
namespace Yavsc.Models.Haircut namespace Yavsc.Models.Haircut
{ {

View File

@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;
using Yavsc.Models.Relationship; using Yavsc.Models.Relationship;
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Haircut namespace Yavsc.Models.Haircut
{ {

View File

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;
using Yavsc.Models.Relationship; using Yavsc.Models.Relationship;
using YavscLib.Billing; using Yavsc.Billing;
namespace Yavsc.Models.Haircut namespace Yavsc.Models.Haircut
{ {

View File

@ -1,5 +1,5 @@
using System; using System;
namespace YavscLib.Haircut namespace Yavsc.Haircut
{ {
public interface IProviderInfo public interface IProviderInfo
{ {

View File

@ -1,4 +1,4 @@
namespace YavscLib namespace Yavsc
{ {
public interface IHairPrestation public interface IHairPrestation
{ {

View File

@ -2,7 +2,7 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Yavsc.Models.Auth; using Yavsc.Models.Auth;
using Yavsc.Models.Relationship; using Yavsc.Models.Relationship;
using YavscLib; using Yavsc;
namespace Yavsc.Models.Haircut.Views namespace Yavsc.Models.Haircut.Views
{ {

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using YavscLib; using Yavsc;
namespace Yavsc.Models.IT.Modeling namespace Yavsc.Models.IT.Modeling
{ {
@ -37,4 +37,4 @@ namespace Yavsc.Models.IT.Modeling
public abstract IWord<TLetter> CreateWord(TLetter letter); public abstract IWord<TLetter> CreateWord(TLetter letter);
} }
} }

View File

@ -1,5 +1,5 @@
using YavscLib; using Yavsc;
namespace Yavsc.Models.IT.Modeling namespace Yavsc.Models.IT.Modeling
{ {
@ -13,4 +13,4 @@ namespace Yavsc.Models.IT.Modeling
} }
} }
} }

View File

@ -5,19 +5,19 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Identity namespace Yavsc.Models.Identity
{ {
using YavscLib; using Yavsc;
[JsonObject] [JsonObject]
public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration { public class GivenGoogleCloudMobileDeclaration : GoogleCloudMobileDeclaration, IGCMDeclaration {
public DateTime? LatestActivityUpdate { get; set; } public DateTime? LatestActivityUpdate { get; set; }
} }
public class GoogleCloudMobileDeclaration { public class GoogleCloudMobileDeclaration {
[Required] [Required]
public string GCMRegistrationId { get; set; } public string GCMRegistrationId { get; set; }
[Key,Required] [Key,Required]
public string DeviceId { get; set; } public string DeviceId { get; set; }
@ -27,8 +27,8 @@ namespace Yavsc.Models.Identity
public string DeviceOwnerId { get; set; } public string DeviceOwnerId { get; set; }
public DateTime DeclarationDate { get; set; } public DateTime DeclarationDate { get; set; }
[JsonIgnore,ForeignKey("DeviceOwnerId")] [JsonIgnore,ForeignKey("DeviceOwnerId")]
public virtual ApplicationUser DeviceOwner { get; set; } public virtual ApplicationUser DeviceOwner { get; set; }
} }

View File

@ -24,7 +24,7 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Messaging namespace Yavsc.Models.Messaging
{ {
using Interfaces.Workflow; using Interfaces.Workflow;
using YavscLib; using Yavsc;
/// <summary> /// <summary>
/// Base event. /// Base event.

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using YavscLib; using Yavsc;
namespace Yavsc.Models.Musical.Profiles namespace Yavsc.Models.Musical.Profiles
{ {
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
} }
} }
} }

View File

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using YavscLib; using Yavsc;
namespace Yavsc.Models.Musical.Profiles namespace Yavsc.Models.Musical.Profiles
{ {
@ -13,4 +13,4 @@ namespace Yavsc.Models.Musical.Profiles
get; set; get; set;
} }
} }
} }

View File

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Workflow; using Yavsc.Models.Workflow;
using YavscLib; using Yavsc;
namespace Yavsc.Models.Musical.Profiles namespace Yavsc.Models.Musical.Profiles
{ {
@ -10,7 +10,7 @@ namespace Yavsc.Models.Musical.Profiles
{ {
get; set; get; set;
} }
[ForeignKeyAttribute("UserId")] [ForeignKeyAttribute("UserId")]
public virtual PerformerProfile User { get; set; } public virtual PerformerProfile User { get; set; }
public long InstrumentId { get; set; } public long InstrumentId { get; set; }
@ -18,4 +18,4 @@ namespace Yavsc.Models.Musical.Profiles
[ForeignKeyAttribute("InstrumentId")] [ForeignKeyAttribute("InstrumentId")]
public virtual Instrument Tool { get; set; } public virtual Instrument Tool { get; set; }
} }
} }

View File

@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Payment { namespace Yavsc.Models.Payment {
using YavscLib; using Yavsc;
using Relationship; using Relationship;
public class PayPalPayment : IBaseTrackedEntity public class PayPalPayment : IBaseTrackedEntity

View File

@ -8,7 +8,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Workflow namespace Yavsc.Models.Workflow
{ {
using Yavsc.Models.Market; using Yavsc.Models.Market;
using YavscLib; using Yavsc;
public class Activity : IBaseTrackedEntity, IActivity public class Activity : IBaseTrackedEntity, IActivity
{ {

View File

@ -3,20 +3,20 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Workflow namespace Yavsc.Models.Workflow
{ {
using YavscLib; using Yavsc;
public class CoWorking: ICoWorking public class CoWorking: ICoWorking
{ {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id {get; set; } public long Id {get; set; }
public string PerformerId { get; set; } public string PerformerId { get; set; }
public string WorkingForId { get; set; } public string WorkingForId { get; set; }
[ForeignKey("PerformerId")] [ForeignKey("PerformerId")]
public virtual PerformerProfile Performer { get; set; } public virtual PerformerProfile Performer { get; set; }
[ForeignKey("WorkingForId")] [ForeignKey("WorkingForId")]
public virtual ApplicationUser WorkingFor { get; set; } public virtual ApplicationUser WorkingFor { get; set; }
} }
} }

View File

@ -4,7 +4,7 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Workflow namespace Yavsc.Models.Workflow
{ {
using YavscLib; using Yavsc;
public class CommandForm : ICommandForm public class CommandForm : ICommandForm
{ {
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@ -12,12 +12,12 @@ namespace Yavsc.Models.Workflow
public string ActionName { get; set; } public string ActionName { get; set; }
public string Title { get; set; } public string Title { get; set; }
[Required] [Required]
public string ActivityCode { get; set; } public string ActivityCode { get; set; }
[ForeignKey("ActivityCode"),JsonIgnore] [ForeignKey("ActivityCode"),JsonIgnore]
public virtual Activity Context { get; set; } public virtual Activity Context { get; set; }
} }
} }

View File

@ -6,7 +6,7 @@ namespace Yavsc.Models.Workflow
{ {
using System; using System;
using Models.Relationship; using Models.Relationship;
using YavscLib.Workflow; using Yavsc.Workflow;
public class PerformerProfile : IPerformerProfile { public class PerformerProfile : IPerformerProfile {

View File

@ -4,11 +4,11 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.Models.Workflow.Profiles namespace Yavsc.Models.Workflow.Profiles
{ {
using Models.Workflow; using Models.Workflow;
using YavscLib; using Yavsc;
public class FormationSettings : ISpecializationSettings public class FormationSettings : ISpecializationSettings
{ {
public virtual List<CoWorking> CoWorking { get; set; } public virtual List<CoWorking> CoWorking { get; set; }
[Key] [Key]
public string UserId public string UserId
{ {
@ -16,4 +16,4 @@ namespace Yavsc.Models.Workflow.Profiles
} }
} }
} }

View File

@ -7,7 +7,7 @@ namespace Yavsc.Models.Workflow
using System.Collections.Generic; using System.Collections.Generic;
using Yavsc.Models.Billing; using Yavsc.Models.Billing;
using Yavsc.Models.Relationship; using Yavsc.Models.Relationship;
using YavscLib.Billing; using Yavsc.Billing;
/// <summary> /// <summary>
/// Query, for a date, with a given perfomer, at this given place. /// Query, for a date, with a given perfomer, at this given place.

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.Builder;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Yavsc.Exceptions; using Yavsc.Exceptions;
using Yavsc.Models; using Yavsc.Models;
using YavscLib; using Yavsc;
namespace Yavsc namespace Yavsc
{ {

View File

@ -4,7 +4,7 @@ using Microsoft.AspNet.Mvc.Rendering;
using Yavsc.Models; using Yavsc.Models;
using Yavsc.ViewModels.Controls; using Yavsc.ViewModels.Controls;
using Yavsc.ViewModels.Relationship; using Yavsc.ViewModels.Relationship;
using YavscLib; using Yavsc;
namespace Yavsc.ViewComponents namespace Yavsc.ViewComponents
{ {
@ -16,31 +16,31 @@ namespace Yavsc.ViewComponents
this.dbContext = dbContext; this.dbContext = dbContext;
} }
public IViewComponentResult Invoke (ICircleAuthorized target) public IViewComponentResult Invoke (ICircleAuthorized target)
{ {
var oid = target.GetOwnerId(); var oid = target.GetOwnerId();
ViewBag.ACL = dbContext.Circle.Where( ViewBag.ACL = dbContext.Circle.Where(
c=>c.OwnerId == oid) c=>c.OwnerId == oid)
.Select( .Select(
c => new SelectListItem c => new SelectListItem
{ {
Text = c.Name, Text = c.Name,
Value = c.Id.ToString(), Value = c.Id.ToString(),
Selected = target.AuthorizeCircle(c.Id) Selected = target.AuthorizeCircle(c.Id)
}  } 
); );
ViewBag.Access = dbContext.Circle.Where( ViewBag.Access = dbContext.Circle.Where(
c=>c.OwnerId == oid) c=>c.OwnerId == oid)
.Select( c=> .Select( c=>
new AjaxCheckBoxInfo new AjaxCheckBoxInfo
{ {
Text = c.Name, Text = c.Name,
Checked = target.AuthorizeCircle(c.Id), Checked = target.AuthorizeCircle(c.Id),
Value = c.Id.ToString() Value = c.Id.ToString()
}); });
return View(new CirclesViewModel(target)); return View(new CirclesViewModel(target));
} }
} }
} }

View File

@ -111,7 +111,7 @@
"Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final", "Microsoft.AspNet.Mvc.Formatters.Json": "6.0.0-rc1-final",
"Microsoft.AspNet.OWin": "1.0.0-rc1-final", "Microsoft.AspNet.OWin": "1.0.0-rc1-final",
"System.Json": "4.0.20126.16343", "System.Json": "4.0.20126.16343",
"YavscLib": { "Yavsc.Abstract": {
"type": "build", "type": "build",
"version": "1.0.0" "version": "1.0.0"
}, },

View File

@ -2851,7 +2851,7 @@
"lib/WebGrease.dll": {} "lib/WebGrease.dll": {}
} }
}, },
"YavscLib/1.0.0": { "Yavsc.Abstract/1.0.0": {
"type": "project", "type": "project",
"framework": ".NETFramework,Version=v4.5.1", "framework": ".NETFramework,Version=v4.5.1",
"dependencies": { "dependencies": {
@ -5720,7 +5720,7 @@
"lib/WebGrease.dll": {} "lib/WebGrease.dll": {}
} }
}, },
"YavscLib/1.0.0": { "Yavsc.Abstract/1.0.0": {
"type": "project", "type": "project",
"framework": ".NETFramework,Version=v4.5.1", "framework": ".NETFramework,Version=v4.5.1",
"dependencies": { "dependencies": {
@ -8589,7 +8589,7 @@
"lib/WebGrease.dll": {} "lib/WebGrease.dll": {}
} }
}, },
"YavscLib/1.0.0": { "Yavsc.Abstract/1.0.0": {
"type": "project", "type": "project",
"framework": ".NETFramework,Version=v4.5.1", "framework": ".NETFramework,Version=v4.5.1",
"dependencies": { "dependencies": {
@ -8611,9 +8611,9 @@
} }
}, },
"libraries": { "libraries": {
"YavscLib/1.0.0": { "Yavsc.Abstract/1.0.0": {
"type": "project", "type": "project",
"path": "../YavscLib/project.json" "path": "../Yavsc.Abstract/project.json"
}, },
"Antlr/3.4.1.9004": { "Antlr/3.4.1.9004": {
"type": "package", "type": "package",
@ -11622,7 +11622,7 @@
"Microsoft.AspNet.Mvc.Formatters.Json >= 6.0.0-rc1-final", "Microsoft.AspNet.Mvc.Formatters.Json >= 6.0.0-rc1-final",
"Microsoft.AspNet.OWin >= 1.0.0-rc1-final", "Microsoft.AspNet.OWin >= 1.0.0-rc1-final",
"System.Json >= 4.0.20126.16343", "System.Json >= 4.0.20126.16343",
"YavscLib >= 1.0.0", "Yavsc.Abstract >= 1.0.0",
"Extensions.AspNet.Authentication.Instagram >= 1.0.0-t150809211713", "Extensions.AspNet.Authentication.Instagram >= 1.0.0-t150809211713",
"Microsoft.AspNet.Http.Extensions >= 1.0.0-rc1-final", "Microsoft.AspNet.Http.Extensions >= 1.0.0-rc1-final",
"Microsoft.DiaSymReader.Native >= 1.5.0", "Microsoft.DiaSymReader.Native >= 1.5.0",

View File

@ -1,23 +0,0 @@
<Properties>
<MonoDevelop.Ide.Workbench ActiveDocument="IBlog.cs">
<Files>
<File FileName="IBlog.cs" Line="1" Column="1" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="Yavsc.Client" expanded="True">
<Node name="Yavsc.Client" expanded="True">
<Node name="References" expanded="True" />
</Node>
</Node>
</State>
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>

View File

@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZicMoove.iOS", "ZicMoove\Zi
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZicMoove", "ZicMoove\ZicMoove\ZicMoove.csproj", "{A0815650-0A0A-47B0-8826-771F0E1AD137}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZicMoove", "ZicMoove\ZicMoove\ZicMoove.csproj", "{A0815650-0A0A-47B0-8826-771F0E1AD137}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YavscLib", "YavscLib\YavscLib.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YavscLib", "Yavsc.Abstract\YavscLib.csproj", "{67F9D3A8-F71E-4428-913F-C37AE82CDB24}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -40,7 +40,7 @@ namespace ZicMoove
using System.Net.Http; using System.Net.Http;
using System.Text; using System.Text;
using Pages.ClientPages; using Pages.ClientPages;
using YavscLib; using Yavsc;
using Model.Musical; using Model.Musical;
public partial class App : Application // superclass new in 1.3 public partial class App : Application // superclass new in 1.3
@ -135,7 +135,7 @@ namespace ZicMoove
private void OnAppResumed(object sender, EventArgs e) private void OnAppResumed(object sender, EventArgs e)
{ {
StartConnexion(); StartConnexion();
// TODO restore the navigation stack // TODO restore the navigation stack
base.OnResume(); base.OnResume();
foreach (var pageState in DataManager.Instance.AppState) foreach (var pageState in DataManager.Instance.AppState)
{ {
@ -153,7 +153,7 @@ namespace ZicMoove
DataManager.Instance.AppState.SaveEntity(); DataManager.Instance.AppState.SaveEntity();
} }
// FIXME Not called? // FIXME Not called?
private void OnRotation(object sender, EventArgs<Orientation> e) private void OnRotation(object sender, EventArgs<Orientation> e)
{ {
@ -179,7 +179,7 @@ namespace ZicMoove
public App(IPlatform instance) public App(IPlatform instance)
{ {
// This declaration became obsolete by introduction // This declaration became obsolete by introduction
// of the XLabs App that // of the XLabs App that
// refers this instance with // refers this instance with
// its application context property // its application context property
// and is obtained using the `Resolver` // and is obtained using the `Resolver`
@ -224,7 +224,7 @@ namespace ZicMoove
private void BuildMainPage() private void BuildMainPage()
{ {
// TODO // TODO
// in case of App resume, // in case of App resume,
// do not create new BindingContext's, // do not create new BindingContext's,
// but use those from the AppState property // but use those from the AppState property
accChooserPage = new AccountChooserPage(); accChooserPage = new AccountChooserPage();
@ -285,7 +285,7 @@ namespace ZicMoove
masterDetail.Detail = new NavigationPage(homePage); masterDetail.Detail = new NavigationPage(homePage);
ToolbarItem tiSetts = new ToolbarItem() ToolbarItem tiSetts = new ToolbarItem()
{ {
// FIXME what for? Priority = 0, // FIXME what for? Priority = 0,
Text = "Paramètres", Text = "Paramètres",
Icon = "ic_corp_icon.png", Icon = "ic_corp_icon.png",
Command = new Command( Command = new Command(

View File

@ -1,5 +1,5 @@
using System; using System;
using YavscLib; using Yavsc;
namespace ZicMoove.Model.Auth namespace ZicMoove.Model.Auth
{ {

View File

@ -4,9 +4,9 @@ using System;
namespace ZicMoove.Model.Auth.Account namespace ZicMoove.Model.Auth.Account
{ {
using Yavsc.Models; using Yavsc.Models;
using YavscLib; using Yavsc;
public class GoogleCloudMobileDeclaration public class GoogleCloudMobileDeclaration
{ {
public string GCMRegistrationId { get; set; } public string GCMRegistrationId { get; set; }
public string DeviceId { get; set; } public string DeviceId { get; set; }
@ -34,4 +34,4 @@ namespace ZicMoove.Model.Auth.Account
set; set;
} }
} }
} }

View File

@ -1,5 +1,5 @@
using System; using System;
using YavscLib; using Yavsc;
namespace ZicMoove.Model.Blog namespace ZicMoove.Model.Blog
{ {

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using YavscLib; using Yavsc;
namespace ZicMoove.Model.Social.Chat namespace ZicMoove.Model.Social.Chat
{ {

View File

@ -4,7 +4,7 @@ using XLabs.Forms.Mvvm;
namespace ZicMoove.Model.Workflow namespace ZicMoove.Model.Workflow
{ {
using YavscLib; using Yavsc;
public class Activity : ViewModel, IActivity public class Activity : ViewModel, IActivity
{ {
public string Code public string Code

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using YavscLib; using Yavsc;
namespace ZicMoove.Model.Workflow namespace ZicMoove.Model.Workflow
{ {

View File

@ -8,7 +8,7 @@ namespace ZicMoove.Model.Workflow
{ {
using Data; using Data;
using Musical; using Musical;
using YavscLib.Workflow; using Yavsc.Workflow;
public partial class Estimate : IEstimate public partial class Estimate : IEstimate
{ {
@ -49,7 +49,7 @@ namespace ZicMoove.Model.Workflow
get { return AttachedFiles == null ? null : string.Join(":", AttachedFiles); } get { return AttachedFiles == null ? null : string.Join(":", AttachedFiles); }
set { AttachedFiles = value.Split(':').ToList(); } set { AttachedFiles = value.Split(':').ToList(); }
} }
public string OwnerId { get; set; } public string OwnerId { get; set; }
[JsonIgnore] [JsonIgnore]
public ClientProviderInfo Owner public ClientProviderInfo Owner

View File

@ -2,7 +2,7 @@
namespace ZicMoove.Model.Workflow namespace ZicMoove.Model.Workflow
{ {
using YavscLib.Billing; using Yavsc.Billing;
public class BillingLine : ICommandLine public class BillingLine : ICommandLine
{ {
public long Id { get; set; } public long Id { get; set; }

Some files were not shown because too many files have changed in this diff Show More