-
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.
Rework cell and sample UI around new collections graph
- Update cypress tests - Update starting material UI with collections list
- Loading branch information
Showing
12 changed files
with
248 additions
and
148 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
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,59 @@ | ||
<template> | ||
<label class="mr-2">Relationships</label> | ||
<div> | ||
<ItemGraph | ||
:graphData="graphData" | ||
style="height: 200px; width: 100%; border: 1px solid transparent; border-radius: 5px" | ||
:defaultGraphStyle="'elk-stress'" | ||
:showOptions="false" | ||
/> | ||
</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: { | ||
item_id: String, | ||
}, | ||
async mounted() { | ||
await getItemGraph({ item_id: this.item_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> |
Oops, something went wrong.