Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Commit 077a76c

Browse files
committed
Remove typings. Update readme and code clean-up.
1 parent 3d88892 commit 077a76c

File tree

5 files changed

+6
-25
lines changed

5 files changed

+6
-25
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Install dependencies
1111
npm install
1212
`
1313

14-
Install type definitions
15-
16-
`
17-
typings install
18-
`
19-
2014
To build and watch for changes
2115

2216
`

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
},
1515
"main": "main.js",
1616
"scripts": {
17-
"test": "echo \"Error: no test specified\" && exit 1",
18-
"postinstall": "typings install",
17+
"test": "echo \"Error: no test specified\" && exit 1",
1918
"start": "electron main.js",
2019
"build": "webpack --progress --profile --colors --display-error-details --display-cached",
2120
"watch": "webpack-dashboard -- webpack --watch --progress --profile --colors --display-error-details --display-cached",

src/services/electron.service.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'rxjs/add/operator/toPromise';
44
import { remote } from "electron";
55

66
import { RuntimeInfoModel } from "../models/runtime-info.model";
7+
import { AdalConfig } from "../adal/adal-config";
78

89
@Injectable()
910
export class ElectronService {
@@ -24,9 +25,9 @@ export class ElectronService {
2425
public logIn(state = "/") {
2526
let clientID = "94e57a3e-2436-4b86-a280-5286e2152a22";
2627
let originalURL = location.href;
27-
let authUrl = "https://login.microsoftonline.com/" + this._serviceConstants.tenantID +
28-
"/oauth2/authorize?response_type=id_token&client_id=" + this._serviceConstants.clientID +
29-
"&redirect_uri=" + encodeURIComponent(this._serviceConstants.redirectURL) +
28+
let authUrl = "https://login.microsoftonline.com/" + AdalConfig.tenant +
29+
"/oauth2/authorize?response_type=id_token&client_id=" + AdalConfig.clientId +
30+
"&redirect_uri=" + encodeURIComponent(AdalConfig.redirectUri) +
3031
"&state=" + state + "&nonce=SomeNonce";
3132
let BrowserWindow = remote.BrowserWindow;
3233

typings.json

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

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
'reflect-metadata',
1414
'zone.js'
1515
],
16-
'common': ['es6-shim'],
16+
'common': [],
1717
'app': './src/app/main.ts'
1818
},
1919

0 commit comments

Comments
 (0)