|
@ -230,6 +230,7 @@ |
|
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
<script lang="ts"> |
|
|
import { UAParser } from "ua-parser-js"; |
|
|
import { UAParser } from "ua-parser-js"; |
|
|
|
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
|
|
|
|
|
|
import EntityIcon from "@/components/EntityIcon.vue"; |
|
|
import EntityIcon from "@/components/EntityIcon.vue"; |
|
@ -238,6 +239,7 @@ import GiftedPrompts from "@/components/GiftedPrompts.vue"; |
|
|
import InfiniteScroll from "@/components/InfiniteScroll.vue"; |
|
|
import InfiniteScroll from "@/components/InfiniteScroll.vue"; |
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import TopMessage from "@/components/TopMessage.vue"; |
|
|
import TopMessage from "@/components/TopMessage.vue"; |
|
|
|
|
|
import { NotificationIface } from "@/constants/app"; |
|
|
import { db, accountsDB } from "@/db/index"; |
|
|
import { db, accountsDB } from "@/db/index"; |
|
|
import { Account } from "@/db/tables/accounts"; |
|
|
import { Account } from "@/db/tables/accounts"; |
|
|
import { Contact } from "@/db/tables/contacts"; |
|
|
import { Contact } from "@/db/tables/contacts"; |
|
@ -249,16 +251,8 @@ import { |
|
|
GiverInputInfo, |
|
|
GiverInputInfo, |
|
|
GiveServerRecord, |
|
|
GiveServerRecord, |
|
|
} from "@/libs/endorserServer"; |
|
|
} from "@/libs/endorserServer"; |
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
|
|
|
import { generateSaveAndActivateIdentity } from "@/libs/util"; |
|
|
import { generateSaveAndActivateIdentity } from "@/libs/util"; |
|
|
|
|
|
|
|
|
interface Notification { |
|
|
|
|
|
group: string; |
|
|
|
|
|
type: string; |
|
|
|
|
|
title: string; |
|
|
|
|
|
text: string; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
interface GiveRecordWithContactInfo extends GiveServerRecord { |
|
|
interface GiveRecordWithContactInfo extends GiveServerRecord { |
|
|
giver: { |
|
|
giver: { |
|
|
displayName: string; |
|
|
displayName: string; |
|
@ -281,7 +275,7 @@ interface GiveRecordWithContactInfo extends GiveServerRecord { |
|
|
}, |
|
|
}, |
|
|
}) |
|
|
}) |
|
|
export default class HomeView extends Vue { |
|
|
export default class HomeView extends Vue { |
|
|
$notify!: (notification: Notification, timeout?: number) => void; |
|
|
$notify!: (notification: NotificationIface, timeout?: number) => void; |
|
|
|
|
|
|
|
|
activeDid = ""; |
|
|
activeDid = ""; |
|
|
allContacts: Array<Contact> = []; |
|
|
allContacts: Array<Contact> = []; |
|
|