Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Project maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
RickStrahl committed Jun 18, 2014
1 parent 9125e3e commit bb68dee
Show file tree
Hide file tree
Showing 20 changed files with 255 additions and 65 deletions.
6 changes: 3 additions & 3 deletions Samples/WestwindToolkitMvcWeb/Scripts/ww.jquery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference path="jquery.js" />
/*
ww.jQuery.js
Version 1.13 - 5/15/2014
Version 1.13 - 6/15/2014
West Wind jQuery plug-ins and utilities
(c) 2008-2014 Rick Strahl, West Wind Technologies
Expand Down Expand Up @@ -562,8 +562,8 @@ http://en.wikipedia.org/wiki/MIT_License
});

return this.each(function () {
var $el = $(this);
$el.removeClass(opt.csshiddenClass);
var $el = $(this);
$el.removeClass(opt.cssHiddenClass);

// temporarily make visible to get the size
$el.css("max-height", "none");
Expand Down
4 changes: 2 additions & 2 deletions Westwind.Data/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.53.*")]
[assembly: AssemblyFileVersion("2.53")]
[assembly: AssemblyVersion("2.55.*")]
[assembly: AssemblyFileVersion("2.55")]
4 changes: 2 additions & 2 deletions Westwind.Utilities/Data/ValidationErrorCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ public string ToHtml()
}

sb.Append("</ul>\r\n");
string script =
string script =
@" <script>
function _errorLinkClick(id) {
var $t = $('#' + id).focus().addClass('errorhighlight');
var $t = $('#' + id).focus().addClass('errorhighlight');
setTimeout(function() {
$t.removeClass('errorhighlight');
}, 5000);
Expand Down
63 changes: 34 additions & 29 deletions Westwind.Utilities/InternetTools/HttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,14 @@ public void ResetPostData()
/// Adds POST form variables to the request buffer.
/// PostMode determines how parms are handled.
/// </summary>
/// <param name="Key">Key value or raw buffer depending on post type</param>
/// <param name="Value">Value to store. Used only in key/value pair modes</param>
public void AddPostKey(string Key, byte[] Value)
/// <param name="key">Key value or raw buffer depending on post type</param>
/// <param name="value">Value to store. Used only in key/value pair modes</param>
public void AddPostKey(string key, byte[] value)
{
if (Key == "RESET")
if (value == null)
return;

if (key == "RESET")
{
ResetPostData();
return;
Expand All @@ -401,21 +404,21 @@ public void AddPostKey(string Key, byte[] Value)
switch(_PostMode)
{
case HttpPostMode.UrlEncoded:
_PostData.Write( Encoding.Default.GetBytes(Key + "=" +
StringUtils.UrlEncode(Encoding.Default.GetString(Value)) +
_PostData.Write( Encoding.Default.GetBytes(key + "=" +
StringUtils.UrlEncode(Encoding.Default.GetString(value)) +
"&") );
break;
case HttpPostMode.MultiPart:
_PostData.Write( Encoding.Default.GetBytes(
"--" + _MultiPartBoundary + "\r\n" +
"Content-Disposition: form-data; name=\"" +Key+"\"\r\n\r\n") );
"Content-Disposition: form-data; name=\"" +key+"\"\r\n\r\n") );

_PostData.Write( Value );
_PostData.Write( value );

_PostData.Write( Encoding.Default.GetBytes("\r\n") );
break;
default: // Raw or Xml, JSON modes
_PostData.Write( Value );
_PostData.Write( value );
break;
}
}
Expand All @@ -434,41 +437,43 @@ public void SetPostStream(Stream postStream)
/// Adds POST form variables to the request buffer.
/// PostMode determines how parms are handled.
/// </summary>
/// <param name="Key">Key value or raw buffer depending on post type</param>
/// <param name="Value">Value to store. Used only in key/value pair modes</param>
public void AddPostKey(string Key, string Value)
/// <param name="key">Key value or raw buffer depending on post type</param>
/// <param name="value">Value to store. Used only in key/value pair modes</param>
public void AddPostKey(string key, string value)
{
AddPostKey(Key,Encoding.GetEncoding(1252).GetBytes(Value));
if (value == null)
return;
AddPostKey(key,Encoding.GetEncoding(1252).GetBytes(value));
}

/// <summary>
/// Adds a fully self contained POST buffer to the request.
/// Works for XML or previously encoded content.
/// </summary>
/// <param name="FullPostBuffer">String based full POST buffer</param>
public void AddPostKey(string FullPostBuffer)
/// <param name="fullPostBuffer">String based full POST buffer</param>
public void AddPostKey(string fullPostBuffer)
{
AddPostKey(null,FullPostBuffer );
AddPostKey(null,fullPostBuffer );
}

/// <summary>
/// Adds a fully self contained POST buffer to the request.
/// Works for XML or previously encoded content.
/// </summary>
/// <param name="PostBuffer">Byte array of a full POST buffer</param>
public void AddPostKey(byte[] FullPostBuffer)
/// <summary>
/// Adds a fully self contained POST buffer to the request.
/// Works for XML or previously encoded content.
/// </summary>
/// <param name="fullPostBuffer">Byte array of a full POST buffer</param>
public void AddPostKey(byte[] fullPostBuffer)
{
AddPostKey(null,FullPostBuffer);
AddPostKey(null,fullPostBuffer);
}

/// <summary>
/// Allows posting a file to the Web Server. Make sure that you
/// set PostMode
/// </summary>
/// <param name="Key"></param>
/// <param name="FileName"></param>
/// <param name="key"></param>
/// <param name="fileName"></param>
/// <returns></returns>
public bool AddPostFile(string Key,string FileName)
public bool AddPostFile(string key,string fileName)
{
byte[] lcFile;

Expand All @@ -481,7 +486,7 @@ public bool AddPostFile(string Key,string FileName)

try
{
FileStream loFile = new FileStream(FileName,System.IO.FileMode.Open,System.IO.FileAccess.Read);
FileStream loFile = new FileStream(fileName,System.IO.FileMode.Open,System.IO.FileAccess.Read);

lcFile = new byte[loFile.Length];
loFile.Read(lcFile,0,(int) loFile.Length);
Expand All @@ -502,8 +507,8 @@ public bool AddPostFile(string Key,string FileName)

_PostData.Write( Encoding.Default.GetBytes(
"--" + _MultiPartBoundary + "\r\n" +
"Content-Disposition: form-data; name=\"" + Key + "\"; filename=\"" +
new FileInfo(FileName).Name + "\"\r\n\r\n") );
"Content-Disposition: form-data; name=\"" + key + "\"; filename=\"" +
new FileInfo(fileName).Name + "\"\r\n\r\n") );

_PostData.Write( lcFile );

Expand Down
4 changes: 2 additions & 2 deletions Westwind.Utilities/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.53.*")]
[assembly: AssemblyFileVersion("2.53")]
[assembly: AssemblyVersion("2.55.*")]
[assembly: AssemblyFileVersion("2.55")]
4 changes: 2 additions & 2 deletions Westwind.Web.Mvc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.50.*")]
[assembly: AssemblyFileVersion("2.50")]
[assembly: AssemblyVersion("2.55.*")]
[assembly: AssemblyFileVersion("2.55")]
2 changes: 2 additions & 0 deletions Westwind.Web.Mvc/Westwind.Web.Mvc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<HintPath>..\..\MyDailyDosha\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -91,6 +92,7 @@
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Filters\RequireSslAttribute.cs" />
<Compile Include="Utils\MvcHandlerSTA.cs">
<SubType>ASPXCodeBehind</SubType>
</Compile>
Expand Down
4 changes: 2 additions & 2 deletions Westwind.Web.WebApi/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.50.*")]
[assembly: AssemblyFileVersion("2.50")]
[assembly: AssemblyVersion("2.55.*")]
[assembly: AssemblyFileVersion("2.55")]
4 changes: 2 additions & 2 deletions Westwind.Web.WebForms/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.50.*")]
[assembly: AssemblyFileVersion("2.50")]
[assembly: AssemblyVersion("2.55.*")]
[assembly: AssemblyFileVersion("2.55")]
4 changes: 2 additions & 2 deletions Westwind.Web/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.52")]
[assembly: AssemblyFileVersion("2.52")]
[assembly: AssemblyVersion("2.55")]
[assembly: AssemblyFileVersion("2.55")]
Binary file modified libs/Westwind.Data.MongoDb.dll
Binary file not shown.
107 changes: 107 additions & 0 deletions libs/Westwind.Data.MongoDb.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified libs/Westwind.Data.dll
Binary file not shown.
Binary file modified libs/Westwind.Utilities.dll
Binary file not shown.
Loading

0 comments on commit bb68dee

Please sign in to comment.