From f184fe4d5179c7d4166cb119891a37482162c396 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Tue, 9 Jul 2024 19:42:55 -0600 Subject: [PATCH] linting cleanup --- src/components/PhotoDialog.vue | 1 - src/libs/crypto/index.ts | 8 +++++--- src/views/ConfirmGiftView.vue | 3 +-- src/views/ContactAmountsView.vue | 1 - src/views/DIDView.vue | 1 - src/views/DiscoverView.vue | 3 +-- src/views/HomeView.vue | 2 -- src/views/ProjectViewView.vue | 3 +-- src/views/SharedPhotoView.vue | 1 - 9 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/components/PhotoDialog.vue b/src/components/PhotoDialog.vue index ce5aaafef..fe323cb60 100644 --- a/src/components/PhotoDialog.vue +++ b/src/components/PhotoDialog.vue @@ -126,7 +126,6 @@ import { Component, Vue } from "vue-facing-decorator"; import VuePictureCropper, { cropper } from "vue-picture-cropper"; import { DEFAULT_IMAGE_API_SERVER, NotificationIface } from "@/constants/app"; -import { getIdentity } from "@/libs/util"; import { db } from "@/db/index"; import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings"; import { accessToken } from "@/libs/crypto"; diff --git a/src/libs/crypto/index.ts b/src/libs/crypto/index.ts index d89508e61..f7eefdc95 100644 --- a/src/libs/crypto/index.ts +++ b/src/libs/crypto/index.ts @@ -6,8 +6,10 @@ import { HDNode } from "@ethersproject/hdnode"; import * as didJwt from "did-jwt"; import * as u8a from "uint8arrays"; -import { Account } from "@/db/tables/accounts"; -import { createEndorserJwt, ENDORSER_JWT_URL_LOCATION } from "@/libs/endorserServer"; +import { + createEndorserJwt, + ENDORSER_JWT_URL_LOCATION, +} from "@/libs/endorserServer"; import { DEFAULT_DID_PROVIDER_NAME } from "../veramo/setup"; export const DEFAULT_ROOT_DERIVATION_PATH = "m/84737769'/0'/0'/0'"; @@ -95,7 +97,7 @@ export const accessToken = async (did?: string) => { const tokenPayload = { exp: endEpoch, iat: nowEpoch, iss: did }; return createEndorserJwt(did, tokenPayload); } else { - return null; + return ""; } }; diff --git a/src/views/ConfirmGiftView.vue b/src/views/ConfirmGiftView.vue index 7332ce3fd..2b4dc975f 100644 --- a/src/views/ConfirmGiftView.vue +++ b/src/views/ConfirmGiftView.vue @@ -393,7 +393,7 @@