Many changes :
* JsonReaderError.aspx: display a nice json conversion error * CalendarEntryList.cs: new Google data for the calendar entries * JsonReaderError.cs: Json error model * README.md: Documentation url * NpgsqlBlogProvider.cs: Update the blog post title * BlogsController.cs: - Updating the blog post title - bug fix rendering the avatar * FrontOfficeController.cs: - the client cannot modify its estimation * GoogleController.cs: - implementing the calendar entries retrieval * HomeController.cs: - the home start page from configuration parameter named "StartPage" * Global.asax.cs: - back to a clean global.asax * style.css: showing the main area with a background transparent color * Post.aspx: Bug fix: the message was displayed two times (we keep the one from app.master) * UserPost.aspx: the blog title comes from the poster profile found in ViewData * DateQuery.aspx: implementing the date query * Web.config: the start page now comes from Web.config * Web.csproj: the Sql db creation script should not be deployed, neither as package.config * BlogManager.cs: updating the blog post title * BlogProvider.cs: yavscModel/Blogs/BlogManager.cs * YavscModel.csproj: new cs files to compile * App.master: returning from the Google login
This commit is contained in:
parent
6809e3dfe2
commit
57a473aff8
20 changed files with 163 additions and 57 deletions
|
|
@ -39,9 +39,9 @@ namespace Yavsc.Model.Blogs
|
|||
{
|
||||
Provider.Post(username, title, content, visible );
|
||||
}
|
||||
public static void UpdatePost(long postid, string content, bool visible)
|
||||
public static void UpdatePost(long postid, string title, string content, bool visible)
|
||||
{
|
||||
Provider.UpdatePost(postid, content, visible);
|
||||
Provider.UpdatePost(postid, title, content, visible);
|
||||
}
|
||||
public static BlogEntryCollection FindPost (string pattern, FindBlogEntryFlags searchflags, int pageIndex, int pageSize, out int totalRecords)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Yavsc.Model.Blogs
|
|||
public abstract long GetPostId (string username, string title);
|
||||
|
||||
public abstract long Post (string username, string title, string content, bool visible);
|
||||
public abstract void UpdatePost (long postid, string content, bool visible);
|
||||
public abstract void UpdatePost (long postid, string title, string content, bool visible);
|
||||
public abstract BlogEntryCollection FindPost (string pattern, FindBlogEntryFlags searchflags,
|
||||
int pageIndex, int pageSize, out int totalRecords);
|
||||
public abstract void RemovePost (string username, string title);
|
||||
|
|
|
|||
30
yavscModel/Google/CalendarEntryList.cs
Normal file
30
yavscModel/Google/CalendarEntryList.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//
|
||||
// CalendarEntry.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2015 Paul Schneider
|
||||
//
|
||||
// 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.Google
|
||||
{
|
||||
public class CalendarEntryList
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
31
yavscModel/Google/JsonReaderError.cs
Normal file
31
yavscModel/Google/JsonReaderError.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
//
|
||||
// JsonReaderError.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paulschneider@free.fr>
|
||||
//
|
||||
// Copyright (c) 2015 Paul Schneider
|
||||
//
|
||||
// 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.Google
|
||||
{
|
||||
public class JsonReaderError
|
||||
{
|
||||
public string Text { get; set; }
|
||||
public Exception Excepx { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -91,6 +91,8 @@
|
|||
<Compile Include="Google\CalendarList.cs" />
|
||||
<Compile Include="Google\CalendarListEntry.cs" />
|
||||
<Compile Include="Google\AskForADate.cs" />
|
||||
<Compile Include="Google\JsonReaderError.cs" />
|
||||
<Compile Include="Google\CalendarEntryList.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue