From f253f0af0f14fc73138d79ac1fbdd2c506ba0d58 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 26 Jan 2024 20:36:29 -0700 Subject: [PATCH] add ability to import from Endorser Mobile CSV --- project.task.yaml | 2 +- src/libs/endorserServer.ts | 2 + src/views/ContactsView.vue | 94 +++++++++++++++++++++++++++++++++++--- 3 files changed, 91 insertions(+), 7 deletions(-) diff --git a/project.task.yaml b/project.task.yaml index e094022..64789ee 100644 --- a/project.task.yaml +++ b/project.task.yaml @@ -1,6 +1,7 @@ tasks: +- anchor hash into BTC - image on give - Show a camera to take a picture - Scale the image to a reasonable size @@ -11,7 +12,6 @@ tasks: - Rates - images erased? - image not associated with JWT ULID since that's assigned later - mark a project as inactive -- make a shortcut for BVC - add share button for sending a message to confirmers when we can't see the claim - add TimeSafari as a shareable app https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target - choose a project's alternative agent ("authorized representative") via a contact chooser (not just copy-paste a DID) diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 0bda865..3c2fb95 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -8,6 +8,8 @@ import { Contact } from "@/db/tables/contacts"; export const SCHEMA_ORG_CONTEXT = "https://schema.org"; // the object in RegisterAction claims export const SERVICE_ID = "endorser.ch"; +// the header line for contacts exported via Endorser Mobile +export const CONTACT_CSV_HEADER = "name,did,pubKeyBase64,seesMe,registered"; // the prefix for the contact URL export const CONTACT_URL_PREFIX = "https://endorser.ch"; // the suffix for the contact URL diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 16602d2..8250aa2 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -26,10 +26,10 @@ > -