Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed textTooLink warnings #175

Merged
merged 7 commits into from
Jun 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 26 additions & 22 deletions packages/frontend/pages/provenance/[deviceKey].vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,41 @@
<template>
<div v-if="!isLoading">
<div v-if="deviceKeyFound">
<h1>"{{ deviceRecord.deviceName }}" Asset History Records</h1>
<div>Device ID: {{ deviceKey }}</div>
<p>
<a href="#createRecord">Go to "Create New History Record"</a>
</p>
<ProvenancePriorityNotices :deviceKey="deviceKey" :provenance="provenance"/>
<a href="#createdDevicePoint"><button class="textToLinkButton0">Click to <i><textToLink class="textToLink">Device Creation</textToLink></i></button></a>
<br><a href="#createRecord"><button class="textToLinkButton1">Click to <i><textToLink class="textToLink">"Create New History Record"</textToLink></i></button></a>
<br><a href="#childKeys"><button class="textToLinkButton2">Click to <i><textToLink class="textToLink">Child Keys</textToLink></i></button></a>
<div class="my-4 text-iris fs-1">"{{ deviceRecord.deviceName }}" Asset History Records</div>
<div>Device ID: {{ deviceKey }}</div>
<ProvenancePriorityNotices :deviceKey="deviceKey" :provenance="provenance"/>
<a href = "#createdDevicePoint">
<button class = "textToLinkButton0">Go to Device Creation Record </button>
</a>
<br>
<a href = "#createRecordPoint">
<button class = "textToLinkButton1">Go to Create New History Record </button>
</a>
<br>
<a href = "#childKeysPoint">
<button class = "textToLinkButton2">Go to Child Keys </button>
</a>
<div>
<ProvenanceFeed :deviceKey="deviceKey" :provenance="provenance"/>
</div>
<hr class="col-1 my-4">
<ProvenanceCreateRecord :deviceRecord="deviceRecord" :deviceKey="deviceKey" id="createRecord"/>
<!--Put the Reporting Key here if there is one -->
<div v-if="!isLoading">
<div v-if="hasReportingKey">
Reporting Key:
<div>
<a :href="`/provenance/${deviceRecord.reportingKey}`">{{deviceRecord.reportingKey}}</a>
</div>
<ProvenanceCreateRecord :deviceRecord="deviceRecord" :deviceKey="deviceKey" id="createRecordPoint"/>
<!--Put the Reporting Key here if there is one -->
<div v-if="!isLoading">
<div v-if="hasReportingKey">
Reporting Key:
<div>
<a :href="`/provenance/${deviceRecord.reportingKey}`">{{deviceRecord.reportingKey}}</a>
</div>
</div>
<!--Put the Child List key here if there are any -->
Child Keys:
</div>
<!--Put the Child List key here if there are any -->
<div id="childKeysPoint">
Child Keys:
<div>
<KeyList v-bind:keys="childKeys"/>
</div>
</div>

<!-- TODO: Uncomment when functionality is ready: -->
<!-- <div>
Expand Down Expand Up @@ -114,9 +121,6 @@ export default {

</script>
<style>
.textToLink {
color: blue;
}
.textToLinkButton0 {
border-width: 0px;
border-radius: 10px;
Expand Down