Documentation et fiche préstataire

Une nouvelle page de doc : la page des fonctionalités, [Features.md](Features.md),
au format Markdown.

* p8-av4.jpg:
* p8-av4.l.jpg:
* p8-av4.xs.jpg: p8-av4

* Performer.ascx: Implémente la fiche préstataire, avec son éventuel
  lien vers le blog

* ITContentProvider.csproj: ...

* NpgsqlBlogProvider.cs: implémente le compteur de billet en base de
  données

* Presta.csproj:
* TestAPI.csproj:
* YavscClient.csproj:
* fortune.csproj:
* WebControls.csproj:
* SalesCatalog.csproj:
* NpgsqlMRPProviders.csproj:
* NpgsqlBlogProvider.csproj:
* NpgsqlContentProvider.csproj: ...

* README.md: mise à jour des priorités

* Yavsc.sln: ajout du fichier "Features.md" à la solution

* BlogProvider.cs: doc xml

* BlogManager.cs: implémente un accès au compteur de billet
vnext
Paul Schneider 9 years ago
parent dbcbf8b318
commit e8bf2dd8fa
32 changed files with 156 additions and 38 deletions

@ -1,3 +1,9 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* README.md: mise à jour des priorités
* Yavsc.sln: ajout du fichier "Features.md" à la solution
2015-11-30 Paul Schneider <paul@pschneider.fr>
* Makefile: Fixe: ne pas déployer sans hôte de destination

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* ITContentProvider.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* ITContentProvider.csproj: nouvelles configurations de

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\ITContentProvider.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,10 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* NpgsqlBlogProvider.cs: implémente le compteur de billet en
base de données
* NpgsqlBlogProvider.csproj: ...
2015-11-28 Paul Schneider <paul@pschneider.fr>
* NpgsqlBlogProvider.cs: xml doc

@ -15,11 +15,36 @@ namespace Npgsql.Web.Blog
/// </summary>
public class NpgsqlBlogProvider : BlogProvider
{
string applicationName;
string connectionString;
#region implemented abstract members of BlogProvider
public override long GetPublicPostCount (string bloggerName)
{
long result = -1;
using (NpgsqlConnection cnx = new NpgsqlConnection (connectionString))
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
cmd.CommandText = @"
Select count(*)
FROM blog b
LEFT OUTER JOIN blog_access a ON a.post_id = b._id
WHERE a.post_id IS NULL
AND b.visible = TRUE
AND b.username = :bname
AND b.applicationname = :app
";
cmd.Parameters.AddWithValue ("bname", bloggerName);
cmd.Parameters.AddWithValue ("app", applicationName);
cnx.Open ();
result = (long) cmd.ExecuteScalar ();
cnx.Close ();
}
return result;
}
/// <summary>
/// Updates the post.
/// </summary>

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\NpgsqlBlogProvider.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* NpgsqlContentProvider.csproj: ...
2015-11-30 Paul Schneider <paul@pschneider.fr>
* NpgsqlContentProvider.cs: Renseigne le code APE et la côte

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\WorkFlowProvider.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* NpgsqlMRPProviders.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* NpgsqlMRPProviders.csproj: nouvelles configurations de

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\NpgsqlMRPProviders.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: nouvelles configurations de déploiement

@ -20,7 +20,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -29,13 +28,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -3,14 +3,18 @@ yavsc
[doc-fr](http://yavsc.pschneider.fr/Blogs/UserPost/paul/Documentation)
# TODO FIRST
# à faire, par ordre de priorité
1) Implement a Skills provider
2) Create an `UserCardControl`
with quick access for users to his chat and the circle membership, and for admins to his roles, a blogentry count, and a link to the booking system
1) Créer un contrôle "bouton utilisateur" `UserNameControl`
avec
* un acces rapide à l'ajout au cercles perso
* pour les administrateur, une action "bloquer",
* le compteur de ses posts publiques
* Si c'est un préstataire, et si on est pas déjà dans un formulaire de reservation,
un lien vers la reservation de ses services
3) Api refatoring:
2) Refabrication de l'Api :
Concerning the blog entry edition, we only need Two methods:
@ -20,4 +24,5 @@ yavsc
* `long Post(BlogEntry be)`, used to create or update a given or not
blog entry content. the returned value is the entry id at creation, or 0.
4) UI themes
3) Corriger un peu le thème clair (fond de titres trop sombre)

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* SalesCatalog.csproj: ...
2015-11-28 Paul Schneider <paul@pschneider.fr>
* XmlCatalogProvider.cs: Le catalogue de vente implémente

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\SalesCatalog.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: nouvelles configurations de déploiement

