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
67b25417
Commit
67b25417
authored
9 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
fix bugs on structure table
parent
5358a8e8
No related branches found
No related tags found
No related merge requests found
Pipeline
#133789
waiting for manual action with stages
in 8 minutes and 38 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/ServerDbTable.vue
+0
-5
0 additions, 5 deletions
components/ServerDbTable.vue
components/content/RefseqDb.vue
+1
-1
1 addition, 1 deletion
components/content/RefseqDb.vue
components/content/StructureDb.vue
+7
-4
7 additions, 4 deletions
components/content/StructureDb.vue
with
8 additions
and
10 deletions
components/ServerDbTable.vue
+
0
−
5
View file @
67b25417
...
...
@@ -6,9 +6,6 @@ import { useSlots } from 'vue'
import
{
useDisplay
}
from
"
vuetify
"
;
import
{
toValue
,
useThrottleFn
}
from
'
@vueuse/core
'
import
type
{
FacetInputItem
,
FilterItem
}
from
'
@/components/AutocompleteMeiliFacets.vue
'
import
{
useMeiliSearch
}
from
"
#imports
"
import
type
{
SearchResponse
}
from
'
meilisearch
'
// import { saveAs } from "file-saver";
export
interface
SortItem
{
key
:
string
,
order
:
boolean
|
'
asc
'
|
'
desc
'
...
...
@@ -79,8 +76,6 @@ const computedTableHeight = computed(() => {
})
const
pendingDownloadData
=
ref
(
false
)
const
toRefNumericalFilters
=
toRef
(
props
.
numericalFilters
)
// const meiliFilters = ref
<
string
|
undefined
>
(
undefined
)
const
filterInputValues
=
computed
(()
=>
{
if
(
filterOrSearch
.
value
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
components/content/RefseqDb.vue
+
1
−
1
View file @
67b25417
...
...
@@ -443,6 +443,7 @@ const scaleType = ref("linear")
const
systemsDistributionPlot
=
ref
<
ComponentPublicInstance
|
null
>
(
null
)
const
taxonomicDistributionPlot
=
ref
<
ComponentPublicInstance
|
null
>
(
null
)
const
heatmapPlot
=
ref
<
ComponentPublicInstance
|
null
>
(
null
)
function
downloadSvg
(
component
:
ComponentPublicInstance
|
null
,
filename
:
string
)
{
const
blob
=
toValue
(
serialize
(
toValue
(
component
)))
if
(
blob
!==
undefined
)
{
...
...
@@ -454,7 +455,6 @@ async function downloadPng(component: ComponentPublicInstance | null, filename:
const
blob
=
await
rasterize
(
toValue
(
component
),
filename
)?.
then
((
blob
)
=>
{
download
(
blob
,
filename
)
})
}
</
script
>
...
...
This diff is collapsed.
Click to expand it.
components/content/StructureDb.vue
+
7
−
4
View file @
67b25417
...
...
@@ -10,7 +10,8 @@ import type { StructureItem } from "~/types/structure"
interface
Item
{
Foldseek_name
:
string
system
:
string
system
:
string
,
pdb
:
string
}
...
...
@@ -129,7 +130,8 @@ const dataTableServerProps = computed(() => {
function
toFolseekUrl
(
item
:
Item
)
{
const
url
=
joinURL
(
"
/
"
+
item
.
system
,
item
.
Foldseek_name
)
const
url
=
joinURL
(
"
/
"
+
item
.
system
,
item
.
pdb
.
replace
(
/
\.
pdb$/i
,
"
.html
"
))
console
.
log
(
url
)
const
{
refinedUrl
}
=
useRefinedUrl
(
url
)
return
toValue
(
refinedUrl
)
}
...
...
@@ -164,6 +166,7 @@ function buildStructureUrl(item: StructureItem) {
function
displayStructure
(
item
:
StructureItem
)
{
const
structureUrls
=
buildStructureUrl
(
item
)
console
.
log
(
structureUrls
)
structureBasket
.
set
(
structureUrls
.
map
(
url
=>
{
const
refinedUrl
=
useRefinedUrl
(
url
).
refinedUrl
return
toValue
(
refinedUrl
)
...
...
@@ -241,7 +244,7 @@ const { refinedUrl: downloadAllCifUrl } = useRefinedUrl("/df-all-cifs.tar.gz")
</v-card-text>
</template>
<
template
#
[`
item.Foldseek_name
`
]=
"{ item }"
>
<FoldseekDialog
v-if=
"item.Foldseek_name !== 'na'"
:foldseek-path=
"toFolseekUrl(item)"
></FoldseekDialog>
<FoldseekDialog
:foldseek-path=
"toFolseekUrl(item)"
></FoldseekDialog>
</
template
>
<
template
#
[`
item.proteins_in_the_prediction
`
]=
"{ item }"
>
...
...
@@ -266,7 +269,7 @@ const { refinedUrl: downloadAllCifUrl } = useRefinedUrl("/df-all-cifs.tar.gz")
icon=
"md:download"
class=
"ml-1"
v-bind=
"props"
></v-btn>
</
template
>
<v-list>
<v-list-item
v-for=
"(url, index) in
item.s
tructure
s
Url
s
"
:key=
"index"
:value=
"index"
<v-list-item
v-for=
"(url, index) in
buildS
tructureUrl
(item)
"
:key=
"index"
:value=
"index"
:href=
"url"
>
<v-list-item-title>
{{ url.split('.').slice(-1)[0] }}
</v-list-item-title>
</v-list-item>
...
...
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