Fixes the Site wize skills page,

makes use of Mono.Web.Xdt at deploy time

* PayPalController.cs: implements a Paypal controller

* Abort.aspx: Paypal paiement aborting page

* Commit.aspx: Paypal paiement commit page

* IPN.aspx: Paypal paiement notification page

* Index.aspx: Paypal paiement form page

* WebTasks.dll: thanks to he Marcelo Zabani's coding blog:
<https://mzabani.wordpress.com/2013/09/24/mono-asp-net-project-deployment-with-web-config-xdt-transformations/>

* .gitignore: ignore my new config transformation sources

* pkg.mdproj:
* Presta.csproj:
* TestAPI.csproj:
* fortune.csproj:
* SalesCatalog.csproj:
* ITContentProvider.csproj:
* NpgsqlMRPProviders.csproj:
* NpgsqlBlogProvider.csproj:
* NpgsqlContentProvider.csproj: adds a build target named "Lua"

* Makefile: instead of `deploy`, start Xsp, in the `dist` folder

* Yavsc.sln:
* YavscModel.csproj:
* WebControls.csproj:
* YavscClient.csproj: Lua config

* yavsc.rate.js: refactoring, still needs a cleanning

* RateSkillControl.ascx: give it the `rate-site-skill` `data-type`
  html attribute

* RateUserSkillControl.ascx: cleans an obsolete code chunk

* Web.csproj: Fixes the missing RateSkillControl at deploy time,
adds my deployment config
main
Paul Schneider 10 years ago
parent 47285f8b83
commit 029a80e2c4
44 changed files with 574 additions and 281 deletions

11
.gitignore vendored

@ -10,11 +10,12 @@ dist
bower_components bower_components
node_modules node_modules
svg svg
web/Web.config.prod web/bfiles
web/Web.config.dev web/App_Themes/style.totem.css
web/Web.config.lua web/Web.Debug.config
web/Web.Release.config
web/Web.Lua.config
.nuget .nuget
.gitignore .gitignore
web/bfiles
web/App_Themes/style.totem.css

@ -1,3 +1,12 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* .gitignore: ignore my new config transformation sources
* Makefile: instead of `deploy`, start Xsp, in the `dist`
folder
* Yavsc.sln: Lua config
2015-11-18 Paul Schneider <paul@pschneider.fr> 2015-11-18 Paul Schneider <paul@pschneider.fr>
* Makefile: adds my deployment targets * Makefile: adds my deployment targets

@ -0,0 +1,4 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* ITContentProvider.csproj: adds a build target named "Lua"

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

