Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
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
MDM Lab
Wiki
Commits
745bb13c
Commit
745bb13c
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Improve ui
parent
09fca9ac
No related branches found
No related tags found
1 merge request
!222
Refseq no sys
Pipeline
#122569
waiting for manual action with stages
in 10 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/content/MolstarPdbePlugin.vue
+12
-5
12 additions, 5 deletions
components/content/MolstarPdbePlugin.vue
components/content/StructureDb.vue
+11
-17
11 additions, 17 deletions
components/content/StructureDb.vue
with
23 additions
and
22 deletions
components/content/MolstarPdbePlugin.vue
+
12
−
5
View file @
745bb13c
...
...
@@ -13,6 +13,7 @@ export interface Props {
dataUrls
?:
string
[]
dataUrl
?:
string
uniq
?:
boolean
format
?:
"
pdb
"
|
"
cif
"
}
const
{
mobile
}
=
useDisplay
()
...
...
@@ -52,7 +53,8 @@ const refinedDataUrls = computed(() => {
// const selectedPdb = ref(refinedDataUrls.value?.length > 0 ? refinedDataUrls.value[0] : null)
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
height
:
600
,
uniq
:
false
uniq
:
false
,
format
:
'
pdb
'
})
const
{
width
,
height
}
=
useDisplay
()
...
...
@@ -158,10 +160,15 @@ const moleculeFormat: Ref<string> = ref("pdb")
<
template
>
<template
v-if=
"uniq"
>
<v-row>
<v-btn
size=
"x-small"
variant=
"text"
icon=
"md:visibility"
@
click=
"setSelectedPdbToFirst()"
></v-btn>
<v-btn
:disabled=
"!structureToDownload"
size=
"x-small"
variant=
"text"
icon=
"md:download"
class=
"ml-1"
:href=
"structureToDownload"
></v-btn>
<v-row
justify=
"space-between"
dense
no-gutters
align=
"center"
>
<v-col>
{{
$props
.
format
}}
</v-col>
<v-col>
<v-btn
size=
"x-small"
variant=
"text"
icon=
"md:visibility"
@
click=
"setSelectedPdbToFirst()"
></v-btn>
</v-col>
<v-col>
<v-btn
:disabled=
"!structureToDownload"
size=
"x-small"
variant=
"text"
icon=
"md:download"
class=
"ml-1"
:href=
"structureToDownload"
></v-btn>
</v-col>
</v-row>
</
template
>
<v-row
v-else
>
...
...
This diff is collapsed.
Click to expand it.
components/content/StructureDb.vue
+
11
−
17
View file @
745bb13c
...
...
@@ -71,7 +71,7 @@ const computedAutocompleteMeiliFacetsProps = computed(() => {
const
headers
:
Ref
<
Object
[]
>
=
ref
([
{
title
:
'
Structure
'
,
key
:
'
structure
'
,
sortable
:
false
,
removable
:
false
},
{
title
:
'
Structure
'
,
key
:
'
structure
'
,
sortable
:
false
,
removable
:
false
,
fixed
:
true
,
minWidth
:
"
130px
"
},
{
title
:
'
Foldseek
'
,
key
:
'
Foldseek_name
'
,
sortable
:
false
},
{
title
:
"
System
"
,
key
:
"
System
"
,
removable
:
false
},
{
title
:
"
Gene name
"
,
key
:
"
gene_name
"
,
removable
:
false
},
...
...
@@ -212,22 +212,16 @@ const { refinedUrl: downloadAllCifUrl } = useRefinedUrl("/df-all-cifs.tar.gz")
<CollapsibleChips
:items=
"namesToCollapsibleChips(item.system_genes, item.System_name_ok)"
></CollapsibleChips>
</
template
>
<
template
#
[`
item.structure
`
]=
"{ item }"
>
<v-list>
<v-list-item>
<v-list-item-title>
cif
</v-list-item-title>
<MolstarPdbePlugin
v-if=
"item?.pdb && item.pdb !== 'na'"
:data-urls=
"[`/$
{item.System_name_ok}/${pdbNameToCif(item.pdb)}`]" uniq>
</MolstarPdbePlugin>
</v-list-item>
<v-list-item>
<v-list-item-title>
pdb
</v-list-item-title>
<MolstarPdbePlugin
v-if=
"item?.pdb && item.pdb !== 'na'"
:data-urls=
"[`/$
{item.System_name_ok}/${item.pdb}`]" uniq>
</MolstarPdbePlugin>
</v-list-item>
</v-list>
<v-row
no-gutters
align=
"center"
>
<MolstarPdbePlugin
v-if=
"item?.pdb && item.pdb !== 'na'"
:data-urls=
"[`/$
{item.System_name_ok}/${pdbNameToCif(item.pdb)}`]" uniq format="cif">
</MolstarPdbePlugin>
</v-row>
<v-row
no-gutters
align=
"center"
>
<MolstarPdbePlugin
v-if=
"item?.pdb && item.pdb !== 'na'"
:data-urls=
"[`/$
{item.System_name_ok}/${item.pdb}`]" uniq format="pdb">
</MolstarPdbePlugin>
</v-row>
...
...
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