Skip to content
Snippets Groups Projects
Commit 7982e1c5 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

compute structure urls

parent bb05c31c
No related branches found
No related tags found
3 merge requests!229Draft: Modify all articles with article struct,!228Uniq molstar plugin per page,!226Resolve "Design of the structure section in a system's page"
Pipeline #127252 waiting for manual action with stages
in 6 minutes and 41 seconds
......@@ -60,7 +60,12 @@ const sanitizedStructures = computed(() => {
if (toValStructures?.hits?.length > 0) {
return toValStructures.hits.map(item => {
return { ...item, structuresUrls: [`/${item.System_name_ok}/${pdbNameToCif(item.pdb)}`, `/${item.System_name_ok}/${item.pdb}`] }
return {
...item, structuresUrls: [`/${item.System_name_ok}/${pdbNameToCif(item.pdb)}`, `/${item.System_name_ok}/${item.pdb}`]
.map(url => {
return toValue(useRefinedUrl(url).refinedUrl)
})
}
})
}
return []
......
......@@ -289,12 +289,16 @@ const computedTaxonomyDistribution = computed(() => {
const toValSelectedTaxoRank = toValue(selectedTaxoRank)
const toValFacetsPerRank = toValue(msResult)?.facetDistribution?.[toValSelectedTaxoRank]
if (toValFacetsPerRank) {
return Object.entries(toValFacetsPerRank).map(([key, value]) => {
return {
const listFacetsPerRank = Object.entries(toValFacetsPerRank)
const result = new Array(listFacetsPerRank.length);
for (let i = 0; listFacetsPerRank.length; i++) {
const [key, value] = listFacetsPerRank[i]
result[i] = {
[toValSelectedTaxoRank]: key,
count: value
}
}).sort()
}
return result.sort()
} else { return [] }
})
......
import { md3 } from 'vuetify/blueprints'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// ssr: false,
modules: [
'@unocss/nuxt',
'@nuxt/content',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment