mealie/frontend/components
Hayden 5a053cdcd6
feat: mealplan-webhooks (#1403)
* fix type errors on event bus

* webhooks fields required for new implementation

* db migration

* wip: webhook query + tests and stub function

* ignore type checker error

* type and method cleanup

* datetime and time utc validator

* update testing code for utc scheduled time

* fix file cmp function call

* update version_number

* add support for translating "time" objects when restoring backup

* bump recipe-scrapers

* use specific import syntax

* generate frontend types

* utilize names exports

* use utc times

* add task to scheduler

* implement new scheduler functionality

* stub for type annotation

* implement meal-plan data getter

* add experimental banner
2022-06-17 13:25:47 -08:00
..
Domain feat: mealplan-webhooks (#1403) 2022-06-17 13:25:47 -08:00
global feat: attached images by drag and drop for recipe steps (#1341) 2022-06-05 11:28:38 -08:00
Layout feat: implement user favorites page (#1376) 2022-06-13 09:33:46 -08:00
README.md refactor(frontend): 🏗️ scafold pages and componenets folder 2021-07-31 14:45:28 -08:00

Components Folder Guide

Domain Components

Domain Components are specific to the domain or section of a website. For example if you have an admin page and a user page that have specific, unshared elements. These can be placed in the Domain/Admin folder.

Rules

  • Components should be prefixed with their domain name
    • Examples: AdminDashboard, AdminSettings, UserProfile

Global Components

This folder is for widely reused components that provide little functionality and are primarily used for styling or consistency. Primary examples are Card and Button components.

Rules

  • Global components cannot container a subfolder to be globally imported
  • All elements should start with the 'Base' Prefix
    • Examples: BaseButton, BaseCard, BaseTitleSection

Layout Components

The layout folder is for reusable components that are specifically only used in the layouts for the Nuxt Application. They may take props or may not. They should be larger layout style components that don't have wide the ability to be widely reused in the application.

Rules:

  • Layout folder should not have a subfolder
  • If they take props they should start with a 'App' Prefix.
    • Examples: AppSidebar, AppHeader, AppFooter.
  • If they do not they should begin with the 'The' prefix
    • Examples: TheSidebar, TheHeader, TheFooter.

Page Components

The Page folder is dedicated to 'single-use' component to break up large amounts on content in the pages themselves. A good examples of this is breaking your landing page into separate sections to make it more readable and less monolithic. Page components typically consume other components.

Rules:

  • These are last resort components. Only to be used when the page becomes unmanageable.
  • Page components should be prefixed with their page name
    • Examples: HomeAbout, HomeContact, ClientProfile