generated from wrappid/wrappid-module
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from wrappid/WRPD-enhancement-23
feat: ✨ wrapped componenet with Layout and fragment
- Loading branch information
Showing
9 changed files
with
123 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { CoreTypographyBody1 } from "@wrappid/core"; | ||
import { CoreTypographyBody1, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function BaseChemicals() { | ||
return (<CoreTypographyBody1>Base Chemicals</CoreTypographyBody1>); | ||
return ( | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreTypographyBody1>Base Chemicals</CoreTypographyBody1> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { CoreTypographyBody1 } from "@wrappid/core"; | ||
import { CoreTypographyBody1, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function Departments() { | ||
return (<CoreTypographyBody1>Departments</CoreTypographyBody1>); | ||
return ( | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreTypographyBody1>Departments</CoreTypographyBody1> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import { coreUseParams, CoreDataTable, CoreBox } from "@wrappid/core"; | ||
import { coreUseParams, CoreDataTable, CoreBox, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
import LanguageEditorForm from "./LanguageEditorForm"; | ||
|
||
export default function LanguageDataManager() { | ||
const { key } = coreUseParams(); | ||
|
||
return ( | ||
<CoreBox> | ||
<CoreDataTable | ||
hideForm={true} | ||
entity={"DefaultStringValues"} | ||
preRenderDetailsPaneComponent={LanguageEditorForm} | ||
filterQuery={{ filter: key ? { key } : null }} | ||
/> | ||
</CoreBox> | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreBox> | ||
<CoreDataTable | ||
hideForm={true} | ||
entity={"DefaultStringValues"} | ||
preRenderDetailsPaneComponent={LanguageEditorForm} | ||
filterQuery={{ filter: key ? { key } : null }} | ||
/> | ||
</CoreBox> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { CoreTypographyBody1 } from "@wrappid/core"; | ||
import { CoreTypographyBody1, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function MedicalTestData() { | ||
return <CoreTypographyBody1>Medical Test Data</CoreTypographyBody1>; | ||
return ( | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreTypographyBody1>Medical Test Data</CoreTypographyBody1> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,52 @@ | ||
import { CoreDivider, CoreTypographyBody1, CoreDataTable } from "@wrappid/core"; | ||
import { CoreDivider, CoreTypographyBody1, CoreDataTable, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function MedicineDatabase() { | ||
return ( | ||
<> | ||
<CoreTypographyBody1> | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
</CoreTypographyBody1> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
|
||
<CoreDivider /> | ||
<CoreTypographyBody1> | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
</CoreTypographyBody1> | ||
|
||
<CoreDataTable entity={"Medicines"} /> | ||
<CoreDivider /> | ||
|
||
<CoreDivider /> | ||
<CoreDataTable entity={"Medicines"} /> | ||
|
||
<CoreTypographyBody1> | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
</CoreTypographyBody1> | ||
<CoreDivider /> | ||
|
||
<CoreTypographyBody1> | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
CoreTypographyBody1. Fusce mattis egestas risus, in euismod odio | ||
tincidunt in. Maecenas ut ultricies quam. Curabitur sit amet diam a | ||
magna rhoncus posuere quis eu sem. Donec nec convallis ipsum. Donec | ||
euismod, ex vel maximus tincidunt, lacus libero faucibus nulla, eu | ||
scelerisque nisi metus at mi. Phasellus luctus in magna id finibus. | ||
</CoreTypographyBody1> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { CoreDataTable } from "@wrappid/core"; | ||
import { CoreDataTable, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function MedicineTestData() { | ||
return <CoreDataTable entity={"TestMedicine"} />; | ||
return ( | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreDataTable entity={"TestMedicine"} /> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import { CoreDataTable } from "@wrappid/core"; | ||
import { CoreDataTable, CoreLayoutItem, AppContainerLayout } from "@wrappid/core"; | ||
|
||
export default function SupportedLanguages() { | ||
return <CoreDataTable entity="SupportedLanguages" enableCreate={true} />; | ||
return ( | ||
<> | ||
<CoreLayoutItem id={AppContainerLayout.PLACEHOLDER.CONTENT}> | ||
<CoreDataTable entity="SupportedLanguages" enableCreate={true} /> | ||
</CoreLayoutItem> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1 @@ | ||
export const RoutesRegistry = { | ||
BASE_CHEMICALS : "chemical/base", | ||
CHEMICAL_COMPOSITIONS : "chemical/compositions", | ||
DEPARTMENTS : "departments", | ||
DRUG_DATA_MANAGEMENT : "drug_data_management", | ||
EDIT_SUGGESTIONS : "edit_suggestions", | ||
HELP_DOCUMENTS : "help_documents", | ||
INUSE_DRUG_DATA : "inuse_drug_data", | ||
INUSE_MEDICAL_TEST_DATA : "inuse_medical_test_data", | ||
MASTER_DATA : "masterData/all", | ||
MASTER_DATA_TYPES : "masterData/types", | ||
MASTER_DATA_TYPE_SPECIFIC : "masterData/all/:parentID", | ||
MASTER_DATA_TYPE_SPECIFIC_CROWDSOURCED: "masterData/crowdsourced/:parentID", | ||
MASTER_DATA_TYPE_SPECIFIC_SCRAPED : "masterData/scraped/:parentID", | ||
MDM : "mdm", | ||
MEDICAL_TEST_DATA_MANAGEMENT : "medical_test_data_management", | ||
MEDICINES : "medicine/all", | ||
MEDICINE_COMPANIES : "medicine/companies", | ||
MEDICINE_DATA : "medicine_data", | ||
MEDICINE_DATABASE : "medicine_database", | ||
MEDICINE_DETAILS : "medicine/details", | ||
MEDICINE_PACKAGES : "medicine/packages", | ||
MTDM_EDIT_SUGGESTIONS : "mtdm_edit_suggestions", | ||
PROSPECTED_DOCTORS : "prospected_doctors", | ||
SCRAPED_DRUG_DATA : "scraped_drug_data", | ||
SCRAPED_MEDICAL_TEST_DATA : "scraped_medical_test_data", | ||
SCRAPED_MEDICINES : "medicine/scraped", | ||
STRING_TABLE : "string_table", | ||
STRING_TABLE_FILTERED : "string_table/:key", | ||
}; | ||
export const RoutesRegistry = {}; |