* cldr.js:

* Web.config:
* ListItem.cs:
* styles.json:
* globalize.js:
* event.js:
* Auth.aspx:
* Book.aspx:
* Login.aspx:
* jquery-2.1.4.js:
* map-load.gif:
* Book.aspx:
* Circle.cs:
* Auth.aspx:
* mapstyle.css:
* date.js:
* Login.aspx:
* mdd_help.htm:
* BlogHelper.cs:
* fit-bounds.png:
* unresolved.js:
* jquery-2.1.4.min.js:
* mapstyle-ie.css:
* FreeDate.cs:
* BookEdit.cs:
* number.js:
* BlogManager.cs:
* plural.js:
* jquery-2.1.4.min.map:
* jquery.googlemaps.js:
* supplemental.js:
* BlogProvider.cs:
* mapstyle.min.css:
* pin-pink.png:
* message.js:
* ChooseADate.aspx:
* pin-azure.png:
* currency.js:
* jquery-2.1.4-vsdoc.js:
* pin-green.png:
* MarkdownDeepLib.min.js:
* flag-azure.png:
* flag-green.png:
* needle-pink.png:
* ChooseADate.aspx:
* niddle-green.png:
* ChooseCalendar.aspx:
* current-location.png:
* jquery.googlemaps.min.js:
* ErrorMessage.aspx:
* ChooseCalendar.aspx:
* relative-time.js:
* GoogleErrorMessage.aspx:
* popup-template-marker.html:
* popup-template-circle.html:
* popup-template-polygon.html:
* popup-template-polyline.html:
* popup-template-rectangle.html:

* Web.csproj:
* YavscModel.csproj:
* YavscClient.csproj:
* fortune.csproj:
* WebControls.csproj:
* SalesCatalog.csproj:
* ITContentProvider.csproj:
* NpgsqlMRPProviders.csproj:
* NpgsqlBlogProvider.csproj:
* NpgsqlContentProvider.csproj: Moves to Mono framework

* NpgsqlCircleProvider.cs: Makes Circles private, or not

* OAuth2.cs:
* CircleController.cs:
* AccountController.cs:
* NpgsqlContentProvider.cs: Impacts htmldoc

* NpgsqlMembershipProvider.cs: Makes possible to change the UserName

* NpgsqlRoleProvider.cs: Drops this SQL code, which is actually
  maintained in Web/instdbws.sql

* PeopleApi.cs:
* GoogleController.cs:
* PaypalController.cs: Refactoring

* Global.asax.cs: Dropped an useless url mapping

* MarkdownHelper.cs: Package update

* App.master:
* NoLogin.master: Site's favicon update

* Circles.aspx: TO BE FIXED :-D

* UserPost.aspx: Comment only when logged in

* instdbws.sql: Circle public

* packages.config: package update
This commit is contained in:
Paul Schneider 2015-07-15 03:36:12 +02:00
commit 87edbaffe5
91 changed files with 496 additions and 26262 deletions

View file

@ -25,7 +25,6 @@ namespace Yavsc.Model.Blogs
throw new ConfigurationErrorsException("The default blog provider was not found");
ConstructorInfo ci = Type.GetType (celt.Type).GetConstructor (Type.EmptyTypes);
BlogProvider bp = ci.Invoke (Type.EmptyTypes) as BlogProvider;
NameValueCollection c = new NameValueCollection ();
bp.Initialize (celt.Name, celt.Parameters);
return bp;
}

View file

@ -97,10 +97,12 @@ namespace Yavsc.Model.Blogs
Provider.UpdatePost (postid, title, content, visible,cids);
}
/// <summary>
/// Finds the post.
/// </summary>
/// <returns>The post.</returns>
/// <param name="readersName">Readers name.</param>
/// <param name="pattern">Pattern.</param>
/// <param name="searchflags">Searchflags.</param>
/// <param name="pageIndex">Page index.</param>

View file

