This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module app.controllers { | |
| export class MyController extends BaseController { | |
| public static $inject = [ | |
| "$scope", | |
| "MyService" | |
| ]; | |
| public SomeData: app.models.DataClass[] = []; | |
| // Scope members |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular.module("shared.ui").directive( | |
| "svgHover", | |
| [ | |
| () => { | |
| return { | |
| restrict: "A", | |
| link: (scope: ng.IScope, element: ng.IAugmentedJQuery) => { | |
| function getSvg(svg: HTMLObjectElement): SVGElement { | |
| var svgDocument: Document; | |
| try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SvgHandler : IHttpHandler | |
| { | |
| public void ProcessRequest(HttpContext context) | |
| { | |
| var fileName = Path.GetFileName(context.Request.AppRelativeCurrentExecutionFilePath) ?? string.Empty; | |
| var svgIndex = fileName.LastIndexOf(".svg", StringComparison.InvariantCultureIgnoreCase); | |
| var classIndex = fileName.IndexOf('.'); | |
| string[] classNames = new string[0]; | |
| string svgPath; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SuperFakeHttpContext : HttpContextBase | |
| { | |
| public SuperFakeHttpContext(string relativeUrl) | |
| { | |
| } | |
| public override System.Web.Caching.Cache Cache | |
| { | |
| get { return HttpRuntime.Cache; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Web.Hosting; | |
| namespace Helpers.Web | |
| { | |
| public class FileVirtualPathProvider : VirtualPathProvider | |
| { |
NewerOlder