Skip to content

Commit

Permalink
fix data sources in nuxt project
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSunshyne committed May 22, 2024
1 parent 60c536b commit df5f18b
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions packages/frontendmu-nuxt/components/cards/CardAlbum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
</template>

<script setup lang="ts">
import type { MeetupPhotos } from '#build/utils/types';
import { defineProps } from 'vue';
defineProps<{
currentAlbum: MeetupPhotos[] | undefined;
currentAlbum: string[] | undefined;
source: string;
}>();
</script>
2 changes: 1 addition & 1 deletion packages/frontendmu-nuxt/components/home/Sponsors.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import sponsors from "../../../frontendmu-astro/src/data/sponsors.js";
import sponsors from "../../../frontendmu-data/data/sponsors.js";
</script>

<template>
Expand Down
1 change: 0 additions & 1 deletion packages/frontendmu-nuxt/components/meetup/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
<AuthRsvpAttendeeList :seatCapacity="getCurrentEvent.seats_available" :meetupId="routeId" />
</ClientOnly>
</div>
{{ currentAlbum }}
<MeetupAlbum :getCurrentEvent="getCurrentEvent" :currentAlbum="currentAlbum" :source="photoAlbumSource" />
</ContentBlock>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-nuxt/composables/useMeetups.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import eventsResponse from "../../frontendmu-astro/src/data/meetups-raw.json";
import eventsResponse from "../../frontendmu-data/data/meetups-raw.json";

let allMeetups = eventsResponse;
export default function useMeetups() {
Expand Down
7 changes: 4 additions & 3 deletions packages/frontendmu-nuxt/pages/sponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<BaseHeading>Sponsors</BaseHeading>
<p class="text-xl text-verse-600 dark:text-verse-200">
We're lucky to have sponsors support our community. If you're
interested in sponsoring us,<a href="mailto:[email protected]" class="underline" title="Please reach out to us via email"> please reach out to the organizers
here</a>.
interested in sponsoring us,<a href="mailto:[email protected]" class="underline"
title="Please reach out to us via email"> please reach out to the organizers
here</a>.
</p>
</div>
<div class="grid gap-20 pt-12 md:grid-cols-2">
Expand Down Expand Up @@ -47,7 +48,7 @@
</template>

<script setup lang="ts">
import sponsorTypes from "../../frontendmu-astro/src/data/sponsors.js";
import sponsorTypes from "../../frontendmu-data/data/sponsors.js";
import { vTransitionName } from "@/utils/helpers";
const title = "Our sponsors";
Expand Down
4 changes: 2 additions & 2 deletions packages/frontendmu-nuxt/pages/team.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ import speakersResponse from "../../frontendmu-data/data/speakers-raw.json";
// @ts-ignore
import { getGithubUrl } from "@/utils/helpers";
import Contributors from "../../frontendmu-astro/src/data/contributors.json";
import { people } from "../../frontendmu-astro/src/data/people";
import Contributors from "../../frontendmu-data/data/contributors.json";
import { people } from "../../frontendmu-data/data/people";
interface Contributor {
username: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-nuxt/utils/data-helpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import eventsResponse from "../../frontendmu-astro/src/data/meetups-raw.json";
import eventsResponse from "../../frontendmu-data/data/meetups-raw.json";

const getSponsorDetails = (sponsors) => {
return (
Expand Down

0 comments on commit df5f18b

Please sign in to comment.