@mbehenri/openmrs-esm-opentms-meet-app 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +12 -0
- package/.eslintignore +2 -0
- package/.eslintrc +57 -0
- package/.husky/pre-commit +7 -0
- package/.husky/pre-push +6 -0
- package/.prettierignore +14 -0
- package/.turbo.json +18 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
- package/.yarn/releases/yarn-3.6.1.cjs +874 -0
- package/.yarnrc.yml +9 -0
- package/LICENSE +401 -0
- package/README.md +26 -0
- package/__mocks__/react-i18next.js +55 -0
- package/e2e/README.md +115 -0
- package/e2e/core/global-setup.ts +32 -0
- package/e2e/core/index.ts +1 -0
- package/e2e/core/test.ts +20 -0
- package/e2e/fixtures/api.ts +26 -0
- package/e2e/fixtures/index.ts +1 -0
- package/e2e/pages/home-page.ts +9 -0
- package/e2e/pages/index.ts +1 -0
- package/e2e/specs/sample-test.spec.ts +11 -0
- package/e2e/support/github/Dockerfile +34 -0
- package/e2e/support/github/docker-compose.yml +24 -0
- package/e2e/support/github/run-e2e-docker-env.sh +49 -0
- package/example.env +6 -0
- package/i18next-parser.config.js +89 -0
- package/jest.config.js +31 -0
- package/package.json +108 -0
- package/playwright.config.ts +32 -0
- package/src/Extensions/AppointmentTabExt.tsx +23 -0
- package/src/Extensions/DemandTabExt.tsx +14 -0
- package/src/Extensions/MeetIframeExt.tsx +14 -0
- package/src/Extensions/ValidateDemandFormExt.tsx +14 -0
- package/src/assets/img/Logo-texte.png +0 -0
- package/src/assets/img/Logo-texte.sim.white.png +0 -0
- package/src/assets/img/Logo-texte.white.png +0 -0
- package/src/assets/img/Logo.png +0 -0
- package/src/assets/img/favicon.ico +0 -0
- package/src/components/Appointment/index.scss +91 -0
- package/src/components/Appointment/index.tsx +207 -0
- package/src/components/Appointment/menu.scss +7 -0
- package/src/components/Appointment/menu.tsx +48 -0
- package/src/components/Appointment/tab.tsx +162 -0
- package/src/components/Demand/form.scss +19 -0
- package/src/components/Demand/form.tsx +236 -0
- package/src/components/Demand/index.tsx +0 -0
- package/src/components/Demand/tab.scss +145 -0
- package/src/components/Demand/tab.tsx +315 -0
- package/src/components/EmptyLayout/index.scss +69 -0
- package/src/components/EmptyLayout/index.tsx +32 -0
- package/src/components/MeetIframe/index.scss +56 -0
- package/src/components/MeetIframe/index.tsx +117 -0
- package/src/config-schema.ts +45 -0
- package/src/dashboard.meta.ts +12 -0
- package/src/declarations.d.ts +6 -0
- package/src/index.ts +75 -0
- package/src/pages/home/home.component.tsx +8 -0
- package/src/privileges/doctor.ts +213 -0
- package/src/repositories/Opencare/index.ts +12 -0
- package/src/repositories/Opencare/prodRepository.ts +176 -0
- package/src/repositories/Opencare/repository.ts +34 -0
- package/src/repositories/TypeRepository.ts +1 -0
- package/src/repositories/env.ts +7 -0
- package/src/repositories/errors.ts +13 -0
- package/src/root.component.tsx +46 -0
- package/src/root.scss +15 -0
- package/src/root.test.tsx +54 -0
- package/src/routes.json +44 -0
- package/src/services/doctor.ts +165 -0
- package/src/setup-tests.ts +1 -0
- package/src/utils.ts +41 -0
- package/translations/en.json +1 -0
- package/translations/es.json +24 -0
- package/translations/fr.json +24 -0
- package/translations/he.json +24 -0
- package/translations/km.json +24 -0
- package/tsconfig.json +24 -0
- package/webpack.config.js +1 -0
package/.editorconfig
ADDED
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"node": true
|
|
4
|
+
},
|
|
5
|
+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
6
|
+
"parser": "@typescript-eslint/parser",
|
|
7
|
+
"plugins": ["@typescript-eslint", "react-hooks"],
|
|
8
|
+
"root": true,
|
|
9
|
+
"rules": {
|
|
10
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
11
|
+
"react-hooks/rules-of-hooks": "error",
|
|
12
|
+
// Disabling these rules for now just to keep the diff small. I'll enable them in a future PR that fixes lint issues.
|
|
13
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
14
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
15
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
16
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
17
|
+
"@typescript-eslint/ban-types": "off",
|
|
18
|
+
// Use `import type` instead of `import` for type imports https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how
|
|
19
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
20
|
+
"error",
|
|
21
|
+
{
|
|
22
|
+
"fixStyle": "inline-type-imports"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"prefer-const": "off",
|
|
26
|
+
"no-console": ["error", { "allow": ["warn", "error"] }],
|
|
27
|
+
"no-unsafe-optional-chaining": "off",
|
|
28
|
+
"no-explicit-any": "off",
|
|
29
|
+
"no-extra-boolean-cast": "off",
|
|
30
|
+
/* "no-prototype-builtins": "off", */
|
|
31
|
+
"no-useless-escape": "off",
|
|
32
|
+
"no-restricted-imports": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"paths": [
|
|
36
|
+
{
|
|
37
|
+
"name": "lodash",
|
|
38
|
+
"message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "lodash-es",
|
|
42
|
+
"importNames": ["default"],
|
|
43
|
+
"message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "carbon-components-react",
|
|
47
|
+
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "@carbon/icons-react",
|
|
51
|
+
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
package/.husky/pre-push
ADDED
package/.prettierignore
ADDED
package/.turbo.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://turbo.build/schema.json",
|
|
3
|
+
"pipeline": {
|
|
4
|
+
"build": {
|
|
5
|
+
"outputs": ["dist/**"]
|
|
6
|
+
},
|
|
7
|
+
"lint": {},
|
|
8
|
+
"extract-translations": {
|
|
9
|
+
"outputs": ["./translations/*"]
|
|
10
|
+
},
|
|
11
|
+
"test": {},
|
|
12
|
+
"coverage": {
|
|
13
|
+
"outputs": ["coverage/**"]
|
|
14
|
+
},
|
|
15
|
+
"typescript": {},
|
|
16
|
+
"verify": {}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
Binary file
|