Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,061 changes: 400 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions micro-frontends/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = {
root: true,
ignorePatterns: [
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = {
testEnvironment: "jsdom",
moduleNameMapper: {
Expand Down
14 changes: 12 additions & 2 deletions micro-frontends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Hosting microfrontends for openmrs",
"main": "dist/index.js",
"author": "bahmni@thoughtworks.com",
"license": "AGPL-3.0",
"license": "MPL-2.0",
"devDependencies": {
"@babel/core": "^7.15.5",
"@babel/plugin-transform-runtime": "^7.22.4",
Expand Down Expand Up @@ -60,5 +60,15 @@
"engines": {
"yarn": ">= 1.0.0",
"npm": "use yarn instead of npm."
}
},
"licenses": [
{
"type": "MPL-2.0",
"url": "https://www.bahmni.org/license/mplv2hd"
},
{
"type": "Healthcare Disclaimer",
"url": "https://www.bahmni.org/license"
}
]
}
9 changes: 9 additions & 0 deletions micro-frontends/src/__mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = "test-file-stub";
9 changes: 9 additions & 0 deletions micro-frontends/src/__mocks__/globalReact.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = window.React;
9 changes: 9 additions & 0 deletions micro-frontends/src/__mocks__/globalReactDom.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = window.ReactDOM;
9 changes: 9 additions & 0 deletions micro-frontends/src/__mocks__/styleMock.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

module.exports = {};
9 changes: 9 additions & 0 deletions micro-frontends/src/ipd/CareViewDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import PropTypes from "prop-types";
import React, { Suspense, lazy } from "react";
import Loader from "../next-ui/Components/Loader/Loader";
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/ipd/IpdDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import PropTypes from "prop-types";
import React, { Suspense, lazy } from "react";
import Loader from "../next-ui/Components/Loader/Loader";
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/ipd/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

// Adapt all IPD components to use within angular
"use strict";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import { Close24 } from "@carbon/icons-react";
import { ArrowLeft } from "@carbon/icons-react/next";
import { RadioButton, RadioButtonGroup, TextArea } from "carbon-components-react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

.close {
border: none;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from "react";
import { render, fireEvent, screen, act } from "@testing-library/react";
import { AddAllergy } from "./AddAllergy";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { useEffect, useState } from 'react';
import PropTypes from "prop-types";
import { getLocale } from "../i18n/utils";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

.edit-observation-form-modal {
.bx--modal-container {
background: #f0f0f0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import { render, screen, fireEvent, waitFor, act } from '@testing-library/react';
import EditObservationForm from './EditObservationForm';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import axios from "axios";
import { GET_FORMS_BASE_URL,FORM_TRANSLATIONS_URL,GET_ALL_FORMS_BASE_URL,LATEST_PUBLISHED_FORMS_URL } from "../../constants"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import axios from "axios";
import { getFormDetail, getFormTranslations, getAllForms, getFormByFormName, getFormNameAndVersion } from "./EditObservationFormUtils";
import { GET_FORMS_BASE_URL, FORM_TRANSLATIONS_URL, GET_ALL_FORMS_BASE_URL } from "../../constants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react'
import "./ErrorNotification.scss";
import { I18nProvider } from '../i18n/I18nProvider';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

.error-message-container {
background: -webkit-linear-gradient(top, #d87777 1%, #d95757 100%);
border: 1px solid #b72224;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import { render, screen, fireEvent, act } from '@testing-library/react';
import ErrorNotification from './ErrorNotification';
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/Loader/Loader.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import { FormattedMessage } from "react-intl";
import './Loader.scss';
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/Loader/Loader.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/Loader/Loader.spec.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import { render } from '@testing-library/react';
import { IntlProvider } from 'react-intl';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { useState } from "react";
import PropTypes from "prop-types";
import { Modal } from "carbon-components-react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from "react";
import {render, screen, waitFor} from "@testing-library/react";
import { DeletePopup } from "./DeletePopup";
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/OtNotes/OtNotes.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

.ot-notes-popup{
.bx--modal-close{
top: 0;
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/OtNotes/SavePopup.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, {useEffect, useState} from "react";
import PropTypes from "prop-types";
import {Modal, TextArea, DatePicker, DatePickerInput} from "carbon-components-react";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from "react";
import {fireEvent, render, screen, waitFor} from "@testing-library/react";
import {SavePopup} from "./SavePopup";
Expand Down
9 changes: 9 additions & 0 deletions micro-frontends/src/next-ui/Components/OtNotes/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import axios from 'axios';
import { OT_NOTES_BASE_URL } from "../../constants";

Expand Down
Loading
Loading