Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cosy-Bio
Drugst.One
frontend
Commits
46d2edce
Commit
46d2edce
authored
2 years ago
by
AndiMajore
Browse files
Options
Downloads
Patches
Plain Diff
updated playground options
parent
de2978d5
No related branches found
No related tags found
No related merge requests found
Pipeline
#63273
canceled
2 years ago
Stage: setup
Stage: check
Stage: build
Stage: deploy
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/components/playground/sidebar/sidebar.component.html
+99
-62
99 additions, 62 deletions
src/app/components/playground/sidebar/sidebar.component.html
src/app/components/playground/sidebar/sidebar.component.ts
+22
-0
22 additions, 0 deletions
src/app/components/playground/sidebar/sidebar.component.ts
with
121 additions
and
62 deletions
src/app/components/playground/sidebar/sidebar.component.html
+
99
−
62
View file @
46d2edce
...
...
@@ -562,13 +562,6 @@
(onChange)=
"changeConfig('showLegend', $event)"
tooltip=
"Adds or removes the Legend."
></app-switch>
<app-dropdown
[items]=
"sidebarPosList"
[model]=
"getConfig('showSidebar')"
label=
"Panel-Sidebar Position"
tooltip=
"Set the side, where the sidebar should be located."
(onChange)=
"changeConfig('showSidebar', $event)"
></app-dropdown>
<app-dropdown
[items]=
"networkMenuPosList"
[model]=
"getConfig('showNetworkMenu')"
...
...
@@ -576,6 +569,17 @@
tooltip=
"Set the side, where the network menu should be located."
(onChange)=
"changeConfig('showNetworkMenu', $event)"
></app-dropdown>
<app-dropdown
[items]=
"sidebarPosList"
[model]=
"getConfig('showSidebar')"
label=
"Panel-Sidebar Position"
tooltip=
"Set the side, where the sidebar should be located."
(onChange)=
"changeConfig('showSidebar', $event)"
></app-dropdown>
<div
[hidden]=
"
getConfig('showSidebar') != null && getConfig('showSidebar') === false"
style=
"padding-left: 12px"
>
<app-switch
label=
"Show Overview Panel"
[model]=
"
...
...
@@ -603,10 +607,16 @@
tooltip=
"Adds or removes the node selector card to/from the right sidepanel."
></app-switch>
<app-switch
label=
"Show Simple Analysis"
[model]=
"getConfig('showSimpleAnalysis') === true"
label=
"Show Connect Genes"
[model]=
"getConfig('showConnectGenes') == null ||getConfig('showConnectGenes') === true"
(onChange)=
"changeConfig('showConnectGenes', $event)"
tooltip=
"Adds or removes the connect genes card card to/from the right sidepanel."
></app-switch>
<app-switch
label=
"Show Quick Drug Search"
[model]=
"getConfig('showSimpleAnalysis') == null || getConfig('showSimpleAnalysis') === true"
(onChange)=
"changeConfig('showSimpleAnalysis', $event)"
tooltip=
"Adds or removes the
simple
analysis card card to/from the right sidepanel."
tooltip=
"Adds or removes the
quick drug search
analysis card card to/from the right sidepanel."
></app-switch>
<app-switch
label=
"Show Advanced Analysis"
...
...
@@ -617,6 +627,33 @@
(onChange)=
"changeConfig('showAdvAnalysis', $event)"
tooltip=
"Adds or removes the advanced analysis card to/from the right sidepanel."
></app-switch>
<div
[hidden]=
"getConfig('showAdvAnalysis') != null &&
getConfig('showAdvAnalysis') === false"
style=
"padding-left: 12px"
>
<app-switch
label=
"Drug Target Search"
[model]=
"getConfig('showAdvAnalysisContent') == null || getConfig('showAdvAnalysisContent').includes('drug-target-search')"
(onChange)=
"changeAdvAnalysisConfig('drug-target-search', $event)"
tooltip=
"Adds or removes the button for drug target algorithm execution from Analysis panel."
></app-switch>
<app-switch
label=
"Drug Search"
[model]=
"getConfig('showAdvAnalysisContent') == null || getConfig('showAdvAnalysisContent').includes('drug-search')"
(onChange)=
"changeAdvAnalysisConfig('drug-search', $event)"
tooltip=
"Adds or removes the button for drug search algorithm execution from Analysis panel."
></app-switch>
<app-switch
label=
"Enrichment: g:Profiler"
[model]=
"getConfig('showAdvAnalysisContent') == null ||getConfig('showAdvAnalysisContent').includes('enrichment-gprofiler')"
(onChange)=
"changeAdvAnalysisConfig('enrichment-gprofiler', $event)"
tooltip=
"Adds or removes the button redirecting to g:Profiler (https://biit.cs.ut.ee/gprofiler/) for gene enrichment analysis from the analysis panel."
></app-switch>
<app-switch
label=
"Enrichment: DIGEST"
[model]=
"getConfig('showAdvAnalysisContent') == null ||getConfig('showAdvAnalysisContent').includes('enrichment-digest')"
(onChange)=
"changeAdvAnalysisConfig('enrichment-digest', $event)"
tooltip=
"Adds or removes the button redirecting to DIGEST (https://digest.net) for gene enrichment analysis from the analysis panel."
></app-switch>
</div>
<app-switch
label=
"Show Selection"
[model]=
"
...
...
@@ -637,6 +674,7 @@
</div>
</div>
</div>
</div>
<div
class=
"accordion-item"
[ngClass]=
"{
...
...
@@ -726,32 +764,31 @@
<app-textinput
label=
"Network Menu Adjacent Drugs"
label=
"Network Menu
'
Adjacent Drugs
' button label
"
[model]=
"getConfig('networkMenuButtonAdjacentDrugsLabel')"
(onChange)=
"changeConfig('networkMenuButtonAdjacentDrugsLabel',$event != null && $event.length > 0 ? $event : 'Drugs')"
tooltip=
"Sets the label of the adjacent drugs button in the side-mounted network menu."
></app-textinput>
<app-textinput
label=
"Network Menu Adjacent Disorders (protein)"
label=
"Network Menu
'
Adjacent Disorders (protein)
' button label
"
[model]=
"getConfig('networkMenuButtonAdjacentDisordersProteinsLabel')"
(onChange)=
"changeConfig('networkMenuButtonAdjacentDisordersProteinsLabel',$event != null && $event.length > 0 ? $event : 'Disorders (protein)')"
tooltip=
"Sets the label of the adjacent disorders connecting proteins button in the side-mounted network menu."
></app-textinput>
<app-textinput
label=
"Network Menu Adjacent Disorders (drug)"
label=
"Network Menu
'
Adjacent Disorders (drug)
' button label
"
[model]=
"getConfig('networkMenuButtonAdjacentDisordersDrugsLabel')"
(onChange)=
"changeConfig('networkMenuButtonAdjacentDisordersDrugsLabel',$event != null && $event.length > 0 ? $event : 'Disorders (drug)')"
tooltip=
"Sets the label of the adjacent disorders connecting drugs button in the side-mounted network menu."
></app-textinput>
<app-textinput
label=
"Network Menu Animation"
label=
"Network Menu
'
Animation
' button label
"
[model]=
"getConfig('networkMenuButtonAnimationLabel')"
(onChange)=
"changeConfig('networkMenuButtonAnimationLabel',$event != null && $event.length > 0 ? $event : 'Animation')"
tooltip=
"Sets the label of the animation button in the side-mounted network menu."
></app-textinput>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/components/playground/sidebar/sidebar.component.ts
+
22
−
0
View file @
46d2edce
...
...
@@ -226,6 +226,27 @@ export class SidebarComponent implements OnInit {
this
.
configChangeEvent
.
emit
(
out
)
}
changeAdvAnalysisConfig
(
name
:
string
,
value
:
boolean
)
{
let
config
=
this
.
getConfig
(
'
showAdvAnalysisContent
'
)
console
.
log
(
config
)
if
(
config
==
null
)
{
config
=
[
'
drug-target-search
'
,
'
drug-search
'
,
'
enrichment-gprofiler
'
,
'
enrichment-digest
'
]
}
console
.
log
(
config
)
console
.
log
(
config
.
includes
(
name
))
if
(
value
)
{
if
(
!
config
.
includes
(
name
))
config
.
push
(
name
)
}
else
{
let
idx
=
config
.
indexOf
(
name
)
if
(
idx
>
-
1
)
config
.
splice
(
idx
,
1
)
}
console
.
log
(
config
)
this
.
changeConfig
(
"
showAdvAnalysisContent
"
,
config
)
}
changeGroups
(
name
:
string
,
value
:
any
)
{
let
out
=
{}
// @ts-ignore
...
...
@@ -322,6 +343,7 @@ export class SidebarComponent implements OnInit {
}
getConfig
(
param
:
string
)
{
// @ts-ignore
return
this
.
config
[
param
]
}
...
...
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