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
36019a00
Commit
36019a00
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
WIP: compute headers
parent
50e334e8
No related branches found
No related tags found
2 merge requests
!6
Automatic systems list
,
!5
Optional title abstract
Pipeline
#111308
failed with stage
Stage:
in 2 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
content/2.defense-systems/abie.md
+3
-0
3 additions, 0 deletions
content/2.defense-systems/abie.md
pages/defense-systems.vue
+18
-0
18 additions, 0 deletions
pages/defense-systems.vue
with
21 additions
and
0 deletions
content/2.defense-systems/abie.md
+
3
−
0
View file @
36019a00
---
title
:
AbiE
tableDescription
:
doi
:
10.1093/nar/gkt1419
other
:
blabla
---
AbiE is a family of an anti-phage defense systems. They act through a Toxin-Antitoxin mechanism, and are comprised of a pair of genes, with one gene being toxic while the other confers immunity to this toxicity.
...
...
This diff is collapsed.
Click to expand it.
pages/defense-systems.vue
0 → 100644
+
18
−
0
View file @
36019a00
<
script
setup
lang=
"ts"
>
const
{
data
,
error
,
pending
}
=
await
useAsyncData
(
'
list-defense-systems
'
,
()
=>
queryContent
(
'
/defense-systems
'
).
find
())
const
defaultHeaders
=
ref
([{
title
:
'
System
'
,
key
:
"
title
"
}])
console
.
log
(
data
.
value
)
const
tableDescriptionKey
=
ref
(
"
tableDescription
"
)
const
headers
=
data
.
value
?
ref
(
Array
.
from
(
data
.
value
.
reduce
((
headerSet
,
df
)
=>
{
if
(
df
?.[
tableDescriptionKey
.
value
])
{
return
new
Set
([...
headerSet
,
...
Object
.
keys
(
df
[
tableDescriptionKey
.
value
])])
}
else
{
return
headerSet
}
},
new
Set
())).
map
(
value
=>
{
return
{
title
:
value
,
key
:
value
}
})
)
:
defaultHeaders
console
.
log
(
headers
.
value
)
</
script
>
<
template
>
<v-card
:loading=
"pending"
></v-card>
</
template
>
\ No newline at end of file
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