Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15,454 changes: 0 additions & 15,454 deletions apps/demo-renderer-app/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/smart-forms-app/public/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"formsServerUrl": "https://smartforms.csiro.au/api/fhir",
"defaultClientId": "a57d90e3-5f69-4b92-aa2e-2992180863c1",
"launchScopes": "launch openid fhirUser online_access patient/AllergyIntolerance.cs patient/Condition.cs patient/Encounter.r patient/Immunization.cs patient/Medication.r patient/MedicationStatement.cs patient/Observation.cs patient/Patient.r patient/QuestionnaireResponse.crus user/Practitioner.r launch/questionnaire?role=http://ns.electronichealth.net.au/smart/role/new",
"registeredClientIdsUrl": "https://smartforms.csiro.au/smart-config/config.json"
"registeredClientIdsUrl": null
}
16 changes: 16 additions & 0 deletions apps/smart-forms-app/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ import { browserTracingIntegration } from '@sentry/browser';
import ConfigContextProvider from './features/configChecker/contexts/ConfigContextProvider';
import { CssBaseline } from '@mui/material';
import ThemeProvider from './theme/Theme';
import { loader } from '@monaco-editor/react';
import * as monaco from 'monaco-editor';
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';

// Configure Monaco Editor to use local workers instead of CDN
self.MonacoEnvironment = {
getWorker(_, label) {
if (label === 'json') {
return new jsonWorker();
}
return new editorWorker();
}
};

loader.config({ monaco });

const integration = browserTracingIntegration();

Expand Down
Loading
Loading