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
a7977033
Commit
a7977033
authored
9 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
add foldseek link in system article
parent
4d511ff9
No related branches found
Branches containing commit
No related tags found
1 merge request
!232
foldseek image issue
Pipeline
#133881
waiting for manual action with stages
in 6 minutes and 40 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/content/ArticleStructure.vue
+12
-1
12 additions, 1 deletion
components/content/ArticleStructure.vue
nuxt.config.ts
+0
-1
0 additions, 1 deletion
nuxt.config.ts
package-lock.json
+5807
-5998
5807 additions, 5998 deletions
package-lock.json
with
5819 additions
and
6000 deletions
components/content/ArticleStructure.vue
+
12
−
1
View file @
a7977033
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
toValue
}
from
'
@vueuse/core
'
;
import
{
toValue
}
from
'
@vueuse/core
'
;
// import MolstarPdbePlugin from './MolstarPdbePlugin.vue';
// import MolstarPdbePlugin from './MolstarPdbePlugin.vue';
import
{
joinURL
}
from
'
ufo
'
import
*
as
d3
from
"
d3
"
;
import
*
as
d3
from
"
d3
"
;
import
SystemOperonStructure
from
'
./SystemOperonStructure.vue
'
;
import
SystemOperonStructure
from
'
./SystemOperonStructure.vue
'
;
import
type
{
OperonStructureIndexName
,
StructureItem
,
StructureOperonGene
}
from
'
~/types/structure
'
;
import
type
{
OperonStructureIndexName
,
StructureItem
,
StructureOperonGene
}
from
'
~/types/structure
'
;
...
@@ -20,6 +22,7 @@ const operonSructIndexName = ref<OperonStructureIndexName>("systemoperonstruct")
...
@@ -20,6 +22,7 @@ const operonSructIndexName = ref<OperonStructureIndexName>("systemoperonstruct")
// const stuctureUrls = ref
<
string
[]
|
undefined
>
(
undefined
)
// const stuctureUrls = ref
<
string
[]
|
undefined
>
(
undefined
)
const
headers
=
ref
<
Record
<
string
,
any
>
[]
>
([
const
headers
=
ref
<
Record
<
string
,
any
>
[]
>
([
{
title
:
'
Structure
'
,
key
:
'
structure
'
,
sortable
:
false
,
removable
:
false
,
fixed
:
true
,
minWidth
:
"
110px
"
},
{
title
:
'
Structure
'
,
key
:
'
structure
'
,
sortable
:
false
,
removable
:
false
,
fixed
:
true
,
minWidth
:
"
110px
"
},
{
title
:
'
Foldseek
'
,
key
:
'
Foldseek_name
'
,
sortable
:
false
},
{
title
:
"
System
"
,
key
:
"
system
"
},
{
title
:
"
System
"
,
key
:
"
system
"
},
{
title
:
"
Gene name
"
,
key
:
"
gene_name
"
,
removable
:
false
},
{
title
:
"
Gene name
"
,
key
:
"
gene_name
"
,
removable
:
false
},
...
@@ -74,7 +77,11 @@ function displayStructure(item) {
...
@@ -74,7 +77,11 @@ function displayStructure(item) {
structureTitle
.
value
=
`
${
item
.
subsystem
}
-
${
item
.
gene_name
}
`
structureTitle
.
value
=
`
${
item
.
subsystem
}
-
${
item
.
gene_name
}
`
}
}
function
toFolseekUrl
(
item
)
{
const
url
=
joinURL
(
"
/
"
+
item
.
system
.
toLocaleLowerCase
(),
item
.
pdb
.
replace
(
/
\.
pdb$/i
,
"
.html
"
))
const
{
refinedUrl
}
=
useRefinedUrl
(
url
)
return
toValue
(
refinedUrl
)
}
const
sanitizedStructures
=
computed
(()
=>
{
const
sanitizedStructures
=
computed
(()
=>
{
const
toValStructures
=
toValue
(
structures
)
const
toValStructures
=
toValue
(
structures
)
...
@@ -182,6 +189,10 @@ async function fetchAllOperonStructures() {
...
@@ -182,6 +189,10 @@ async function fetchAllOperonStructures() {
<v-card-title>
Summary
</v-card-title>
<v-card-title>
Summary
</v-card-title>
</v-card-item>
</v-card-item>
<v-data-table
:headers=
"headers"
:items=
"sanitizedStructures"
:group-by=
"groupBy"
>
<v-data-table
:headers=
"headers"
:items=
"sanitizedStructures"
:group-by=
"groupBy"
>
<
template
#
[`
item.Foldseek_name
`
]=
"{ item }"
>
<FoldseekDialog
v-if=
"item?.pdb !== 'na'"
:foldseek-path=
"toFolseekUrl(item)"
></FoldseekDialog>
</
template
>
<
template
#
[`
item.proteins_in_the_prediction
`
]=
"{ item }"
>
<
template
#
[`
item.proteins_in_the_prediction
`
]=
"{ item }"
>
<CollapsibleChips
<CollapsibleChips
:items=
"namesToCollapsibleChips(item.proteins_in_the_prediction, item.system, item.fasta_file)"
>
:items=
"namesToCollapsibleChips(item.proteins_in_the_prediction, item.system, item.fasta_file)"
>
...
...
This diff is collapsed.
Click to expand it.
nuxt.config.ts
+
0
−
1
View file @
a7977033
...
@@ -12,7 +12,6 @@ export default defineNuxtConfig({
...
@@ -12,7 +12,6 @@ export default defineNuxtConfig({
'
@nuxtjs/plausible
'
,
'
@nuxtjs/plausible
'
,
'
@nuxtjs/seo
'
,
'
@nuxtjs/seo
'
,
'
@nuxt/eslint
'
,
'
@nuxt/eslint
'
,
"
@nuxt/image
"
],
],
app
:
{
app
:
{
head
:
{
head
:
{
...
...
This diff is collapsed.
Click to expand it.
package-lock.json
+
5807
−
5998
View file @
a7977033
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