Toggle navigation
Toggle navigation
This project
Loading...
Sign in
digsig
/
digsig-services
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Stefan Huber
2017-03-27 12:22:43 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e04b542bd15da0c5243c45bc9d83c05da65b2fc9
e04b542b
1 parent
6a594acd
new rel
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
dist/services/rest.d.ts
dist/services/rest.js
dist/services/rest.d.ts
View file @
e04b542
import
{
Http
}
from
'@angular/http'
;
import
{
DeviceInfo
}
from
'./../api/device-info'
;
import
{
Node
}
from
'./../api/node'
;
import
'rxjs/add/operator/timeout'
;
export
declare
const
ERROR_CODE_UNAUTHORIZED
:
string
;
export
declare
const
ERROR_CODE_NOT_FOUND
:
string
;
export
declare
const
ERROR_CODE_SERVER_ERROR
:
string
;
...
...
dist/services/rest.js
View file @
e04b542
...
...
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
};
var
core_1
=
require
(
"@angular/core"
);
var
http_1
=
require
(
"@angular/http"
);
require
(
"rxjs/add/operator/timeout"
);
exports
.
ERROR_CODE_UNAUTHORIZED
=
"unauthorized"
;
exports
.
ERROR_CODE_NOT_FOUND
=
"not-found"
;
exports
.
ERROR_CODE_SERVER_ERROR
=
"server-error"
;
...
...
@@ -93,6 +94,7 @@ var Rest = Rest_1 = (function () {
return
new
Promise
(
function
(
resolve
,
reject
)
{
if
(
node
&&
node
.
IP
)
{
_this
.
http
.
get
(
"http://"
+
node
.
IP
+
":"
+
Rest_1
.
localWebPort
+
"/device"
)
.
timeout
(
2000
)
.
subscribe
(
function
(
response
)
{
try
{
var
body
=
response
.
json
();
...
...
Please
register
or
login
to post a comment