Skip to content

Latest commit

 

History

History

TimeWarp.State.Plus

Dotnet Stars Discord workflow nuget nuget Issues Open Forks License Twitter

Twitter Twitter

TimeWarp.State.Plus

TimeWarp Logo

TimeWarp.State.Plus extends TimeWarp.State with additional, features, middleware and components to simplify and enhance your Blazor applications.

TimeWarp.State.Plus

TimeWarp.State.Plus extends the core functionality with additional features:

Available Middleware

  • PersistentState
    • Key Feature: Automates the persistence of state in browser storage.
    • Usage: Annotate state classes with [PersistentState] to enable.
    • Storage Options: Supports both LocalStorage and SessionStorage.
  • MultiTimer System: A flexible framework for managing multiple timers in your application.
    • It supports configurable timers
    • Activity-based resets.

Example:

// Register the required services in Program.cs
// serviceCollection.AddTransient(typeof(IRequestPostProcessor<,>), typeof(PersistentStatePostProcessor<,>));
// serviceCollection.AddScoped<IPersistenceService, PersistenceService>();


[PersistentState(PersistentStateMethod.LocalStorage)]
public partial class Counter2State : State<Counter2State>
{
// State implementation
}

Available Components

  • InputColor
    • Key Feature: A color picker input component.
    • Usage: <InputColor @bind-Value="Color" />
    • ValueType: System.Drawing.Color

Available Features

  • ThemeState
    • Key Feature: Manages the CurrentTheme of your application (Light, Dark, System).
    • Actions: UpdateTheme

Give a Star! ⭐

If you find this project useful, please give it a star. Thanks!

Getting Started

For a quick start, refer to the middleware section in the full Documentation.

Installation

dotnet add package TimeWarp.State.Plus

Check out the latest NuGet packages on the TimeWarp NuGet page.

Releases

View the Release Notes for detailed information on each release.

UnLicense

License
This project is licensed under the Unlicense.

Contributing

Your contributions are welcome! Before starting any work, please open a discussion.

Help with the documentation is also greatly appreciated.

Contact

If you have an issue and don't receive a timely response, feel free to reach out on our Discord server.

Discord