From 83f76297b56611cf8ff8f7c03afff3015dabd87e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 18 May 2026 15:21:01 +0000 Subject: [PATCH] Add generic layout of listing cards This should eventually by ported to other interfaces for consistency. --- ts/components/ListCardContact.vue | 57 ++++++++++++ ts/components/ReviewContactColumnList.vue | 105 +++++++++++++++++++++- ts/components/layout/ListCard.vue | 98 ++++++++++++++++++++ ts/store/resource.ts | 4 + ts/view/review/Contact.vue | 5 +- 5 files changed, 267 insertions(+), 2 deletions(-) create mode 100644 ts/components/ListCardContact.vue create mode 100644 ts/components/layout/ListCard.vue diff --git a/ts/components/ListCardContact.vue b/ts/components/ListCardContact.vue new file mode 100644 index 00000000..b1daaf19 --- /dev/null +++ b/ts/components/ListCardContact.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/ts/components/ReviewContactColumnList.vue b/ts/components/ReviewContactColumnList.vue index 37205c7c..2d491149 100644 --- a/ts/components/ReviewContactColumnList.vue +++ b/ts/components/ReviewContactColumnList.vue @@ -1,3 +1,106 @@ + + + diff --git a/ts/components/layout/ListCard.vue b/ts/components/layout/ListCard.vue new file mode 100644 index 00000000..528ea2ba --- /dev/null +++ b/ts/components/layout/ListCard.vue @@ -0,0 +1,98 @@ + + + diff --git a/ts/store/resource.ts b/ts/store/resource.ts index e0715b03..a1cdcd77 100644 --- a/ts/store/resource.ts +++ b/ts/store/resource.ts @@ -92,6 +92,9 @@ function createResourceStore( throw err; } } + function loadingAll(): boolean { + return !!_resourceFetchAll.value; + } function loadingURI(uri: string): boolean { return !!_resourceFetchByURI.value.get(uri); } @@ -105,6 +108,7 @@ function createResourceStore( fetchAll, fetchByID, fetchByURI, + loadingAll, loadingURI, }; } diff --git a/ts/view/review/Contact.vue b/ts/view/review/Contact.vue index 862b3c24..a58e7842 100644 --- a/ts/view/review/Contact.vue +++ b/ts/view/review/Contact.vue @@ -1,7 +1,10 @@