* Adds client resourses for Markdown.js
* Implements a part of the client UI at editing Circle collections
This commit is contained in:
parent
17f57d5542
commit
9748c9d7e4
19 changed files with 552 additions and 119 deletions
|
|
@ -44,23 +44,16 @@ namespace Yavsc.Model.Circles
|
|||
public abstract long Create(string owner, string title, string [] users);
|
||||
|
||||
/// <summary>
|
||||
/// Add the specified user.
|
||||
/// Add the specified user to the specified circle.
|
||||
/// </summary>
|
||||
/// <param name="id">circle Identifier.</param>
|
||||
/// <param name="username">User name.</param>
|
||||
public abstract void Add(long id, string username);
|
||||
|
||||
/// <summary>
|
||||
/// Remove the specified user.
|
||||
/// Delete the specified circle by its id.
|
||||
/// </summary>
|
||||
/// <param name="id">circle Identifier.</param>
|
||||
/// <param name="username">User name.</param>
|
||||
public abstract void Remove(long id, string username);
|
||||
|
||||
/// <summary>
|
||||
/// Delete the specified id.
|
||||
/// </summary>
|
||||
/// <param name="id">Identifier.</param>
|
||||
/// <param name="id">Circle Identifier.</param>
|
||||
public abstract void Delete(long id) ;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -70,17 +63,31 @@ namespace Yavsc.Model.Circles
|
|||
public abstract Circle Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// List this instance.
|
||||
/// List circle's user.
|
||||
/// </summary>
|
||||
public abstract IEnumerable<Circle> List(string user);
|
||||
|
||||
/// <summary>
|
||||
/// Covers the specified username.
|
||||
/// True when the specified user is listed in one of
|
||||
/// the specified circles
|
||||
/// </summary>
|
||||
/// <param name="circle_ids">circle's owner.</param>
|
||||
/// <param name="member">Username in his circle.</param>
|
||||
/// <param name="circle_ids">circles to look at</param>
|
||||
/// <param name="member">Username to look for in the circles</param>
|
||||
public abstract bool Matches(long [] circle_ids, string member);
|
||||
|
||||
/// <summary>
|
||||
/// Removes the membership.
|
||||
/// </summary>
|
||||
/// <param name="circle_id">Circle identifier.</param>
|
||||
/// <param name="member">Member.</param>
|
||||
public abstract void RemoveMembership(long circle_id, string member);
|
||||
|
||||
/// <summary>
|
||||
/// Removes the member from all current user circles.
|
||||
/// </summary>
|
||||
/// <param name="member">Member.</param>
|
||||
public abstract void RemoveMember(string member);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
//
|
||||
// ListItem.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// 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/>.
|
||||
using System;
|
||||
|
||||
namespace Yavsc.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// List item.
|
||||
/// </summary>
|
||||
[Obsolete("Use MVC SelectItem")]
|
||||
public class ListItem
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the value.
|
||||
/// </summary>
|
||||
/// <value>The value.</value>
|
||||
public string Value { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the text.
|
||||
/// </summary>
|
||||
/// <value>The text.</value>
|
||||
public string Text { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the icon.
|
||||
/// </summary>
|
||||
/// <value>The icon.</value>
|
||||
public string Icon { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -153,7 +153,6 @@
|
|||
<Compile Include="RolesAndMembers\GCMRegister.cs" />
|
||||
<Compile Include="RolesAndMembers\LostPasswordModel.cs" />
|
||||
<Compile Include="Messaging\SimpleMessage.cs" />
|
||||
<Compile Include="ListItem.cs" />
|
||||
<Compile Include="Calendar\BookEdit.cs" />
|
||||
<Compile Include="Calendar\FreeDate.cs" />
|
||||
<Compile Include="FrontOffice\Catalog\Billing\PriceOnItemCount.cs" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue