This file contains hidden or 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
using Skclusive.Mobx.Observable; | |
using Skclusive.Mobx.StateTree; | |
namespace ClientSide.Models | |
{ | |
#region ITodo | |
public interface ITodoSnapshot | |
{ | |
string Title { set; get; } |
This file contains hidden or 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
using Skclusive.Mobx.Observable; | |
using Skclusive.Mobx.StateTree; | |
using System.Collections.Generic; | |
namespace ClientSide.Models | |
{ | |
#region ITodoStore | |
public interface ITodoStoreSnapshot | |
{ |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Skclusive.Mobx.StateTree; | |
namespace ClientSide.Models | |
{ | |
public class ModelTypes | |
{ | |
public readonly static IObjectType<ITodoSnapshot, ITodo> TodoType = Types. |
This file contains hidden or 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
using Xunit; | |
namespace ClientSide.Models | |
{ | |
public class TestTodoStore | |
{ | |
[Fact] | |
public void TestStore() | |
{ | |
var store = ModelTypes.StoreType.Create(new TodoStoreSnapshot |
This file contains hidden or 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
@inherits TodoComponent | |
<section class="main"> | |
@if (HasTodos) | |
{ | |
<TodoToggleAll /> | |
} | |
<ul class="todo-list"> | |
@foreach (var todo in FilteredTodos) | |
{ |
This file contains hidden or 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
@namespace Skclusive.Dashboard.App.View | |
@using Skclusive.Material.Theme | |
<ThemeProvider | |
Light="@Light" | |
Dark="@Dark"> | |
<RouterLayout | |
Main="@typeof(FullLayout)" | |
Mini="@typeof(SmallLayout)" /> | |
</ThemeProvider> |
This file contains hidden or 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
@namespace Skclusive.Dashboard.App.View | |
@inherits StyleComponentBase | |
.settings-root { | |
padding: 32px; | |
} | |
.settings-notification-item { | |
display: flex; | |
flex-direction: column; |
This file contains hidden or 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
using Skclusive.Core.Component; | |
namespace Skclusive.Dashboard.App.View | |
{ | |
public class ChartJsInteropScript : ScriptBase | |
{ | |
public override string GetScript() | |
{ | |
return | |
#region ChartJsInterop.js |
This file contains hidden or 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
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; | |
using Skclusive.Core.Component; | |
using Skclusive.Material.Component; | |
using Skclusive.Material.Layout; | |
namespace Skclusive.Dashboard.App.View | |
{ | |
public class DashboardStyleProvider : StyleTypeProvider | |
{ |
This file contains hidden or 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
@namespace Skclusive.Reactive.App.View | |
@inherits MaterialComponentBase | |
@using Skclusive.Core.Collection | |
@page "/reactive-form" | |
<div class="position: relative;padding: 32px;"> | |
<FormView | |
Form="@Form" |
OlderNewer