Identicon responsive size fix + lint-fix
This commit is contained in:
@@ -21,7 +21,11 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="font-semibold">
|
<h3 class="font-semibold">
|
||||||
<a href="" class="hover:underline">
|
<a href="" class="hover:underline">
|
||||||
{{ record.giver.known ? record.giver.displayName : 'Anonymous Giver' }}
|
{{
|
||||||
|
record.giver.known
|
||||||
|
? record.giver.displayName
|
||||||
|
: "Anonymous Giver"
|
||||||
|
}}
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<p class="ms-auto text-xs text-slate-500 italic">
|
<p class="ms-auto text-xs text-slate-500 italic">
|
||||||
@@ -62,7 +66,7 @@
|
|||||||
:class="[
|
:class="[
|
||||||
!record.providerPlanName
|
!record.providerPlanName
|
||||||
? 'rounded-full size-12 sm:size-24 object-cover'
|
? 'rounded-full size-12 sm:size-24 object-cover'
|
||||||
: 'rounded size-12 sm:size-24 object-cover'
|
: 'rounded size-12 sm:size-24 object-cover',
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -71,8 +75,8 @@
|
|||||||
<template v-if="record.providerPlanName">
|
<template v-if="record.providerPlanName">
|
||||||
<ProjectIcon
|
<ProjectIcon
|
||||||
:entityId="record.providerPlanName"
|
:entityId="record.providerPlanName"
|
||||||
:iconSize="96"
|
:iconSize="48"
|
||||||
class="rounded size-12 sm:size-24"
|
class="rounded size-12 sm:size-24 *:w-full *:h-full"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- Identicon for DIDs -->
|
<!-- Identicon for DIDs -->
|
||||||
@@ -123,7 +127,7 @@
|
|||||||
:class="[
|
:class="[
|
||||||
!record.recipientProjectName
|
!record.recipientProjectName
|
||||||
? 'rounded-full size-12 sm:size-24 object-cover'
|
? 'rounded-full size-12 sm:size-24 object-cover'
|
||||||
: 'rounded size-12 sm:size-24 object-cover'
|
: 'rounded size-12 sm:size-24 object-cover',
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -132,8 +136,8 @@
|
|||||||
<template v-if="record.recipientProjectName">
|
<template v-if="record.recipientProjectName">
|
||||||
<ProjectIcon
|
<ProjectIcon
|
||||||
:entityId="record.recipientProjectName"
|
:entityId="record.recipientProjectName"
|
||||||
:iconSize="96"
|
:iconSize="48"
|
||||||
class="rounded size-12 sm:size-24"
|
class="rounded size-12 sm:size-24 *:w-full *:h-full"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<!-- Identicon for DIDs -->
|
<!-- Identicon for DIDs -->
|
||||||
@@ -185,7 +189,7 @@
|
|||||||
:class="[
|
:class="[
|
||||||
canConfirm
|
canConfirm
|
||||||
? 'bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)]'
|
? 'bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)]'
|
||||||
: 'bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] opacity-50'
|
: 'bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] opacity-50',
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
Confirm
|
Confirm
|
||||||
@@ -321,20 +325,20 @@ export default class ActivityListItem extends Vue {
|
|||||||
this.record.fullClaim?.["@type"],
|
this.record.fullClaim?.["@type"],
|
||||||
this.record,
|
this.record,
|
||||||
this.activeDid,
|
this.activeDid,
|
||||||
this.confirmerIdList
|
this.confirmerIdList,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('confirmClaim', this.record);
|
this.$emit("confirmClaim", this.record);
|
||||||
}
|
}
|
||||||
|
|
||||||
get friendlyDate(): string {
|
get friendlyDate(): string {
|
||||||
const date = new Date(this.record.issuedAt);
|
const date = new Date(this.record.issuedAt);
|
||||||
return date.toLocaleDateString(undefined, {
|
return date.toLocaleDateString(undefined, {
|
||||||
year: 'numeric',
|
year: "numeric",
|
||||||
month: 'short',
|
month: "short",
|
||||||
day: 'numeric'
|
day: "numeric",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -466,7 +466,7 @@ export default class HomeView extends Vue {
|
|||||||
if (resp.status === 200) {
|
if (resp.status === 200) {
|
||||||
await updateAccountSettings(this.activeDid, {
|
await updateAccountSettings(this.activeDid, {
|
||||||
isRegistered: true,
|
isRegistered: true,
|
||||||
...await retrieveSettingsForActiveAccount()
|
...(await retrieveSettingsForActiveAccount()),
|
||||||
});
|
});
|
||||||
this.isRegistered = true;
|
this.isRegistered = true;
|
||||||
}
|
}
|
||||||
@@ -924,46 +924,52 @@ export default class HomeView extends Vue {
|
|||||||
serverUtil.addLastClaimOrHandleAsIdIfMissing(
|
serverUtil.addLastClaimOrHandleAsIdIfMissing(
|
||||||
record.fullClaim,
|
record.fullClaim,
|
||||||
record.jwtId,
|
record.jwtId,
|
||||||
record.handleId
|
record.handleId,
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
const confirmationClaim = {
|
const confirmationClaim = {
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "AgreeAction",
|
"@type": "AgreeAction",
|
||||||
object: goodClaim
|
object: goodClaim,
|
||||||
};
|
};
|
||||||
|
|
||||||
const result = await serverUtil.createAndSubmitClaim(
|
const result = await serverUtil.createAndSubmitClaim(
|
||||||
confirmationClaim,
|
confirmationClaim,
|
||||||
this.activeDid,
|
this.activeDid,
|
||||||
this.apiServer,
|
this.apiServer,
|
||||||
this.axios
|
this.axios,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (result.type === "success") {
|
if (result.type === "success") {
|
||||||
this.$notify({
|
this.$notify(
|
||||||
|
{
|
||||||
group: "alert",
|
group: "alert",
|
||||||
type: "success",
|
type: "success",
|
||||||
title: "Success",
|
title: "Success",
|
||||||
text: "Confirmation submitted."
|
text: "Confirmation submitted.",
|
||||||
}, 3000);
|
},
|
||||||
|
3000,
|
||||||
|
);
|
||||||
|
|
||||||
// Refresh the feed to show updated confirmation status
|
// Refresh the feed to show updated confirmation status
|
||||||
await this.updateAllFeed();
|
await this.updateAllFeed();
|
||||||
} else {
|
} else {
|
||||||
console.error("Error submitting confirmation:", result);
|
console.error("Error submitting confirmation:", result);
|
||||||
this.$notify({
|
this.$notify(
|
||||||
|
{
|
||||||
group: "alert",
|
group: "alert",
|
||||||
type: "danger",
|
type: "danger",
|
||||||
title: "Error",
|
title: "Error",
|
||||||
text: "There was a problem submitting the confirmation."
|
text: "There was a problem submitting the confirmation.",
|
||||||
}, 5000);
|
},
|
||||||
}
|
5000,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-1
|
},
|
||||||
|
-1,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user