Browse Source

Made sure tracking attributes were everywhere that they should be.

tags/3.0.0
Teknikode 1 year ago
parent
commit
003d06604e

+ 4
- 0
Teknik/Areas/Admin/Controllers/AdminController.cs View File

@@ -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
private TeknikEntities db = new TeknikEntities();

[HttpGet]
[TrackPageView]
public ActionResult Dashboard()
{
DashboardViewModel model = new DashboardViewModel();
@@ -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
}

[HttpGet]
[TrackPageView]
public ActionResult UserInfo(string username)
{
if (UserHelper.UserExists(db, username))

+ 2
- 5
Teknik/Areas/Error/Controllers/ErrorController.cs View File

@@ -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

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

return View("~/Areas/Error/Views/Error/Http404.cshtml", model);
}

[TrackPageView]
[AllowAnonymous]
public ActionResult Http500(Exception exception)
{

+ 3
- 2
Teknik/Areas/Podcast/Controllers/PodcastController.cs View File

@@ -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
}

[HttpGet]
[TrackDownload]
[AllowAnonymous]
public ActionResult Download(int episode, string fileName)
{
@@ -620,4 +621,4 @@ namespace Teknik.Areas.Podcast.Controllers
return podFiles;
}
}
}
}

+ 3
- 2
Teknik/Areas/Shortener/Controllers/ShortenerController.cs View File

@@ -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
return View(model);
}

[TrackLink]
[AllowAnonymous]
public ActionResult RedirectToUrl(string url)
{
@@ -84,4 +85,4 @@ namespace Teknik.Areas.Shortener.Controllers
return View();
}
}
}
}

+ 7
- 2
Teknik/Areas/Vault/Controllers/VaultController.cs View File

@@ -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;
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
[TeknikAuthorize]
public class VaultController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult ViewVault(string id)
{
@@ -100,6 +102,7 @@ namespace Teknik.Areas.Vault.Controllers
}

[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVault()
{
@@ -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
}

[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
return valid;
}
}
}
}

Loading…
Cancel
Save