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
using Microsoft.Owin; | |
using Microsoft.Owin.Extensions; | |
using Owin; | |
using System.Web; | |
using System.Web.Http; | |
using System.Web.SessionState; | |
using WiredViews.WIR03.Web.Api.Configuration; | |
[assembly: OwinStartup(typeof(WiredViews.WIR03.Web.Api.Startup))] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using CMS.DataEngine; | |
using System.Web.Http; | |
namespace WiredViews.AQU04.Web.Api.Kentico | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using CMS.Core; | |
namespace WiredViews.AQU04.Web.Api.Kentico | |
{ | |
/// <summary> |
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
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> | |
</dependentAssembly> | |
<dependentAssembly> | |
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> | |
</dependentAssembly> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Web.Http; | |
using System.Web.Http.Description; | |
namespace WiredViews.WIR03.Web.Api.Controllers | |
{ |
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
// branda.local/styles.css | |
p { | |
color: red; | |
} | |
// brandb.local/styles.css | |
p { | |
color: blue; | |
} |
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
/** | |
Takes something like this | |
[Route("api/customer/{customerId:int}/[controller]")] | |
public class SpecialOrderController : Controller | |
{ | |
// ... | |
[HttpGet("~/api/[controller]")] | |
[Produces(typeof(IEnumerable<SpecialOrderResponse>))] |
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
import { Directive, ElementRef, EventEmitter, OnInit, Output, Renderer2 } from '@angular/core'; | |
/** | |
* Sourced from https://netbasal.com/implementing-event-modifiers-in-angular-87e1a07969ce | |
*/ | |
@Directive({ | |
selector: | |
// tslint:disable-next-line:directive-selector | |
'[click.stop],[click.prevent],[click.stop.prevent],[click.prevent.stop]', | |
}) |
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
export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; | |
export interface IEnvironment { | |
production: boolean; | |
// Enables use of ng.profiler.timeChangeDetection(); in browser console | |
enableDebugTools: boolean; | |
logLevel: LogLevel; | |
apiUrl: string; | |
apiHost: string; |
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
/* | |
* In development mode, to ignore zone related error stack frames such as | |
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can | |
* import the following file, but please comment it out in production mode | |
* because it will have performance impact when throw error | |
*/ | |
import 'zone.js/dist/zone-error'; // Included with Angular CLI. | |
import { IEnvironment } from '@environments/ienvironment'; |