Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ RUN node prepare-fonts.ts
# =============================
FROM installer AS portal-builder

ENV DEBUG=""
ADD /shared/markdown shared/markdown
ADD /portal portal
RUN npm -w portal run build
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"piscina": "^5.1.3",
"prom-client": "^15.1.3",
"resolve-path": "^1.4.0",
"sharp": "^0.34.3",
"sharp": "^0.35.4",
"slugify": "^1.6.6",
"tinycolor2": "^1.6.0"
}
Expand Down
4 changes: 2 additions & 2 deletions api/src/images/resize-image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sharp from 'sharp'
import sharp, { type Sharp } from 'sharp'
import fs from 'node:fs/promises'
import decodeIco from 'decode-ico'

Expand All @@ -14,7 +14,7 @@ export default async (input: ResizeInput): Promise<ResizeOutput> => {
return { data, width: 0, height: 0, mimeType: 'image/svg+xml' }
}

let sharpImage: sharp.Sharp
let sharpImage: Sharp

// ICO: extract largest image, handle both PNG-encoded and BMP-encoded frames
if (input.mimetype === 'image/x-icon' || input.mimetype === 'image/vnd.microsoft.icon') {
Expand Down
19 changes: 17 additions & 2 deletions api/types/page-element-layout/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,15 @@ export default {
$ref: 'https://github.com/data-fair/portals/common-defs#/$defs/rounded'
},
border: {
title: 'Bordure',
title: 'Afficher une bordure',
type: 'boolean',
default: true
},
keepTextSize: {
title: 'Conserver la taille de texte du portail',
description: 'Par défaut, le texte des boites est affiché plus petit que celui du portail (14px au lieu de 16px, règle Material Design). Activez cette option pour garder la taille normale du portail.',
type: 'boolean'
},
hover: {
$ref: 'https://github.com/data-fair/portals/common-defs#/$defs/hoverConfigFull',
title: 'Effets au survol',
Expand Down Expand Up @@ -576,10 +581,15 @@ export default {
]
},
border: {
title: 'Bordure',
title: 'Afficher une bordure',
type: 'boolean',
default: true
},
keepTextSize: {
title: 'Conserver la taille de texte du portail',
description: 'Par défaut, le texte des onglets est affiché plus petit que celui du portail (14px au lieu de 16px, règle Material Design). Activez cette option pour garder la taille normale du portail.',
type: 'boolean'
},
tabs: {
type: 'array',
title: 'Onglets',
Expand Down Expand Up @@ -645,6 +655,11 @@ export default {
rounded: {
$ref: 'https://github.com/data-fair/portals/common-defs#/$defs/rounded'
},
keepTextSize: {
title: 'Conserver la taille de texte du portail',
description: 'Par défaut, le texte des panneaux est affiché plus petit que celui du portail (14px au lieu de 16px, règle Material Design). Activez cette option pour garder la taille normale du portail.',
type: 'boolean'
},
multiple: {
type: 'boolean',
title: "Permettre l'ouverture multiple",
Expand Down
Loading
Loading