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
<link rel="import" href="../smoothie-chart/smoothie-chart.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<#@ template debug="true" hostspecific="true" language="C#" #> | |
<#@ output extension=".d.ts" #> | |
<# /* Update this line to match your version of SignalR */ #> | |
<#@ assembly name="$(SolutionDir)\packages\Microsoft.AspNet.SignalR.Core.1.1.3\lib\net40\Microsoft.AspNet.SignalR.Core.dll" #> | |
<# /* Load the current project's DLL to make sure the DefaultHubManager can find things */ #> | |
<#@ assembly name="$(TargetPath)" #> | |
<#@ assembly name="System.Core" #> | |
<#@ assembly name="System.Web" #> | |
<#@ assembly name="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #> | |
<#@ assembly name="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #> |
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.IO; | |
using System.Linq; | |
using Microsoft.AspNet.SignalR.Json; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Newtonsoft.Json.Serialization; |
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
define(['exports', 'durandal/system'], function(exports, system) { | |
var afterDash = function(str) { | |
var dashIndex = str.lastIndexOf("/", str.length - 1); | |
return str.substr(dashIndex + 1, str.length - dashIndex); | |
}; | |
var findPropCaseInsensitive = function(obj, propName) { | |
var propLower = propName.toLowerCase(); | |
for (var prop in obj) { |
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
/** | |
* Resolves the default object instance for a module. | |
* If the module is a function, that function is called with `new` and it's result is returned. | |
* If the module is an export object (AMD), a function named '[moduleId]' or '[moduleId]View' created with 'new' and returned. | |
* If the module is an export object (AMD), a instance named '[moduleId]' or '[moduleId]View' is returned. | |
* If the module is an object, the instance is returned. | |
* @method resolveObject | |
* @param {object} module The module to use to get/create the default object for. | |
* @return {object} The default object for the module. | |
*/ |
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
getActivatableInstance: function (routeInfo, params, module) { | |
var afterDash = function (str) { | |
var dashIndex = str.lastIndexOf("/", str.length - 1); | |
return str.substr(dashIndex+1, str.length - dashIndex); | |
}; | |
var findPropCaseInsensitive = function(obj, propName) { | |
propLower = propName.toLowerCase(); | |
for (var prop in obj) { |