mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	Refactor/composables-folder (#787)
* move api clients and rename * organize recipes composables * rewrite useRecipeContext * refactor(frontend): ♻️ abstract common ingredient functionality. * feat(frontend): ✨ add scale, and back to recipe button + hide ingredients if none * update regex to mach 11. instead of just 1. * minor UX improvements Co-authored-by: Hayden K <hay-kot@pm.me>
This commit is contained in:
		| @@ -50,7 +50,7 @@ | ||||
| </template> | ||||
|  | ||||
| <script> | ||||
| import { useApiSingleton } from "~/composables/use-api"; | ||||
| import { useUserApi } from "~/composables/api"; | ||||
| const NEW_COMMENT_EVENT = "new-comment"; | ||||
| const UPDATE_COMMENT_EVENT = "update-comment"; | ||||
| export default { | ||||
| @@ -65,7 +65,7 @@ export default { | ||||
|     }, | ||||
|   }, | ||||
|   setup() { | ||||
|     const api = useApiSingleton(); | ||||
|     const api = useUserApi(); | ||||
|  | ||||
|     return { api }; | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user