From 765f0b90ce098f8153bf6976faebe4c6852b8b09 Mon Sep 17 00:00:00 2001 From: pirupius Date: Tue, 15 Aug 2023 14:51:39 +0300 Subject: [PATCH] (chore) delete configs from frontend --- src/ethiohri-config.ts | 15 - src/ethiohri-configuration-overrides.json | 182 ---------- src/images/ethiohri_logo_dark.svg | 392 ---------------------- src/images/ethiohri_logo_light.svg | 392 ---------------------- src/index.ts | 4 - 5 files changed, 985 deletions(-) delete mode 100644 src/ethiohri-config.ts delete mode 100644 src/ethiohri-configuration-overrides.json delete mode 100644 src/images/ethiohri_logo_dark.svg delete mode 100644 src/images/ethiohri_logo_light.svg diff --git a/src/ethiohri-config.ts b/src/ethiohri-config.ts deleted file mode 100644 index 371a773b..00000000 --- a/src/ethiohri-config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import ethiOhriLogoDark from "./images/ethiohri_logo_dark.svg"; -import ethiOhriLogoLight from "./images/ethiohri_logo_light.svg"; - -export default { - "@openmrs/esm-login-app": { - logo: { - src: ethiOhriLogoDark, - }, - }, - "@openmrs/esm-primary-navigation-app": { - logo: { - src: ethiOhriLogoLight, - }, - }, -}; diff --git a/src/ethiohri-configuration-overrides.json b/src/ethiohri-configuration-overrides.json deleted file mode 100644 index 22edeb02..00000000 --- a/src/ethiohri-configuration-overrides.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "@openmrs/esm-patient-chart-app": { - "extensionSlots": { - "patient-chart-summary-dashboard-slot":{ - "remove":[ - "vitals-overview-widget", - "active-medications-widget", - "hiv-baseline-ext" - ] - }, - "program-management-summary-slot": { - "remove": [ - "program-management-summary-ext" - ] - }, - "visits-summary-slot": { - "remove": [ - "visits-summary-ext" - ] - }, - "adherence-counselling-summary-slot": { - "remove": [ - "adherence-counselling-summary-ext" - ] - }, - "patient-chart-dashboard-slot": { - "remove": [ - "cervical-cancer", - "allergies-summary-dashboard", - "attachments-results-summary-dashboard", - "conditions-summary-dashboard", - "offline-tools-patient-chart-actions-dashboard-link", - "results-summary-dashboard", - "test-results-summary-dashboard", - "ohri-covid", - "ohri-hiv-care-and-treatment", - "ohri-hiv-prevention" - ] - } - } - }, - "openmrs-esm-ohri-core-app": { - "extensionSlots": { - "dashboard-slot": { - "remove": [ - "hiv-dashboard-items", - "covid-dashboard-items" - ] - } - } - }, - "openmrs-esm-ohri-covid-app": { - "extensionSlots": { - "ohri-covid-patient-chart-slot": { - "remove": [ - "covid-assessments-dashboard", - "covid-lab-results", - "covid-vaccinations-dashboard" - ] - } - } - }, - "openmrs-esm-ohri-cervical-cancer-app": { - "extensionSlots": { - "cervical-cancer-slot": { - "remove": [ - "cacx-visits-dashboard", - "cacx-appointments-dashboard" - ] - } - } - }, - "openmrs-esm-ohri-hiv-app": { - "extensionSlots": { - "ohri-hiv-care-and-treatment-slot": { - "remove": [ - "general-counselling-summary", - "general-counselling-summary-ext", - "partner-notification-services", - "lab-results-summary-dashboard", - "medications-summary", - "appointments-summary", - "program-management-summary", - "visits-summary", - "adherence-counselling-summary", - "hts-service-summary-dashboard" - ] - } - } - }, - "@openmrs/esm-styleguide": { - "Brand color #1": "#002f6c", - "Brand color #2": "#1a75bb", - "Brand color #3": "#1a75bb" - }, - "@openmrs/esm-patient-registration-app": { - "sections": [ - "demographics", - "contact", - "relationships" - ], - "sectionDefinitions": [ - { - "id": "contact", - "name": "Contact Info", - "fields": [ - "address", - "kebela", - "houseNumber", - "hometelephoneNumber", - "worktelephoneNumber", - "phone & email" - ] - }, - { - "id": "demographics", - "name": "Basic Info", - "fields": [ - "name", - "gender", - "dob", - "id" - ] - } - ], - "fieldDefinitions": [ - { - "id": "kebela", - "label": "Kebele", - "type": "person attribute", - "uuid": "e1695908-916d-4c9e-b62b-90b512492da2" - }, - { - "id": "houseNumber", - "label": "House Number", - "type": "person attribute", - "uuid": "553bedc6-4e59-42d3-b80b-d3cf02a792bd" - }, - { - "id": "hometelephoneNumber", - "label": "Home Telephone Numbers", - "type": "person attribute", - "uuid": "b3269e45-8e40-44a1-a5f2-bbb2765c6287" - }, - { - "id": "worktelephoneNumber", - "label": "Work Telephone Numbers", - "type": "person attribute", - "uuid": "a69aae3d-8c79-4ac5-a218-88889f007163" - } - ], - "fieldConfigurations": { - "gender": [ - { - "id": "male", - "value": "Male", - "label": "Male" - }, - { - "id": "female", - "value": "Female", - "label": "Female" - }, - { - "id": "other", - "value": "Other", - "label": "Other" - } - ], - "address": { - "useAddressHierarchy": { - "useAddressHierarchyLabel": { - "country": "Country", - "stateProvince": "Region", - "countyDistrict": "Zone/Sub-City", - "cityVillage": "Woreda" - } - } - } - } - } -} diff --git a/src/images/ethiohri_logo_dark.svg b/src/images/ethiohri_logo_dark.svg deleted file mode 100644 index f13eb4cc..00000000 --- a/src/images/ethiohri_logo_dark.svg +++ /dev/null @@ -1,392 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/images/ethiohri_logo_light.svg b/src/images/ethiohri_logo_light.svg deleted file mode 100644 index 8fb8549e..00000000 --- a/src/images/ethiohri_logo_light.svg +++ /dev/null @@ -1,392 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/index.ts b/src/index.ts index 90ec4cd3..475be2d5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,8 +6,6 @@ import { getSyncLifecycle, } from "@openmrs/esm-framework"; import { configSchema } from "./config-schema"; -import ethiohriConfigOverrides from "./ethiohri-configuration-overrides.json"; -import ethiohriConfig from "./ethiohri-config"; import { registerControl } from "@openmrs/openmrs-form-engine-lib"; import { createDashboardGroup, @@ -38,8 +36,6 @@ export const importTranslation = require.context( export function startupApp() { defineConfigSchema(moduleName, configSchema); - provide(ethiohriConfigOverrides); - provide(ethiohriConfig); registerControl({ id: "eth-date",