From aac4d1da04d212c3d5f9e22b2c205131dc26d971 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Tue, 19 Dec 2023 17:10:07 +0100 Subject: [PATCH] Finish reworking most templates pages --- .../pages/templates/TemplatesList.vue | 39 +++- client/pages/templates/index.vue | 11 +- client/pages/templates/industries/[slug].vue | 216 +++--------------- client/pages/templates/types/[slug].vue | 152 ++---------- client/stores/templates.js | 14 +- 5 files changed, 99 insertions(+), 333 deletions(-) diff --git a/client/components/pages/templates/TemplatesList.vue b/client/components/pages/templates/TemplatesList.vue index 9a12bb9..99aa1d2 100644 --- a/client/components/pages/templates/TemplatesList.vue +++ b/client/components/pages/templates/TemplatesList.vue @@ -5,12 +5,12 @@
-
-
@@ -34,16 +34,20 @@
+ -
+

All Types

+ + View All Templates +
-
+
-
+

All Industries

+ + View All Templates +
-
+
{ return (item.types && item.types.length > 0) ? item.types.includes(this.selectedType) : false }) } // Filter by Selected Industry - if (this.selectedIndustry && this.selectedIndustry !== 'all') { + if (this.filterIndustries && this.selectedIndustry && this.selectedIndustry !== 'all') { enrichedTemplates = enrichedTemplates.filter((item) => { return (item.industries && item.industries.length > 0) ? item.industries.includes(this.selectedIndustry) : false }) diff --git a/client/pages/templates/index.vue b/client/pages/templates/index.vue index d30def5..022f5cf 100644 --- a/client/pages/templates/index.vue +++ b/client/pages/templates/index.vue @@ -20,7 +20,7 @@ diff --git a/client/pages/templates/industries/[slug].vue b/client/pages/templates/industries/[slug].vue index 1c04d5e..0e2dedf 100644 --- a/client/pages/templates/industries/[slug].vue +++ b/client/pages/templates/industries/[slug].vue @@ -1,12 +1,9 @@ - + diff --git a/client/pages/templates/types/[slug].vue b/client/pages/templates/types/[slug].vue index 8e5adcf..3419a5f 100644 --- a/client/pages/templates/types/[slug].vue +++ b/client/pages/templates/types/[slug].vue @@ -2,10 +2,7 @@
-
- -
-

+

We could not find this type.

-