mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Update jQuery, Add Enhancement #9
This commit is contained in:
parent
e291dd5ede
commit
56a8613315
|
@ -211,6 +211,9 @@
|
||||||
<Content Include="Areas\admin\Views\meta\create.cshtml" />
|
<Content Include="Areas\admin\Views\meta\create.cshtml" />
|
||||||
<Content Include="Scripts\Chart.js" />
|
<Content Include="Scripts\Chart.js" />
|
||||||
<Content Include="Scripts\Chart.min.js" />
|
<Content Include="Scripts\Chart.min.js" />
|
||||||
|
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
|
||||||
|
<Content Include="Scripts\jquery-2.1.4.js" />
|
||||||
|
<Content Include="Scripts\jquery-2.1.4.min.js" />
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
|
||||||
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
|
||||||
<Content Include="Scripts\trumbowyg\langs\ca.min.js" />
|
<Content Include="Scripts\trumbowyg\langs\ca.min.js" />
|
||||||
|
@ -263,12 +266,9 @@
|
||||||
<Content Include="googleacffc6da14c53e15.html" />
|
<Content Include="googleacffc6da14c53e15.html" />
|
||||||
<Content Include="content\tile\large.png" />
|
<Content Include="content\tile\large.png" />
|
||||||
<Content Include="Scripts\bfs.js" />
|
<Content Include="Scripts\bfs.js" />
|
||||||
<None Include="Scripts\jquery-2.1.3.intellisense.js" />
|
|
||||||
<Content Include="Scripts\excanvas.compiled.js" />
|
<Content Include="Scripts\excanvas.compiled.js" />
|
||||||
<Content Include="Scripts\excanvas.js" />
|
<Content Include="Scripts\excanvas.js" />
|
||||||
<Content Include="Scripts\jquery-2.1.3.js" />
|
<Content Include="Scripts\jquery-2.1.4.min.map" />
|
||||||
<Content Include="Scripts\jquery-2.1.3.min.js" />
|
|
||||||
<Content Include="Scripts\jquery-2.1.3.min.map" />
|
|
||||||
<None Include="Scripts\jquery.validate-vsdoc.js" />
|
<None Include="Scripts\jquery.validate-vsdoc.js" />
|
||||||
<Content Include="Scripts\jquery.validate.js" />
|
<Content Include="Scripts\jquery.validate.js" />
|
||||||
<Content Include="Scripts\jquery.validate.min.js" />
|
<Content Include="Scripts\jquery.validate.min.js" />
|
||||||
|
|
|
@ -183,5 +183,41 @@ public async Task<ActionResult> flight(LevelOfFlight id)
|
||||||
|
|
||||||
return new EmptyResult();
|
return new EmptyResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Route("rss/lab/{lab}")]
|
||||||
|
public async Task<ActionResult> lab(string lab)
|
||||||
|
{
|
||||||
|
var builds = Build.SelectInBuildOrder()
|
||||||
|
.Where(b => b.Lab == lab)
|
||||||
|
.Take(20);
|
||||||
|
|
||||||
|
|
||||||
|
RssDocument rdoc = new RssDocument()
|
||||||
|
{
|
||||||
|
Channel = new RssChannel()
|
||||||
|
{
|
||||||
|
Title = string.Format("BuildFeed RSS - {0} Lab", lab),
|
||||||
|
Description = "",
|
||||||
|
Generator = "BuildFeed.net RSS Controller",
|
||||||
|
Link = new RssUrl(string.Format("{0}://{1}", Request.Url.Scheme, Request.Url.Authority)),
|
||||||
|
SkipHours = new List<Hour>(),
|
||||||
|
SkipDays = new List<Day>(),
|
||||||
|
|
||||||
|
Items = (from build in builds
|
||||||
|
select new RssItem()
|
||||||
|
{
|
||||||
|
Title = build.FullBuildString,
|
||||||
|
Link = new RssUrl(string.Format("{0}://{1}{2}", Request.Url.Scheme, Request.Url.Authority, Url.Action("info", new { controller = "Build", id = build.Id }))),
|
||||||
|
Guid = new RssGuid() { IsPermaLink = true, Value = string.Format("{0}://{1}{2}", Request.Url.Scheme, Request.Url.Authority, Url.Action("info", new { controller = "Build", id = build.Id })) },
|
||||||
|
}).ToList()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
Response.ContentType = "application/rss+xml";
|
||||||
|
|
||||||
|
await Response.Output.WriteAsync(rdoc.ToXml());
|
||||||
|
|
||||||
|
return new EmptyResult();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -126,6 +126,7 @@ public ActionResult thanks_register()
|
||||||
[Route("rss")]
|
[Route("rss")]
|
||||||
public ActionResult rss()
|
public ActionResult rss()
|
||||||
{
|
{
|
||||||
|
ViewBag.Labs = Build.SelectBuildLabs();
|
||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
4
Scripts/jquery-2.1.3.min.js
vendored
4
Scripts/jquery-2.1.3.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v2.1.3
|
* jQuery JavaScript Library v2.1.4
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
*
|
*
|
||||||
* Includes Sizzle.js
|
* Includes Sizzle.js
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2014-12-18T15:11Z
|
* Date: 2015-04-28T16:01Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function( global, factory ) {
|
(function( global, factory ) {
|
||||||
|
@ -67,7 +67,7 @@ var
|
||||||
// Use the correct document accordingly with window argument (sandbox)
|
// Use the correct document accordingly with window argument (sandbox)
|
||||||
document = window.document,
|
document = window.document,
|
||||||
|
|
||||||
version = "2.1.3",
|
version = "2.1.4",
|
||||||
|
|
||||||
// Define a local copy of jQuery
|
// Define a local copy of jQuery
|
||||||
jQuery = function( selector, context ) {
|
jQuery = function( selector, context ) {
|
||||||
|
@ -531,7 +531,12 @@ jQuery.each("Boolean Number String Function Array Date RegExp Object Error".spli
|
||||||
});
|
});
|
||||||
|
|
||||||
function isArraylike( obj ) {
|
function isArraylike( obj ) {
|
||||||
var length = obj.length,
|
|
||||||
|
// Support: iOS 8.2 (not reproducible in simulator)
|
||||||
|
// `in` check used to prevent JIT error (gh-2145)
|
||||||
|
// hasOwn isn't used here due to false negatives
|
||||||
|
// regarding Nodelist length in IE
|
||||||
|
var length = "length" in obj && obj.length,
|
||||||
type = jQuery.type( obj );
|
type = jQuery.type( obj );
|
||||||
|
|
||||||
if ( type === "function" || jQuery.isWindow( obj ) ) {
|
if ( type === "function" || jQuery.isWindow( obj ) ) {
|
5
Scripts/jquery-2.1.4.min.js
vendored
Normal file
5
Scripts/jquery-2.1.4.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
Scripts/jquery-2.1.4.min.map
Normal file
1
Scripts/jquery-2.1.4.min.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -17,4 +17,13 @@
|
||||||
<li><a href="@Url.Action("flight", new { controller = "rss", id = "high" })" title="High flight level"><i class="fa fa-sm fa-rss"></i> High flight level</a></li>
|
<li><a href="@Url.Action("flight", new { controller = "rss", id = "high" })" title="High flight level"><i class="fa fa-sm fa-rss"></i> High flight level</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#rss-labs" data-toggle="collapse">Labs</a>
|
||||||
|
<ul id="rss-labs" class="collapse">
|
||||||
|
@foreach (string lab in ViewBag.Labs)
|
||||||
|
{
|
||||||
|
<li><a href="@Url.Action("lab", new { controller = "rss", lab = lab })" title="@lab"><i class="fa fa-sm fa-rss"></i> @lab</a></li>
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
For more information on how to configure your ASP.NET application, please visit
|
For more information on how to configure your ASP.NET application, please visit
|
||||||
http://go.microsoft.com/fwlink/?LinkId=301880
|
http://go.microsoft.com/fwlink/?LinkId=301880
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<package id="Antlr" version="3.5.0.2" targetFramework="net45" userInstalled="true" />
|
<package id="Antlr" version="3.5.0.2" targetFramework="net45" userInstalled="true" />
|
||||||
<package id="Chart.js" version="1.0.2" targetFramework="net45" userInstalled="true" />
|
<package id="Chart.js" version="1.0.2" targetFramework="net45" userInstalled="true" />
|
||||||
<package id="Humanizer" version="1.35.0" targetFramework="net45" userInstalled="true" />
|
<package id="Humanizer" version="1.35.0" targetFramework="net45" userInstalled="true" />
|
||||||
<package id="jQuery" version="2.1.3" targetFramework="net45" userInstalled="true" />
|
<package id="jQuery" version="2.1.4" targetFramework="net452" userInstalled="true" />
|
||||||
<package id="jquery.TypeScript.DefinitelyTyped" version="2.2.4" targetFramework="net45" userInstalled="true" />
|
<package id="jquery.TypeScript.DefinitelyTyped" version="2.2.4" targetFramework="net45" userInstalled="true" />
|
||||||
<package id="jQuery.Validation" version="1.13.1" targetFramework="net45" userInstalled="true" />
|
<package id="jQuery.Validation" version="1.13.1" targetFramework="net45" userInstalled="true" />
|
||||||
<package id="jsrender.TypeScript.DefinitelyTyped" version="0.0.3" targetFramework="net45" userInstalled="true" />
|
<package id="jsrender.TypeScript.DefinitelyTyped" version="0.0.3" targetFramework="net45" userInstalled="true" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user