-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
146 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
9 changes: 5 additions & 4 deletions
9
...orWeb.ReduxDevToolsTutorial.Client.csproj → examples/BlazorClient/BlazorClient.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...les/Client/Features/Counter/Counter.razor → ...azorClient/Features/Counter/Counter.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../Client/Features/Counter/Counter.razor.cs → ...rClient/Features/Counter/Counter.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
examples/BlazorClient/Features/Counter/Store/CounterState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Fluxor; | ||
|
||
namespace BlazorClient.Features.Counter.Store; | ||
|
||
[FeatureState(Name = "Counter", CreateInitialStateMethodName = nameof(CreateInitialState))] | ||
public record CounterState(int ClickCount) | ||
{ | ||
public static CounterState CreateInitialState() | ||
=> new(0); | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/BlazorClient/Features/Counter/Store/IncrementCounterAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace BlazorClient.Features.Counter.Store; | ||
|
||
public record IncrementCounterAction(int Amount); |
2 changes: 1 addition & 1 deletion
2
...Client/Features/Counter/Store/Reducers.cs → ...Client/Features/Counter/Store/Reducers.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
examples/BlazorClient/Features/UndoableCounter/Store/CounterState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Fluxor; | ||
using Fluxor.Undo; | ||
|
||
namespace BlazorClient.Features.UndoableCounter.Store; | ||
|
||
public record CounterState(int ClickCount); | ||
|
||
[FeatureState(Name = "UndoableCounter", CreateInitialStateMethodName = nameof(CreateInitialState))] | ||
public record UndoableCounterState : Undoable<UndoableCounterState, CounterState> | ||
{ | ||
public static UndoableCounterState CreateInitialState() | ||
=> new() { Present = new(0) }; | ||
} |
3 changes: 3 additions & 0 deletions
3
examples/BlazorClient/Features/UndoableCounter/Store/IncrementCounterAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace BlazorClient.Features.UndoableCounter.Store; | ||
|
||
public record IncrementCounterAction(int Amount); |
2 changes: 1 addition & 1 deletion
2
...eatures/UndoableCounter/Store/Reducers.cs → ...eatures/UndoableCounter/Store/Reducers.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...res/UndoableCounter/UndoableCounter.razor → ...res/UndoableCounter/UndoableCounter.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../UndoableCounter/UndoableCounter.razor.cs → .../UndoableCounter/UndoableCounter.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
examples/BlazorClient/Features/UndoableCounterWithPersistence/Store/CounterState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Fluxor; | ||
using Fluxor.Undo; | ||
|
||
namespace BlazorClient.Features.UndoableCounterWithPersistence.Store; | ||
|
||
public record CounterState(int ClickCount); | ||
|
||
[FeatureState(Name = "UndoableCounterWithPersistence", CreateInitialStateMethodName = nameof(CreateInitialState))] | ||
public record UndoableCounterState : Undoable<UndoableCounterState, CounterState> | ||
{ | ||
public required CounterState Persisted { get; init; } | ||
|
||
public bool IsPersisted => Persisted == Present; | ||
|
||
public static UndoableCounterState CreateInitialState() | ||
=> new() | ||
{ | ||
Persisted = new(0), | ||
Present = new(0), | ||
}; | ||
}; |
3 changes: 3 additions & 0 deletions
3
...ples/BlazorClient/Features/UndoableCounterWithPersistence/Store/IncrementCounterAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace BlazorClient.Features.UndoableCounterWithPersistence.Store; | ||
|
||
public record IncrementCounterAction(int Amount); |
3 changes: 3 additions & 0 deletions
3
examples/BlazorClient/Features/UndoableCounterWithPersistence/Store/PersistAction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace BlazorClient.Features.UndoableCounterWithPersistence.Store; | ||
|
||
public record PersistAction; |
2 changes: 1 addition & 1 deletion
2
...eCounterWithPersistence/Store/Reducers.cs → ...eCounterWithPersistence/Store/Reducers.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nterWithPersistence/UndoableCounter.razor → ...nterWithPersistence/UndoableCounter.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rWithPersistence/UndoableCounter.razor.cs → ...rWithPersistence/UndoableCounter.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.