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

Split index.vue into smaller components #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

friuns2
Copy link
Owner

@friuns2 friuns2 commented Jun 24, 2024

Related to #1

Refactors the pages/index.vue component by splitting it into smaller, reusable Vue components for better maintainability and readability.

  • Adds three new Vue components: AttractionList.vue, MapView.vue, and AttractionDetails.vue, each encapsulating parts of the functionality previously contained within pages/index.vue.
  • Moves relevant template, script, and style sections related to the attractions list, map view, and attraction details from pages/index.vue to the respective new components.
  • Updates pages/index.vue to import and use the newly created components, removing the now redundant code sections.
  • Modifies the README.md to include a section on the new component-based architecture, explaining the structure and benefits of splitting the code into components and guiding developers on how to extend or modify components for future features.

For more details, open the Copilot Workspace session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant