Compare commits
2 Commits
7bd3f96158
...
bisone-int
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63b9bc5ffc | ||
|
|
f4dea5a9d6 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,6 +12,7 @@ coverage/
|
|||||||
.yarn/
|
.yarn/
|
||||||
.nx/
|
.nx/
|
||||||
addOns/yarn.lock
|
addOns/yarn.lock
|
||||||
|
**.zip
|
||||||
|
|
||||||
# YALC (for Erik)
|
# YALC (for Erik)
|
||||||
.yalc
|
.yalc
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ 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://128.199.154.150:8080/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`;
|
url = `http://${window.config.pacs_document_host}:${window.config.pacs_document_port}/rid/IHERetrieveDocument?requestType=DOCUMENT&documentUID=${sopInstanceUid}&preferredContentType=application%2Fpdf`;
|
||||||
|
|
||||||
|
// console.log('PDF URL:', url);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.body.addEventListener('drag', makePdfDropTarget);
|
document.body.addEventListener('drag', makePdfDropTarget);
|
||||||
@@ -33,13 +35,15 @@ function OHIFCornerstonePdfViewport({ displaySets }) {
|
|||||||
|
|
||||||
const { pdfUrl } = displaySets[0];
|
const { pdfUrl } = displaySets[0];
|
||||||
|
|
||||||
useEffect(() => {
|
// console.log('Dicomweb PDF URL:', pdfUrl);
|
||||||
const load = async () => {
|
|
||||||
setUrl(await pdfUrl);
|
|
||||||
};
|
|
||||||
|
|
||||||
load();
|
// useEffect(() => {
|
||||||
}, [pdfUrl]);
|
// const load = async () => {
|
||||||
|
// setUrl(await pdfUrl);
|
||||||
|
// };
|
||||||
|
|
||||||
|
// load();
|
||||||
|
// }, [pdfUrl]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -50,9 +54,7 @@ function OHIFCornerstonePdfViewport({ displaySets }) {
|
|||||||
data={url}
|
data={url}
|
||||||
type="application/pdf"
|
type="application/pdf"
|
||||||
className={style}
|
className={style}
|
||||||
>
|
></object>
|
||||||
<div>No online PDF viewer installed</div>
|
|
||||||
</object>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ window.config = {
|
|||||||
extensions: [],
|
extensions: [],
|
||||||
modes: [],
|
modes: [],
|
||||||
customizationService: {},
|
customizationService: {},
|
||||||
showStudyList: false,
|
showStudyList: true,
|
||||||
// some windows systems have issues with more than 3 web workers
|
// some windows systems have issues with more than 3 web workers
|
||||||
maxNumberOfWebWorkers: 3,
|
maxNumberOfWebWorkers: 3,
|
||||||
// below flag is for performance reasons, but it might not work for all servers
|
// below flag is for performance reasons, but it might not work for all servers
|
||||||
|
|||||||
@@ -10,25 +10,6 @@ window.config = {
|
|||||||
showCPUFallbackMessage: true,
|
showCPUFallbackMessage: true,
|
||||||
showLoadingIndicator: true,
|
showLoadingIndicator: true,
|
||||||
strictZSpacingForVolumeViewport: true,
|
strictZSpacingForVolumeViewport: true,
|
||||||
// This is an array, but we'll only use the first entry for now
|
|
||||||
// Remove OIDC configuration since proxy handles authentication
|
|
||||||
// oidc: [
|
|
||||||
// {
|
|
||||||
// // ~ REQUIRED
|
|
||||||
// // Authorization Server URL
|
|
||||||
// authority: 'https://accounts.google.com',
|
|
||||||
// client_id: '382212153306-7q39hdie4ecj0uhemkitvedo93bnvfhn.apps.googleusercontent.com',
|
|
||||||
// redirect_uri: '/callback',
|
|
||||||
// response_type: 'id_token token',
|
|
||||||
// scope:
|
|
||||||
// 'email profile openid https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/cloud-healthcare', // email profile openid
|
|
||||||
// // ~ OPTIONAL
|
|
||||||
// post_logout_redirect_uri: '/logout-redirect.html',
|
|
||||||
// revoke_uri: 'https://accounts.google.com/o/oauth2/revoke?token=',
|
|
||||||
// automaticSilentRenew: true,
|
|
||||||
// revokeAccessTokenOnSignout: true,
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
extensions: [],
|
extensions: [],
|
||||||
modes: [],
|
modes: [],
|
||||||
showStudyList: true,
|
showStudyList: true,
|
||||||
@@ -53,12 +34,6 @@ window.config = {
|
|||||||
dicomUploadEnabled: true,
|
dicomUploadEnabled: true,
|
||||||
omitQuotationForMultipartRequest: true,
|
omitQuotationForMultipartRequest: true,
|
||||||
configurationAPI: 'ohif.dataSourceConfigurationAPI.google',
|
configurationAPI: 'ohif.dataSourceConfigurationAPI.google',
|
||||||
// defaultDicomStoreConfiguredItems: {
|
|
||||||
// id: 'projects/ohifproxy/locations/asia-southeast2/datasets/sas-storage',
|
|
||||||
// itemType: '3',
|
|
||||||
// name: 'store-1',
|
|
||||||
// url: 'https://healthcare.googleapis.com/v1/projects/ohifproxy/locations/asia-southeast2/datasets/sas-storage/dicomStores/store-1'
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user