-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
133 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings"> | ||
<TelemetryModules> | ||
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector"/> | ||
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector"> | ||
<!-- | ||
Use the following syntax here to collect additional performance counters: | ||
<Counters> | ||
<Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" /> | ||
... | ||
</Counters> | ||
PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName | ||
Counter names may only contain letters, round brackets, forward slashes, hyphens, underscores, spaces and dots. | ||
You may provide an optional ReportAs attribute which will be used as the metric name when reporting counter data. | ||
For the purposes of reporting, metric names will be sanitized by removing all invalid characters from the resulting metric name. | ||
NOTE: performance counters configuration will be lost upon NuGet upgrade. | ||
The following placeholders are supported as InstanceName: | ||
??APP_WIN32_PROC?? - instance name of the application process for Win32 counters. | ||
??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters. | ||
??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters. | ||
--> | ||
</Add> | ||
<Add Type="Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnosticsTelemetryModule, Microsoft.ApplicationInsights"/> | ||
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/> | ||
</TelemetryModules> | ||
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/> | ||
<!-- | ||
Learn more about Application Insights configuration with ApplicationInsights.config here: | ||
http://go.microsoft.com/fwlink/?LinkID=513840 | ||
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file. | ||
--> | ||
<TelemetryInitializers> | ||
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/> | ||
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DomainNameRoleInstanceTelemetryInitializer, Microsoft.AI.WindowsServer"/> | ||
<Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/> | ||
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeviceTelemetryInitializer, Microsoft.AI.WindowsServer"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.SyntheticTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.ClientIpHeaderTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.UserAgentTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.OperationNameTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.OperationIdTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.UserTelemetryInitializer, Microsoft.AI.Web"/> | ||
<Add Type="Microsoft.ApplicationInsights.Web.SessionTelemetryInitializer, Microsoft.AI.Web"/> | ||
</TelemetryInitializers> | ||
<!-- | ||
Learn more about Application Insights configuration with ApplicationInsights.config here: | ||
http://go.microsoft.com/fwlink/?LinkID=513840 | ||
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file. | ||
--></ApplicationInsights> |
32 changes: 32 additions & 0 deletions
32
src/BTC.SiteGenerator.Website/scripts/app/common/nav/navbar.component.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/BTC.SiteGenerator.Website/scripts/app/common/nav/navbar.component.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
src/BTC.SiteGenerator.Website/scripts/app/common/nav/navbar.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export function SiteGenNavbarDirective(): ng.IDirective { | ||
"use strict"; | ||
|
||
return { | ||
templateUrl: "/scripts/app/common/navbar/navbar.html", | ||
restrict: "E", | ||
controller: "siteGenNavbarController", | ||
controllerAs: "mnuCtrl", | ||
link(scope: any, elem: any, attrs: any): any { | ||
|
||
} | ||
}; | ||
} | ||
|
||
export class SiteGenNavbarController { | ||
constructor(private $rootScope: ng.IRootScopeService) { | ||
|
||
} | ||
|
||
click(command: string): void { | ||
let name = "sitegen:" + command; | ||
this.$rootScope.$broadcast(name, {}); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/BTC.SiteGenerator.Website/scripts/app/common/nav/navbar.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import {HomeController} from "./home.controller"; | ||
import {SiteGenNavbarDirective, SiteGenNavbarController} from "../common/nav/navbar.component"; | ||
|
||
const moduleName = "app.home"; | ||
|
||
let homeModule = angular.module(moduleName, []) | ||
.controller("homeController", HomeController); | ||
.controller("homeController", HomeController) | ||
.directive("sgNavbar", SiteGenNavbarDirective); | ||
|
||
export {moduleName, homeModule}; |