-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce collection nodes and fix local graphs API
- Add collection nodes and edges to graph view - Fix local graph by properly dealing with bi-directional relationships - Add collection-level graphs - Fix local graph tests when using collections
- Loading branch information
Showing
10 changed files
with
207 additions
and
48 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
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
58 changes: 58 additions & 0 deletions
58
webapp/src/components/CollectionRelationshipVisualization.vue
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,58 @@ | ||
<template> | ||
<label class="mr-2">Relationships</label> | ||
<div> | ||
<ItemGraph | ||
:graphData="graphData" | ||
style="height: 150px" | ||
:defaultGraphStyle="elk - layered - down" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// import FormattedItemName from "@/components/FormattedItemName" | ||
import ItemGraph from "@/components/ItemGraph"; | ||
import { getItemGraph } from "@/server_fetch_utils.js"; | ||
export default { | ||
computed: { | ||
graphData() { | ||
return this.$store.state.itemGraphData; | ||
}, | ||
}, | ||
props: { | ||
collection_id: String, | ||
}, | ||
async mounted() { | ||
await getItemGraph({ item_id: null, collection_id: this.collection_id }); | ||
}, | ||
components: { | ||
ItemGraph, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.nav-link { | ||
cursor: pointer; | ||
} | ||
.contents-item { | ||
cursor: pointer; | ||
} | ||
.contents-blocktype { | ||
font-style: italic; | ||
color: gray; | ||
margin-right: 1rem; | ||
} | ||
.contents-blocktitle { | ||
color: #004175; | ||
} | ||
#contents-ol { | ||
margin-bottom: 0rem; | ||
padding-left: 1rem; | ||
} | ||
</style> |
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
Oops, something went wrong.