Google date quey,
refactiring, docpage * Yavsc.sln: * Web.csproj: * YavscModel.csproj: * OtherWebException.cs: * ProjectInfo.cs: * IValueProvider.cs: * CalendarApi.cs: * HomeController.cs: * TemplateException.cs: * WorkFlowController.cs: * NpgsqlWorkflow.csproj: * GoogleErrorMessage.cs: * ITCPNpgsqlProvider.cs: * NpgsqlContentProvider.cs: * ITContentProvider.csproj: * FrontOfficeApiController.cs: * NpgsqlContentProvider.csproj: refactoring * App.master: * WebApiConfig.cs: New Web api configuration architecture * SalesCatalog.csproj: * XmlCatalogProvider.cs: using MVC to get the catalog xml filename * WorkFlowManager.cs: * FrontOfficeController.cs: * CatalogManager.cs: No more extra argument to get the catalog * DateQuery.aspx: * AskForADate.cs: * GoogleController.cs: Google Date new query model * style.css: * BBCodeHelper.cs: Doc page responsive design * Service.cs: * SetPrice.cs: xml doc * WebApiConfig.cs: refactioring
This commit is contained in:
parent
7b0dd0c1e2
commit
721b11eba3
29 changed files with 124 additions and 104 deletions
|
|
@ -55,8 +55,13 @@ namespace Yavsc.Helpers
|
|||
tib.AddCssClass (BBCodeCaseClass);
|
||||
string temp = tagUsage (t);
|
||||
|
||||
tib.InnerHtml = temp;
|
||||
u.Add (string.Format ("{0} <div class=\"{2}\">{1}</div>", tib.ToString (), Parser.ToHtml (temp),BBCodeViewClass));
|
||||
tib.InnerHtml = string.Format("[{0}]",t.Name);
|
||||
u.Add (string.Format (
|
||||
"{0} <div class=\"{2}\"><code>{3}</code>{1}</div>",
|
||||
tib.ToString (),
|
||||
Parser.ToHtml (temp),
|
||||
BBCodeViewClass,
|
||||
temp));
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -65,6 +70,7 @@ namespace Yavsc.Helpers
|
|||
|
||||
|
||||
}
|
||||
|
||||
static string tagUsage(BBTag t,string content=null)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ();
|
||||
|
|
@ -200,6 +206,13 @@ namespace Yavsc.Helpers
|
|||
|
||||
static string TocContentTransformer (string instr)
|
||||
{
|
||||
|
||||
StringBuilder header = new StringBuilder ();
|
||||
TagBuilder bshd = new TagBuilder("div");
|
||||
bshd.AddCssClass ("bshd");
|
||||
|
||||
header.AppendFormat ("<img src=\"{0}\" alt=\"[Show/Hide TOC]\" class=\"bsh\">\n",
|
||||
"/Theme/dark/rect.png");
|
||||
StringBuilder ttb = new StringBuilder ();
|
||||
int m1=0, m2=0, m3=0;
|
||||
foreach (string key in d.Keys) {
|
||||
|
|
@ -254,7 +267,10 @@ namespace Yavsc.Helpers
|
|||
}
|
||||
TagBuilder aside = new TagBuilder ("aside");
|
||||
aside.InnerHtml = ttb.ToString ();
|
||||
return aside.ToString();
|
||||
aside.AddCssClass ("bshpanel");
|
||||
bshd.InnerHtml = header.ToString()+aside.ToString();
|
||||
|
||||
return bshd.ToString ();
|
||||
}
|
||||
|
||||
static string DocPageContentTransformer (string instr)
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ using System.Text;
|
|||
using Newtonsoft.Json;
|
||||
using System.Web;
|
||||
using System.Runtime.Serialization.Json;
|
||||
using Yavsc.Model;
|
||||
|
||||
namespace Yavsc.Helpers.Google
|
||||
{
|
||||
|
|
@ -116,7 +117,7 @@ namespace Yavsc.Helpers.Google
|
|||
}
|
||||
} catch (WebException ex) {
|
||||
webreq.Abort ();
|
||||
throw new GoogleErrorException (ex);
|
||||
throw new OtherWebException (ex);
|
||||
}
|
||||
webreq.Abort ();
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue