1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Made sure tracking attributes were everywhere that they should be.

This commit is contained in:
Uncled1023 2018-01-27 21:40:38 -08:00
parent bea394cbaf
commit 003d06604e
5 changed files with 19 additions and 11 deletions

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

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)
{

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

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();
}
}
}
}

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