mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	* added new sort icons * added dynamic sort icons * implemented local storage for sorting and mobile card view * fixed bug with local storage booleans * added type hints * bum vue use to use merge defaults * use reactive localstorage * add $vuetify type * sort returns * fix type error Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			510 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			510 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Plugin } from "@nuxt/types";
 | |
| import { Framework } from "vuetify";
 | |
| import { icons } from "~/utils/icons";
 | |
| import { Icon } from "~/utils/icons/icon-type";
 | |
| 
 | |
| interface Globals {
 | |
|   icons: Icon;
 | |
| }
 | |
| 
 | |
| declare module "vue/types/vue" {
 | |
|   interface Vue {
 | |
|     $globals: Globals;
 | |
|   }
 | |
| }
 | |
| 
 | |
| declare module "@nuxt/types" {
 | |
|   interface Context {
 | |
|     $globals: Globals;
 | |
|     $vuetify: Framework;
 | |
|   }
 | |
| }
 | |
| 
 | |
| const globalsPlugin: Plugin = (_, inject) => {
 | |
|   inject("globals", {
 | |
|     icons,
 | |
|   });
 | |
| };
 | |
| 
 | |
| export default globalsPlugin;
 |