Browse Source

fix linting

deep-link-redirect-server
Trent Larson 2 days ago
parent
commit
c4a54967bc
  1. 4
      src/views/ConfirmGiftView.vue
  2. 4
      src/views/ContactQRScanFullView.vue
  3. 4
      src/views/ContactQRScanShowView.vue
  4. 15
      src/views/UserProfileView.vue

4
src/views/ConfirmGiftView.vue

@ -679,8 +679,8 @@ export default class ConfirmGiftView extends Vue {
/** /**
* Add participant (giver/recipient) name & URL info * Add participant (giver/recipient) name & URL info
*/ */
this.giverName = this.didInfo(this.giveDetails?.agentDid); this.giverName = this.didInfo(this.giveDetails?.agentDid);
if (this.giveDetails?.agentDid) { if (this.giveDetails?.agentDid) {
this.urlForNewGive += `&giverDid=${encodeURIComponent(this.giveDetails.agentDid)}&giverName=${encodeURIComponent(this.giverName)}`; this.urlForNewGive += `&giverDid=${encodeURIComponent(this.giveDetails.agentDid)}&giverName=${encodeURIComponent(this.giverName)}`;
} }
this.recipientName = this.didInfo(this.giveDetails?.recipientDid); this.recipientName = this.didInfo(this.giveDetails?.recipientDid);

4
src/views/ContactQRScanFullView.vue

@ -593,7 +593,9 @@ export default class ContactQRScanFull extends Vue {
} }
async onCopyUrlToClipboard() { async onCopyUrlToClipboard() {
const account = await libsUtil.retrieveFullyDecryptedAccount(this.activeDid) as Account; const account = (await libsUtil.retrieveFullyDecryptedAccount(
this.activeDid,
)) as Account;
const jwtUrl = await generateEndorserJwtUrlForAccount( const jwtUrl = await generateEndorserJwtUrlForAccount(
account, account,
this.isRegistered, this.isRegistered,

4
src/views/ContactQRScanShowView.vue

@ -672,7 +672,9 @@ export default class ContactQRScanShow extends Vue {
} }
async onCopyUrlToClipboard() { async onCopyUrlToClipboard() {
const account = await libsUtil.retrieveFullyDecryptedAccount(this.activeDid) as Account; const account = (await libsUtil.retrieveFullyDecryptedAccount(
this.activeDid,
)) as Account;
const jwtUrl = await generateEndorserJwtUrlForAccount( const jwtUrl = await generateEndorserJwtUrlForAccount(
account, account,
this.isRegistered, this.isRegistered,

15
src/views/UserProfileView.vue

@ -16,9 +16,7 @@
</button> </button>
Individual Profile Individual Profile
</h1> </h1>
<div class="text-sm text-center text-slate-500"> <div class="text-sm text-center text-slate-500"></div>
</div>
</div> </div>
<!-- Loading Animation --> <!-- Loading Animation -->
@ -35,11 +33,11 @@
<div class="text-sm"> <div class="text-sm">
<font-awesome icon="user" class="fa-fw text-slate-400"></font-awesome> <font-awesome icon="user" class="fa-fw text-slate-400"></font-awesome>
{{ didInfo(profile.issuerDid, activeDid, allMyDids, allContacts) }} {{ didInfo(profile.issuerDid, activeDid, allMyDids, allContacts) }}
<button <button title="Copy Link to Profile" @click="onCopyLinkClick()">
title="Copy Link to Profile" <font-awesome
@click="onCopyLinkClick()" icon="link"
> class="text-sm text-slate-500 ml-2 mb-1"
<font-awesome icon="link" class="text-sm text-slate-500 ml-2 mb-1" /> />
</button> </button>
</div> </div>
<p v-if="profile.description" class="mt-4 text-slate-600"> <p v-if="profile.description" class="mt-4 text-slate-600">
@ -221,7 +219,6 @@ export default class UserProfileView extends Vue {
} }
onCopyLinkClick() { onCopyLinkClick() {
console.log("onCopyLinkClick", this.profile);
const deepLink = `${APP_SERVER}/deep-link/user-profile/${this.profile?.rowId}`; const deepLink = `${APP_SERVER}/deep-link/user-profile/${this.profile?.rowId}`;
useClipboard() useClipboard()
.copy(deepLink) .copy(deepLink)

Loading…
Cancel
Save