Integration TrizRis OHIF: key images, annotations, layouts, access control and reconstruction
Build and Deploy Docs / build-and-deploy-docs (push) Canceled after 0s

This commit is contained in:
Kenza committed 2026-10-11 10:34:47 +02:00
1 parent bbe37ff388
commit f00379a672
28 files changed
+1898 -105

No files matched your search

+67 -19
View File
@@ -16,12 +16,18 @@
// your own DICOMweb server. For a fully-featured setup with every data source
// and customization loading enabled, see config/dev.js (local development) and
// config/netlify.js (the public demo deploy).
window.config = {
name: 'config/default.js',
routerBasename: null,
// whiteLabeling: {},
extensions: [],
modes: [],
customizationService: {},
// --- URL-driven customizations (?customization=) ----------------------------
@@ -44,68 +50,112 @@ window.config = {
// ("next") API instead of the legacy Stack/Volume viewport classes.
genericViewports: {
enabled: false,
// Render backend selection: 'cpu' | 'webgl' | 'auto' | a backend id
// registered via cornerstone's registerRenderBackend (e.g. a webgpu
// backend), or a map with per-viewport-type overrides, e.g.
// { default: 'webgl', orthographic: 'cpu' }. The matching URL params take
// precedence per-session: ?viewportRendering=cpu and
// ?orthographic.viewportRendering=cpu.
// viewportRendering: 'auto',
},
// ----------------------------------------------------------------------------
showStudyList: true,
// some windows systems have issues with more than 3 web workers
maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
showLoadingIndicator: true,
experimentalStudyBrowserSort: false,
strictZSpacingForVolumeViewport: true,
groupEnabledModesFirst: true,
allowMultiSelectExport: false,
maxNumRequests: {
interaction: 100,
thumbnail: 5,
// Prefetch number is dependent on the http protocol. For http 2 or
// above, the number of requests can be go a lot higher.
prefetch: 25,
},
showErrorDetails: 'always', // 'always', 'dev', 'production'
showErrorDetails: 'always',
// `dangerouslyUseDynamicConfig` (load configuration from a `configUrl` query
// parameter) is intentionally left OFF in the secure default build. See
// config/dev.js for the documented shape.
defaultDataSourceName: 'ohif',
// ✅ MODIFIÉ : on indique que la source par défaut est Orthanc
defaultDataSourceName: 'orthanc',
dataSources: [
{
// Read-only public demo server. Replace with your own DICOMweb server.
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
sourceName: 'ohif',
// ✅ MODIFIÉ : nom logique de la datasource
sourceName: 'orthanc',
configuration: {
friendlyName: 'AWS S3 Static wado server',
name: 'aws',
wadoUriRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
qidoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
wadoRoot: 'https://d14fa38qiwhyfd.cloudfront.net/dicomweb',
qidoSupportsIncludeField: false,
// ✅ MODIFIÉ
friendlyName: 'Orthanc local',
// ✅ MODIFIÉ
name: 'Orthanc',
// ✅ Orthanc WADO-URI
wadoUriRoot: '/orthanc/wado',
// ✅ Orthanc QIDO-RS
qidoRoot: '/orthanc/dicom-web',
// ✅ Orthanc WADO-RS
wadoRoot: '/orthanc/dicom-web',
qidoSupportsIncludeField: true,
imageRendering: 'wadors',
thumbnailRendering: 'thumbnail',
thumbnailRendering: 'wadors',
thumbnailRequestStrategy: 'fetch',
enableStudyLazyLoad: true,
supportsFuzzyMatching: true,
supportsFuzzyMatching: false,
supportsWildcard: true,
staticWado: true,
// ✅ MODIFIÉ
// Avant tu avais true car la config venait d'un serveur WADO statique.
// Avec Orthanc DICOMweb, mets false.
staticWado: false,
// Multiframe SEG loads fetch the whole instance as a single Part 10
// object by default and wait for it: the per-frame endpoint is
// efficient, but SEG frames are so small and numerous that one bulk
// fetch beats hundreds of tiny requests. Per-frame loading is the
// exception — set loadMultiframeAsPart10: false here to force it.
// fetch beats hundreds of tiny requests.
singlepart: 'bulkdata,video',
bulkDataURI: {
enabled: true,
relativeResolution: 'studies',
transform: url => url.replace('/pixeldata.mp4', '/rendered'),
},
omitQuotationForMultipartRequest: true,
},
},
@@ -114,15 +164,13 @@ window.config = {
// default because they broaden the attack surface of a default deployment.
// Enable them only in a deployment you control (see config/dev.js):
// - dicomlocal: loads DICOM files from the user's machine.
// - dicomjson: loads metadata from an arbitrary `?url=` (gate with
// `dangerouslyAllowedOriginsForAuthenticatedEnvironments`).
// - dicomjson: loads metadata from an arbitrary `?url=`.
// - dicomwebproxy: delegating proxy driven by `?url=`.
],
httpErrorHandler: error => {
// This is 429 when rejected from the public idc sandbox too often.
console.warn(error.status);
// Could use services manager here to bring up a dialog/modal if needed.
console.warn('test, navigate to https://ohif.org/');
},
};