Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
spot-web-app
Commits
caab5f7c
Commit
caab5f7c
authored
Mar 29, 2021
by
Alexandre Duret-Lutz
Browse files
remove debugging statements
parent
e2e51a90
Pipeline
#27055
passed with stage
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/LtlApp.js
View file @
caab5f7c
/* -*- coding: utf-8 -*-
/* -*- coding: utf-8 -*-
** Copyright (C) 2018-202
0
Laboratoire de Recherche et Développement de
** Copyright (C) 2018-202
1
Laboratoire de Recherche et Développement de
** l'Epita.
** l'Epita.
**
**
** This application is free software; you can redistribute it and/or
** This application is free software; you can redistribute it and/or
...
@@ -328,7 +328,6 @@ function api_endpoint() {
...
@@ -328,7 +328,6 @@ function api_endpoint() {
}
}
function
renderError
(
msg
)
{
function
renderError
(
msg
)
{
console
.
log
(
msg
);
if
(
!
msg
.
startsWith
(
"
500
"
))
return
<
pre
>
{
msg
}
<
/pre>
;
if
(
!
msg
.
startsWith
(
"
500
"
))
return
<
pre
>
{
msg
}
<
/pre>
;
return
(
return
(
<
React
.
Fragment
>
<
React
.
Fragment
>
...
@@ -396,7 +395,6 @@ class LtlInput extends React.Component {
...
@@ -396,7 +395,6 @@ class LtlInput extends React.Component {
randomizeFormula
=
()
=>
{
randomizeFormula
=
()
=>
{
let
url
=
new
URL
(
api_endpoint
()
+
"
random
"
);
let
url
=
new
URL
(
api_endpoint
()
+
"
random
"
);
console
.
log
(
this
.
props
.
expert
);
if
(
this
.
props
.
expert
)
if
(
this
.
props
.
expert
)
// turn on PSL generation
// turn on PSL generation
url
.
searchParams
.
append
(
"
p
"
,
1
);
url
.
searchParams
.
append
(
"
p
"
,
1
);
...
@@ -1125,16 +1123,11 @@ class LtlTranslate extends React.Component {
...
@@ -1125,16 +1123,11 @@ class LtlTranslate extends React.Component {
}
}
showfilehoa
=
()
=>
{
showfilehoa
=
()
=>
{
console
.
log
(
"
showfile:
"
,
this
.
state
.
showfile
);
console
.
log
(
"
showfile:
"
,
this
.
state
.
showfile
===
1
);
let
newval
=
this
.
state
.
showfile
===
1
?
0
:
1
;
let
newval
=
this
.
state
.
showfile
===
1
?
0
:
1
;
console
.
log
(
"
showfile:
"
,
newval
);
this
.
setState
({
showfile
:
newval
});
this
.
setState
({
showfile
:
newval
});
console
.
log
(
"
showfile:
"
,
this
.
state
.
showfile
);
};
};
showfilespin
=
()
=>
{
showfilespin
=
()
=>
{
this
.
setState
({
showfile
:
this
.
state
.
showfile
===
2
?
0
:
2
});
this
.
setState
({
showfile
:
this
.
state
.
showfile
===
2
?
0
:
2
});
console
.
log
(
"
showfile:
"
,
this
.
state
.
showfile
);
};
};
buildResult
(
res
)
{
buildResult
(
res
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment