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.Threading.Tasks; | |
using System.IO; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; |
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
services.AddCors(options => | |
{ | |
options.AddPolicy("CorsPolicy", | |
builder => builder.AllowAnyOrigin() | |
.AllowAnyMethod() | |
.AllowAnyHeader() | |
.AllowCredentials()); | |
}); |
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.IO; | |
… | |
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
{ | |
loggerFactory.AddConsole(Configuration.GetSection(“Logging”)); | |
loggerFactory.AddDebug(); | |
app.Use(async (context, next) => | |
{ |
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
app.Use(async (context, next) => | |
{ | |
await next(); | |
// If there’s no available file and the request doesn’t contain an extension, we’re probably trying to access a page. | |
// Rewrite request to use app root | |
if (context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value) && !context.Request.Path.Value.StartsWith(“/api”)) | |
{ | |
context.Request.Path = “/index.html”; | |
context.Response.StatusCode = 200; // Make sure we update the status code, otherwise it returns 404 | |
await next(); |
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
<Project Sdk=”Microsoft.NET.Sdk.Web”> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
<TypeScriptCompilerBlocked>true</TypeScriptCompilerBlocked> | |
</PropertyGroup> | |
<ItemGroup> | |
<Folder Include="wwwroot\" /> | |
</ItemGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.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
import { Component, OnInit, OnDestroy } from '@angular/core'; | |
import { SubscriptionManager } from 'path/to/subscription_manager'; | |
@Component({ | |
selector: 'app-thing', | |
templateUrl: './app-thing.component.html', | |
styleUrls: ['./app-thing.component.scss'] | |
}) | |
export class PatientReviewComponent implements OnInit, OnDestroy { | |
public isLoading: boolean = true; |
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
(function() { | |
"use strict"; | |
angular.module('msa') | |
.controller('msaCtrl', msaCtrl); | |
msaCtrl.$inject = ['AppService', 'AppACL']; | |
function msaCtrl( AppService, AppACL ) { | |
var vm = this; |
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
(function() { | |
angular.module('vcModules') | |
.factory('QualityService', QualityService); | |
QualityService.$inject = ['$rootScope','AppLocalStorage']; | |
function QualityService($rootScope, AppLocalStorage) { | |
var vm = this; | |
var foo, bar; |
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
(function() { | |
'use strict'; | |
angular.module('app.flipbook').config(config); | |
config.$inject = ['$stateProvider']; | |
/* @ngInject */ | |
function config($stateProvider) { | |
$stateProvider |
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
// Karma configuration | |
// Generated on Tue Sep 24 2013 17:56:40 GMT-0400 (EDT) | |
module.exports = function(config) { | |
config.set({ | |
preprocessors: { | |
'src/**/!(*test).js': ['coverage'], | |
// 'build/**/!(webtrends).js': ['coverage'], | |
// 'src/!(webtrends)/*.html': ['coverage'], | |
// 'build/*.html': ['coverage'], |
NewerOlder