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 HtmxorComponentResult and HtmxorHtmlRenderer #41

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on May 14, 2024

  1. feat: Add HtmxorComponentResult and HtmxorHtmlRenderer

    - Introduced `HtmxorComponentEndpointHost` class to act as a root component when executing a Htmxor Component endpoint.
    - Added `HtmxorComponentResultExecutor` class to execute the result of an HTTP request in the context of an endpoint.
    - Created `HtmxorComponentResult` class that renders a Razor Component.
    - Implemented `HtmxorComponentResultOfT` class, which is a generic version of `HtmxorComponentResult`.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    20fb6ec View commit details
    Browse the repository at this point in the history
  2. docs: Update XML comments in HtmxorComponentResult and PropertyHelper

    Updated the XML comments in two classes, HtmxorComponentResult and PropertyHelper. Removed the <see cref="..."/> tags for better readability and clarity. This change does not affect production code.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    618c73e View commit details
    Browse the repository at this point in the history
  3. feat: Enhanced component mapping and rendering

    Significant changes include:
    - Added new usings in Program.cs for Htmxor.Endpoints.Results and HtmxorExamples.Components.Pages.
    - Demonstrated the mapping of a page/component in Program.cs.
    - In HtmxorComponentResultExecutor.cs, refactored RenderComponentToResponse method to improve component rendering process.
    - Introduced GetFormHandler method in HtmxorComponentResultExecutor.cs to handle form requests.
    - Deleted the file HtmxorHtmlRenderer.cs as it was no longer needed.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    14d3aea View commit details
    Browse the repository at this point in the history
  4. feat: Add HtmxorComponentResult and HtmxorHtmlRenderer

    - Introduced `HtmxorComponentEndpointHost` class to act as a root component when executing a Htmxor Component endpoint.
    - Added `HtmxorComponentResultExecutor` class to execute the result of an HTTP request in the context of an endpoint.
    - Created `HtmxorComponentResult` class that renders a Razor Component.
    - Implemented `HtmxorComponentResultOfT` class, which is a generic version of `HtmxorComponentResult`.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    cf9502c View commit details
    Browse the repository at this point in the history
  5. docs: Update XML comments in HtmxorComponentResult and PropertyHelper

    Updated the XML comments in two classes, HtmxorComponentResult and PropertyHelper. Removed the <see cref="..."/> tags for better readability and clarity. This change does not affect production code.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    c72411c View commit details
    Browse the repository at this point in the history
  6. refactor: Improve attribute handling and simplify variable assignment

    This update refines the process of retrieving custom attributes in HtmxorComponentEndpointHost, ensuring a more reliable order by introducing a priority system. This allows users to define a default HtmxLayout and override it on a component basis.
    
    In addition, the code in HtmxorComponentResultExecutor has been simplified by directly assigning the 'isBadRequest' variable within the conditional statement, reducing redundancy and improving readability.
    tanczosm committed May 14, 2024
    Configuration menu
    Copy the full SHA
    325261a View commit details
    Browse the repository at this point in the history