|
@ -375,8 +375,7 @@ import { UAParser } from "ua-parser-js"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Router } from "vue-router"; |
|
|
import { Router } from "vue-router"; |
|
|
|
|
|
|
|
|
import App from "../App.vue"; |
|
|
//import App from "../App.vue"; |
|
|
<<<<<<< HEAD |
|
|
|
|
|
import EntityIcon from "../components/EntityIcon.vue"; |
|
|
import EntityIcon from "../components/EntityIcon.vue"; |
|
|
import GiftedDialog from "../components/GiftedDialog.vue"; |
|
|
import GiftedDialog from "../components/GiftedDialog.vue"; |
|
|
import GiftedPrompts from "../components/GiftedPrompts.vue"; |
|
|
import GiftedPrompts from "../components/GiftedPrompts.vue"; |
|
@ -386,18 +385,7 @@ import OnboardingDialog from "../components/OnboardingDialog.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 UserNameDialog from "../components/UserNameDialog.vue"; |
|
|
import UserNameDialog from "../components/UserNameDialog.vue"; |
|
|
======= |
|
|
import ChoiceButtonDialog from "../components/ChoiceButtonDialog.vue"; |
|
|
import EntityIcon from "@/components/EntityIcon.vue"; |
|
|
|
|
|
import GiftedDialog from "@/components/GiftedDialog.vue"; |
|
|
|
|
|
import GiftedPrompts from "@/components/GiftedPrompts.vue"; |
|
|
|
|
|
import FeedFilters from "@/components/FeedFilters.vue"; |
|
|
|
|
|
import InfiniteScroll from "@/components/InfiniteScroll.vue"; |
|
|
|
|
|
import OnboardingDialog from "@/components/OnboardingDialog.vue"; |
|
|
|
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
|
|
|
import TopMessage from "@/components/TopMessage.vue"; |
|
|
|
|
|
import UserNameDialog from "@/components/UserNameDialog.vue"; |
|
|
|
|
|
import ChoiceButtonDialog from "@/components/ChoiceButtonDialog.vue"; |
|
|
|
|
|
>>>>>>> master |
|
|
|
|
|
import { |
|
|
import { |
|
|
AppString, |
|
|
AppString, |
|
|
NotificationIface, |
|
|
NotificationIface, |
|
@ -451,11 +439,6 @@ interface GiveRecordWithContactInfo extends GiveSummaryRecord { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
computed: { |
|
|
|
|
|
App() { |
|
|
|
|
|
return App; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
components: { |
|
|
components: { |
|
|
EntityIcon, |
|
|
EntityIcon, |
|
|
FeedFilters, |
|
|
FeedFilters, |
|
@ -471,6 +454,7 @@ interface GiveRecordWithContactInfo extends GiveSummaryRecord { |
|
|
}) |
|
|
}) |
|
|
export default class HomeView extends Vue { |
|
|
export default class HomeView extends Vue { |
|
|
$notify!: (notification: NotificationIface, timeout?: number) => void; |
|
|
$notify!: (notification: NotificationIface, timeout?: number) => void; |
|
|
|
|
|
$router!: Router; |
|
|
|
|
|
|
|
|
AppString = AppString; |
|
|
AppString = AppString; |
|
|
PASSKEYS_ENABLED = PASSKEYS_ENABLED; |
|
|
PASSKEYS_ENABLED = PASSKEYS_ENABLED; |
|
@ -483,7 +467,7 @@ export default class HomeView extends Vue { |
|
|
feedPreviousOldestId?: string; |
|
|
feedPreviousOldestId?: string; |
|
|
feedLastViewedClaimId?: string; |
|
|
feedLastViewedClaimId?: string; |
|
|
givenName = ""; |
|
|
givenName = ""; |
|
|
isAnyFeedFilterOn: boolean; |
|
|
isAnyFeedFilterOn = false; |
|
|
isCreatingIdentifier = false; |
|
|
isCreatingIdentifier = false; |
|
|
isFeedFilteredByVisible = false; |
|
|
isFeedFilteredByVisible = false; |
|
|
isFeedFilteredByNearby = false; |
|
|
isFeedFilteredByNearby = false; |
|
@ -555,6 +539,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, |
|
|
|
|
|
apiServer: "", |
|
|
}); |
|
|
}); |
|
|
this.isRegistered = true; |
|
|
this.isRegistered = true; |
|
|
} |
|
|
} |
|
@ -668,7 +653,7 @@ export default class HomeView extends Vue { |
|
|
if (results.data.length > 0) { |
|
|
if (results.data.length > 0) { |
|
|
endOfResults = false; |
|
|
endOfResults = false; |
|
|
// include the descriptions of the giver and receiver |
|
|
// include the descriptions of the giver and receiver |
|
|
for (const record: GiveSummaryRecord of results.data) { |
|
|
for (const record of results.data as GiveSummaryRecord[]) { |
|
|
// similar code is in endorser-mobile utility.ts |
|
|
// similar code is in endorser-mobile utility.ts |
|
|
// claim.claim happen for some claims wrapped in a Verifiable Credential |
|
|
// claim.claim happen for some claims wrapped in a Verifiable Credential |
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
|
@ -897,14 +882,14 @@ export default class HomeView extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
goToActivityToUserPage() { |
|
|
goToActivityToUserPage() { |
|
|
(this.$router as Router).push({ name: "new-activity" }); |
|
|
this.$router.push({ name: "new-activity" }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onClickLoadClaim(jwtId: string) { |
|
|
onClickLoadClaim(jwtId: string) { |
|
|
const route = { |
|
|
const route = { |
|
|
path: "/claim/" + encodeURIComponent(jwtId), |
|
|
path: "/claim/" + encodeURIComponent(jwtId), |
|
|
}; |
|
|
}; |
|
|
(this.$router as Router).push(route); |
|
|
this.$router.push(route); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
displayAmount(code: string, amt: number) { |
|
|
displayAmount(code: string, amt: number) { |
|
@ -972,13 +957,13 @@ export default class HomeView extends Vue { |
|
|
option2Text: "We are nearby with cameras", |
|
|
option2Text: "We are nearby with cameras", |
|
|
option3Text: "We will share some other way", |
|
|
option3Text: "We will share some other way", |
|
|
onOption1: () => { |
|
|
onOption1: () => { |
|
|
(this.$router as Router).push({ name: "onboard-meeting-list" }); |
|
|
this.$router.push({ name: "onboard-meeting-list" }); |
|
|
}, |
|
|
}, |
|
|
onOption2: () => { |
|
|
onOption2: () => { |
|
|
(this.$router as Router).push({ name: "contact-qr" }); |
|
|
this.$router.push({ name: "contact-qr" }); |
|
|
}, |
|
|
}, |
|
|
onOption3: () => { |
|
|
onOption3: () => { |
|
|
(this.$router as Router).push({ name: "share-my-contact-info" }); |
|
|
this.$router.push({ name: "share-my-contact-info" }); |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|