Target to .NET 4.6.1, Update SignalR, Owin, Nancy (#84)

* Target .net 4.6.1

* Update to SignalR 2.2.2

* Fix Socks Reference in NZBDrone.Common

* UI Fixes, Build Fixes

* Update Nancy to 1.4.4

* Upgrade Microsoft Owin to 3.1.0

* Delete npm-shrinkwrap.json

* Fix SignalR Messages
This commit is contained in:
Qstick 2017-09-20 22:05:00 -04:00 committed by GitHub
parent fbe6bfc78e
commit f460f630c3
317 changed files with 9128 additions and 38017 deletions

View file

@ -1,4 +1,4 @@
const $ = require('JsLibraries/jquery');
import $ from 'jquery';
const absUrlRegex = /^(https?:)?\/\//i;
const apiRoot = window.Sonarr.apiRoot;
@ -34,9 +34,9 @@ function addApiKey(xhr) {
xhr.headers['X-Api-Key'] = window.Sonarr.apiKey;
}
module.exports = function(jQuery) {
const originalAjax = jQuery.ajax;
jQuery.ajax = function(xhr) {
export default function() {
const originalAjax = $.ajax;
$.ajax = function(xhr) {
if (xhr && isRelative(xhr)) {
moveBodyToQuery(xhr);
addRootUrl(xhr);
@ -44,4 +44,4 @@ module.exports = function(jQuery) {
}
return originalAjax.apply(this, arguments);
};
};
}