deployed on dicomv.aplikasi.web.id: work pdf and others

This commit is contained in:
mario
2025-05-23 11:38:43 +07:00
parent 0bb6d19e92
commit 305eaf11ee
4 changed files with 10 additions and 10 deletions

View File

@@ -6,8 +6,8 @@ function OHIFCornerstonePdfViewport({ displaySets }) {
var [url, setUrl] = useState(null);
const sopInstanceUid = displaySets[0].SOPInstanceUID;
url = `http://${window.config.pacs_document_host}:${window.config.pacs_document_port}/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`;
console.log("URL PDF", url);
url = `${window.config.pacs_document_host}:${window.config.pacs_document_port}/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`;
console.log('URL PDF', url);
useEffect(() => {
document.body.addEventListener('drag', makePdfDropTarget);

View File

@@ -1,8 +1,8 @@
/** @type {AppTypes.Config} */
window.config = {
routerBasename: '/',
pacs_document_host: `${window.location.hostname}`,
pacs_document_port: 8080,
pacs_document_host: `https://${window.location.hostname}`,
pacs_document_port: 8585,
expertise: false, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
expertise_host: `https://devone.aplikasi.web.id/one-api/mockup/pacsmwl/Workorder/get_dummy_expertise`, //* Tambahan untuk fetch data Expertise)
enableGoogleCloudAdapter: false,
@@ -13,7 +13,7 @@ window.config = {
strictZSpacingForVolumeViewport: true,
extensions: [],
modes: [],
showStudyList: true,
showStudyList: false,
// filterQueryParam: false,
defaultDataSourceName: 'dicomweb',
dataSources: [
@@ -23,9 +23,9 @@ window.config = {
configuration: {
friendlyName: 'dcmjs DICOMWeb Server',
name: 'GCP',
wadoUriRoot: `http://${window.location.hostname}:5555/dicomWeb`,
qidoRoot: `http://${window.location.hostname}:5555/dicomWeb`,
wadoRoot: `http://${window.location.hostname}:5555/dicomWeb`,
wadoUriRoot: `https://${window.location.hostname}:5555/dicomWeb`,
qidoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
wadoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
qidoSupportsIncludeField: true,
imageRendering: 'wadors',
thumbnailRendering: 'wadors',

View File

@@ -31,7 +31,7 @@ const Login = () => {
try {
// Use window.config.goProxyHost for authentication endpoint
const proxyHost = window.config?.goProxyHost || `http://${window.location.hostname}:5555`;
const proxyHost = window.config?.goProxyHost || `https://${window.location.hostname}:5555`;
const authEndpoint = `${proxyHost}/auth/login`;
// Call go-ohif-proxy login endpoint

View File

@@ -35,7 +35,7 @@ const ShortlinkLogin = () => {
try {
// Use window.config.goProxyHost for authentication endpoint
const proxyHost = window.config?.goProxyHost || `http://${window.location.hostname}:5555`;
const proxyHost = window.config?.goProxyHost || `https://${window.location.hostname}:5555`;
const authEndpoint = `${proxyHost}/auth/shortlink`;
// Call the shortlink authentication endpoint