Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Add children layout in all routes #31

Open
4 tasks
Caussz opened this issue Jul 7, 2024 · 1 comment
Open
4 tasks

FEAT: Add children layout in all routes #31

Caussz opened this issue Jul 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Caussz
Copy link
Member

Caussz commented Jul 7, 2024

Change Route Structure

Description:

This issue involves restructuring the routing setup for the project. All routes should now derive from a layout and follow Vue's layout inheritance using the children property. Additionally, two types of layouts should be created: a default layout for all pages that includes a header and footer, and a blank layout for pages such as login.

Checklist:

  • Create a default layout component (LayoutPage.vue) with a header and footer.
  • Create a blank layout component (BlankLayout.vue) for use on specific pages like login.
  • Update the routing configuration to use the new layout structure.
  • Ensure all routes follow the layout inheritance using the children property.

Example Structure:

{
  path: '/',
  component: () => import('../layouts/LayoutPage.vue'),
  children: [
    {
      path: '/',
      name: 'home',
      component: () => import('../pages/HomeView.vue'),
    },
  ],
},
{
  path: '/login',
  component: () => import('../layouts/BlankLayout.vue'),
  children: [
    {
      path: '',
      name: 'login',
      component: () => import('../pages/LoginView.vue'),
    },
  ],
},

Notes:

  • Ensure the new route structure is tested thoroughly to confirm that all pages render correctly within the specified layouts.
  • Validate the implementation with the team leader before finalizing.
  • Please check off each item on the checklist as you complete the tasks.
@Caussz Caussz added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 7, 2024
@Caussz
Copy link
Member Author

Caussz commented Jul 7, 2024

This can be confusing to implement the first time, so let's do it together so I can explain the concepts and you can replicate them in future tasks

isabellirosa added a commit that referenced this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants