Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ESAP GUI
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
ESAP GUI
Commits
ba4d8496
Commit
ba4d8496
authored
2 years ago
by
stvoutsin
Browse files
Options
Downloads
Patches
Plain Diff
Rename Platform to RuntimePlatform
parent
a261bd8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!87
Issue/96 advanced search
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/services/Interactive.js
+13
-13
13 additions, 13 deletions
src/components/services/Interactive.js
with
13 additions
and
13 deletions
src/components/services/Interactive.js
+
13
−
13
View file @
ba4d8496
...
...
@@ -15,8 +15,8 @@ export default function Interactive() {
const
[
searchTypeFilter
,
setSearchTypeFilter
]
=
React
.
useState
(
""
);
const
[
searchAuthor
,
setSearchAuthor
]
=
React
.
useState
(
""
);
const
[
searchAuthorFilter
,
setSearchAuthorFilter
]
=
React
.
useState
(
""
);
const
[
searchPlatform
,
setSearchPlatform
]
=
React
.
useState
(
""
);
const
[
searchPlatformFilter
,
setSearchPlatformFilter
]
=
React
.
useState
(
""
);
const
[
search
Runtime
Platform
,
setSearch
Runtime
Platform
]
=
React
.
useState
(
""
);
const
[
search
Runtime
PlatformFilter
,
setSearch
Runtime
PlatformFilter
]
=
React
.
useState
(
""
);
const
[
showFacilities
,
setShowFacilities
]
=
React
.
useState
(
false
);
const
[
showNext
,
setShowNext
]
=
React
.
useState
(
false
);
const
[
showSkip
,
setShowSkip
]
=
React
.
useState
(
true
);
...
...
@@ -97,7 +97,7 @@ export default function Interactive() {
?
list_of_workflows
:
list_of_workflows
.
filter
(
workflow
=>
((
typeof
workflow
.
keywords
===
'
string
'
)
&&
workflow
.
keywords
.
toLowerCase
().
includes
(
searchTypeFilter
.
toLocaleLowerCase
()))
&&
((
typeof
workflow
.
runtimePlatform
===
'
string
'
)
&&
workflow
.
runtimePlatform
.
toLowerCase
().
includes
(
searchPlatformFilter
.
toLocaleLowerCase
()))
&&
((
typeof
workflow
.
runtimePlatform
===
'
string
'
)
&&
workflow
.
runtimePlatform
.
toLowerCase
().
includes
(
search
Runtime
PlatformFilter
.
toLocaleLowerCase
()))
&&
((
typeof
workflow
.
author
===
'
string
'
)
&&
workflow
.
author
.
toLowerCase
().
includes
(
searchAuthorFilter
.
toLocaleLowerCase
())))
:
list_of_workflows
.
filter
(
workflow
=>
(
typeof
workflow
.
name
===
'
string
'
)
&&
workflow
.
name
.
toLowerCase
().
includes
(
searchTerm
.
toLocaleLowerCase
())
||
...
...
@@ -134,8 +134,8 @@ export default function Interactive() {
setAdvancedClicked
(
false
);
setSearchAuthor
(
""
);
setSearchAuthorFilter
(
""
);
setSearchPlatform
(
""
);
setSearchPlatformFilter
(
""
);
setSearch
Runtime
Platform
(
""
);
setSearch
Runtime
PlatformFilter
(
""
);
setSearchType
(
""
);
setSearchTypeFilter
(
""
);
};
...
...
@@ -152,8 +152,8 @@ export default function Interactive() {
setSearchAuthorFilter
(
""
);
setSearchType
(
""
);
setSearchTypeFilter
(
""
);
setSearchPlatform
(
""
);
setSearchPlatformFilter
(
""
);
setSearch
Runtime
Platform
(
""
);
setSearch
Runtime
PlatformFilter
(
""
);
}
...
...
@@ -168,7 +168,7 @@ export default function Interactive() {
}
if
(
searchAuthor
.
toLowerCase
()
!=
"
all
"
)
{
setSearchPlatformFilter
(
searchPlatform
.
toLowerCase
());
setSearch
Runtime
PlatformFilter
(
search
Runtime
Platform
.
toLowerCase
());
}
setAdvancedClicked
(
true
);
...
...
@@ -186,9 +186,9 @@ export default function Interactive() {
setSearchAuthor
(
e
.
target
.
value
);
}
const
handlePlatformChange
=
e
=>
{
const
handle
Runtime
PlatformChange
=
e
=>
{
e
.
preventDefault
();
setSearchPlatform
(
e
.
target
.
value
);
setSearch
Runtime
Platform
(
e
.
target
.
value
);
}
const
onClickBack
=
e
=>
{
...
...
@@ -206,8 +206,8 @@ export default function Interactive() {
setSearchAuthorFilter
(
""
);
setSearchType
(
""
);
setSearchTypeFilter
(
""
);
setSearchPlatform
(
""
);
setSearchPlatformFilter
(
""
);
setSearch
Runtime
Platform
(
""
);
setSearch
Runtime
PlatformFilter
(
""
);
};
...
...
@@ -296,7 +296,7 @@ export default function Interactive() {
<
/li
>
<
li
>
<
div
className
=
"
advanced-form-div
"
><
label
>
Runtime
Platform
:
<
/label
>
<
select
class
=
"
form-select advanced-float-right
"
aria
-
label
=
"
record-type
"
id
=
"
record-type
"
name
=
"
record-type
"
onChange
=
{
handlePlatformChange
}
>
<
select
class
=
"
form-select advanced-float-right
"
aria
-
label
=
"
record-type
"
id
=
"
record-type
"
name
=
"
record-type
"
onChange
=
{
handle
Runtime
PlatformChange
}
>
<
option
value
=
"
all
"
>
All
<
/option
>
<
option
value
=
"
Python
"
>
Python
<
/option
>
<
option
value
=
"
R
"
>
R
<
/option
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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