Skip to content

Commit

Permalink
Merge pull request #136 from OpenTechStrategies/131-add-resource-type…
Browse files Browse the repository at this point in the history
…-and-name-to-metadata

131 add resource type and name to metadata
  • Loading branch information
hminsky2002 authored Oct 10, 2024
2 parents 4328392 + 49e6a91 commit 2329954
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 18 deletions.
4 changes: 2 additions & 2 deletions archesdataviewer/static/vite_build/.vite/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"index.html": {
"file": "assets/index-DSbEPIfT.js",
"file": "assets/index-Bpjc7uta.js",
"name": "index",
"src": "index.html",
"isEntry": true,
"css": [
"assets/index-Ct5uNcpK.css"
"assets/index-DX8cmjC1.css"
]
}
}

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions archesdataviewer/static/vite_build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Arches Data Viewer</title>
<script type="module" crossorigin src="/assets/index-DSbEPIfT.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Ct5uNcpK.css">
<script type="module" crossorigin src="/assets/index-Bpjc7uta.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DX8cmjC1.css">
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/components/ResourceDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const toggleMetadata = () => {
.resource-detail-metadata {
overflow: hidden;
max-height: 50px;
max-height: 200px;
transition: max-height 0.5s ease;
color: var(--wac--color--gray);
}
Expand Down
19 changes: 15 additions & 4 deletions front-end/src/components/ResourcePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,21 @@
</template>
<template #metadata>
<div>
Resource Instance ID:
<a :href="`${archesUrl}/report/${props.resource.resourceinstanceid}`">{{
props.resource.resourceinstanceid
}}</a>
<p
v-if="
props.idReferences.graphIdToNameTable[props.resource.graph_id] &&
props.resource.displayname
"
>
{{ props.idReferences.graphIdToNameTable[props.resource.graph_id] }} -
{{ props.resource.displayname }}
</p>
<p>
Resource Instance ID:
<a :href="`${archesUrl}/report/${props.resource.resourceinstanceid}`">{{
props.resource.resourceinstanceid
}}</a>
</p>
</div>
</template>
</ResourceDetail>
Expand Down

0 comments on commit 2329954

Please sign in to comment.