@ -37,16 +37,14 @@ ddir:
deploy: ddir build deploy: ddir build
rm -rf $(LYDESTDIR) rm -rf $(LYDESTDIR)
xbuild /p:Configuration=$(CONFIG) /p:SkipCopyUnchangedFiles=$(COPYUNCHANGED) /p:DeployDir=../$(LDYDESTDIR) /t:Deploy web/Web.csproj xbuild /p:Configuration=$(CONFIG) /p:SkipCopyUnchangedFiles=$(COPYUNCHANGED) /p:DeployDir=../$(LDYDESTDIR) /t:Deploy web/Web.csproj
mv $(LDYDESTDIR)/Web.config $(LDYDESTDIR)/Web.config.new
rsync_% : HOST = $(HOST_$@) rsync_% : HOST = $(HOST_$@)
rsync_% : DESTDIR = $(DESTDIR_$@) rsync_% : DESTDIR = $(DESTDIR_$@)
rsync_% : deploy rsync_% : deploy
echo "!Deploying to $(HOST)!" echo "!Deploying to $(HOST) using $(CONFIG) config!"
$(RSYNCCMD) dist/web/$(CONFIG)/ root@$(HOST):$(DESTDIR) $(RSYNCCMD) dist/web/$(CONFIG)/ root@$(HOST):$(DESTDIR)
ssh root@$(HOST) "service apache2 reload"
build: build:
xbuild /p:Configuration=$(CONFIG) /t:Build Yavsc.sln xbuild /p:Configuration=$(CONFIG) /t:Build Yavsc.sln
@ -61,8 +59,8 @@ distclean: clean
sourcepkg: sourcepkg:
git archive --format=tar --prefix=yavsc-$(CONFIG)/ $(CONFIG) | bzip2 > yavsc-$(CONFIG).tar.bz2 git archive --format=tar --prefix=yavsc-$(CONFIG)/ $(CONFIG) | bzip2 > yavsc-$(CONFIG).tar.bz2
debug: build start_xsp: deploy
(cd web; export MONO_OPTIONS=--debug; xsp4 --port 8080) (cd $(LDYDESTDIR); export MONO_OPTIONS=--debug; xsp4 --port 8080)
xmldoc: $(patsubst %,web/bin/%,$(DOCASSBS)) xmldoc: $(patsubst %,web/bin/%,$(DOCASSBS))
mdoc-update $^ $(patsubst %.dll,-i%.xml,$^) --out web/xmldoc mdoc-update $^ $(patsubst %.dll,-i%.xml,$^) --out web/xmldoc
@ -73,7 +71,7 @@ htmldoc: xmldoc
docdeploy-prod: htmldoc docdeploy-prod: htmldoc
rsync -ravu web/htmldoc root@$(PRODHOSTDIR) rsync -ravu web/htmldoc root@$(PRODHOSTDIR)
rsync_lua: rsync_lua: CONFIG = Lua
rsync_yavsc: rsync_yavsc:

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* NpgsqlBlogProvider.csproj: adds a build target named "Lua"
2015-11-14 Paul Schneider <paul@pschneider.fr> 2015-11-14 Paul Schneider <paul@pschneider.fr>
* NpgsqlBlogProvider.cs: Bill ranking, and delivering hidden * NpgsqlBlogProvider.cs: Bill ranking, and delivering hidden

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

@ -1,3 +1,8 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* NpgsqlContentProvider.csproj: adds a build target named
"Lua"
2015-11-17 Paul Schneider <paul@pschneider.fr> 2015-11-17 Paul Schneider <paul@pschneider.fr>
* NpgsqlSkillProvider.cs: User's skills profile object now * NpgsqlSkillProvider.cs: User's skills profile object now

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

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* NpgsqlMRPProviders.csproj: adds a build target named "Lua"
2015-11-11 Paul Schneider <paul@pschneider.fr> 2015-11-11 Paul Schneider <paul@pschneider.fr>
* NpgsqlProfileProvider.cs: return the default value in the * NpgsqlProfileProvider.cs: return the default value in the

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

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: adds a build target named "Lua"
2015-08-20 Paul Schneider <paul@pschneider.fr> 2015-08-20 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: The new `Presta` project ... * Presta.csproj: The new `Presta` project ...

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

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* SalesCatalog.csproj: adds a build target named "Lua"
2015-11-04 Paul Schneider <paul@pschneider.fr> 2015-11-04 Paul Schneider <paul@pschneider.fr>
* TestCatalogInit.cs: * TestCatalogInit.cs:

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

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: adds a build target named "Lua"
2015-11-14 Paul Schneider <paul@pschneider.fr> 2015-11-14 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: nothing to view * TestAPI.csproj: nothing to view

@ -20,6 +20,7 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause> <ConsolePause>false</ConsolePause>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType> <DebugType>full</DebugType>
@ -28,6 +29,12 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause> <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>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* WebControls.csproj: Lua config
2015-11-17 Paul Schneider <paul@pschneider.fr> 2015-11-17 Paul Schneider <paul@pschneider.fr>
* RateControl.cs: refactorization * RateControl.cs: refactorization

