mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
EQMS-1414 Fix pod print issues (#7739)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
1fceb1822a
commit
b08af3d995
@ -1,5 +1,9 @@
|
||||
FROM hardcoreeng/base
|
||||
|
||||
# Chromium hangs when usging LD_PRELOAD and MALLOC_CONF
|
||||
ENV LD_PRELOAD=
|
||||
ENV MALLOC_CONF=
|
||||
|
||||
# We don't need the standalone Chromium
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
# Set executable path for puppeteer
|
||||
|
@ -103,7 +103,7 @@
|
||||
|
||||
{#await srcRef then src}
|
||||
{#if !isLoading}
|
||||
{#if src === ''}
|
||||
{#if src === '' || src === undefined}
|
||||
<div class="centered">
|
||||
<Label label={presentation.string.FailedToPreview} />
|
||||
</div>
|
||||
|
@ -38,6 +38,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"svelte": "^4.2.19",
|
||||
"@hcengineering/analytics": "^0.6.0",
|
||||
"@hcengineering/platform": "^0.6.11",
|
||||
"@hcengineering/core": "^0.6.32",
|
||||
"@hcengineering/presentation": "^0.6.3",
|
||||
|
@ -4,6 +4,7 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { Analytics } from '@hcengineering/analytics'
|
||||
import { Doc, type Blob, type Ref } from '@hcengineering/core'
|
||||
import presentation, { PDFViewer, createQuery, getClient } from '@hcengineering/presentation'
|
||||
import guest, { PublicLink, createPublicLink } from '@hcengineering/guest'
|
||||
@ -55,6 +56,7 @@
|
||||
isLoading = false
|
||||
},
|
||||
(err) => {
|
||||
Analytics.handleError(err)
|
||||
console.error(err)
|
||||
isLoading = false
|
||||
}
|
||||
@ -65,6 +67,7 @@
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
Analytics.handleError(err)
|
||||
console.error(err)
|
||||
isLoading = false
|
||||
}
|
||||
|
@ -3,4 +3,8 @@ FROM hardcoreeng/print-base:v20250113a
|
||||
WORKDIR /usr/src/app
|
||||
COPY bundle/bundle.js ./
|
||||
|
||||
# Chromium hangs when usging LD_PRELOAD and MALLOC_CONF
|
||||
ENV LD_PRELOAD=
|
||||
ENV MALLOC_CONF=
|
||||
|
||||
CMD [ "dumb-init", "node", "bundle.js" ]
|
||||
|
Loading…
Reference in New Issue
Block a user