diff --git a/components/Masthead/LinksMenu.vue b/components/Masthead/LinksMenu.vue index ddb6eeda53b13f468d99447232a78396e9b37a07..2436fcb94cffdd224cf08a5fbe1946988b33b38d 100644 --- a/components/Masthead/LinksMenu.vue +++ b/components/Masthead/LinksMenu.vue @@ -1,5 +1,5 @@ <template> - <div class="d-flex justify-space-between links-menu"> + <div class="d-flex justify-space-between justify-sm-start links-menu"> <v-btn color="primary" depressed tile nuxt to="/"> <v-icon>mdi-home</v-icon> </v-btn> diff --git a/components/footer/LicenseAndPrivacy.vue b/components/footer/LicenseAndPrivacy.vue index f0cb6f86fa0d1c9ac31159f66ce0827a680898bb..2b2b729d143a7809a9a4ecb5061c205227144cb2 100644 --- a/components/footer/LicenseAndPrivacy.vue +++ b/components/footer/LicenseAndPrivacy.vue @@ -3,7 +3,7 @@ <v-divider /> <div class="d-flex justify-center text-container"> <span class="text-body-2 text-justify"> - Website Hosted by the + Website hosted by the <a target="_blank" href="https://www.ebi.ac.uk/">EMBL-EBI</a>, licensed under the <a target="_blank" href="https://www.apache.org/licenses/LICENSE-2.0" diff --git a/components/report_cards/chemical_probe/ProbeMechanism.vue b/components/report_cards/chemical_probe/ProbeMechanism.vue index 97fc4038720483da2a3ecc8bf7dfdec247bb4f87..45be3d5f2a4ca3f24684947f88873dbbd9647dbf 100644 --- a/components/report_cards/chemical_probe/ProbeMechanism.vue +++ b/components/report_cards/chemical_probe/ProbeMechanism.vue @@ -22,7 +22,7 @@ export default { }, mixins: [datasetMixin], props: { - chemblID: { + itemID: { type: String, default: () => undefined, }, @@ -47,7 +47,7 @@ export default { starterParams() { const starterParams = ProbeMechanism.getReportCardStarterParams( EntityNames.EubopenMechanismOfAction.entityID, - 'CHEMBL101253', + this.itemID, this.propertiesGroups ) return starterParams diff --git a/components/report_cards/chemical_probe/ProbeProfile.vue b/components/report_cards/chemical_probe/ProbeProfile.vue index 78cd86a20c2e3307e4890a7e0352c185458eb796..90cd4965dd68cf9dc9bbe2c53c4b534b39ac8269 100644 --- a/components/report_cards/chemical_probe/ProbeProfile.vue +++ b/components/report_cards/chemical_probe/ProbeProfile.vue @@ -1,16 +1,61 @@ <template> - <v-card class="yellow lighten-4"> + <v-card> <v-card-text> - <EntityRelations /> + <ChEMBLDataTable + :dataset-state="datasetState" + :store-module-name="storeModuleName" + :outlined-card="true" + /> </v-card-text> </v-card> </template> <script> -import EntityRelations from '~/web-components-submodule/components/common/ReportCards/EntityRelations/EntityRelations.vue' +import { datasetMixin } from '~/web-components-submodule/mixins/datasets/datasetMixin.js' +import ChEMBLDataTable from '~/web-components-submodule/components/common/dataSets/data_table/ChEMBLDataTable.vue' +import EntityNames from '~/web-components-submodule/standardisation/EntityNames.js' +import ProbeProfile from '~/web-components-submodule/store/datasets/generators/eubopen/activity/ProbeProfile.js' + export default { components: { - EntityRelations, + ChEMBLDataTable, + }, + mixins: [datasetMixin], + props: { + itemID: { + type: String, + default: () => undefined, + }, + storeModuleName: { + type: String, + default: () => `probe_profile`, + }, + }, + data() { + return { + propertiesGroups: { + 1: { + id: 'eubopen_compound_probe_profile', + selected: true, + allHeaders: [], + }, + }, + entityID: EntityNames.EubopenActivity.entityID, + customDataRepresentationParams: { + possiblePageSizes: [5, 10], + itemsPerPage: 5, + }, + } + }, + computed: { + starterParams() { + const starterParams = ProbeProfile.getReportCardStarterParams( + EntityNames.EubopenActivity.entityID, + this.itemID, + this.propertiesGroups + ) + return starterParams + }, }, } </script> diff --git a/components/report_cards/chemical_probe/Summary.vue b/components/report_cards/chemical_probe/Summary.vue index 978e2756babdc4a7834baaa3bf1507edeb1c3978..fc42f69ad61285fb7bd6978c1a79f1afd79090cf 100644 --- a/components/report_cards/chemical_probe/Summary.vue +++ b/components/report_cards/chemical_probe/Summary.vue @@ -15,45 +15,41 @@ <v-card-subtitle>Details</v-card-subtitle> <v-divider /> <v-card-text> - <v-row class="details-row yellow lighten-4" dense> + <v-row dense> <v-col cols="12"> - <b>EUbOPEN ID:</b> - {{ itemID }} + <div><b>EUbOPEN ID:</b> {{ itemID }}<v-divider /></div> </v-col> - </v-row> - <v-divider /> - - <v-row class="details-row" dense> <v-col cols="12"> - <b>Name:</b> - {{ getPropertyPalue(probeSummaryData, 'pref_name', '---') }} + <div> + <b>Name:</b> + {{ getPropertyPalue(probeSummaryData, 'pref_name', '---') }} + <v-divider /> + </div> </v-col> - </v-row> - <v-divider /> - <v-row class="details-row" dense> - <v-col - cols="12" - class="d-flex align-center flex-column flex-md-row" - > - <b>Synonyms:</b> - <Synonyms - type="molecule_synonyms" - :entity-i-d="entityID" - :item-i-d="itemID" - /> + <v-col cols="12"> + <div> + <b>Synonyms:</b> + <br /> + <Synonyms + type="molecule_synonyms" + :entity-i-d="entityID" + :item-i-d="itemID" + /> + <v-divider /> + </div> + </v-col> + <v-col cols="12"> + <b>Download probe data package:</b> + <br /><br /> + <v-btn + href="https://drive.google.com/file/d/1FQOGQxTdcIfTeM1Vq73vbHOEJ0ZptkHV/view?usp=sharing" + color="primary" + > + <v-icon>mdi-download</v-icon> PDF + </v-btn> </v-col> </v-row> - <v-divider /> </v-card-text> - - <v-card-actions class="d-flex justify-center"> - <v-btn - href="https://drive.google.com/file/d/1FQOGQxTdcIfTeM1Vq73vbHOEJ0ZptkHV/view?usp=sharing" - color="primary" - > - <v-icon>mdi-download</v-icon> PDF - </v-btn> - </v-card-actions> </v-col> <v-col v-if="showStructureImgLaterally" @@ -116,9 +112,6 @@ export default { </script> <style scoped lang="scss"> -.details-row { - margin: 0; -} .molecule-img-container { padding-right: 10px; } diff --git a/report_cards_structure/CompoundReportCardGenerator.js b/report_cards_structure/CompoundReportCardGenerator.js index b4f49a9019e83320bd6eb9bb8023b10e38c7b825..d3422d0984ae10cbefe8e0a09b363faca04e633d 100644 --- a/report_cards_structure/CompoundReportCardGenerator.js +++ b/report_cards_structure/CompoundReportCardGenerator.js @@ -1,6 +1,5 @@ import Summary from '~/components/report_cards/chemical_probe/Summary.vue' import ControlStructuresAndUse from '~/components/report_cards/chemical_probe/ControlStructuresAndUse.vue' -import CellularAssayTargetEngagement from '~/components/report_cards/chemical_probe/CellularAssayTargetEngagement.vue' import ProbeProfile from '~/components/report_cards/chemical_probe/ProbeProfile.vue' import ProbeMechanism from '~/components/report_cards/chemical_probe/ProbeMechanism.vue' import CompoundCrystalStructures from '~/components/report_cards/chemical_probe/CompoundCrystalStructures.vue' @@ -20,15 +19,15 @@ const methods = { index: 0, }, { - id: 'ControlStructuresAndUse', - title: 'Control Structures And Use', - component: ControlStructuresAndUse, + id: 'ProbeMechanism', + title: 'Probe Mechanism', + component: ProbeMechanism, index: 1, }, { - id: 'CellularAssayTargetEngagement', - title: 'Cellular Assay and Target Engagement', - component: CellularAssayTargetEngagement, + id: 'ControlStructuresAndUse', + title: 'Control Structures And Use', + component: ControlStructuresAndUse, index: 2, }, { @@ -37,12 +36,6 @@ const methods = { component: ProbeProfile, index: 3, }, - { - id: 'ProbeMechanism', - title: 'Probe Mechanism', - component: ProbeMechanism, - index: 4, - }, { id: 'CalculatedProperties', title: 'Calculated Properties', @@ -51,13 +44,13 @@ const methods = { entityID: EntityNames.EubopenCompound.entityID, }, - index: 5, + index: 4, }, { id: 'CrystalStructures', title: 'PBD Ligand Codes', component: CompoundCrystalStructures, - index: 6, + index: 5, }, ], } diff --git a/web-components-submodule b/web-components-submodule index b3cc0c893a74ec4555438fa271f7958d160ed6ef..11257a066e00627de771f1aa223e4325197e75a1 160000 --- a/web-components-submodule +++ b/web-components-submodule @@ -1 +1 @@ -Subproject commit b3cc0c893a74ec4555438fa271f7958d160ed6ef +Subproject commit 11257a066e00627de771f1aa223e4325197e75a1