@ -8,8 +8,8 @@
<ProjectGuid>{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}</ProjectGuid> <ProjectGuid>{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<RootNamespace>WebControls</RootNamespace> <RootNamespace>WebControls</RootNamespace>
<AssemblyName>Yavsc.WebControls</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<AssemblyName>Yavsc.WebControls</AssemblyName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@ -30,6 +30,11 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause> <ConsolePause>false</ConsolePause>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Web.Extensions" /> <Reference Include="System.Web.Extensions" />

@ -40,56 +40,80 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Lua|Any CPU = Lua|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.Build.0 = Debug|Any CPU {42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.ActiveCfg = Release|Any CPU {42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.Build.0 = Release|Any CPU {42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.Build.0 = Release|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Debug|Any CPU.Build.0 = Debug|Any CPU {59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Lua|Any CPU.Build.0 = Lua|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.ActiveCfg = Release|Any CPU {59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.Build.0 = Release|Any CPU {59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.Build.0 = Release|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {68F5B80A-616E-4C3C-91A0-828AA40000BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Debug|Any CPU.Build.0 = Debug|Any CPU {68F5B80A-616E-4C3C-91A0-828AA40000BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Lua|Any CPU.Build.0 = Lua|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.ActiveCfg = Release|Any CPU {68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.Build.0 = Release|Any CPU {68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.Build.0 = Release|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6A312228-9641-478D-916F-4681CC65A35D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Debug|Any CPU.Build.0 = Debug|Any CPU {6A312228-9641-478D-916F-4681CC65A35D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Lua|Any CPU.Build.0 = Lua|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.ActiveCfg = Release|Any CPU {6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.Build.0 = Release|Any CPU {6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.Build.0 = Release|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {77044C92-D2F1-45BD-80DD-AA25B311B027}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Debug|Any CPU.Build.0 = Debug|Any CPU {77044C92-D2F1-45BD-80DD-AA25B311B027}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Lua|Any CPU.Build.0 = Lua|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.ActiveCfg = Release|Any CPU {77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.Build.0 = Release|Any CPU {77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.Build.0 = Release|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {821FF72D-9F4B-4A2C-B95C-7B965291F119}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Debug|Any CPU.Build.0 = Debug|Any CPU {821FF72D-9F4B-4A2C-B95C-7B965291F119}.Debug|Any CPU.Build.0 = Debug|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Lua|Any CPU.Build.0 = Lua|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.ActiveCfg = Release|Any CPU {821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.ActiveCfg = Release|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.Build.0 = Release|Any CPU {821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.Build.0 = Release|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {90BF2234-7252-4CD5-B2A4-17501B19279B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Debug|Any CPU.Build.0 = Debug|Any CPU {90BF2234-7252-4CD5-B2A4-17501B19279B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Lua|Any CPU.Build.0 = Lua|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.ActiveCfg = Release|Any CPU {90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.Build.0 = Release|Any CPU {90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.Build.0 = Release|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9D7D892E-9B77-4713-892D-C26E1E944119}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Debug|Any CPU.Build.0 = Debug|Any CPU {9D7D892E-9B77-4713-892D-C26E1E944119}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Lua|Any CPU.Build.0 = Lua|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.Build.0 = Release|Any CPU {9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.Build.0 = Release|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.Build.0 = Debug|Any CPU {B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.ActiveCfg = Release|Any CPU {B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.Build.0 = Release|Any CPU {B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.Build.0 = Release|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Lua|Any CPU.Build.0 = Lua|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.ActiveCfg = Release|Any CPU {BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.Build.0 = Release|Any CPU {BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.Build.0 = Release|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C6DBD1DC-B619-4DC7-BC92-15693508541E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Release|Any CPU.ActiveCfg = Release|Any CPU {C6DBD1DC-B619-4DC7-BC92-15693508541E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C6E9E91B-97D3-48D9-8AA7-05356929E162}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Debug|Any CPU.Build.0 = Debug|Any CPU {C6E9E91B-97D3-48D9-8AA7-05356929E162}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Lua|Any CPU.Build.0 = Lua|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.ActiveCfg = Release|Any CPU {C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.Build.0 = Release|Any CPU {C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.Build.0 = Release|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Debug|Any CPU.Build.0 = Debug|Any CPU {EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Lua|Any CPU.Build.0 = Lua|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.ActiveCfg = Release|Any CPU {EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.Build.0 = Release|Any CPU {EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* pkg.mdproj: adds a build target named "Lua"
2015-06-09 Paul Schneider <paul@pschneider.fr> 2015-06-09 Paul Schneider <paul@pschneider.fr>
* pkg.mdproj: drops the Web tarball * pkg.mdproj: drops the Web tarball

@ -20,5 +20,7 @@
</Package> </Package>
</Packages> </Packages>
</Packages> </Packages>
<Configuration Condition=" '$(Configuration)' == '' ">Lua</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* fortune.csproj: adds a build target named "Lua"
2015-08-04 Paul Schneider <paul@pschneider.fr> 2015-08-04 Paul Schneider <paul@pschneider.fr>
* MyClass.cs: refactoring from Yavsc.Model * MyClass.cs: refactoring from Yavsc.Model

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

@ -1,3 +1,30 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* PayPalController.cs: implements a Paypal controller
* Abort.aspx: Paypal paiement aborting page
* Commit.aspx: Paypal paiement commit page
* IPN.aspx: Paypal paiement notification page
* Index.aspx: Paypal paiement form page
* WebTasks.dll: thanks to he Marcelo Zabani's coding blog:
<https://mzabani.wordpress.com/2013/09/24/mono-asp-net-project-deployment-with-web-config-xdt-transformations/>
* yavsc.rate.js: refactoring, still needs a cleanning
* RateSkillControl.ascx: give it the `rate-site-skill`
`data-type` html attribute
* RateUserSkillControl.ascx: cleans an obsolete code chunk
* Web.csproj: Fixes the missing RateSkillControl at deploy
time,
adds my deployment config
2015-11-18 Paul Schneider <paul@pschneider.fr> 2015-11-18 Paul Schneider <paul@pschneider.fr>
* style.css: this floating breaks my dark style * style.css: this floating breaks my dark style

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Yavsc.Controllers
{
/// <summary>
/// Pay pal controller.
/// </summary>
public class PayPalController : Controller
{
/// <summary>
/// Index this instance.
/// </summary>
public ActionResult Index()
{
return View ();
}
/// <summary>
/// Commit this instance.
/// </summary>
public ActionResult Commit()
{
return View ();
}
/// <summary>
/// Abort this instance.
/// </summary>
public ActionResult Abort()
{
return View ();
}
/// <summary>
/// IP this instance.
/// </summary>
public ActionResult IPN()
{
return View ();
}
}
}

@ -51,7 +51,7 @@
}).call(this); }).call(this);
$(document).ready(function(){ $(document).ready(function(){
$('[data-type="rate-skill"]').rate({target: 'Skill/RateSkill'}); $('[data-type="rate-site-skill"]').rate({target: 'Skill/RateSkill'});
$('[data-type="rate-user-skill"]').rate({target: 'Skill/RateUserSkill'}); $('[data-type="rate-user-skill"]').rate({target: 'Skill/RateUserSkill'});
$('[data-type="rate-bill"]').rate({target: 'Blogs/Rate'}); $('[data-type="rate-bill"]').rate({target: 'Blogs/Rate'});
}); });

@ -1,6 +1,5 @@
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %> <%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
<% Rate = Model.Rate; %> <div data-id="<%=Model.Id%>" data-type="rate-site-skill" ><% int i = 0; for (; i<NbFilled; i++) {
<div data-id="<%=Model.Id%>" data-type="rate-skill" ><% int i = 0; for (; i<NbFilled; i++) {
%><i class="fa fa-star" ></i><% } %><i class="fa fa-star" ></i><% }
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; } %><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }
%><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% } %><% for (int j=0; j<NbEmpty; j++, i++ ) { %><i class="fa fa-star-o"></i><% }

@ -1,5 +1,4 @@
<%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %> <%@ Control Language="C#" Inherits="Yavsc.RateControl<IRating>" %>
<% Rate = Model.Rate; %>
<div data-id="<%=Model.Id%>" data-type="rate-user-skill" ><% int i = 0; for (; i<NbFilled; i++) { <div data-id="<%=Model.Id%>" data-type="rate-user-skill" ><% int i = 0; for (; i<NbFilled; i++) {
%><i class="fa fa-star" ></i><% } %><i class="fa fa-star" ></i><% }
%><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; } %><% if (HasHalf) { %><i class="fa fa-star-half-o"></i><% i++; }

@ -18,10 +18,10 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
$('#btncreate').click( function() { $('#btncreate').click( function() {
Skills.createSkill(sname, function(sid) { var $sname = $('#SkillName').val();
var sname = $('#SkillName').val(); Skills.createSkill($sname, function(sid) {
console.log(' Skill created id : '+sid); console.log(' Skill created id : '+sid);
$('<li>'+sname+'</li>').data('sid',sid).addClass('skillname').appendTo('#skills'); $('<li>'+$sname+'</li>').data('sid',sid).addClass('skillname').appendTo('#skills');
$('#SkillName').val(''); $('#SkillName').val('');
}); } ); }); }); } ); });
</script> </script>

@ -0,0 +1,11 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="initContent" ContentPlaceHolderID="init" runat="server">
</asp:Content>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="overHeaderOneContent" ContentPlaceHolderID="overHeaderOne" runat="server">
</asp:Content>
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

@ -0,0 +1,11 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="initContent" ContentPlaceHolderID="init" runat="server">
</asp:Content>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="overHeaderOneContent" ContentPlaceHolderID="overHeaderOne" runat="server">
</asp:Content>
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

@ -0,0 +1,11 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="initContent" ContentPlaceHolderID="init" runat="server">
</asp:Content>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="overHeaderOneContent" ContentPlaceHolderID="overHeaderOne" runat="server">
</asp:Content>
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

@ -0,0 +1,22 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<!-- <asp:Content ID="initContent" ContentPlaceHolderID="init" runat="server">
</asp:Content>
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="overHeaderOneContent" ContentPlaceHolderID="overHeaderOne" runat="server">
</asp:Content>
<asp:Content ID="headerContent" ContentPlaceHolderID="header" runat="server">
</asp:Content> -->
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="UP63P5W35LV7W">
<table>
<tr><td><input type="hidden" name="on0" value="note">note</td></tr><tr><td><input type="text" name="os0" maxlength="200"></td></tr>
</table>
<input type="image" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal, le réflexe sécurité pour payer en ligne">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</asp:Content>

@ -92,32 +92,37 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
<membership defaultProvider="NpgsqlMembershipProvider" userIsOnlineTimeWindow="1"> <membership defaultProvider="NpgsqlMembershipProvider" userIsOnlineTimeWindow="1">
<providers> <providers>
<clear /> <clear />
<add name="NpgsqlMembershipProvider" type="Npgsql.Web.NpgsqlMembershipProvider, NpgsqlMRPProviders" connectionStringName="yavsc" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" <add name="NpgsqlMembershipProvider" type="Npgsql.Web.NpgsqlMembershipProvider, NpgsqlMRPProviders" connectionStringName="yavsc" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" autogenerateschema="false" />
minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" autogenerateschema="false" />
</providers> </providers>
</membership> </membership>
<roleManager enabled="true" defaultProvider="NpgsqlRoleProvider"> <roleManager enabled="true" defaultProvider="NpgsqlRoleProvider">
<providers> <providers>
<clear /> <clear />
<add name="NpgsqlRoleProvider" connectionStringName="yavsc" applicationName="/" type="Npgsql.Web.NpgsqlRoleProvider, NpgsqlMRPProviders" autogenerateschema="false" /> <add name="NpgsqlRoleProvider" connectionStringName="yavsc"
applicationName="/" type="Npgsql.Web.NpgsqlRoleProvider, NpgsqlMRPProviders"
autogenerateschema="false" />
</providers> </providers>
</roleManager> </roleManager>
<userNameManager defaultProvider="NpsqlUserNameProvider"> <userNameManager defaultProvider="NpsqlUserNameProvider">
<providers> <providers>
<add name="NpsqlUserNameProvider" connectionStringName="yavsc" applicationName="/" type="Npgsql.Web.RolesAndMembers.NpgsqlUserNameProvider, NpgsqlMRPProviders" autogenerateschema="false"> <add name="NpsqlUserNameProvider" connectionStringName="yavsc"
applicationName="/" type="Npgsql.Web.RolesAndMembers.NpgsqlUserNameProvider, NpgsqlMRPProviders"
autogenerateschema="false">
</add> </add>
</providers> </providers>
</userNameManager> </userNameManager>
<workflow defaultProvider="ITProvider"> <workflow defaultProvider="ITProvider">
<providers> <providers>
<clear /> <clear />
<add name="ITProvider" type="Yavsc.ITCPNpgsqlProvider, ITContentProvider" applicationName="/" connectionStringName="yavsc" /> <add name="ITProvider" type="Yavsc.ITCPNpgsqlProvider, ITContentProvider" applicationName="/"
connectionStringName="yavsc" />
</providers> </providers>
</workflow> </workflow>
<profile defaultProvider="NpgsqlProfileProvider"> <profile defaultProvider="NpgsqlProfileProvider">
<providers> <providers>
<clear /> <clear />
<add name="NpgsqlProfileProvider" type="Npgsql.Web.NpgsqlProfileProvider, NpgsqlMRPProviders" connectionStringName="yavsc" applicationName="/" description="ProfileProvider for yavsc" /> <add name="NpgsqlProfileProvider" type="Npgsql.Web.NpgsqlProfileProvider, NpgsqlMRPProviders"
connectionStringName="yavsc" applicationName="/" description="ProfileProvider for yavsc" />
</providers> </providers>
<properties> <properties>
<add name="Name" /> <add name="Name" />
@ -174,7 +179,7 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
</add> </add>
</providers> </providers>
</skillProviders> </skillProviders>
<!-- <machineKey validationKey="13CA2E37A5A99AD8CE4A6B895BAF0ED3A022AA584B8D922256BA072189CEB085EEB4E573CA833D9B34FBF68687F6A6B3E008FB4EB67585A4D90551B9D36D42A1" decryptionKey="DA89CC83F6FB2EB12D5929DABC89299AC3928E0751705D33D02DB4162ED56536" validation="SHA1" decryption="AES" /> --> <!-- <machineKey validationKey="" decryptionKey="" validation="SHA1" decryption="AES" /> -->
<!--- <sessionState cookieless="true" regenerateExpiredSessionId="true" timeout="120"/> --> <!--- <sessionState cookieless="true" regenerateExpiredSessionId="true" timeout="120"/> -->
<trust level="High" /> <trust level="High" />
<catalog defaultProvider="XmlCatalogProvider"> <catalog defaultProvider="XmlCatalogProvider">
@ -211,11 +216,6 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
be allowed in shared hosting environments. --> be allowed in shared hosting environments. -->
<!--<servicePointManager checkCertificateRevocationList="true"/>--> <!--<servicePointManager checkCertificateRevocationList="true"/>-->
</settings> </settings>
<mailSettings>
<smtp deliveryMethod="network" from="paulschneider@free.fr">
<network host="smtp.free.fr" port="25" defaultCredentials="false" />
</smtp>
</mailSettings>
</system.net> </system.net>
<uri> <uri>
<!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names), <!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
@ -225,7 +225,8 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
<iriParsing enabled="true" /> <iriParsing enabled="true" />
</uri> </uri>
<authentication mode="Forms"> <authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="30" name=".ASPXFORM$" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Index.aspx" enableCrossAppRedirects="false" /> <forms loginUrl="~/Account/Login" timeout="30" name=".ASPXFORM$" path="/"
requireSSL="false" slidingExpiration="true" defaultUrl="Index.aspx" enableCrossAppRedirects="false" />
</authentication> </authentication>
<!-- PayPal SDK settings --> <!-- PayPal SDK settings -->
<paypal> <paypal>
@ -236,9 +237,9 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
<!-- (miliseconds) = 30s --> <!-- (miliseconds) = 30s -->
<add name="requestRetries" value="1" /> <add name="requestRetries" value="1" />
<!-- --> <!-- -->
<add name="clientId" value="A9S6jrem3H0gdj8tQ2q1ahSCU38tAJRyiro7eED13h3Syn6C9ZSKSRkl" /> <add name="clientId" value="[YOUR_PAYPAL_ID]" />
<!-- --> <!-- -->
<add name="clientSecret" value="PLF77VGTZGGSSZAY" /> <add name="clientSecret" value="[YOUR_PAYPAL_SECRET]" />
<!-- --> <!-- -->
</settings> </settings>
</paypal> </paypal>
@ -257,15 +258,14 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
</root> </root>
</log4net> </log4net>
<connectionStrings> <connectionStrings>
<add name="yavsc" connectionString="Server=127.0.0.1;Port=5432;Database=YavscDev;User Id=yavscdev;Password=admin;" providerName="Npgsql" /> <add name="yavsc" connectionString="[YOUR_CONNECTION_STRING]" providerName="Npgsql" />
</connectionStrings> </connectionStrings>
<appSettings> <appSettings>
<!-- <add key="MonoServerDefaultIndexFiles" value="Index,index.html,Index.aspx" /> --> <!-- <add key="MonoServerDefaultIndexFiles" value="Index,index.html,Index.aspx" /> -->
<add key="WorkflowContentProviderClass" value="yavsc.NpgsqlContentProvider" /> <add key="WorkflowContentProviderClass" value="yavsc.NpgsqlContentProvider" />
<add key="SmtpServer" value="smtp.free.fr" /> <add key="AdminEMail" value="[YOUR_ADMIN_EMAIL]" />
<add key="AdminEMail" value="paul@pschneider.fr" /> <add key="OwnerEMail" value="[YOUR_OWNER_EMAIL]" />
<add key="OwnerEMail" value="paul@pschneider.fr" /> <add key="Name" value="[YOUR_SITE_NAME]" />
<add key="Name" value="yavsc" />
<add key="DefaultAvatar" value="/App_Themes/images/noavatar.png;image/png" /> <add key="DefaultAvatar" value="/App_Themes/images/noavatar.png;image/png" />
<add key="RegistrationMessage" value="/RegistrationMail.txt" /> <add key="RegistrationMessage" value="/RegistrationMail.txt" />
<!-- <add key="ClientValidationEnabled" value="true" /> <!-- <add key="ClientValidationEnabled" value="true" />

@ -10,6 +10,7 @@
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<RootNamespace>Yavsc</RootNamespace> <RootNamespace>Yavsc</RootNamespace>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<AssemblyName>Yavsc</AssemblyName>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@ -22,7 +23,6 @@
<AspNet> <AspNet>
<AspNet DisableCodeBehindGeneration="True" /> <AspNet DisableCodeBehindGeneration="True" />
</AspNet> </AspNet>
<AssemblyName>Yavsc</AssemblyName>
<CustomCommands> <CustomCommands>
<CustomCommands> <CustomCommands>
<Command type="BeforeExecute" /> <Command type="BeforeExecute" />
@ -38,15 +38,12 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause> <ConsolePause>false</ConsolePause>
<AssemblyName>Yavsc</AssemblyName>
<DocumentationFile>bin\Yavsc.xml</DocumentationFile> <DocumentationFile>bin\Yavsc.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'MVC2|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Lua|AnyCPU' ">
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin</OutputPath> <OutputPath>bin</OutputPath>
<DefineConstants>DEBUG,TEST,WEBAPI</DefineConstants>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<AssemblyName>maeweb</AssemblyName>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
@ -105,6 +102,9 @@
<Reference Include="log4net"> <Reference Include="log4net">
<HintPath>..\packages\log4net.2.0.4\lib\net45-full\log4net.dll</HintPath> <HintPath>..\packages\log4net.2.0.4\lib\net45-full\log4net.dll</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.Web.XmlTransform">
<HintPath>..\packages\Mono.Web.Xdt.1.0.0\lib\Net40\Microsoft.Web.XmlTransform.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="Admin\" /> <Folder Include="Admin\" />
@ -115,7 +115,6 @@
<Folder Include="App_Themes\dark\" /> <Folder Include="App_Themes\dark\" />
<Folder Include="App_Data\" /> <Folder Include="App_Data\" />
<Folder Include="App_Themes\images\" /> <Folder Include="App_Themes\images\" />
<Folder Include="App_Data\Sql\" />
<Folder Include="App_Themes\clear\" /> <Folder Include="App_Themes\clear\" />
<Folder Include="avatars\" /> <Folder Include="avatars\" />
<Folder Include="backup\" /> <Folder Include="backup\" />
@ -209,6 +208,7 @@
<Compile Include="Helpers\Google\GoogleHelpers.cs" /> <Compile Include="Helpers\Google\GoogleHelpers.cs" />
<Compile Include="AuthorizeAttribute.cs" /> <Compile Include="AuthorizeAttribute.cs" />
<Compile Include="ApiControllers\SkillController.cs" /> <Compile Include="ApiControllers\SkillController.cs" />
<Compile Include="Controllers\PayPalController.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Views\Web.config" /> <Content Include="Views\Web.config" />
@ -489,6 +489,15 @@
<Content Include="Views\FrontOffice\UserSkills.aspx" /> <Content Include="Views\FrontOffice\UserSkills.aspx" />
<Content Include="Views\FrontOffice\UserCard.ascx" /> <Content Include="Views\FrontOffice\UserCard.ascx" />
<Content Include="App_Code\Global.asax.cs" /> <Content Include="App_Code\Global.asax.cs" />
<Content Include="Views\FrontOffice\RateSkillControl.ascx" />
<Content Include="Views\FrontOffice\RateUserSkillControl.ascx" />
<Content Include="Web.Release.config" />
<Content Include="Views\PayPal\Index.aspx" />
<Content Include="Views\PayPal\Abort.aspx" />
<Content Include="Views\PayPal\Commit.aspx" />
<Content Include="Views\PayPal\IPN.aspx" />
<Content Include="Web.Debug.config" />
<Content Include="Web.Lua.config" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
@ -517,7 +526,9 @@
</None> </None>
<None Include="fonts\fontawesome-webfont.woff2" /> <None Include="fonts\fontawesome-webfont.woff2" />
<None Include="lib\MarkdownDeep.dll" /> <None Include="lib\MarkdownDeep.dll" />
<None Include="App_Data\Sql\Skills.sql" /> <None Include="App_Code\Sql\Skills.sql" />
<None Include="WebDeploy.targets" />
<None Include="WebTasks.dll" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\NpgsqlMRPProviders\NpgsqlMRPProviders.csproj"> <ProjectReference Include="..\NpgsqlMRPProviders\NpgsqlMRPProviders.csproj">
@ -554,7 +565,7 @@
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="App_Data\Sql\instdbws.sql" /> <EmbeddedResource Include="App_Code\Sql\instdbws.sql" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<WebReferences Include="Web References" /> <WebReferences Include="Web References" />

Binary file not shown.

@ -9,6 +9,7 @@
<package id="log4net" version="2.0.4" targetFramework="net451" /> <package id="log4net" version="2.0.4" targetFramework="net451" />
<package id="Microsoft.jQuery.Unobtrusive.Ajax" version="3.2.3" targetFramework="net451" /> <package id="Microsoft.jQuery.Unobtrusive.Ajax" version="3.2.3" targetFramework="net451" />
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net451" /> <package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.2.3" targetFramework="net451" />
<package id="Mono.Web.Xdt" version="1.0.0" targetFramework="net451" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" /> <package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
<package id="Npgsql" version="3.0.3" targetFramework="net451" /> <package id="Npgsql" version="3.0.3" targetFramework="net451" />
<package id="PayPalButtonManagerSDK" version="2.9.109" targetFramework="net45" /> <package id="PayPalButtonManagerSDK" version="2.9.109" targetFramework="net45" />

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* YavscModel.csproj: Lua config
2015-11-17 Paul Schneider <paul@pschneider.fr> 2015-11-17 Paul Schneider <paul@pschneider.fr>
* PerformerProfile.cs: implements a performer profile * PerformerProfile.cs: implements a performer profile

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

@ -1,3 +1,7 @@
2015-11-19 Paul Schneider <paul@pschneider.fr>
* YavscClient.csproj: Lua config
2015-11-06 Paul Schneider <paul@pschneider.fr> 2015-11-06 Paul Schneider <paul@pschneider.fr>
* ChangeLog: * ChangeLog:

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

Loading…