diff --git a/components/Card.vue b/components/Card.vue index 2d0ed41..55dcd65 100644 --- a/components/Card.vue +++ b/components/Card.vue @@ -40,16 +40,18 @@ const projectItems: { label: string | string[], type: string, rating?: ProjectRa h="48px lg:64px" :class="switcher ? '' : 'lg:max-w-full! lg:w-full '" > - + + +
{{ isOptionSelected?.label }}
  • - + +
    + +
    + + SUNSET +

    +
    +
    +
    -
    +
    { const data = await $fetch<{ categories: Category[] projects: Project[] - project_phase: { id: string, name: string }[] - asset_custody_type: { id: string, name: string }[] - sign_in_type_requirments: { id: string, name: string }[] + phases: { id: string, name: string }[] + custodys: { id: string, name: string }[] + requirements: { id: string, name: string }[] usecases: Usecase[] ecosystems: Ecosystem[] assets: Asset[] @@ -73,9 +73,9 @@ export const useData = defineStore('data', () => { features.value = data.features ranks.value = data.ranks - projectPhase.value = data.project_phase?.map(p => ({ id: p.id.toLowerCase(), name: p.name })) - assetCustody.value = data.asset_custody_type.map(a => ({ id: a.id.toLowerCase(), name: a.name })) - signInRequirments.value = data.sign_in_type_requirments.map(s => ({ id: s.id.toLowerCase(), name: s.name })) + projectPhase.value = data.phases?.map(p => ({ id: p.id.toLowerCase(), name: p.name })) + assetCustody.value = data.custodys.map(a => ({ id: a.id.toLowerCase(), name: a.name })) + signInRequirments.value = data.requirements.map(s => ({ id: s.id.toLowerCase(), name: s.name })) } catch (e) { console.error(e) @@ -129,7 +129,7 @@ export const useData = defineStore('data', () => { selectedCategoryId.value !== 'all' ? project.categories.includes(selectedCategoryId.value) : true, ) .filter(project => - selectedUsecaseId.value !== 'all' ? project.usecases?.map(u => u.toLowerCase()).includes(selectedUsecaseId.value.toLowerCase()) : true, + selectedUsecaseId.value !== 'all' ? selectedUsecaseId.value === 'sunset' ? project.sunset : project.usecases?.map(u => u.toLowerCase()).includes(selectedUsecaseId.value.toLowerCase()) : true, ) .filter(project => selectedEcosystemId.value !== 'all' ? project.ecosystem?.map(e => e.toLowerCase()).includes(selectedEcosystemId.value.toLowerCase()) : true, @@ -204,7 +204,7 @@ export const useData = defineStore('data', () => { } }).sort((a, b) => b.projects.length - a.projects.length) - return groupedProjects + return groupedProjects.filter(group => group.projects.length > 0) }) const filteredProjectsCount = computed(() => filteredProjects.value.length) diff --git a/layouts/default.vue b/layouts/default.vue index c400ae2..62958e8 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -124,7 +124,6 @@ watch([scrollY, top, y], (newValues, oldValues) => { />
    - {{ selectedAssetsUsedId }}

  • diff --git a/package.json b/package.json index cf56524..3b6625c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "develitesse-nuxt", "private": true, - "packageManager": "pnpm@9.10.0", + "packageManager": "pnpm@9.11.0", "scripts": { "build": "nuxt build", "cleanup": "nuxt cleanup",