* robots.txt: Web robots should not

index /Account/Login nor
  /Google/Login


* Makefile:
* GDate.cs:
* YavscModel.csproj:
* Resource.cs:
* CalendarApi.cs:
* GoogleController.cs:
* CalendarListEntry.cs:
* CalendarEventList.cs:
* CalendarEntryList.cs: refactoring

* style.css: another style

* Index.aspx: cleanning

* Index.aspx: code formatting

* Login.aspx: Fixes the Page title 

* Web.config: Trying to fix the default directory index

* Web.csproj: robots.txt creation

* TextInput.cs: xml doc
This commit is contained in:
Paul Schneider 2015-03-12 13:56:59 +01:00
commit b2fdbc8d2e
16 changed files with 180 additions and 67 deletions

View file

@ -325,7 +325,7 @@ namespace Yavsc.Controllers
DateTime maxdate = model.MaxDate;
CalendarApi c = new CalendarApi ();
CalendarEntryList res;
CalendarEventList res;
try {
res = c.GetCalendar (calid, mindate, maxdate, upr);
} catch (OtherWebException ex) {

View file

@ -87,7 +87,7 @@ namespace Yavsc.Helpers.Google
/// <param name="mindate">Mindate.</param>
/// <param name="maxdate">Maxdate.</param>
/// <param name="upr">Upr.</param>
public CalendarEntryList GetCalendar (string calid, DateTime mindate, DateTime maxdate, ProfileBase upr)
public CalendarEventList GetCalendar (string calid, DateTime mindate, DateTime maxdate, ProfileBase upr)
{
string uri = string.Format (
getCalEntriesUri, HttpUtility.UrlEncode (calid)) +
@ -100,16 +100,16 @@ namespace Yavsc.Helpers.Google
webreq.Headers.Add (HttpRequestHeader.Authorization, cred);
webreq.Method = "GET";
webreq.ContentType = "application/http";
CalendarEntryList res = null;
CalendarEventList res = null;
try {
using (WebResponse resp = webreq.GetResponse ()) {
using (Stream respstream = resp.GetResponseStream ()) {
try {
res = (CalendarEntryList) new DataContractJsonSerializer(typeof(CalendarEntryList)).ReadObject (respstream);
res = (CalendarEventList) new DataContractJsonSerializer(typeof(CalendarEventList)).ReadObject (respstream);
} catch (Exception ex) {
respstream.Close ();
resp.Close ();
webreq.Abort ();
webreq.Abort ();
throw ex;
}
}
@ -120,8 +120,8 @@ namespace Yavsc.Helpers.Google
throw new OtherWebException (ex);
}
webreq.Abort ();
return res;
return res;
}
}
}

View file

@ -5,7 +5,7 @@ body {
background-repeat: no-repeat;
color: #D0FFD0;
font-family: 'Arial', cursive;
margin-bottom:3em;
padding-bottom:2.5em;
}
textarea {
@ -16,20 +16,20 @@ input, textarea, checkbox {
color: #FFFFA0;
background: black;
}
main {
background-color: rgba(17,0,23,0.65);
float:left;
margin:.5em;
margin-bottom:3em;
}
.panel,.bshpanel,aside {
background-color: rgba(32,16,16,0.8);
padding: 0.5em; margin: 0.5em;
border-radius:5px; border: solid 1px #000060;
float: right;
}
.bsh { float: right; }
.bsh { float: right; }
video,img {
@ -45,12 +45,22 @@ footer {
bottom:0;
left:0;
right:0;
background-color:rgba(0,16,0,0.6);
background-color:rgba(0,16,0,0.8);
display: flex;
justify-content: space-around;
justify-content: space-around;
z-index:-1;
}
#login {
position:fixed;
width:7em;
top:0;
right:0;
background-color:rgba(0,16,0,0.8);
justify-content: space-around;
padding:1em;
}
footer img { max-height: 2em; }
a {
@ -195,18 +205,23 @@ padding-left: 20px;
.bshd:hover > .bsh {
display: none;
}
footer {
footer img {
max-height: 1em;
}
footer a {
font-size: xx-small;
footer {
font-size: small;
}
body { margin-bottom:1em; font-size: smaller; }
}
@media all and (max-width: 350px) {
footer img { max-height: 0.7em; }
footer { font-size: xx-small; }
footer img { max-height: 0.8em; }
footer { font-size: x-small; }
}
}

View file

@ -1,4 +1,4 @@
<%@ Page Title="Comptes utilisateur" Language="C#" Inherits="System.Web.Mvc.ViewPage<DataAccess>" MasterPageFile="~/Models/App.master" %>
<%@ Page Title="Comptes utilisateur" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
Pas de contenu :-(
</asp:Content>

View file

@ -1,10 +1,10 @@
<%@ Page Title="Admin" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
<%@ Page Title="Administration" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<div class="panel">
<ul><li>
<%= Html.ActionLink("Backups","Backups") %>
</li>
<ul>
<li><%= Html.ActionLink("Backups","Backups") %></li>
<li><%= Html.ActionLink("Restaurations", "Restore") %></li>
<li><%= Html.ActionLink("Create backup","CreateBackup") %></li>
<li><%= Html.ActionLink("Remove user", "RemoveUser") %></li>

View file

@ -1,4 +1,4 @@
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
<%@ Page Title="Google Login" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">

View file

@ -28,6 +28,14 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
<section name="workflow" type="Yavsc.Model.WorkFlow.Configuration.WorkflowConfiguration, YavscModel" allowLocation="true" requirePermission="false" allowDefinition="Everywhere" />
</sectionGroup>
</configSections>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="Index" />
</files>
</defaultDocument>
</system.webServer>
<system.web>
<!--
Set compilation debug="true" to insert debugging

View file

@ -698,6 +698,7 @@
<None Include="packages.config" />
<None Include="Scripts\jquery-2.1.3.min.map" />
<None Include="Scripts\styles.json" />
<None Include="robots.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NpgsqlMRPProviders\NpgsqlMRPProviders.csproj">

5
web/robots.txt Normal file
View file

@ -0,0 +1,5 @@

User-agent: *
Disallow: /Google/Login
Disallow: /Account/Login
Disallow: /Admin/