mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	feat: Support User-Level Default Activities (#5125)
This commit is contained in:
		
							
								
								
									
										18
									
								
								frontend/lib/api/types/activity.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								frontend/lib/api/types/activity.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| export type I18n = ReturnType<typeof useI18n>; | ||||
| export type TRoute = string; | ||||
| export type TranslationResult = string; | ||||
|  | ||||
| export type ActivityRoute = (groupSlug?: string) => TRoute; | ||||
| export type ActivityLabel = (i18n: I18n) => TranslationResult; | ||||
|  | ||||
| export type Activity = { | ||||
|   key: ActivityKey; | ||||
|   route: ActivityRoute; | ||||
|   label: ActivityLabel; | ||||
| }; | ||||
|  | ||||
| export const enum ActivityKey { | ||||
|   RECIPES = "recipes", | ||||
|   MEALPLANNER = "mealplanner", | ||||
|   SHOPPING_LIST = "shopping_list", | ||||
| } | ||||
		Reference in New Issue
	
	Block a user