Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nrp-frontend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neurorobotics Platform
nrp-frontend
Commits
ede31f34
Commit
ede31f34
authored
1 year ago
by
Sandro Weber
Browse files
Options
Downloads
Patches
Plain Diff
Merged in NRRPLT-0000_hotfix-build-failure (pull request #57)
[HOTFIX] npm build failure * [HOTFIX] npm build failure
parent
a5aaab8d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/experiment-workbench/experiment-tools-service.js
+2
-2
2 additions, 2 deletions
...mponents/experiment-workbench/experiment-tools-service.js
src/services/proxy/http-proxy-service.js
+2
-5
2 additions, 5 deletions
src/services/proxy/http-proxy-service.js
with
4 additions
and
7 deletions
src/components/experiment-workbench/experiment-tools-service.js
+
2
−
2
View file @
ede31f34
import
FlexLayout
from
'
flexlayout-react
'
;
import
DescriptionIcon
from
'
@material-ui/icons/Description
'
;
import
ListAltIcon
from
'
@material-ui/icons/ListAlt
'
;
const
appConfig
=
window
.
appConfig
;
import
NrpCoreDashboard
from
'
../nrp-core-dashboard/nrp-core-dashboard
'
;
import
TransceiverFunctionEditor
from
'
../tf-editor/tf-editor
'
;
import
XpraView
from
'
../xpra/xpra-view
'
;
import
{
SIM_TOOL
}
from
'
../constants
'
;
const
appConfig
=
window
.
appConfig
;
let
_instance
=
null
;
const
SINGLETON_ENFORCER
=
Symbol
();
...
...
This diff is collapsed.
Click to expand it.
src/services/proxy/http-proxy-service.js
+
2
−
5
View file @
ede31f34
...
...
@@ -74,16 +74,13 @@ export class HttpProxyService extends HttpService {
let
response
;
try
{
// try to fetch the request
response
=
await
fetch
(
requestURL
,
options
);
// emit CONNECTED event, if needed
EventProxyService
.
instance
.
emitConnected
();
this
.
failedRequestsCount
=
0
;
}
catch
(
error
)
{
this
.
failedRequestsCount
++
;
// increment counter on unsuccessful request
if
(
this
.
failedRequestsCount
>=
MAX_FAILED_REQUESTS
)
{
// only emit event after MAX_FAILED_REQUESTS unsuccessful requests
// emit DISCONNECTED event
this
.
failedRequestsCount
++
;
if
(
this
.
failedRequestsCount
>=
MAX_FAILED_REQUESTS
)
{
EventProxyService
.
instance
.
emitDisconnected
({
code
:
requestURL
.
href
,
data
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment