Przeglądaj źródła

Made sure tracking attributes were everywhere that they should be.

pull/111/head
Teknikode 4 lat temu
rodzic
commit
003d06604e
  1. 4
      Teknik/Areas/Admin/Controllers/AdminController.cs
  2. 7
      Teknik/Areas/Error/Controllers/ErrorController.cs
  3. 5
      Teknik/Areas/Podcast/Controllers/PodcastController.cs
  4. 5
      Teknik/Areas/Shortener/Controllers/ShortenerController.cs
  5. 9
      Teknik/Areas/Vault/Controllers/VaultController.cs

4
Teknik/Areas/Admin/Controllers/AdminController.cs

@ -8,6 +8,7 @@ using Teknik.Areas.Users.Models; @@ -8,6 +8,7 @@ using Teknik.Areas.Users.Models;
using Teknik.Areas.Users.Utility;
using Teknik.Attributes;
using Teknik.Controllers;
using Teknik.Filters;
using Teknik.Models;
using Teknik.Utilities;
using Teknik.ViewModels;
@ -20,6 +21,7 @@ namespace Teknik.Areas.Admin.Controllers @@ -20,6 +21,7 @@ namespace Teknik.Areas.Admin.Controllers
private TeknikEntities db = new TeknikEntities();
[HttpGet]
[TrackPageView]
public ActionResult Dashboard()
{
DashboardViewModel model = new DashboardViewModel();
@ -27,6 +29,7 @@ namespace Teknik.Areas.Admin.Controllers @@ -27,6 +29,7 @@ namespace Teknik.Areas.Admin.Controllers
}
[HttpGet]
[TrackPageView]
public ActionResult UserSearch()
{
UserSearchViewModel model = new UserSearchViewModel();
@ -34,6 +37,7 @@ namespace Teknik.Areas.Admin.Controllers @@ -34,6 +37,7 @@ namespace Teknik.Areas.Admin.Controllers
}
[HttpGet]
[TrackPageView]
public ActionResult UserInfo(string username)
{
if (UserHelper.UserExists(db, username))

7
Teknik/Areas/Error/Controllers/ErrorController.cs

@ -17,7 +17,6 @@ namespace Teknik.Areas.Error.Controllers @@ -17,7 +17,6 @@ namespace Teknik.Areas.Error.Controllers
[TeknikAuthorize]
public class ErrorController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult Exception(Exception exception)
{
@ -37,8 +36,7 @@ namespace Teknik.Areas.Error.Controllers @@ -37,8 +36,7 @@ namespace Teknik.Areas.Error.Controllers
return View("~/Areas/Error/Views/Error/Exception.cshtml", model);
}
[TrackPageView]
[AllowAnonymous]
public ActionResult General(Exception exception)
{
@ -119,8 +117,7 @@ namespace Teknik.Areas.Error.Controllers @@ -119,8 +117,7 @@ namespace Teknik.Areas.Error.Controllers
return View("~/Areas/Error/Views/Error/Http404.cshtml", model);
}
[TrackPageView]
[AllowAnonymous]
public ActionResult Http500(Exception exception)
{

5
Teknik/Areas/Podcast/Controllers/PodcastController.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.IO;
@ -81,6 +81,7 @@ namespace Teknik.Areas.Podcast.Controllers @@ -81,6 +81,7 @@ namespace Teknik.Areas.Podcast.Controllers
}
[HttpGet]
[TrackDownload]
[AllowAnonymous]
public ActionResult Download(int episode, string fileName)
{
@ -620,4 +621,4 @@ namespace Teknik.Areas.Podcast.Controllers @@ -620,4 +621,4 @@ namespace Teknik.Areas.Podcast.Controllers
return podFiles;
}
}
}
}

5
Teknik/Areas/Shortener/Controllers/ShortenerController.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@ -26,6 +26,7 @@ namespace Teknik.Areas.Shortener.Controllers @@ -26,6 +26,7 @@ namespace Teknik.Areas.Shortener.Controllers
return View(model);
}
[TrackLink]
[AllowAnonymous]
public ActionResult RedirectToUrl(string url)
{
@ -84,4 +85,4 @@ namespace Teknik.Areas.Shortener.Controllers @@ -84,4 +85,4 @@ namespace Teknik.Areas.Shortener.Controllers
return View();
}
}
}
}

9
Teknik/Areas/Vault/Controllers/VaultController.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
@ -12,6 +12,7 @@ using Teknik.Areas.Vault.ViewModels; @@ -12,6 +12,7 @@ using Teknik.Areas.Vault.ViewModels;
using Teknik.Attributes;
using Teknik.Configuration;
using Teknik.Controllers;
using Teknik.Filters;
using Teknik.Models;
using Teknik.Utilities;
@ -20,6 +21,7 @@ namespace Teknik.Areas.Vault.Controllers @@ -20,6 +21,7 @@ namespace Teknik.Areas.Vault.Controllers
[TeknikAuthorize]
public class VaultController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult ViewVault(string id)
{
@ -100,6 +102,7 @@ namespace Teknik.Areas.Vault.Controllers @@ -100,6 +102,7 @@ namespace Teknik.Areas.Vault.Controllers
}
[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVault()
{
@ -110,6 +113,7 @@ namespace Teknik.Areas.Vault.Controllers @@ -110,6 +113,7 @@ namespace Teknik.Areas.Vault.Controllers
}
[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVaultFromService(string type, string items)
{
@ -147,6 +151,7 @@ namespace Teknik.Areas.Vault.Controllers @@ -147,6 +151,7 @@ namespace Teknik.Areas.Vault.Controllers
}
[HttpGet]
[TrackPageView]
public ActionResult EditVault(string url, string type, string items)
{
using (TeknikEntities db = new TeknikEntities())
@ -453,4 +458,4 @@ namespace Teknik.Areas.Vault.Controllers @@ -453,4 +458,4 @@ namespace Teknik.Areas.Vault.Controllers
return valid;
}
}
}
}

Ładowanie…
Anuluj
Zapisz