@ -20,7 +20,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -29,13 +28,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* WebControls.csproj: ...
2015-11-30 Paul Schneider <paul@pschneider.fr>
* ResultPages.cs: ajoute une classe css au bloc de liens vers

@ -21,7 +21,6 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<DocumentationFile>bin\Debug\Yavsc.WebControls.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -30,13 +29,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

@ -28,6 +28,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
Makefile = Makefile
README.md = README.md
Features.md = Features.md
EndProjectSection
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "pkg", "pkg\pkg.mdproj", "{C6DBD1DC-B619-4DC7-BC92-15693508541E}"

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* fortune.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* fortune.csproj: nouvelles configurations de déploiement

@ -20,7 +20,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -29,13 +28,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

@ -1,3 +1,12 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* p8-av4.jpg:
* p8-av4.l.jpg:
* p8-av4.xs.jpg: p8-av4
* Performer.ascx: Implémente la fiche préstataire, avec son
éventuel lien vers le blog
2015-11-30 Paul Schneider <paul@pschneider.fr>
* SkillController.cs:

@ -0,0 +1,28 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PerformerProfile>" %>
<img src="<%= Model.Avatar %>" alt="" class="avatar">
<div class="performer">
<h2><%=Html.Encode(Model.UserName)%></h2>
<%=Html.Partial("RateUserSkillControl", Model) %>
</div><br>
E-mail: &lt;<%=Html.Encode(Model.EMail)%>&gt;
<% if (Model.Skills==null) { %>
<%= Html.Translate("") %>
<% } else
foreach (var userskill in Model.Skills) { %>
<li class="skillname" data-sid="<%= userskill.Id %>">
<%= userskill.SkillName %>
<div data-type="comment">&quot;<%= userskill.Comment %>&quot;</div>
<%=Html.Partial("RateUserSkillControl", userskill) %>
</li>
<% } %>
<% if (Model.HasCalendar()) { %>
<i class="fa fa-calendar-check" ><%= Html.Translate("Google_calendar") %> : <%= Html.Translate("available") %>.</i><br>
<% } %>
<% if (BlogManager.GetPostCounter(Model.UserName)>0) { %>
<a href="<%=Url.RouteUrl("Blogs",new { user = Model.UserName } )%>">
<span class="fa-stack fa-lg">
<i class="fa fa-square-o fa-stack-2x"></i>
<i class="fa fa-folder fa-stack-1x"></i>
</span></a>
<% } %>

@ -95,6 +95,11 @@ namespace Yavsc.Model.Blogs
{
Provider.UpdatePost (postid, title, content, visible, cids);
}
/// <summary>
/// Updates the post.
/// </summary>
/// <param name="be">Be.</param>
public static void UpdatePost (BlogEntry be)
{
Provider.UpdatePost (be);
@ -203,7 +208,11 @@ namespace Yavsc.Model.Blogs
Provider.Tag (postid, tag);
}
/// <summary>
/// Rate the specified postid and rate.
/// </summary>
/// <param name="postid">Postid.</param>
/// <param name="rate">Rate.</param>
public static void Rate (long postid, int rate)
{
Provider.Rate (postid, rate);
@ -323,6 +332,15 @@ namespace Yavsc.Model.Blogs
var r = bec.Where (x => CanView (x as BlogEntry, u));
return r;
}
/// <summary>
/// Gets the post counter.
/// </summary>
/// <returns>The count.</returns>
/// <param name="bloggerName">Blogger name.</param>
public static long GetPostCounter(string bloggerName)
{
return Provider.GetPublicPostCount (bloggerName);
}
}
}

@ -12,6 +12,13 @@ namespace Yavsc.Model.Blogs
/// </summary>
public abstract class BlogProvider: ProviderBase
{
/// <summary>
/// Gets the public post count.
/// </summary>
/// <returns>The public post count.</returns>
/// <param name="bloggerName">Blogger name.</param>
public abstract long GetPublicPostCount (string bloggerName);
/// <summary>
/// Gets the post.
/// </summary>

@ -1,3 +1,9 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* BlogProvider.cs: doc xml
* BlogManager.cs: implémente un accès au compteur de billet
2015-11-30 Paul Schneider <paul@pschneider.fr>
* PerformerProfile.cs: doc xml

@ -1,3 +1,7 @@
2015-11-30 Paul Schneider <paul@pschneider.fr>
* YavscClient.csproj: ...
2015-11-26 Paul Schneider <paul@pschneider.fr>
* YavscClient.csproj: nouvelles configurations de déploiement

@ -22,7 +22,6 @@
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DocumentationFile>bin\Debug\yavscclient.xml</DocumentationFile>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -32,13 +31,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'TotemPre|AnyCPU' ">
<Optimize>false</Optimize>

Loading…