mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	* fix typing on auth context * extract user password strength meter * fix broken useToggle method * extend form to accept arguments for validators * enforce password length on update * fix user password change form
		
			
				
	
	
		
			32 lines
		
	
	
		
			569 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			569 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Plugin } from "@nuxt/types";
 | |
| import { Auth } from "@nuxtjs/auth-next";
 | |
| 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;
 | |
|     $auth: Auth;
 | |
|   }
 | |
| }
 | |
| 
 | |
| const globalsPlugin: Plugin = (_, inject) => {
 | |
|   inject("globals", {
 | |
|     icons,
 | |
|   });
 | |
| };
 | |
| 
 | |
| export default globalsPlugin;
 |