deployed on dicomv.aplikasi.web.id: work pdf and others
This commit is contained in:
@@ -6,8 +6,8 @@ function OHIFCornerstonePdfViewport({ displaySets }) {
|
|||||||
var [url, setUrl] = useState(null);
|
var [url, setUrl] = useState(null);
|
||||||
|
|
||||||
const sopInstanceUid = displaySets[0].SOPInstanceUID;
|
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`;
|
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);
|
console.log('URL PDF', url);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.body.addEventListener('drag', makePdfDropTarget);
|
document.body.addEventListener('drag', makePdfDropTarget);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/** @type {AppTypes.Config} */
|
/** @type {AppTypes.Config} */
|
||||||
window.config = {
|
window.config = {
|
||||||
routerBasename: '/',
|
routerBasename: '/',
|
||||||
pacs_document_host: `${window.location.hostname}`,
|
pacs_document_host: `https://${window.location.hostname}`,
|
||||||
pacs_document_port: 8080,
|
pacs_document_port: 8585,
|
||||||
expertise: false, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
|
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)
|
expertise_host: `https://devone.aplikasi.web.id/one-api/mockup/pacsmwl/Workorder/get_dummy_expertise`, //* Tambahan untuk fetch data Expertise)
|
||||||
enableGoogleCloudAdapter: false,
|
enableGoogleCloudAdapter: false,
|
||||||
@@ -13,7 +13,7 @@ window.config = {
|
|||||||
strictZSpacingForVolumeViewport: true,
|
strictZSpacingForVolumeViewport: true,
|
||||||
extensions: [],
|
extensions: [],
|
||||||
modes: [],
|
modes: [],
|
||||||
showStudyList: true,
|
showStudyList: false,
|
||||||
// filterQueryParam: false,
|
// filterQueryParam: false,
|
||||||
defaultDataSourceName: 'dicomweb',
|
defaultDataSourceName: 'dicomweb',
|
||||||
dataSources: [
|
dataSources: [
|
||||||
@@ -23,9 +23,9 @@ window.config = {
|
|||||||
configuration: {
|
configuration: {
|
||||||
friendlyName: 'dcmjs DICOMWeb Server',
|
friendlyName: 'dcmjs DICOMWeb Server',
|
||||||
name: 'GCP',
|
name: 'GCP',
|
||||||
wadoUriRoot: `http://${window.location.hostname}:5555/dicomWeb`,
|
wadoUriRoot: `https://${window.location.hostname}:5555/dicomWeb`,
|
||||||
qidoRoot: `http://${window.location.hostname}:5555/dicomWeb`,
|
qidoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
|
||||||
wadoRoot: `http://${window.location.hostname}:5555/dicomWeb`,
|
wadoRoot: `https://${window.location.hostname}:5555/dicomWeb`,
|
||||||
qidoSupportsIncludeField: true,
|
qidoSupportsIncludeField: true,
|
||||||
imageRendering: 'wadors',
|
imageRendering: 'wadors',
|
||||||
thumbnailRendering: 'wadors',
|
thumbnailRendering: 'wadors',
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const Login = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Use window.config.goProxyHost for authentication endpoint
|
// 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`;
|
const authEndpoint = `${proxyHost}/auth/login`;
|
||||||
|
|
||||||
// Call go-ohif-proxy login endpoint
|
// Call go-ohif-proxy login endpoint
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const ShortlinkLogin = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Use window.config.goProxyHost for authentication endpoint
|
// 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`;
|
const authEndpoint = `${proxyHost}/auth/shortlink`;
|
||||||
|
|
||||||
// Call the shortlink authentication endpoint
|
// Call the shortlink authentication endpoint
|
||||||
|
|||||||
Reference in New Issue
Block a user