simplify config

This commit is contained in:
mario
2025-05-19 11:57:27 +07:00
parent 18d5b6dd9a
commit 3a2f54989f
3 changed files with 6 additions and 30 deletions

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@ coverage/
.yarn/
.nx/
addOns/yarn.lock
**.zip
# YALC (for Erik)
.yalc

View File

@@ -1,7 +1,7 @@
/** @type {AppTypes.Config} */
function sas_get_token() {
//implement token here
return "kris-check-token-is-here";
return '';
}
window.config = {
sasGetToken: sas_get_token,
@@ -28,8 +28,8 @@ window.config = {
prefetch: 25,
},
expertise: false, //* Tambahan untuk enable expertise (CustomizableViewportOverlay)
expertise_host: `http://152.42.173.210`, //* Tambahan untuk fetch data Expertise)
pacs_document_host: `${window.location.hostname}`,
expertise_host: `https://devone.aplikasi.web.id/one-api/mockup/pacsmwl/Workorder/get_dummy_expertise`, //* Tambahan untuk fetch data Expertise)
pacs_document_host: `152.42.173.210`,
pacs_document_port: 8080,
// filterQueryParam: false,
// defaultDataSourceName: 'dicomweb',

View File

@@ -1,7 +1,7 @@
/** @type {AppTypes.Config} */
window.config = {
routerBasename: '/',
pacs_document_host: '152.42.173.210',
pacs_document_host: `${window.location.hostname}`,
pacs_document_port: 8080,
expertise: false,
enableGoogleCloudAdapter: false,
@@ -10,28 +10,9 @@ window.config = {
showCPUFallbackMessage: true,
showLoadingIndicator: 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: [],
modes: [],
showStudyList: true,
showStudyList: false,
// filterQueryParam: false,
defaultDataSourceName: 'dicomweb',
dataSources: [
@@ -53,12 +34,6 @@ window.config = {
dicomUploadEnabled: false,
omitQuotationForMultipartRequest: true,
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'
// },
},
},
{