add vesion 0.17.20.30

release
Amir Hossein Khademi 2024-03-09 22:01:39 +03:30
parent 0bdd783b48
commit e86aa9966e
7 changed files with 77 additions and 64 deletions

View File

@ -274,7 +274,7 @@
<BaseButtonUi class="w-64 rounded-md" IsProcessing="@ViewModel.IsProcessing" <BaseButtonUi class="w-64 rounded-md" IsProcessing="@ViewModel.IsProcessing"
Icon="@Icons.Material.Outlined.Check" Icon="@Icons.Material.Outlined.Check"
Variant="Variant.Filled" Color="Color.Success" Variant="Variant.Filled" Color="Color.Success"
Content="ثبت ویرایش" OnClickCallback="ViewModel.SubmitEditAsync" /> Content="ثبت ویرایش" OnClickCallback="async()=>await ViewModel.SubmitEditAsync()" />
} }
else else
{ {

View File

@ -3,10 +3,10 @@
public static class Address public static class Address
{ {
#if DEBUG #if DEBUG
public static string BaseAddress = "http://localhost:32770/api"; //public static string BaseAddress = "http://localhost:32770/api";
//public static string BaseAddress = "https://api.vesmook.com/api"; public static string BaseAddress = "https://api.vesmeh.com/api";
#else #else
public static string BaseAddress = "https://api.vesmook.com/api"; public static string BaseAddress = "https://api.vesmeh.com/api";
#endif #endif
public static string AuthController = $"{BaseAddress}/auth"; public static string AuthController = $"{BaseAddress}/auth";
public static string UserController = $"{BaseAddress}/user"; public static string UserController = $"{BaseAddress}/user";

View File

@ -5,8 +5,8 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest> <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<AssemblyVersion>0.17.19.26</AssemblyVersion> <AssemblyVersion>0.17.20.30</AssemblyVersion>
<FileVersion>0.17.19.26</FileVersion> <FileVersion>0.17.20.30</FileVersion>
<AssemblyName>$(MSBuildProjectName)</AssemblyName> <AssemblyName>$(MSBuildProjectName)</AssemblyName>
</PropertyGroup> </PropertyGroup>

View File

@ -79,7 +79,38 @@
<TemplateColumn T="OrderSDto" Title="وضعیت سفارش"> <TemplateColumn T="OrderSDto" Title="وضعیت سفارش">
<CellTemplate> <CellTemplate>
<p>@context.Item.OrderStatus.ToDisplay()</p> @switch (context.Item.OrderStatus)
{
case OrderStatus.OrderBag:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Warning">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Submitted:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Warning">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Paid:
<MudChip Variant="Variant.Filled" class="-my-4" Color="Color.Info" >@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Processing:
<MudChip Variant="Variant.Filled" class="-my-4" Color="Color.Info">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Delivered:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Success">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Done:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Success">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
case OrderStatus.Canceled:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Error">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
default:
<MudChip Variant="Variant.Text" class="-my-4" Color="Color.Warning">@context.Item.OrderStatus.ToDisplay()</MudChip>
break;
}
</CellTemplate> </CellTemplate>
</TemplateColumn> </TemplateColumn>

View File

@ -1,15 +1,10 @@
using Append.Blazor.Printing; using Append.Blazor.Printing;
using Blazored.LocalStorage;
using Microsoft.AspNetCore.Components.Authorization; using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor;
using MudBlazor.Services; using MudBlazor.Services;
using NetinaShop.AdminPanel.PWA; using NetinaShop.AdminPanel.PWA;
using NetinaShop.AdminPanel.PWA.Extensions;
using NetinaShop.AdminPanel.PWA.Services; using NetinaShop.AdminPanel.PWA.Services;
using NetinaShop.AdminPanel.PWA.Services.RestServices;
using NetinaShop.AdminPanel.PWA.Utilities;
using Toolbelt.Blazor.Extensions.DependencyInjection; using Toolbelt.Blazor.Extensions.DependencyInjection;
var builder = WebAssemblyHostBuilder.CreateDefault(args); var builder = WebAssemblyHostBuilder.CreateDefault(args);
@ -19,8 +14,7 @@ builder.Services.AddCascadingAuthenticationState();
builder.Services.AddOptions(); builder.Services.AddOptions();
builder.Services.AddAuthorizationCore(); builder.Services.AddAuthorizationCore();
builder.Services.AddApiAuthorization(); builder.Services.AddApiAuthorization();
builder.Services.AddScoped<AuthenticationStateProvider, builder.Services.AddScoped<AuthenticationStateProvider, CustomAuthenticationStateProvider>();
CustomAuthenticationStateProvider>();
builder.Services.AddMudServices(config => builder.Services.AddMudServices(config =>
{ {
config.SnackbarConfiguration.VisibleStateDuration = 3500; config.SnackbarConfiguration.VisibleStateDuration = 3500;

View File

@ -1060,6 +1060,10 @@ input:checked + .toggle-bg {
.m-2 { .m-2 {
margin: 0.5rem; margin: 0.5rem;
} }
.-my-4 {
margin-top: -1rem;
margin-bottom: -1rem;
}
.mx-1 { .mx-1 {
margin-left: 0.25rem; margin-left: 0.25rem;
margin-right: 0.25rem; margin-right: 0.25rem;

View File

@ -1135,6 +1135,11 @@ input:checked + .toggle-bg {
margin: 0.5rem; margin: 0.5rem;
} }
.-my-4 {
margin-top: -1rem;
margin-bottom: -1rem;
}
.mx-1 { .mx-1 {
margin-left: 0.25rem; margin-left: 0.25rem;
margin-right: 0.25rem; margin-right: 0.25rem;
@ -1190,6 +1195,10 @@ input:checked + .toggle-bg {
margin-bottom: auto; margin-bottom: auto;
} }
.-mb-3 {
margin-bottom: -0.75rem;
}
.-ml-4 { .-ml-4 {
margin-left: -1rem; margin-left: -1rem;
} }
@ -1298,10 +1307,6 @@ input:checked + .toggle-bg {
margin-top: 2rem; margin-top: 2rem;
} }
.-mb-3 {
margin-bottom: -0.75rem;
}
.line-clamp-1 { .line-clamp-1 {
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
@ -1361,6 +1366,10 @@ input:checked + .toggle-bg {
height: 1rem; height: 1rem;
} }
.h-40 {
height: 10rem;
}
.h-5 { .h-5 {
height: 1.25rem; height: 1.25rem;
} }
@ -1406,10 +1415,6 @@ input:checked + .toggle-bg {
height: 100vh; height: 100vh;
} }
.h-40 {
height: 10rem;
}
.\!max-h-\[80vh\] { .\!max-h-\[80vh\] {
max-height: 80vh !important; max-height: 80vh !important;
} }
@ -1458,6 +1463,10 @@ input:checked + .toggle-bg {
width: 1rem; width: 1rem;
} }
.w-40 {
width: 10rem;
}
.w-5 { .w-5 {
width: 1.25rem; width: 1.25rem;
} }
@ -1491,10 +1500,6 @@ input:checked + .toggle-bg {
width: 100vw; width: 100vw;
} }
.w-40 {
width: 10rem;
}
.flex-1 { .flex-1 {
flex: 1 1 0%; flex: 1 1 0%;
} }
@ -1932,11 +1937,6 @@ input:checked + .toggle-bg {
padding-bottom: 2rem; padding-bottom: 2rem;
} }
.py-5 {
padding-top: 1.25rem;
padding-bottom: 1.25rem;
}
.pt-2 { .pt-2 {
padding-top: 0.5rem; padding-top: 0.5rem;
} }
@ -1945,14 +1945,6 @@ input:checked + .toggle-bg {
padding-top: 1rem; padding-top: 1rem;
} }
.pl-8 {
padding-left: 2rem;
}
.pr-8 {
padding-right: 2rem;
}
.pt-8 { .pt-8 {
padding-top: 2rem; padding-top: 2rem;
} }
@ -2482,6 +2474,10 @@ code {
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
.lg\:h-60 {
height: 15rem;
}
.lg\:h-96 { .lg\:h-96 {
height: 24rem; height: 24rem;
} }
@ -2490,14 +2486,6 @@ code {
height: 38rem; height: 38rem;
} }
.lg\:h-80 {
height: 20rem;
}
.lg\:h-60 {
height: 15rem;
}
.lg\:max-h-\[25rem\] { .lg\:max-h-\[25rem\] {
max-height: 25rem; max-height: 25rem;
} }
@ -2506,6 +2494,10 @@ code {
max-height: 35rem; max-height: 35rem;
} }
.lg\:w-60 {
width: 15rem;
}
.lg\:w-96 { .lg\:w-96 {
width: 24rem; width: 24rem;
} }
@ -2514,14 +2506,6 @@ code {
width: 38rem; width: 38rem;
} }
.lg\:w-80 {
width: 20rem;
}
.lg\:w-60 {
width: 15rem;
}
.lg\:p-8 { .lg\:p-8 {
padding: 2rem; padding: 2rem;
} }