-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit ebd3585 Author: Garrett Ladley <[email protected]> Date: Fri Apr 26 19:08:39 2024 -0400 chore: update swagger docs lol (#670) commit 5e577b5 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:55:57 2024 -0400 Chore(deps): Bump gorm.io/gorm from 1.25.9 to 1.25.10 in /backend (#651) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit dae8559 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:53:57 2024 -0400 Chore(deps): Bump zod from 3.22.4 to 3.23.4 in /frontend/lib (#653) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit e783266 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:53:34 2024 -0400 Chore(deps): Bump @react-native-menu/menu from 1.0.0 to 1.0.1 in /frontend/mobile (#654) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 28b0601 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:53:13 2024 -0400 Chore(deps-dev): Bump react-test-renderer from 18.2.0 to 18.3.1 in /frontend/mobile (#655) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 8fb976f Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:52:50 2024 -0400 Chore(deps): Bump zod from 3.22.4 to 3.23.4 in /frontend/mobile (#656) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 91bd0fa Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:51:59 2024 -0400 Chore(deps): Bump react-native-svg from 15.1.0 to 15.2.0 in /frontend/mobile (#657) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 1c3af86 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:51:24 2024 -0400 Chore(deps): Bump react-native-screens from 3.30.1 to 3.31.1 in /frontend/mobile (#658) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 438543c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:51:00 2024 -0400 Chore(deps-dev): Bump eslint-config-next from 14.2.2 to 14.2.3 in /frontend/web (#659) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit d17a368 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:50:31 2024 -0400 Chore(deps): Bump next from 14.2.2 to 14.2.3 in /frontend/web (#661) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 0683f69 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:50:09 2024 -0400 Chore(deps): Bump zod from 3.23.3 to 3.23.4 in /frontend/dashboard (#663) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit b37cac2 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:49:46 2024 -0400 Chore(deps-dev): Bump eslint-config-next from 14.2.2 to 14.2.3 in /frontend/dashboard (#664) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit bc681d3 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:49:22 2024 -0400 Chore(deps): Bump next from 14.2.2 to 14.2.3 in /frontend/dashboard (#666) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit 808fa7a Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Apr 26 18:49:01 2024 -0400 Chore(deps): Bump github.com/aws/aws-sdk-go from 1.51.25 to 1.51.30 in /backend (#650) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Garrett Ladley <[email protected]> commit e8e3859 Author: Garrett Ladley <[email protected]> Date: Fri Apr 26 18:48:32 2024 -0400 feat: dashboard in cli (#665) commit 5ae64c2 Author: Garrett Ladley <[email protected]> Date: Fri Apr 26 18:45:51 2024 -0400 feat: fe lib ci (#652) commit 0eb16da Author: Garrett Ladley <[email protected]> Date: Fri Apr 26 17:30:51 2024 -0400 feat: register dashboard and lib with dependabot (#648) commit 5b38adc Author: Garrett Ladley <[email protected]> Date: Fri Apr 26 17:28:51 2024 -0400 fix: misc fe pathing with drop of 'sac-' fe dir prefix (#646) commit e556197 Author: Garrett Ladley <[email protected]> Date: Thu Apr 25 18:00:07 2024 -0400 chore: remove gorm in go structs (#641) commit a0ed6d4 Author: David Oduneye <[email protected]> Date: Thu Apr 25 14:27:41 2024 -0400 feat: move authentication route to user, club authorization (#637) Co-authored-by: Garrett Ladley <[email protected]> commit 25002d5 Author: Garrett Ladley <[email protected]> Date: Thu Apr 25 14:25:58 2024 -0400 fix: frontend ci (#639) commit a28089a Author: Alder Whiteford <[email protected]> Date: Thu Apr 25 14:13:56 2024 -0400 feat: frontend lib, rtk migration, & dashboard init (#632) Co-authored-by: David Oduneye <[email protected]> Co-authored-by: Alder Whiteford <[email protected]> Co-authored-by: garrettladley <[email protected]>
- Loading branch information
Showing
21 changed files
with
740 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { z } from "zod"; | ||
|
||
import { API_BASE_URL } from "@/const"; | ||
import { Category, categorySchema } from "@/types/category"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const categoriesApi = createApi({ | ||
reducerPath: "categoriesApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
tagTypes: ["Categories"], | ||
endpoints: (builder) => ({ | ||
categories: builder.query<Category[], void>({ | ||
query: () => "categories", | ||
transformResponse: (rawResponse: unknown) => { | ||
return z.array(categorySchema).parse(rawResponse); | ||
}, | ||
providesTags: [{ type: "Categories", id: "LIST" }], | ||
}), | ||
category: builder.query<Category, uuid>({ | ||
query: (categoryID: uuid) => `categories/${categoryID}`, | ||
transformResponse: (rawResponse: unknown) => { | ||
return categorySchema.parse(rawResponse); | ||
}, | ||
providesTags: (result, _, categoryID) => | ||
result ? [{ type: "Categories", id: categoryID }] : [], | ||
}), | ||
}), | ||
}); | ||
|
||
export const { useCategoriesQuery, useCategoryQuery } = categoriesApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { API_BASE_URL } from "@/const"; | ||
import { Club } from "@/types/club"; | ||
import { Contact } from "@/types/contact"; | ||
import { Tag } from "@/types/tag"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const clubsApi = createApi({ | ||
reducerPath: "clubsApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
tagTypes: ["Clubs"], | ||
endpoints: (builder) => ({ | ||
clubs: builder.query<Club[], void>({ | ||
query: () => "clubs", | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(clubSchema).parse(rawResponse); | ||
// }, | ||
providesTags: [{ type: "Clubs", id: "LIST" }], | ||
}), | ||
club: builder.query<Club, uuid>({ | ||
query: (clubID: uuid) => `clubs/${clubID}`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return clubSchema.parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, clubID) => | ||
result ? [{ type: "Clubs", id: clubID }] : [], | ||
}), | ||
clubContacts: builder.query<Contact[], uuid>({ | ||
query: (clubID: uuid) => `clubs/${clubID}/contacts`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(contactSchema).parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, clubID) => | ||
result ? [{ type: "Clubs", id: clubID }] : [], | ||
}), | ||
clubTags: builder.query<Tag[], uuid>({ | ||
query: (clubID: uuid) => `clubs/${clubID}/tags`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(tagSchema).parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, clubID) => | ||
result ? [{ type: "Clubs", id: clubID }] : [], | ||
}), | ||
}), | ||
}); | ||
|
||
export const { | ||
useClubsQuery, | ||
useClubQuery, | ||
useClubContactsQuery, | ||
useClubTagsQuery, | ||
} = clubsApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { z } from "zod"; | ||
|
||
import { API_BASE_URL } from "@/const"; | ||
import { Contact, contactSchema } from "@/types/contact"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const contactsApi = createApi({ | ||
reducerPath: "contactApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
endpoints: (builder) => ({ | ||
contacts: builder.query<Contact[], void>({ | ||
query: () => "contacts", | ||
transformResponse: (rawResponse: unknown) => { | ||
return z.array(contactSchema).parse(rawResponse); | ||
}, | ||
}), | ||
contact: builder.query<Contact, uuid>({ | ||
query: (contactID: uuid) => `contacts/${contactID}`, | ||
transformResponse: (rawResponse: unknown) => { | ||
return contactSchema.parse(rawResponse); | ||
}, | ||
}), | ||
}), | ||
}); | ||
|
||
export const { useContactsQuery } = contactsApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { API_BASE_URL } from "@/const"; | ||
import { Club } from "@/types/club"; | ||
import { Event } from "@/types/event"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const eventsApi = createApi({ | ||
reducerPath: "eventsApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
tagTypes: ["Events"], | ||
endpoints: (builder) => ({ | ||
events: builder.query<Event[], void>({ | ||
query: () => "events", | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(eventSchema).parse(rawResponse); | ||
// }, | ||
providesTags: [{ type: "Events", id: "LIST" }], | ||
}), | ||
event: builder.query<Event, uuid>({ | ||
query: (eventID: uuid) => `events/${eventID}`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return eventSchema.parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, eventID) => | ||
result ? [{ type: "Events", id: eventID }] : [], | ||
}), | ||
eventTags: builder.query<Club[], uuid>({ | ||
query: (eventID: uuid) => `events/${eventID}/tags`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(clubSchema).parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, eventID) => | ||
result ? [{ type: "Events", id: eventID }] : [], | ||
}), | ||
eventHosts: builder.query<Club[], uuid>({ | ||
query: (eventID: uuid) => `events/${eventID}/hosts`, | ||
// transformResponse: (rawResponse: unknown) => { | ||
// return z.array(clubSchema).parse(rawResponse); | ||
// }, | ||
providesTags: (result, _, eventID) => | ||
result ? [{ type: "Events", id: eventID }] : [], | ||
}), | ||
}), | ||
}); | ||
|
||
export const { | ||
useEventsQuery, | ||
useEventQuery, | ||
useEventTagsQuery, | ||
useEventHostsQuery, | ||
} = eventsApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { z } from "zod"; | ||
|
||
import { API_BASE_URL } from "@/const"; | ||
import { Tag, tagSchema } from "@/types/tag"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const tagsApi = createApi({ | ||
reducerPath: "tagsApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
tagTypes: ["Tags"], | ||
endpoints: (builder) => ({ | ||
tags: builder.query<Tag[], void>({ | ||
query: () => "tags", | ||
transformResponse: (rawResponse: unknown) => { | ||
return z.array(tagSchema).parse(rawResponse); | ||
}, | ||
providesTags: [{ type: "Tags", id: "LIST" }], | ||
}), | ||
tag: builder.query<Tag, uuid>({ | ||
query: (tagID: uuid) => `tags/${tagID}`, | ||
transformResponse: (rawResponse: unknown) => { | ||
return tagSchema.parse(rawResponse); | ||
}, | ||
providesTags: (result, _, tagID) => | ||
result ? [{ type: "Tags", id: tagID }] : [], | ||
}), | ||
}), | ||
}); | ||
|
||
export const { useTagsQuery, useTagQuery } = tagsApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { z } from "zod"; | ||
|
||
import { API_BASE_URL } from "@/const"; | ||
import { Club, clubSchema } from "@/types/club"; | ||
import { User, userSchema } from "@/types/user"; | ||
import { uuid } from "@/types/uuid"; | ||
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; | ||
|
||
export const usersApi = createApi({ | ||
reducerPath: "usersApi", | ||
baseQuery: fetchBaseQuery({ baseUrl: API_BASE_URL }), | ||
tagTypes: ["Users"], | ||
endpoints: (builder) => ({ | ||
users: builder.query<User[], void>({ | ||
query: () => "users", | ||
transformResponse: (rawResponse: unknown) => { | ||
return z.array(userSchema).parse(rawResponse); | ||
}, | ||
providesTags: [{ type: "Users", id: "LIST" }], | ||
}), | ||
user: builder.query<User, uuid>({ | ||
query: (userID: uuid) => `users/${userID}`, | ||
transformResponse: (rawResponse: unknown) => { | ||
return userSchema.parse(rawResponse); | ||
}, | ||
providesTags: (result, _, userID) => | ||
result ? [{ type: "Users", id: userID }] : [], | ||
}), | ||
userFollowing: builder.query<Club[], uuid>({ | ||
query: (userID: uuid) => `users/${userID}/follower`, | ||
transformResponse: (rawResponse: unknown) => { | ||
return z.array(clubSchema).parse(rawResponse); | ||
}, | ||
providesTags: (result, _, userID) => | ||
result ? [{ type: "Users", id: userID }] : [], | ||
}), | ||
createUserClubFollowing: builder.mutation< | ||
void, | ||
{ userID: uuid; clubID: uuid } | ||
>({ | ||
query: ({ userID, clubID }) => ({ | ||
url: `users/${userID}/follower/${clubID}`, | ||
method: "POST", | ||
}), | ||
invalidatesTags: ["Users"], | ||
}), | ||
deleteUserClubFollowing: builder.mutation< | ||
void, | ||
{ userID: uuid; clubID: uuid } | ||
>({ | ||
query: ({ userID, clubID }) => ({ | ||
url: `users/${userID}/follower/${clubID}`, | ||
method: "DELETE", | ||
}), | ||
invalidatesTags: ["Users"], | ||
}), | ||
}), | ||
}); | ||
|
||
export const { | ||
useUsersQuery, | ||
useUserQuery, | ||
useUserFollowingQuery, | ||
useCreateUserClubFollowingMutation, | ||
useDeleteUserClubFollowingMutation, | ||
} = usersApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type Item = { | ||
label: string; | ||
value: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type uuid = string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} | ||
"extends": "next/core-web-vitals" | ||
} |
Oops, something went wrong.