Allow selecting a TeX Live image for a project

This commit is contained in:
yu-i-i
2026-01-29 15:54:45 +01:00
parent 37a6c5286a
commit c2c27d3032
4 changed files with 12 additions and 11 deletions
@@ -39,7 +39,6 @@ const ProjectOptionsHandler = {
if (!imageName || !Array.isArray(settings.allowedImageNames)) {
return undefined
}
imageName = imageName.toLowerCase()
const isAllowed = settings.allowedImageNames.find(
allowed => imageName === allowed.imageName
)
+9
View File
@@ -1089,6 +1089,15 @@ module.exports = {
managedUsers: {
enabled: false,
},
allowedImageNames: process.env.SANDBOXED_COMPILES === 'true'
? parseTextExtensions(process.env.ALL_TEX_LIVE_DOCKER_IMAGES)
.map((imageName, index) => ({
imageName,
imageDesc: parseTextExtensions(process.env.ALL_TEX_LIVE_DOCKER_IMAGE_NAMES)[index]
|| imageName.split(':')[1],
}))
: undefined,
}
module.exports.mergeWith = function (overrides) {