Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed routes and cleaned up usings

  • Loading branch information...
commit 9cd1e04b4dbb203a6af1541d1ec57b1a738509e4 1 parent 35197a6
@johnataylor johnataylor authored
View
12 Website/App_Start/Routes.cs
@@ -16,27 +16,27 @@ public static void RegisterRoutes(RouteCollection routes)
routes.MapRoute(
RouteName.Stats,
- "stats",
+ "stats/totals",
MVC.Pages.Stats());
routes.MapRoute(
- RouteName.Statistics,
- "statistics",
+ RouteName.StatisticsHome,
+ "stats/home",
new { controller = MVC.Statistics.Name, action = "Index" });
routes.MapRoute(
RouteName.StatisticsPackages,
- "statistics/packages",
+ "stats/packages",
new { controller = MVC.Statistics.Name, action = "Packages" });
routes.MapRoute(
RouteName.StatisticsPackageVersions,
- "statistics/packageversions",
+ "stats/packageversions",
new { controller = MVC.Statistics.Name, action = "PackageVersions" });
routes.MapRoute(
RouteName.StatisticsPackageDownloadsByVersion,
- "statistics/packages/{id}",
+ "stats/packages/{id}",
new { controller = MVC.Statistics.Name, action = "PackageDownloadsByVersion" });
routes.Add(new JsonRoute("json/{controller}"));
View
2  Website/RouteNames.cs
@@ -37,7 +37,7 @@ public static class RouteName
public const string CreateCuratedPackageForm = "CreateCuratedPackageForm";
public const string CuratedPackages = "CuratedPackages";
public const string CuratedPackage = "CuratedPackage";
- public const string Statistics = "Statistics";
+ public const string StatisticsHome = "StatisticsHome";
public const string StatisticsPackages = "StatisticsPackages";
public const string StatisticsPackageVersions = "StatisticsPackageVersions";
public const string StatisticsPackageDownloadsByVersion = "StatisticsPackageDownloadsByVersion";
View
2  Website/Scripts/stats.js
@@ -1,6 +1,6 @@
function getStats(currData) {
currData = currData || {};
- $.get('/Stats', function(data) {
+ $.get('/stats/totals', function(data) {
var section = $('section.aggstats');
section.show();
update(data, currData, 'UniquePackages');
View
6 Website/Services/CloudReportService.cs
@@ -1,7 +1,7 @@
-using Microsoft.WindowsAzure.Storage;
-using Microsoft.WindowsAzure.Storage.Blob;
-using System.IO;
+using System.IO;
using System.Threading.Tasks;
+using Microsoft.WindowsAzure.Storage;
+using Microsoft.WindowsAzure.Storage.Blob;
namespace NuGetGallery
{
View
7 Website/Services/JsonStatisticsService.cs
@@ -1,11 +1,8 @@
-using Microsoft.WindowsAzure.Storage;
-using Microsoft.WindowsAzure.Storage.Blob;
-using Newtonsoft.Json.Linq;
-using System;
+using System;
using System.Collections.Generic;
using System.Globalization;
-using System.IO;
using System.Threading.Tasks;
+using Newtonsoft.Json.Linq;
namespace NuGetGallery
{
View
2  Website/UrlExtensions.cs
@@ -25,7 +25,7 @@ public static string Home(this UrlHelper url)
public static string Statistics(this UrlHelper url)
{
- return url.RouteUrl(RouteName.Statistics);
+ return url.RouteUrl(RouteName.StatisticsHome);
}
public static string StatisticsAllPackageDownloads(this UrlHelper url)
View
6 Website/ViewModels/StatisticsPackagesViewModel.cs
@@ -1,8 +1,4 @@
-using Newtonsoft.Json.Linq;
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Threading.Tasks;
+using System.Collections.Generic;
namespace NuGetGallery
{
Please sign in to comment.
Something went wrong with that request. Please try again.