@ugandaemr/esm-login-app 5.1.1-pre.101
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/.eslintignore +2 -0
- package/.eslintrc +37 -0
- package/.husky/pre-commit +4 -0
- package/.husky/pre-push +6 -0
- package/.prettierignore +14 -0
- package/.turbo/turbo-build.log +34 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/.yarn/versions/456935dc.yml +0 -0
- package/6c05c1440f41d9cd/6c05c1440f41d9cd.gz +0 -0
- package/LICENSE +395 -0
- package/README.md +3 -0
- package/__mocks__/config.mock.ts +19 -0
- package/__mocks__/locations.mock.ts +399 -0
- package/__mocks__/react-i18next.js +56 -0
- package/dist/0f28ae6ed1f0f683.png +0 -0
- package/dist/131.js +2 -0
- package/dist/131.js.LICENSE.txt +5 -0
- package/dist/131.js.map +1 -0
- package/dist/282.js +2 -0
- package/dist/282.js.LICENSE.txt +32 -0
- package/dist/282.js.map +1 -0
- package/dist/29.js +2 -0
- package/dist/29.js.LICENSE.txt +3 -0
- package/dist/29.js.map +1 -0
- package/dist/300.js +1 -0
- package/dist/422.js +1 -0
- package/dist/422.js.map +1 -0
- package/dist/490.js +2 -0
- package/dist/490.js.LICENSE.txt +9 -0
- package/dist/490.js.map +1 -0
- package/dist/540.js +2 -0
- package/dist/540.js.LICENSE.txt +9 -0
- package/dist/540.js.map +1 -0
- package/dist/864.js +1 -0
- package/dist/864.js.map +1 -0
- package/dist/91.js +1 -0
- package/dist/91.js.map +1 -0
- package/dist/952.js +1 -0
- package/dist/952.js.map +1 -0
- package/dist/961.js +2 -0
- package/dist/961.js.LICENSE.txt +19 -0
- package/dist/961.js.map +1 -0
- package/dist/esm-ugandaemr-login.js +1 -0
- package/dist/esm-ugandaemr-login.js.buildmanifest.json +405 -0
- package/dist/esm-ugandaemr-login.js.map +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -0
- package/dist/routes.json +1 -0
- package/i18next-parser.config.js +89 -0
- package/jest.config.js +40 -0
- package/package.json +106 -0
- package/src/assets/background.png +0 -0
- package/src/config-schema.ts +52 -0
- package/src/confirm-location/confirm.location.component.tsx +35 -0
- package/src/declarations.d.ts +8 -0
- package/src/index.ts +30 -0
- package/src/login/login.component.tsx +270 -0
- package/src/login/login.resource.ts +58 -0
- package/src/login/login.scss +180 -0
- package/src/login/login.test.tsx +140 -0
- package/src/login/logo.component.tsx +50 -0
- package/src/logout/logout.component.tsx +30 -0
- package/src/logout/logout.resource.ts +18 -0
- package/src/logout/logout.scss +8 -0
- package/src/redirect-logout/redirect-logout.component.tsx +32 -0
- package/src/root.component.tsx +20 -0
- package/src/root.scss +31 -0
- package/src/routes.json +29 -0
- package/src/setup-tests.ts +15 -0
- package/src/test-helpers/render-with-router.tsx +24 -0
- package/src/types.ts +226 -0
- package/translations/en.json +18 -0
- package/tsconfig.json +24 -0
- package/turbo.json +18 -0
- package/webpack.config.js +1 -0
package/.eslintignore
ADDED
package/.eslintrc
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"parser": "@typescript-eslint/parser",
|
|
3
|
+
"plugins": ["@typescript-eslint"],
|
|
4
|
+
"root": true,
|
|
5
|
+
"extends": [
|
|
6
|
+
"eslint:recommended",
|
|
7
|
+
"plugin:prettier/recommended",
|
|
8
|
+
"plugin:@typescript-eslint/recommended",
|
|
9
|
+
"ts-react-important-stuff"
|
|
10
|
+
],
|
|
11
|
+
"rules": {
|
|
12
|
+
"no-restricted-imports": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
"paths": [
|
|
16
|
+
{
|
|
17
|
+
"name": "lodash",
|
|
18
|
+
"message": "Import specific methods from `lodash`. e.g. `import map from 'lodash/map'`"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "lodash-es",
|
|
22
|
+
"importNames": ["default"],
|
|
23
|
+
"message": "Import specific methods from `lodash-es`. e.g. `import { map } from 'lodash-es'`"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "carbon-components-react",
|
|
27
|
+
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "@carbon/icons-react",
|
|
31
|
+
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
package/.husky/pre-push
ADDED
package/.prettierignore
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
assets by path [1m[32m*.js[39m[22m 910 KiB
|
|
2
|
+
assets by chunk 851 KiB (id hint: vendors)
|
|
3
|
+
asset [1m[33m29.js[39m[22m [1m[33m539 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
4
|
+
asset [1m[32m961.js[39m[22m 130 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
5
|
+
asset [1m[32m131.js[39m[22m 78 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
6
|
+
+ 3 assets
|
|
7
|
+
+ 7 assets
|
|
8
|
+
assets by path [1m[32m*.json[39m[22m 8.44 KiB
|
|
9
|
+
asset [1m[32mesm-ugandaemr-login.js.buildmanifest.json[39m[22m 8.04 KiB [1m[32m[emitted][39m[22m
|
|
10
|
+
asset [1m[32mroutes.json[39m[22m 409 bytes [1m[32m[emitted][39m[22m [from: src/routes.json] [1m[32m[copied][39m[22m
|
|
11
|
+
asset [1m[33m0f28ae6ed1f0f683.png[39m[22m [1m[33m725 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[immutable][39m[22m [from: src/assets/background.png] [1m[33m[big][39m[22m
|
|
12
|
+
orphan modules 4.13 MiB [1m[33m[orphan][39m[22m 399 modules
|
|
13
|
+
runtime modules 39.3 KiB 28 modules
|
|
14
|
+
built modules 3.16 MiB (javascript) 725 KiB (asset) 210 bytes (share-init) 210 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
15
|
+
modules by path [1m./node_modules/[39m[22m 3.1 MiB 44 modules
|
|
16
|
+
modules by path [1m./src/[39m[22m 64.8 KiB (javascript) 725 KiB (asset) 6 modules
|
|
17
|
+
provide-module modules 210 bytes
|
|
18
|
+
[1mprovide shared module (default) @openmrs/esm-framework@5.5.0 = ./node_modules/@o...(truncated)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
19
|
+
+ 4 modules
|
|
20
|
+
consume-shared-module modules 210 bytes
|
|
21
|
+
[1mconsume shared module (default) @openmrs/esm-framework@^5 (singleton) (fallback:...(truncated)[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
22
|
+
+ 4 modules
|
|
23
|
+
modules by path [1m./translations/[39m[22m 646 bytes
|
|
24
|
+
[1m./translations/ lazy nonrecursive .json$[39m[22m 160 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
|
+
[1m./translations/en.json[39m[22m 486 bytes [1m[33m[optional][39m[22m [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
+
[1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
27
|
+
|
|
28
|
+
[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
29
|
+
This can impact web performance.
|
|
30
|
+
Assets:
|
|
31
|
+
0f28ae6ed1f0f683.png (725 KiB)
|
|
32
|
+
29.js (539 KiB)[39m[22m
|
|
33
|
+
|
|
34
|
+
webpack 5.90.3 compiled with [1m[33m1 warning[39m[22m in 21032 ms
|