-
Notifications
You must be signed in to change notification settings - Fork 29
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 #783 from opencb/TASK-4255
TASK-4255 - Implement an extension system
- Loading branch information
Showing
43 changed files
with
1,141 additions
and
637 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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
window.IVA_EXTENSIONS = { | ||
id: "opencb", | ||
name: "OpenCB", | ||
description: "", | ||
commercial: false, | ||
license: "", | ||
extensions: [], | ||
}; |
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
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 |
---|---|---|
@@ -0,0 +1,155 @@ | ||
window.IVA_EXTENSIONS = { | ||
id: "opencb", | ||
name: "OpenCB", | ||
description: "", | ||
commercial: false, | ||
license: "", | ||
extensions: [ | ||
{ | ||
id: "custom-tool", | ||
name: "Custom Tool", | ||
description: "Example Tool extension", | ||
type: "tool", | ||
components: [], | ||
maintainer: "", | ||
version: "", | ||
compatibleWith: "", | ||
render: params => params.html` | ||
<div> | ||
<h1>Hello ${params.opencgaSession.user.name}</h1> | ||
</div> | ||
`, | ||
}, | ||
{ | ||
id: "variant-columns", | ||
name: "Variant Columns", | ||
description: "Example columns for Variant Browser", | ||
type: "column", | ||
components: [ | ||
"variant-browser-grid", | ||
"variant-interpreter-rd-grid", | ||
"variant-interpreter-cancer-snv-grid", | ||
"variant-interpreter-cancer-cnv-grid", | ||
"variant-interpreter-rearrangement-grid", | ||
], | ||
maintainer: "", | ||
version: "", | ||
compatibleWith: "", | ||
columns: [ | ||
[ | ||
{ | ||
position: -2, | ||
config: { | ||
id: "new-column-1", | ||
title: "Extra column", | ||
field: "", | ||
rowspan: 2, | ||
colspan: 1, | ||
align: "center", | ||
formatter: (value, row, index) => `Row ${index}`, | ||
}, | ||
}, | ||
], | ||
], | ||
}, | ||
{ | ||
id: "variant-detail", | ||
name: "New Variant Tab", | ||
description: "Example detail_tab extension for Variant Browser", | ||
type: "detail_tab", | ||
components: [ | ||
"variant-browser-detail", | ||
"variant-interpreter-rd-detail", | ||
"variant-interpreter-cancer-snv-detail", | ||
"variant-interpreter-cancer-cnv-detail", | ||
"variant-interpreter-rearrangement-detail", | ||
], | ||
compatibleWith: "", | ||
render: params => params.html` | ||
<div>Content of the new detail tab for <b>Variant Browser</b></div> | ||
`, | ||
}, | ||
{ | ||
id: "catalog-columns", | ||
name: "Catalog Columns", | ||
description: "Example columns for Catalog Grids", | ||
type: "column", | ||
components: [ | ||
"clinical-analysis-grid", | ||
"cohort-grid", | ||
"family-grid", | ||
"file-grid", | ||
"individual-grid", | ||
"job-grid", | ||
"sample-grid", | ||
], | ||
maintainer: "", | ||
version: "", | ||
compatibleWith: "", | ||
columns: [ | ||
{ | ||
// position: 0, | ||
config: { | ||
id: "new-column-1", | ||
title: "Extra column", | ||
field: "", | ||
align: "center", | ||
formatter: (value, row, index) => `Row ${index}`, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
id: "catalog-columns-multiple", | ||
name: "Catalog Columns", | ||
description: "Example columns for Catalog Grids", | ||
type: "column", | ||
components: [ | ||
"disease-panel-grid", | ||
], | ||
maintainer: "", | ||
version: "", | ||
compatibleWith: "", | ||
columns: [ | ||
[ | ||
{ | ||
// position: 0, | ||
config: { | ||
id: "new-column-1", | ||
title: "Extra column", | ||
field: "", | ||
align: "center", | ||
rowspan: 2, | ||
colspan: 1, | ||
formatter: (value, row, index) => `Row ${index}`, | ||
}, | ||
}, | ||
], | ||
], | ||
}, | ||
{ | ||
id: "catalog-detail", | ||
name: "New Catalog Tab", | ||
description: "Example detail tab for Catalog Details", | ||
type: "detail_tab", | ||
components: [ | ||
"clinical-analysis-detail", | ||
"cohort-detail", | ||
"disease-panel-detail", | ||
"family-detail", | ||
"file-detail", | ||
"individual-detail", | ||
"job-detail", | ||
"sample-detail", | ||
], | ||
maintainer: "", | ||
version: "", | ||
compatibleWith: "", | ||
render: params => { | ||
return params.html` | ||
<div>Hello world</div> | ||
`; | ||
}, | ||
}, | ||
], | ||
}; |
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
Oops, something went wrong.