mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	feat: implement user favorites page (#1376)
* fix geFavorites return * add support for toggling to dense cards on desktop * add favorites page link * implement basic favorites page
This commit is contained in:
		| @@ -1,5 +1,15 @@ | ||||
| import { BaseCRUDAPI } from "../_base"; | ||||
| import { ChangePassword, DeleteTokenResponse, LongLiveTokenIn, LongLiveTokenOut, ResetPassword, UserBase, UserIn, UserOut } from "~/types/api-types/user"; | ||||
| import { | ||||
|   ChangePassword, | ||||
|   DeleteTokenResponse, | ||||
|   LongLiveTokenIn, | ||||
|   LongLiveTokenOut, | ||||
|   ResetPassword, | ||||
|   UserBase, | ||||
|   UserFavorites, | ||||
|   UserIn, | ||||
|   UserOut, | ||||
| } from "~/types/api-types/user"; | ||||
|  | ||||
| const prefix = "/api"; | ||||
|  | ||||
| @@ -32,7 +42,7 @@ export class UserApi extends BaseCRUDAPI<UserIn, UserOut, UserBase> { | ||||
|   } | ||||
|  | ||||
|   async getFavorites(id: string) { | ||||
|     await this.requests.get(routes.usersIdFavorites(id)); | ||||
|     return await this.requests.get<UserFavorites>(routes.usersIdFavorites(id)); | ||||
|   } | ||||
|  | ||||
|   async changePassword(id: string, changePassword: ChangePassword) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user