CHANGE PROJECT NAME TO "NETINA"
parent
aaf1fb6b0a
commit
986e7a3654
|
@ -1,4 +1,5 @@
|
|||
@using NetinaShop.AdminPanel.PWA.Pages
|
||||
@using Netina.AdminPanel.PWA.Models
|
||||
@using Netina.AdminPanel.PWA.Layout
|
||||
@inject NavigationManager NavigationManager
|
||||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Found Context="routeData">
|
|
@ -1,7 +1,4 @@
|
|||
@using Radzen.Blazor
|
||||
@using NetinaShop.AdminPanel.PWA.Extensions
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
||||
@inject IDialogService DialogService
|
|
@ -1,8 +1,10 @@
|
|||
using NetinaShop.Domain.Dtos.LargDtos;
|
||||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using NetinaShop.Domain.Entities.Products;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.Domain.Entities.Blogs;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class BlogActionDialogBoxViewModel : BaseViewModel
|
||||
{
|
|
@ -1,5 +1,8 @@
|
|||
@using NetinaShop.Common.Models.Exception
|
||||
@using NetinaShop.Domain.Entities.Blogs
|
||||
@using Netina.AdminPanel.PWA.Models.Api
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Models
|
||||
@using Netina.Domain.Entities.Blogs
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,6 +1,9 @@
|
|||
@using NetinaShop.Common.Models.Exception
|
||||
@using NetinaShop.Domain.CommandQueries.Commands
|
||||
@using NetinaShop.Domain.Entities.Brands
|
||||
@using Netina.AdminPanel.PWA.Models.Api
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Models
|
||||
@using Netina.Common.Extensions
|
||||
@using Netina.Domain.Entities.Brands
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,4 +1,4 @@
|
|||
@using NetinaShop.Domain.Dtos.ResponseDtos
|
||||
@using Netina.Domain.Dtos.ResponseDtos
|
||||
<MudDialog DisableSidePadding="true" class="mx-auto">
|
||||
<DialogContent >
|
||||
<MudStack>
|
|
@ -1,4 +1,5 @@
|
|||
@using NetinaShop.Domain.Entities.Users
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,6 +1,6 @@
|
|||
using NetinaShop.Domain.Dtos.ScraperDtos.Response;
|
||||
using Netina.Domain.Dtos.ScraperDtos.Response;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class DigikalaProductActionDialogBoxViewModel : BaseViewModel<ObservableCollection<ScraperProductDto>>
|
||||
{
|
|
@ -1,15 +1,11 @@
|
|||
@using Radzen.Blazor
|
||||
@using NetinaShop.AdminPanel.PWA.Extensions
|
||||
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Extensions
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
||||
@inject IDialogService DialogService
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
|
||||
</head>
|
||||
|
||||
<MudDialog class="mx-auto" DisableSidePadding="true">
|
||||
<DialogContent >
|
||||
<MudContainer class="max-h-[30rem] lg:max-h-[35rem] overflow-y-scroll">
|
||||
|
@ -30,6 +26,15 @@
|
|||
<MudSwitch @bind-Value="@ViewModel.PageDto.HasCode" class="mt-2" Size="Size.Large" T="bool" Label="با کد تخفیف باشد" Color="Color.Info" />
|
||||
</MudItem>
|
||||
|
||||
<MudItem sm="8">
|
||||
<MudTextField @bind-Value="@ViewModel.PageDto.Description" T="string" Label="توضیحاتــ" Variant="Variant.Outlined" />
|
||||
</MudItem>
|
||||
|
||||
|
||||
<MudItem sm="4">
|
||||
<MudSwitch @bind-Value="@ViewModel.PageDto.IsForFirstPurchase" class="mt-2" Size="Size.Large" T="bool" Label="مخصوص اولین خرید" Color="Color.Info" />
|
||||
</MudItem>
|
||||
|
||||
<MudItem sm="8">
|
||||
<MudTextField Disabled="@ViewModel.PageDto.IsInfinity" Format="N0" @bind-Value="@ViewModel.PageDto.Count" T="int" Label="تعداد قابل استفاده" Variant="Variant.Outlined" />
|
||||
</MudItem>
|
|
@ -1,10 +1,6 @@
|
|||
using Mapster;
|
||||
using NetinaShop.Domain.Dtos.ResponseDtos;
|
||||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using NetinaShop.Domain.Entities.Discounts;
|
||||
using NetinaShop.Domain.Mappers;
|
||||
using Netina.Domain.Entities.Discounts;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class DiscountActionDialogBoxViewModel : BaseViewModel<DiscountLDto>
|
||||
{
|
||||
|
@ -202,7 +198,7 @@ public class DiscountActionDialogBoxViewModel : BaseViewModel<DiscountLDto>
|
|||
await _restWrapper.CrudApiRest<Discount, Guid>(Address.DiscountController).Create<CreateDiscountCommand>(request, token);
|
||||
|
||||
_snackbar.Add($"ساخت تخفیف با موفقیت انجام شد", Severity.Success);
|
||||
_mudDialog.Close();
|
||||
_mudDialog.Close(true);
|
||||
}
|
||||
catch (ApiException ex)
|
||||
{
|
||||
|
@ -255,7 +251,7 @@ public class DiscountActionDialogBoxViewModel : BaseViewModel<DiscountLDto>
|
|||
var request = PageDto.Adapt<UpdateDiscountCommand>();
|
||||
await _restWrapper.CrudApiRest<Discount, Guid>(Address.DiscountController).Update<UpdateDiscountCommand>(request, token);
|
||||
_snackbar.Add($"ویرایش تخفیف با موفقیت انجام شد", Severity.Success);
|
||||
_mudDialog.Close();
|
||||
_mudDialog.Close(true);
|
||||
}
|
||||
catch (ApiException ex)
|
||||
{
|
|
@ -1,5 +1,7 @@
|
|||
@using Color = MudBlazor.Color
|
||||
@using Size = MudBlazor.Size
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,9 +1,7 @@
|
|||
using Append.Blazor.Printing;
|
||||
using NetinaShop.AdminPanel.PWA.Utilities.Models;
|
||||
using NetinaShop.Common.Extensions;
|
||||
using Syncfusion.Pdf.Graphics;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class OrderActionDialogBoxViewModel : BaseViewModel<OrderLDto>
|
||||
{
|
|
@ -1,5 +1,6 @@
|
|||
@using NetinaShop.AdminPanel.PWA.Extensions
|
||||
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Extensions
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
|
@ -1,6 +1,9 @@
|
|||
using Mapster;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class ProductActionDialogBoxViewModel : BaseViewModel<ProductLDto>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@inject ISnackbar Snackbar
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
||||
@inject IDialogService DialogService
|
|
@ -1,11 +1,9 @@
|
|||
using MediatR;
|
||||
using NetinaShop.Common.Models.Mapper;
|
||||
using NetinaShop.Domain.Dtos.LargDtos;
|
||||
using NetinaShop.Domain.Entities.Discounts;
|
||||
using NetinaShop.Domain.Entities.Products;
|
||||
using System.Linq.Dynamic.Core.Tokenizer;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class ProductCategoryActionDialogBoxViewModel:BaseViewModel
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@using NetinaShop.Domain.Entities.Users
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.Domain.Entities.Users
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,9 +1,7 @@
|
|||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using NetinaShop.Domain.Entities.Users;
|
||||
using System.Reflection.Metadata;
|
||||
using NetinaShop.Domain.Models.Claims;
|
||||
using Netina.Domain.Entities.Users;
|
||||
using Netina.Domain.Models.Claims;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class RoleActionDialogBoxViewModel : BaseViewModel<RoleActionRequestDto>
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
@using NetinaShop.Domain.Entities.Users
|
||||
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
|
@ -1,7 +1,10 @@
|
|||
using Mapster;
|
||||
using NetinaShop.Domain.Entities.Warehouses;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.Domain.Entities.Warehouses;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class ShippingActionDialogBoxViewModel : BaseViewModel<ShippingSDto>
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
@using NetinaShop.AdminPanel.PWA.Extensions
|
||||
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
||||
@inject ISnackbar Snackbar
|
|
@ -1,6 +1,10 @@
|
|||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class StorageDialogBoxViewModel : BaseViewModel
|
||||
{
|
||||
|
@ -124,6 +128,8 @@ public class StorageDialogBoxViewModel : BaseViewModel
|
|||
StringBaseFile = Convert.ToBase64String(memoryStream.ToArray())
|
||||
};
|
||||
var token = await _userUtility.GetBearerTokenAsync();
|
||||
if (token == null)
|
||||
throw new Exception("token is null");
|
||||
var rest = await _restWrapper.FileRestApi.UploadFileAsync(fileUpload, token);
|
||||
Files.Insert(0, new StorageFileSDto
|
||||
{
|
|
@ -1,5 +1,4 @@
|
|||
@using NetinaShop.Domain.Entities.Users
|
||||
|
||||
|
||||
@inject ISnackbar Snackbar
|
||||
@inject IRestWrapper RestWrapper
|
||||
@inject IUserUtility UserUtility
|
|
@ -1,8 +1,11 @@
|
|||
using Mapster;
|
||||
using NetinaShop.Domain.Entities.Users;
|
||||
using NetinaShop.Domain.Models.Claims;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.Domain.Entities.Users;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Dialogs;
|
||||
namespace Netina.AdminPanel.PWA.Dialogs;
|
||||
|
||||
public class UserActionDialogBoxViewModel : BaseViewModel<UserActionRequestDto>
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Extensions;
|
||||
namespace Netina.AdminPanel.PWA.Extensions;
|
||||
|
||||
public class AesJsProvider : IEncryptProvider
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Extensions;
|
||||
namespace Netina.AdminPanel.PWA.Extensions;
|
||||
|
||||
public static class BoolExtension
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Extensions;
|
||||
namespace Netina.AdminPanel.PWA.Extensions;
|
||||
|
||||
public interface IEncryptProvider
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Extensions;
|
||||
namespace Netina.AdminPanel.PWA.Extensions;
|
||||
|
||||
public static class PersianCultureInfo
|
||||
{
|
|
@ -1,6 +1,4 @@
|
|||
using NetinaShop.Common.Extensions;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Extensions;
|
||||
namespace Netina.AdminPanel.PWA.Extensions;
|
||||
|
||||
public static class StorageFileExtension
|
||||
{
|
|
@ -1,5 +1,6 @@
|
|||
@using NetinaShop.AdminPanel.PWA.Pages
|
||||
@using Radzen.Blazor
|
||||
@using Radzen.Blazor
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Models
|
||||
@inherits LayoutComponentBase
|
||||
@inject IPWAUpdaterService PwaUpdaterService
|
||||
@inject NavigationManager NavigationManager
|
|
@ -1,10 +1,10 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Models;
|
||||
namespace Netina.AdminPanel.PWA.Models;
|
||||
|
||||
public static class Address
|
||||
{
|
||||
#if DEBUG
|
||||
public static string BaseAddress = "http://localhost:32770/api";
|
||||
//public static string BaseAddress = "https://api.vesmeh.com/api";
|
||||
//public static string BaseAddress = "http://localhost:32770/api";
|
||||
public static string BaseAddress = "https://api.vesmeh.com/api";
|
||||
#else
|
||||
public static string BaseAddress = "https://api.vesmeh.com/api";
|
||||
#endif
|
|
@ -1,7 +1,4 @@
|
|||
using NetinaShop.Common.Extensions;
|
||||
using NetinaShop.Common.Models.Api;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Models.Api;
|
||||
namespace Netina.AdminPanel.PWA.Models.Api;
|
||||
|
||||
public class ApiResult
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Models;
|
||||
namespace Netina.AdminPanel.PWA.Models;
|
||||
|
||||
public class BaseViewModel
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Models;
|
||||
namespace Netina.AdminPanel.PWA.Models;
|
||||
|
||||
public static class LocalStorageKeys
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Models;
|
||||
namespace Netina.AdminPanel.PWA.Models;
|
||||
|
||||
public static class MainTheme
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Models;
|
||||
namespace Netina.AdminPanel.PWA.Models;
|
||||
|
||||
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
|
||||
public class OrderProduct
|
|
@ -5,8 +5,8 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
||||
<AssemblyVersion>0.17.21.32</AssemblyVersion>
|
||||
<FileVersion>0.17.21.32</FileVersion>
|
||||
<AssemblyVersion>0.21.24.41</AssemblyVersion>
|
||||
<FileVersion>0.21.24.41</FileVersion>
|
||||
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -42,6 +42,7 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.1" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="2.2.0" />
|
||||
<PackageReference Include="Microsoft.JSInterop.WebAssembly" Version="8.0.1" />
|
||||
<PackageReference Include="MudBlazor" Version="6.13.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
|
@ -54,7 +55,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\NetinaShop\NetinaShop.Domain\NetinaShop.Domain.csproj" />
|
||||
<ProjectReference Include="..\..\Netina\Netina.Domain\Netina.Domain.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -63,30 +64,33 @@
|
|||
|
||||
<ItemGroup>
|
||||
<Using Include="Blazored.LocalStorage" />
|
||||
<Using Include="Mapster" />
|
||||
<Using Include="Microsoft.AspNetCore.Components" />
|
||||
<Using Include="Microsoft.IdentityModel.Tokens" />
|
||||
<Using Include="Microsoft.JSInterop" />
|
||||
<Using Include="MudBlazor" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Dialogs" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Dialogs.Originals" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Extensions" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Models" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Models.Api" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Services.RestServices" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Utilities" />
|
||||
<Using Include="NetinaShop.AdminPanel.PWA.Utilities.Models" />
|
||||
<Using Include="NetinaShop.Common.Models.Api" />
|
||||
<Using Include="NetinaShop.Common.Models.Exception" />
|
||||
<Using Include="NetinaShop.Domain.CommandQueries.Commands" />
|
||||
<Using Include="NetinaShop.Domain.Dtos.DashboardDtos" />
|
||||
<Using Include="NetinaShop.Domain.Dtos.LargDtos" />
|
||||
<Using Include="NetinaShop.Domain.Dtos.RequestDtos" />
|
||||
<Using Include="NetinaShop.Domain.Dtos.SmallDtos" />
|
||||
<Using Include="NetinaShop.Domain.Entities.ProductCategories" />
|
||||
<Using Include="NetinaShop.Domain.Entities.Products" />
|
||||
<Using Include="NetinaShop.Domain.Enums" />
|
||||
<Using Include="NetinaShop.Domain.MartenEntities.Pages" />
|
||||
<Using Include="NetinaShop.Domain.Models.Districts" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Dialogs" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Dialogs.Originals" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Extensions" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Models" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Models.Api" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Services.RestServices" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Utilities" />
|
||||
<Using Include="Netina.AdminPanel.PWA.Utilities.Models" />
|
||||
<Using Include="Netina.Common.Extensions" />
|
||||
<Using Include="Netina.Common.Models.Api" />
|
||||
<Using Include="Netina.Common.Models.Exception" />
|
||||
<Using Include="Netina.Domain.CommandQueries.Commands" />
|
||||
<Using Include="Netina.Domain.Dtos.DashboardDtos" />
|
||||
<Using Include="Netina.Domain.Dtos.LargDtos" />
|
||||
<Using Include="Netina.Domain.Dtos.RequestDtos" />
|
||||
<Using Include="Netina.Domain.Dtos.ResponseDtos" />
|
||||
<Using Include="Netina.Domain.Dtos.SmallDtos" />
|
||||
<Using Include="Netina.Domain.Entities.ProductCategories" />
|
||||
<Using Include="Netina.Domain.Entities.Products" />
|
||||
<Using Include="Netina.Domain.Enums" />
|
||||
<Using Include="Netina.Domain.MartenEntities.Pages" />
|
||||
<Using Include="Netina.Domain.Models.Districts" />
|
||||
<Using Include="Newtonsoft.Json" />
|
||||
<Using Include="Refit" />
|
||||
<Using Include="System.Collections.ObjectModel" />
|
|
@ -1,4 +1,6 @@
|
|||
@page "/blog/categories"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,6 +1,11 @@
|
|||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Blogs;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class BlogCategoriesPageViewModel:BaseViewModel<ObservableCollection<BlogCategorySDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/blogs"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,6 +1,11 @@
|
|||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Blogs;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class BlogsPageViewModel : BaseViewModel<ObservableCollection<BlogSDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/product/brands"
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
|
||||
@inject IDialogService DialogService
|
||||
@inject NavigationManager NavigationManager
|
|
@ -1,6 +1,11 @@
|
|||
using NetinaShop.Domain.Entities.Brands;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Brands;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class BrandsPageViewModel : BaseViewModel<List<BrandSDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@using Radzen.Blazor
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@page "/product/categories"
|
||||
@inject IDialogService DialogService
|
||||
@inject NavigationManager NavigationManager
|
|
@ -1,9 +1,10 @@
|
|||
using System.Collections.ObjectModel;
|
||||
using MudBlazor;
|
||||
using NetinaShop.AdminPanel.PWA.Utilities.Models;
|
||||
using NetinaShop.Common.Models.Exception;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class CategoriesPageViewModel : BaseViewModel<ObservableCollection<ProductCategorySDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/discounts"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
||||
|
@ -60,12 +62,43 @@
|
|||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
|
||||
<TemplateColumn T="DiscountSDto" Title="نوع تخفیف">
|
||||
<CellTemplate>
|
||||
<p>@context.Item.Type.ToDisplay()</p>
|
||||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
|
||||
<TemplateColumn T="DiscountSDto" Title="نوع کسرشدن">
|
||||
<CellTemplate>
|
||||
<p>@context.Item.AmountType.ToDisplay()</p>
|
||||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
|
||||
|
||||
<TemplateColumn T="DiscountSDto" Title="نوع کسرشدن">
|
||||
<CellTemplate>
|
||||
<p>@context.Item.AmountType.ToDisplay()</p>
|
||||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
|
||||
<TemplateColumn T="DiscountSDto" Title="مقدار تخفیف">
|
||||
<CellTemplate>
|
||||
@if (context.Item.AmountType == DiscountAmountType.Percent)
|
||||
{
|
||||
<p>@context.Item.DiscountPercent %</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>@context.Item.DiscountAmount ریالـ</p>
|
||||
}
|
||||
</CellTemplate>
|
||||
</TemplateColumn>
|
||||
|
||||
<TemplateColumn T="DiscountSDto" Title="تعداد قابل استفاده">
|
||||
<CellTemplate>
|
||||
@if (context.Item.IsInfinity)
|
||||
{
|
||||
<p>--</p>
|
||||
<p>نامحدود</p>
|
||||
}
|
||||
else
|
||||
{
|
|
@ -1,8 +1,11 @@
|
|||
using MudBlazor;
|
||||
using NetinaShop.AdminPanel.PWA.Utilities.Models;
|
||||
using NetinaShop.Domain.Entities.Discounts;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Discounts;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class DiscountPageViewModel : BaseViewModel<ObservableCollection<DiscountSDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/management/faqs"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,4 +1,9 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class FaqManagementPageViewModel : BaseViewModel<FAQPage>
|
||||
{
|
|
@ -1,5 +1,7 @@
|
|||
@page "/"
|
||||
@page "/home"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,6 +1,9 @@
|
|||
using NetinaShop.Domain.Entities.Brands;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class HomeViewModel : BaseViewModel<HomeDashboardDto>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@using Microsoft.AspNetCore.Authorization
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@attribute [AllowAnonymous]
|
||||
@page "/login"
|
||||
|
|
@ -1,4 +1,9 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class LoginPageViewModel : BaseViewModel
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/newsletler"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,6 +1,10 @@
|
|||
using NetinaShop.Domain.Entities.Users;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.Domain.Entities.Users;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class NewsletterManagementPageViewModel : BaseViewModel
|
||||
{
|
|
@ -1,5 +1,10 @@
|
|||
@page "/orders"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@using Netina.Common.Extensions
|
||||
@using Netina.Domain.Models.Claims
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
@attribute [PermissionAuthorize(ApplicationPermission.ManageDashboard)]
|
||||
|
||||
@inject IDialogService DialogService
|
||||
@inject NavigationManager NavigationManager
|
||||
|
@ -57,7 +62,7 @@
|
|||
</ToolBarContent>
|
||||
<Columns>
|
||||
<PropertyColumn Title="کد سفارش" Property="arg => arg.FactorCode" />
|
||||
<PropertyColumn Title="نام خریدار" Property="arg => arg.UserFullName" />
|
||||
<PropertyColumn Title="نام خریدار" Property="arg => arg.CustomerFullName" />
|
||||
<TemplateColumn T="OrderSDto" Title="تاریخ سفارش">
|
||||
<CellTemplate>
|
||||
<p>@context.Item.OrderAt.ToPersianDateTime().ToLongDateString()</p>
|
|
@ -1,4 +1,9 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class OrdersPageViewModel : BaseViewModel
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/pages"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
||||
|
@ -29,8 +31,8 @@
|
|||
</ToolBarContent> *@
|
||||
<Columns>
|
||||
<PropertyColumn Title="شماره فاکتور" Property="arg => arg.FactorNumber" />
|
||||
<PropertyColumn Title="پرداخت کننده" Property="arg => arg.UserFullName" />
|
||||
<PropertyColumn Title="شماره تماس" Property="arg => arg.UserPhoneNumber" />
|
||||
<PropertyColumn Title="پرداخت کننده" Property="arg => arg.CustomerFullName" />
|
||||
<PropertyColumn Title="شماره تماس" Property="arg => arg.CustomerPhoneNumber" />
|
||||
<TemplateColumn T="PaymentSDto" Title="نوع پرداخت">
|
||||
|
||||
<CellTemplate>
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class PagesManagementPageViewModel
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/payments"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
||||
|
@ -29,8 +31,8 @@
|
|||
</ToolBarContent> *@
|
||||
<Columns>
|
||||
<PropertyColumn Title="شماره فاکتور" Property="arg => arg.FactorNumber" />
|
||||
<PropertyColumn Title="پرداخت کننده" Property="arg => arg.UserFullName" />
|
||||
<PropertyColumn Title="شماره تماس" Property="arg => arg.UserPhoneNumber" />
|
||||
<PropertyColumn Title="پرداخت کننده" Property="arg => arg.CustomerFullName" />
|
||||
<PropertyColumn Title="شماره تماس" Property="arg => arg.CustomerPhoneNumber" />
|
||||
<TemplateColumn T="PaymentSDto" Title="نوع پرداخت">
|
||||
|
||||
<CellTemplate>
|
|
@ -1,4 +1,9 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class PaymentsPageViewModel : BaseViewModel<ObservableCollection<PaymentSDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/products"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,7 +1,10 @@
|
|||
using MudBlazor;
|
||||
using NetinaShop.Domain.Dtos.ResponseDtos;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class ProductsPageViewModel : BaseViewModel<ObservableCollection<ProductSDto>>
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
@page "/inventory/shipping"
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,6 +1,11 @@
|
|||
using NetinaShop.Domain.Entities.Warehouses;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Warehouses;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class ShippingPageViewModel : BaseViewModel<ObservableCollection<ShippingSDto>>
|
||||
{
|
|
@ -1,5 +1,6 @@
|
|||
@page "/management/shop"
|
||||
@using NetinaShop.Domain.Models.Districts
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,7 +1,6 @@
|
|||
using NetinaShop.Domain.MartenEntities.Settings;
|
||||
using NetinaShop.Domain.Models.Districts;
|
||||
using Netina.Domain.MartenEntities.Settings;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class ShopManagementPageViewModel : BaseViewModel
|
||||
{
|
|
@ -1,5 +1,6 @@
|
|||
@page "/setting/users"
|
||||
@using NetinaShop.Domain.Entities.Users
|
||||
@using Netina.AdminPanel.PWA.Utilities
|
||||
@using Netina.AdminPanel.PWA.Services.RestServices
|
||||
@attribute [Microsoft.AspNetCore.Authorization.Authorize]
|
||||
|
||||
@inject IDialogService DialogService
|
|
@ -1,9 +1,11 @@
|
|||
using MudBlazor;
|
||||
using NetinaShop.Common.Models.Mapper;
|
||||
using NetinaShop.Domain.Entities.Blogs;
|
||||
using NetinaShop.Domain.Entities.Users;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
using Netina.AdminPanel.PWA.Models.Api;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Netina.AdminPanel.PWA.Utilities.Models;
|
||||
using Netina.Domain.Entities.Users;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Pages;
|
||||
namespace Netina.AdminPanel.PWA.Pages;
|
||||
|
||||
public class UserSettingsPageViewModel : BaseViewModel
|
||||
{
|
|
@ -3,8 +3,11 @@ using Microsoft.AspNetCore.Components.Authorization;
|
|||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using MudBlazor.Services;
|
||||
using NetinaShop.AdminPanel.PWA;
|
||||
using NetinaShop.AdminPanel.PWA.Services;
|
||||
using Netina.AdminPanel.PWA;
|
||||
using Netina.AdminPanel.PWA.Extensions;
|
||||
using Netina.AdminPanel.PWA.Services;
|
||||
using Netina.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
using Toolbelt.Blazor.Extensions.DependencyInjection;
|
||||
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
@ -1,7 +1,8 @@
|
|||
using System.Security.Claims;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services;
|
||||
namespace Netina.AdminPanel.PWA.Services;
|
||||
|
||||
public class CustomAuthenticationStateProvider : AuthenticationStateProvider
|
||||
{
|
||||
|
@ -13,7 +14,6 @@ public class CustomAuthenticationStateProvider : AuthenticationStateProvider
|
|||
}
|
||||
public override async Task<AuthenticationState> GetAuthenticationStateAsync()
|
||||
{
|
||||
|
||||
var token = await _userUtility.GetBearerTokenAsync();
|
||||
if (token.IsNullOrEmpty())
|
||||
return new AuthenticationState(new());
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IAuthRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IBlogCategoryRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IBlogRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IBrandRestApi
|
||||
{
|
|
@ -1,6 +1,4 @@
|
|||
using Refit;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface ICrudApiRest<T, in TKey> where T : class
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IDashboardApiRest
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IDiscountRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IDistrictApiRest
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IFileRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IOrderRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IPageRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IPaymentRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IProductCategoryRestApi
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using NetinaShop.Domain.Dtos.ResponseDtos;
|
||||
using Netina.Domain.Dtos.ResponseDtos;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IProductRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IRestWrapper
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using NetinaShop.Domain.Entities.Users;
|
||||
using Netina.Domain.Entities.Users;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IRoleRestApi
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using NetinaShop.Domain.Dtos.ScraperDtos.Response;
|
||||
using Netina.Domain.Dtos.ScraperDtos.Response;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IScraperRestApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface ISettingRestApi
|
||||
{
|
|
@ -1,6 +1,4 @@
|
|||
using NetinaShop.Domain.Dtos.ResponseDtos;
|
||||
|
||||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public interface IUserRestApi
|
||||
{
|
|
@ -1,4 +1,6 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
||||
using Netina.AdminPanel.PWA.Models;
|
||||
|
||||
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
||||
|
||||
public class RestWrapper : IRestWrapper
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace NetinaShop.AdminPanel.PWA.Utilities;
|
||||
namespace Netina.AdminPanel.PWA.Utilities;
|
||||
|
||||
public interface IUserUtility
|
||||
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue