-
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.
Merge pull request #139 from Alt-Org/leo/refactor/91-refactor-rtk-que…
…ry-api Leo/refactor/91 refactor rtk query api
- Loading branch information
Showing
15 changed files
with
89 additions
and
174 deletions.
There are no files selected for viewing
13 changes: 4 additions & 9 deletions
13
frontend-next-migration/src/app/_providers/StoreProvider/config/StateSchema.ts
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,14 +1,9 @@ | ||
import {authApi, AuthUserSchema} from "@/entities/Auth"; | ||
import {clanApi} from "@/entities/Clan"; | ||
import {galleryApi} from "@/entities/Gallery"; | ||
import {profileApi} from "@/entities/Profile"; | ||
|
||
import {AuthUserSchema} from "@/entities/Auth"; | ||
import {gameApi} from "@/shared/api"; | ||
|
||
export interface StateSchema { | ||
authUser: AuthUserSchema; | ||
[authApi.reducerPath]: ReturnType<typeof authApi.reducer>; | ||
[profileApi.reducerPath]: ReturnType<typeof profileApi.reducer>; | ||
[clanApi.reducerPath]: ReturnType<typeof clanApi.reducer>; | ||
[galleryApi.reducerPath]: ReturnType<typeof galleryApi.reducer>; | ||
[gameApi.reducerPath]: ReturnType<typeof gameApi.reducer>; | ||
// todo add here strapiApi | ||
} | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ export type { | |
|
||
|
||
export { | ||
authApi, | ||
useLoginMutation, | ||
useRegisterMutation, | ||
useLogoutMutation, | ||
|
35 changes: 6 additions & 29 deletions
35
frontend-next-migration/src/entities/Auth/model/authApi.ts
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
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,22 +1,12 @@ | ||
export type {IGalleryDirectory,IGalleryPicture} from "./types/gallery"; | ||
export type {DirectoryWithPhotos, ParentDirectory,} from "./model/galleryApi"; | ||
export { | ||
galleryApi, | ||
useGetAllDirectoryPhotosQuery | ||
} from "./model/galleryApi"; | ||
export type {ParentDirectory} from "./model/galleryApi"; | ||
|
||
export { | ||
useGalleryCategories | ||
} from "./model/useGalleryCategories"; | ||
|
||
|
||
export { | ||
transformToGalleryPropsFormat | ||
} from "./model/transformToGalleryPropsFormat"; | ||
|
||
|
||
export type { | ||
GalleryCategoriesWithModalSliderProps, | ||
} from "./ui/GalleryCategoriesWithModalSlider"; | ||
|
||
export {GalleryCategoriesWithModalSlider,} from "./ui/GalleryCategoriesWithModalSlider"; | ||
export {GalleryCategoriesWithModalSlider} from "./ui/GalleryCategoriesWithModalSlider"; |
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
2 changes: 1 addition & 1 deletion
2
frontend-next-migration/src/entities/Gallery/model/transformToGalleryPropsFormat.ts
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
8 changes: 3 additions & 5 deletions
8
frontend-next-migration/src/entities/Gallery/model/useGalleryCategories.ts
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,6 +1,5 @@ | ||
export { | ||
profileEndpoints, | ||
profileApi, | ||
useDeleteProfileMutation, | ||
} from "./model/profileApi" | ||
export type {IProfile} from "./types/profile"; |
Oops, something went wrong.