Skip to content

Commit 9562cf9

Browse files
committed
Remove SignalR references, added to howto branch instead
1 parent ec03396 commit 9562cf9

File tree

8 files changed

+2
-208
lines changed

8 files changed

+2
-208
lines changed

ClientApp/app/app.module.browser.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { BrowserModule } from '@angular/platform-browser';
33
import { APP_BASE_HREF } from '@angular/common';
44
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
55

6-
import { SignalRModule, SignalRConfiguration } from 'ng2-signalr';
7-
86
import { ORIGIN_URL } from './shared/constants/baseurl.constants';
97
import { AppModuleShared } from './app.module';
108
import { AppComponent } from './app.component';
@@ -13,17 +11,6 @@ import { BrowserTransferStateModule } from '../modules/transfer-state/browser-tr
1311

1412
import { BrowserPrebootModule } from 'preboot/browser';
1513

16-
export function createConfig(): SignalRConfiguration {
17-
const signalRConfig = new SignalRConfiguration();
18-
19-
signalRConfig.hubName = 'Ng2SignalRHub';
20-
signalRConfig.qs = { user: 'donald' };
21-
signalRConfig.url = 'http://ng2-signalr-backend.azurewebsites.net/';
22-
signalRConfig.logging = true;
23-
24-
return signalRConfig;
25-
}
26-
2714
export function getOriginUrl() {
2815
return window.location.origin;
2916
}
@@ -44,9 +31,8 @@ export function getRequest() {
4431
BrowserTransferStateModule,
4532

4633
// Our Common AppModule
47-
AppModuleShared,
34+
AppModuleShared
4835

49-
SignalRModule.forRoot(createConfig)
5036
],
5137
providers: [
5238
{

ClientApp/app/app.module.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,6 @@ export function createTranslateLoader(http: Http, baseHref) {
110110
]
111111
}
112112
},
113-
{
114-
path: 'chat', component: ChatComponent,
115-
// Wait until the resolve is finished before loading the Route
116-
resolve: { connection: ConnectionResolver },
117-
data: {
118-
title: 'SignalR chat example',
119-
meta: [{ name: 'description', content: 'This is an Chat page Description!' }],
120-
links: [
121-
{ rel: 'canonical', href: 'http://blogs.example.com/chat/something' },
122-
{ rel: 'alternate', hreflang: 'es', href: 'http://es.example.com/chat' }
123-
]
124-
}
125-
},
126113
{
127114
path: 'ngx-bootstrap', component: NgxBootstrapComponent,
128115
data: {

ClientApp/app/containers/chat/chat.component.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

ClientApp/app/containers/chat/chat.component.scss

Lines changed: 0 additions & 52 deletions
This file was deleted.

ClientApp/app/containers/chat/chat.component.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

ClientApp/app/shared/route.resolver.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<base href="/" />
@@ -18,14 +18,6 @@
1818
<body>
1919
@RenderBody()
2020

21-
<!-- *** NOTE *** Remove this and the signalr script include below
22-
- if you're NOT going to use SignalR -->
23-
<script src="https://code.jquery.com/jquery-2.2.4.min.js"
24-
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
25-
crossorigin="anonymous"></script>
26-
27-
<script src="http://ajax.aspnetcdn.com/ajax/signalr/jquery.signalr-2.2.1.min.js"></script>
28-
2921
<!-- Here we're passing down any data to be used by grabbed and parsed by Angular -->
3022
@Html.Raw(ViewData["TransferData"])
3123
@Html.Raw(ViewData["Scripts"])

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@
4949
"jquery": "^2.2.1",
5050
"json-loader": "^0.5.4",
5151
"moment": "2.18.1",
52-
"ng2-signalr": "2.0.4",
5352
"ngx-bootstrap": "2.0.0-beta.3",
5453
"node-sass": "^4.5.2",
5554
"preboot": "^5.0.0",
5655
"raw-loader": "^0.5.1",
5756
"rimraf": "^2.6.2",
5857
"rxjs": "^5.4.3",
5958
"sass-loader": "^6.0.6",
60-
"signalr": "^2.2.1",
6159
"style-loader": "^0.18.2",
6260
"to-string-loader": "^1.1.5",
6361
"typescript": "2.5.2",

0 commit comments

Comments
 (0)