@ -28,14 +28,16 @@ namespace Yavsc.Model.Blogs
public abstract BlogEntry GetPost (string username, string title);
/// <summary>
/// Post the specified username, title, content and visible.
/// Post the specified username, title, content, visible and allowedCircles.
/// </summary>
/// <param name="username">Username.</param>
/// <param name="title">Title.</param>
/// <param name="content">Content.</param>
/// <param name="visible">If set to <c>true</c> visible.</param>
/// <param name="allowedCircles">Allowed circles.</param>
public abstract long Post (string username, string title, string content, bool visible, long[] allowedCircles);
/// <summary>
/// Updates the post.
/// </summary>
@ -43,12 +45,15 @@ namespace Yavsc.Model.Blogs
/// <param name="title">Title.</param>
/// <param name="content">Content.</param>
/// <param name="visible">If set to <c>true</c> visible.</param>
/// <param name="allowedCircles">Allowed circles.</param>
public abstract void UpdatePost (long postid, string title, string content, bool visible, long[] allowedCircles);
/// <summary>
/// Finds the post.
/// </summary>
/// <returns>The post.</returns>
/// <param name="readersName">Readers name.</param>
/// <param name="pattern">Pattern.</param>
/// <param name="searchflags">Searchflags.</param>
/// <param name="pageIndex">Page index.</param>

View file

@ -22,12 +22,12 @@ using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.Google
namespace Yavsc.Model.Calendar
{
/// <summary>
/// Ask for A date.
/// </summary>
public class AskForADate
public class BookEdit
{
/// <summary>

View file

@ -1,5 +1,4 @@
//
// FreeDate.cs
// FreeDate.cs
//
// Author:
// Paul Schneider <paulschneider@free.fr>
@ -19,8 +18,9 @@
// 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;
using Yavsc.Model.Google;
namespace Yavsc.Model.Google
namespace Yavsc.Model.Calendar
{
/// <summary>
/// Free date.
@ -48,7 +48,7 @@ namespace Yavsc.Model.Google
/// <value>The location.</value>
public string Location { get; set; }
static FreeDateSet CreateFromCalAndQuery(CalendarEventList cal, AskForADate query)
static FreeDateSet CreateFromCalAndQuery(CalendarEventList cal, BookEdit query)
{
throw new NotImplementedException ();

View file

@ -1,3 +1,15 @@
2015-07-15 Paul Schneider <paul@pschneider.fr>
* ListItem.cs:
* Circle.cs:
* BlogHelper.cs:
* BlogManager.cs:
* BookEdit.cs:
* FreeDate.cs:
* BlogProvider.cs:
* YavscModel.csproj: Moves to Mono framework
2015-07-02 Paul Schneider <paul@pschneider.fr>
* ListItem.cs:

View file

@ -52,7 +52,8 @@ namespace Yavsc.Model.Circles
public string [] Members { get; set; }
/// <summary>
/// Union the specified that.
/// Merge the specified circle array into
/// an user name list.
/// </summary>
/// <param name="those">Those circle about to be merged.</param>
public static string [] Union (Circle []those)
@ -66,6 +67,11 @@ namespace Yavsc.Model.Circles
}
return content.ToArray ();
}
/// <summary>
/// Gets or sets a value indicating whether this instance is private.
/// </summary>
/// <value><c>true</c> if this instance is private; otherwise, <c>false</c>.</value>
public bool IsPrivate { get; set; }
}
}

View file

@ -22,10 +22,25 @@ using System;
namespace Yavsc.Model
{
/// <summary>
/// List item.
/// </summary>
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; }
}
}

View file

@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Yavsc.Model</RootNamespace>
<AssemblyName>YavscModel</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -74,7 +74,6 @@
<Compile Include="Google\SignIn.cs" />
<Compile Include="Google\CalendarList.cs" />
<Compile Include="Google\CalendarListEntry.cs" />
<Compile Include="Google\AskForADate.cs" />
<Compile Include="IRenderer.cs" />
<Compile Include="ITagHandler.cs" />
<Compile Include="IViewRenderer.cs" />
@ -124,7 +123,6 @@
<Compile Include="FrontOffice\Catalog\Billing\Price.cs" />
<Compile Include="OtherWebException.cs" />
<Compile Include="WorkFlow\Automate.cs" />
<Compile Include="Google\FreeDate.cs" />
<Compile Include="Google\CalendarEventList.cs" />
<Compile Include="Google\GDate.cs" />
<Compile Include="Google\Resource.cs" />
@ -160,6 +158,8 @@
<Compile Include="RolesAndMembers\LostPasswordModel.cs" />
<Compile Include="Messaging\SimpleMessage.cs" />
<Compile Include="ListItem.cs" />
<Compile Include="Calendar\BookEdit.cs" />
<Compile Include="Calendar\FreeDate.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>