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
#!/bin/sh | |
# | |
# A git pre-commit hook for node.js projects to | |
# * lint JavaScript files with [jshint](https://github.com/jshint/jshint/) | |
# * run [mocha](http://visionmedia.github.com/mocha/) tests from npm, as defined in package.json | |
# * build docs (e.g. using docco or markdox), as defined in package.json | |
# | |
# package.json should have a scripts block that defines how to run tests and build docs: | |
# "scripts" : { | |
# "test": "./node_modules/mocha/bin/mocha -R spec" |
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 class SignalR { | |
constructor (AccessToken, DeviceId, listeners) { | |
this.$bus = Vue.prototype.$bus | |
this.url = api.signalR.connection() | |
this.AccessToken = AccessToken | |
this.DeviceId = DeviceId | |
this.prefixEventsEmitInvoke = 'to-signalR.invoke' | |
this.prefixEventsOnInvoke = 'from-signalR.invoke' | |
this.prefixEventsOnHubProxy = 'from-signalR.on' | |
this.listeners = listeners |
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 ensures support for pretty links even after page refresh (F5) | |
<IfModule mod_rewrite.c> | |
Options +FollowSymlinks | |
RewriteEngine On | |
# Don't rewrite files or directories | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] |