Compare commits
3 Commits
search-map
...
home-icon-
| Author | SHA1 | Date | |
|---|---|---|---|
| abc05d426e | |||
|
|
92b9c9334c | ||
|
|
706182ca0c |
@@ -14,22 +14,37 @@
|
|||||||
class="flex items-center justify-between gap-2 text-lg bg-slate-200 border border-slate-300 border-b-0 rounded-t-md px-3 sm:px-4 py-1 sm:py-2"
|
class="flex items-center justify-between gap-2 text-lg bg-slate-200 border border-slate-300 border-b-0 rounded-t-md px-3 sm:px-4 py-1 sm:py-2"
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<div v-if="record.issuerDid">
|
<router-link
|
||||||
|
v-if="record.issuerDid && !isHiddenDid(record.issuerDid)"
|
||||||
|
:to="{
|
||||||
|
path: '/did/' + encodeURIComponent(record.issuerDid),
|
||||||
|
}"
|
||||||
|
title="More details about this person"
|
||||||
|
>
|
||||||
<EntityIcon
|
<EntityIcon
|
||||||
:entity-id="record.issuerDid"
|
:entity-id="record.issuerDid"
|
||||||
class="rounded-full bg-white overflow-hidden !size-[2rem] object-cover"
|
class="rounded-full bg-white overflow-hidden !size-[2rem] object-cover"
|
||||||
/>
|
/>
|
||||||
</div>
|
</router-link>
|
||||||
<div v-else>
|
<font-awesome
|
||||||
<font-awesome
|
v-else-if="isHiddenDid(record.issuerDid)"
|
||||||
icon="person-circle-question"
|
icon="eye-slash"
|
||||||
class="text-slate-300 text-[2rem]"
|
class="text-slate-400 !size-[2rem] cursor-pointer"
|
||||||
/>
|
@click="notifyHiddenPerson"
|
||||||
</div>
|
/>
|
||||||
|
<font-awesome
|
||||||
|
v-else
|
||||||
|
icon="person-circle-question"
|
||||||
|
class="text-slate-400 !size-[2rem] cursor-pointer"
|
||||||
|
@click="notifyUnknownPerson"
|
||||||
|
/>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<h3 class="font-semibold">
|
<h3
|
||||||
{{ record.issuer.known ? record.issuer.displayName : "" }}
|
v-if="record.issuer.known"
|
||||||
|
class="font-semibold leading-tight"
|
||||||
|
>
|
||||||
|
{{ record.issuer.displayName }}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="ms-auto text-xs text-slate-500 italic">
|
<p class="ms-auto text-xs text-slate-500 italic">
|
||||||
{{ friendlyDate }}
|
{{ friendlyDate }}
|
||||||
@@ -46,7 +61,7 @@
|
|||||||
<!-- Record Image -->
|
<!-- Record Image -->
|
||||||
<div
|
<div
|
||||||
v-if="record.image"
|
v-if="record.image"
|
||||||
class="bg-cover mb-6 -mt-3 sm:-mt-4 -mx-3 sm:-mx-4"
|
class="bg-cover mb-4 -mt-3 sm:-mt-4 -mx-3 sm:-mx-4"
|
||||||
:style="`background-image: url(${record.image});`"
|
:style="`background-image: url(${record.image});`"
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -63,33 +78,55 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="relative flex justify-between gap-4 max-w-[40rem] mx-auto mb-5"
|
class="relative flex justify-between gap-4 max-w-[40rem] mx-auto mb-3"
|
||||||
>
|
>
|
||||||
<!-- Source -->
|
<!-- Source -->
|
||||||
<div
|
<div
|
||||||
class="w-[8rem] sm:w-[12rem] text-center bg-white border border-slate-200 rounded p-2 sm:p-3"
|
class="w-[7rem] sm:w-[12rem] text-center bg-white border border-slate-200 rounded p-2 sm:p-3"
|
||||||
>
|
>
|
||||||
<div class="relative w-fit mx-auto">
|
<div class="relative w-fit mx-auto">
|
||||||
<div>
|
<div>
|
||||||
<!-- Project Icon -->
|
<!-- Project Icon -->
|
||||||
<div v-if="record.providerPlanName">
|
<div v-if="record.providerPlanName">
|
||||||
<ProjectIcon
|
<router-link
|
||||||
:entity-id="record.providerPlanName"
|
:to="{
|
||||||
:icon-size="48"
|
path: '/project/' + encodeURIComponent(record.providerPlanHandleId || ''),
|
||||||
class="rounded size-[3rem] sm:size-[4rem] *:w-full *:h-full"
|
}"
|
||||||
/>
|
title="View project details"
|
||||||
|
>
|
||||||
|
<ProjectIcon
|
||||||
|
:entity-id="record.providerPlanHandleId || ''"
|
||||||
|
:icon-size="48"
|
||||||
|
class="rounded size-[3rem] sm:size-[4rem] *:w-full *:h-full"
|
||||||
|
/>
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<!-- Identicon for DIDs -->
|
<!-- Identicon for DIDs -->
|
||||||
<div v-else-if="record.agentDid">
|
<div v-else-if="record.agentDid">
|
||||||
<EntityIcon
|
<router-link
|
||||||
:entity-id="record.agentDid"
|
v-if="!isHiddenDid(record.agentDid)"
|
||||||
:profile-image-url="record.issuer.profileImageUrl"
|
:to="{
|
||||||
class="rounded-full bg-slate-100 overflow-hidden !size-[3rem] sm:!size-[4rem]"
|
path: '/did/' + encodeURIComponent(record.agentDid),
|
||||||
|
}"
|
||||||
|
title="More details about this person"
|
||||||
|
>
|
||||||
|
<EntityIcon
|
||||||
|
:entity-id="record.agentDid"
|
||||||
|
:profile-image-url="record.issuer.profileImageUrl"
|
||||||
|
class="rounded-full bg-slate-100 overflow-hidden !size-[3rem] sm:!size-[4rem]"
|
||||||
|
/>
|
||||||
|
</router-link>
|
||||||
|
<font-awesome
|
||||||
|
v-else
|
||||||
|
@click="notifyHiddenPerson"
|
||||||
|
icon="eye-slash"
|
||||||
|
class="text-slate-300 !size-[3rem] sm:!size-[4rem]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- Unknown Person -->
|
<!-- Unknown Person -->
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<font-awesome
|
<font-awesome
|
||||||
|
@click="notifyUnknownPerson"
|
||||||
icon="person-circle-question"
|
icon="person-circle-question"
|
||||||
class="text-slate-300 text-[3rem] sm:text-[4rem]"
|
class="text-slate-300 text-[3rem] sm:text-[4rem]"
|
||||||
/>
|
/>
|
||||||
@@ -110,9 +147,9 @@
|
|||||||
|
|
||||||
<!-- Arrow -->
|
<!-- Arrow -->
|
||||||
<div
|
<div
|
||||||
class="absolute inset-x-[8rem] sm:inset-x-[12rem] mx-2 top-1/2 -translate-y-1/2"
|
class="absolute inset-x-[7rem] sm:inset-x-[12rem] mx-2 top-1/2 -translate-y-1/2"
|
||||||
>
|
>
|
||||||
<div class="text-sm text-center leading-none font-semibold pe-[15px]">
|
<div class="text-sm text-center leading-none font-semibold pe-2 sm:pe-4">
|
||||||
{{ fetchAmount }}
|
{{ fetchAmount }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -129,29 +166,51 @@
|
|||||||
|
|
||||||
<!-- Destination -->
|
<!-- Destination -->
|
||||||
<div
|
<div
|
||||||
class="w-[8rem] sm:w-[12rem] text-center bg-white border border-slate-200 rounded p-2 sm:p-3"
|
class="w-[7rem] sm:w-[12rem] text-center bg-white border border-slate-200 rounded p-2 sm:p-3"
|
||||||
>
|
>
|
||||||
<div class="relative w-fit mx-auto">
|
<div class="relative w-fit mx-auto">
|
||||||
<div>
|
<div>
|
||||||
<!-- Project Icon -->
|
<!-- Project Icon -->
|
||||||
<div v-if="record.recipientProjectName">
|
<div v-if="record.recipientProjectName">
|
||||||
<ProjectIcon
|
<router-link
|
||||||
:entity-id="record.recipientProjectName"
|
:to="{
|
||||||
:icon-size="48"
|
path: '/project/' + encodeURIComponent(record.fulfillsPlanHandleId || ''),
|
||||||
class="rounded size-[3rem] sm:size-[4rem] *:w-full *:h-full"
|
}"
|
||||||
/>
|
title="View project details"
|
||||||
|
>
|
||||||
|
<ProjectIcon
|
||||||
|
:entity-id="record.fulfillsPlanHandleId || ''"
|
||||||
|
:icon-size="48"
|
||||||
|
class="rounded size-[3rem] sm:size-[4rem] *:w-full *:h-full"
|
||||||
|
/>
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<!-- Identicon for DIDs -->
|
<!-- Identicon for DIDs -->
|
||||||
<div v-else-if="record.recipientDid">
|
<div v-else-if="record.recipientDid">
|
||||||
<EntityIcon
|
<router-link
|
||||||
:entity-id="record.recipientDid"
|
v-if="!isHiddenDid(record.recipientDid)"
|
||||||
:profile-image-url="record.receiver.profileImageUrl"
|
:to="{
|
||||||
class="rounded-full bg-slate-100 overflow-hidden !size-[3rem] sm:!size-[4rem]"
|
path: '/did/' + encodeURIComponent(record.recipientDid),
|
||||||
|
}"
|
||||||
|
title="More details about this person"
|
||||||
|
>
|
||||||
|
<EntityIcon
|
||||||
|
:entity-id="record.recipientDid"
|
||||||
|
:profile-image-url="record.receiver.profileImageUrl"
|
||||||
|
class="rounded-full bg-slate-100 overflow-hidden !size-[3rem] sm:!size-[4rem]"
|
||||||
|
/>
|
||||||
|
</router-link>
|
||||||
|
<font-awesome
|
||||||
|
v-else
|
||||||
|
@click="notifyHiddenPerson"
|
||||||
|
icon="eye-slash"
|
||||||
|
class="text-slate-300 !size-[3rem] sm:!size-[4rem]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<!-- Unknown Person -->
|
<!-- Unknown Person -->
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<font-awesome
|
<font-awesome
|
||||||
|
@click="notifyUnknownPerson"
|
||||||
icon="person-circle-question"
|
icon="person-circle-question"
|
||||||
class="text-slate-300 text-[3rem] sm:text-[4rem]"
|
class="text-slate-300 text-[3rem] sm:text-[4rem]"
|
||||||
/>
|
/>
|
||||||
@@ -186,8 +245,9 @@ import { Component, Prop, Vue, Emit } from "vue-facing-decorator";
|
|||||||
import { GiveRecordWithContactInfo } from "../types";
|
import { GiveRecordWithContactInfo } from "../types";
|
||||||
import EntityIcon from "./EntityIcon.vue";
|
import EntityIcon from "./EntityIcon.vue";
|
||||||
import { isGiveClaimType, notifyWhyCannotConfirm } from "../libs/util";
|
import { isGiveClaimType, notifyWhyCannotConfirm } from "../libs/util";
|
||||||
import { containsHiddenDid } from "../libs/endorserServer";
|
import { containsHiddenDid, isHiddenDid } from "../libs/endorserServer";
|
||||||
import ProjectIcon from "./ProjectIcon.vue";
|
import ProjectIcon from "./ProjectIcon.vue";
|
||||||
|
import { NotificationIface } from "../constants/app";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
@@ -202,6 +262,33 @@ export default class ActivityListItem extends Vue {
|
|||||||
@Prop() activeDid!: string;
|
@Prop() activeDid!: string;
|
||||||
@Prop() confirmerIdList?: string[];
|
@Prop() confirmerIdList?: string[];
|
||||||
|
|
||||||
|
isHiddenDid = isHiddenDid;
|
||||||
|
$notify!: (notification: NotificationIface, timeout?: number) => void;
|
||||||
|
|
||||||
|
notifyHiddenPerson() {
|
||||||
|
this.$notify(
|
||||||
|
{
|
||||||
|
group: "alert",
|
||||||
|
type: "warning",
|
||||||
|
title: "Person Outside Your Network",
|
||||||
|
text: "This person is not visible to you.",
|
||||||
|
},
|
||||||
|
3000
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
notifyUnknownPerson() {
|
||||||
|
this.$notify(
|
||||||
|
{
|
||||||
|
group: "alert",
|
||||||
|
type: "warning",
|
||||||
|
title: "Unidentified Person",
|
||||||
|
text: "Nobody specific was recognized.",
|
||||||
|
},
|
||||||
|
3000
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@Emit()
|
@Emit()
|
||||||
cacheImage(image: string) {
|
cacheImage(image: string) {
|
||||||
return image;
|
return image;
|
||||||
|
|||||||
Reference in New Issue
Block a user