mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	* extract user registration form into a composable * added base wizard component * added partial setup implementation * removed unused attrs * added setup bypass * made setup page more readable * add checkbox hints to autoform * added common settings pages and initial submit logic * bypass setup in demo * add full name to user registration * added fullname and pw handling to setup * fixed wizard indentation * added post-setup suggestions * added tests for backend changes * renamed Wizard to BaseWizard * lint fixes * pass hardcoded default password instead of backend nonsense * removed old test * fix e2e * added setup skip to e2e testing for all admin users --------- Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			957 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			957 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { useContext } from "@nuxtjs/composition-api";
 | |
| import { fieldTypes } from "../forms";
 | |
| import { AutoFormItems } from "~/types/auto-forms";
 | |
| 
 | |
| export const useCommonSettingsForm = () => {
 | |
|     const { i18n } = useContext();
 | |
| 
 | |
|     const commonSettingsForm: AutoFormItems = [
 | |
|         {
 | |
|           section: i18n.tc("profile.group-settings"),
 | |
|           label: i18n.tc("group.enable-public-access"),
 | |
|           hint: i18n.tc("group.enable-public-access-description"),
 | |
|           varName: "makeGroupRecipesPublic",
 | |
|           type: fieldTypes.BOOLEAN,
 | |
|           rules: ["required"],
 | |
|         },
 | |
|         {
 | |
|           section: i18n.tc("data-pages.data-management"),
 | |
|           label: i18n.tc("user-registration.use-seed-data"),
 | |
|           hint: i18n.tc("user-registration.use-seed-data-description"),
 | |
|           varName: "useSeedData",
 | |
|           type: fieldTypes.BOOLEAN,
 | |
|           rules: ["required"],
 | |
|         },
 | |
|       ];
 | |
| 
 | |
|     return {
 | |
|         commonSettingsForm,
 | |
|     }
 | |
| }
 |