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

Start using expand panel

parent c1e2ac50
No related branches found
No related tags found
1 merge request!134Resolve "Table with all PDB files, to make them available to download"
Pipeline #118401 passed
This commit is part of merge request !134. Comments created here will be created in the context of that merge request.
...@@ -78,8 +78,8 @@ FROM nginx:1.25-bookworm ...@@ -78,8 +78,8 @@ FROM nginx:1.25-bookworm
# RUN rm -rf /usr/share/nginx/html/* # RUN rm -rf /usr/share/nginx/html/*
RUN apt update -y && apt install rsync -y RUN apt update -y && apt install rsync -y
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=generate /usr/src/app/.output/public /usr/share/nginx/html
# RUN chmod -R nginx:nginx /usr/share/nginx/html/
RUN chown nginx:nginx /usr/share/nginx/html RUN chown nginx:nginx /usr/share/nginx/html
COPY --chown=nginx:nginx --from=generate /usr/src/app/.output/public /usr/share/nginx/html
# RUN chmod -R nginx:nginx /usr/share/nginx/html/
USER nginx USER nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
...@@ -90,11 +90,11 @@ const defaultBarPlotOptions = computed(() => { ...@@ -90,11 +90,11 @@ const defaultBarPlotOptions = computed(() => {
const y = logTransform.value ? { nice: true, grid: true, type: 'symlog' } : { nice: true, grid: true, type: "linear" } const y = logTransform.value ? { nice: true, grid: true, type: 'symlog' } : { nice: true, grid: true, type: "linear" }
// const y = { nice: true, grid: true } // const y = { nice: true, grid: true }
return { return {
x: { label: null, tickRotate: 70 }, x: { label: null, tickRotate: 45, ticks: 10 },
y, y,
color: { legend: true }, color: { legend: true },
width: computedWidth.value, width: computedWidth.value,
height: plotHeight.value, height: plotHeight.value + 100,
} }
}) })
...@@ -113,7 +113,7 @@ const computedSystemDistribution = computed(() => { ...@@ -113,7 +113,7 @@ const computedSystemDistribution = computed(() => {
const computedDistriSystemOptions = computed(() => { const computedDistriSystemOptions = computed(() => {
return { return {
...defaultBarPlotOptions.value, ...defaultBarPlotOptions.value,
marginBottom: 120, marginBottom: 100,
marks: [ marks: [
// Plot.frame(), // Plot.frame(),
Plot.barY( Plot.barY(
...@@ -143,7 +143,7 @@ const computedTaxonomyDistribution = computed(() => { ...@@ -143,7 +143,7 @@ const computedTaxonomyDistribution = computed(() => {
const computedDistriTaxoOptions = computed(() => { const computedDistriTaxoOptions = computed(() => {
return { return {
...defaultBarPlotOptions.value, ...defaultBarPlotOptions.value,
marginBottom: 120, marginBottom: 100,
marks: [ marks: [
Plot.barY( Plot.barY(
toValue(computedTaxonomyDistribution), toValue(computedTaxonomyDistribution),
...@@ -188,25 +188,36 @@ function namesToAccessionChips(names: string[]) { ...@@ -188,25 +188,36 @@ function namesToAccessionChips(names: string[]) {
</v-btn-toggle> </v-btn-toggle>
</v-toolbar> </v-toolbar>
<v-row align="start" class="my-2"> <v-row align="start" class="my-2">
<v-col :cols="fullWidth ? 12 : 6"> <v-col :cols="fullWidth ? 12 : 6">
<v-card color="transparent" flat class="my-3">
<v-toolbar flat color="transparent"> <v-card color="transparent" flat>
<v-toolbar-title>Systems</v-toolbar-title></v-toolbar> <v-expansion-panels>
<v-card-text> <v-expansion-panel elevation="3">
<PlotFigure :options="unref(computedDistriSystemOptions)" defer></PlotFigure> <v-expansion-panel-title color="grey-lighten-4">Systems</v-expansion-panel-title>
</v-card-text> <v-expansion-panel-text>
<PlotFigure :options="unref(computedDistriSystemOptions)" defer></PlotFigure>
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-card> </v-card>
</v-col> </v-col>
<v-col :cols="fullWidth ? 12 : 6"> <v-col :cols="fullWidth ? 12 : 6">
<v-card flat color="transparent"> <v-card flat color="transparent">
<v-toolbar flat color="transparent"> <v-expansion-panels>
<v-toolbar-title>Taxonomic</v-toolbar-title> <v-expansion-panel elevation="3">
<v-select v-model="selectedTaxoRank" :items="availableTaxo" density="compact" <v-expansion-panel-title color="grey-lighten-4">
label="Select taxonomic rank"></v-select> Taxonomic
</v-toolbar>
<v-card-text>
<PlotFigure defer :options="unref(computedDistriTaxoOptions)"></PlotFigure> </v-expansion-panel-title>
</v-card-text> <v-expansion-panel-text>
<PlotFigure defer :options="unref(computedDistriTaxoOptions)"></PlotFigure>
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-card> </v-card>
</v-col> </v-col>
</v-row> </v-row>
......
This diff is collapsed.
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"vue": "latest" "vue": "latest"
}, },
"dependencies": { "dependencies": {
"@observablehq/plot": "^0.6.11", "@observablehq/plot": "^0.6.13",
"@pinia/nuxt": "^0.5.1", "@pinia/nuxt": "^0.5.1",
"d3": "^7.8.5", "d3": "^7.8.5",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment