From a1d23ff1b00fc210ed28775eac0e27b87d0c8502 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 17 Feb 2024 10:04:31 -0700 Subject: [PATCH] start display of starred projects (but without setting start & not sure about endpoint) --- src/db/tables/settings.ts | 3 + src/libs/endorserServer.ts | 1 + src/main.ts | 2 + src/views/DiscoverView.vue | 129 +++++++++++++++++++++++++++++++++++-- 4 files changed, 128 insertions(+), 7 deletions(-) diff --git a/src/db/tables/settings.ts b/src/db/tables/settings.ts index 4b3ad1e..bce8bcf 100644 --- a/src/db/tables/settings.ts +++ b/src/db/tables/settings.ts @@ -31,12 +31,15 @@ export type Settings = { }>; showContactGivesInline?: boolean; // Display contact inline or not + starredProjects?: Array; // Array of starred project IDs vapid?: string; // VAPID (Voluntary Application Server Identification) field for web push warnIfProdServer?: boolean; // Warn if using a production server warnIfTestServer?: boolean; // Warn if using a testing server webPushServer?: string; // Web Push server URL }; +export const DEFAULT_SETTINGS: Settings = { id: 1 }; + /** * Schema for the Settings table in the database. */ diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index c2168fe..d6cfc32 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -103,6 +103,7 @@ export interface PlanServerRecord { handleId: string; locLat?: number; locLon?: number; + name: string; startTime?: string; url?: string; } diff --git a/src/main.ts b/src/main.ts index c97e44d..16390ef 100644 --- a/src/main.ts +++ b/src/main.ts @@ -61,6 +61,7 @@ import { faSquareCaretDown, faSquareCaretUp, faSquarePlus, + faStar, faTrashCan, faTriangleExclamation, faUser, @@ -119,6 +120,7 @@ library.add( faSquareCaretDown, faSquareCaretUp, faSquarePlus, + faStar, faTrashCan, faTriangleExclamation, faUser, diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index 3b0cb44..0fd30dc 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -1,5 +1,5 @@