Initial commit - MassTech UI

This commit is contained in:
2026-08-05 21:15:18 +03:00
commit 866d22ebbc
5337 changed files with 510980 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
@if (_isLoaded)
{
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly" AdditionalAssemblies="new[] {
typeof(ECommerceModule.Components.Pages.Shop.Shop).Assembly
}">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>
You are not authorized to view this content, Please <a class="btn btn-primary" href="/SignIn">Sign
In</a>
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@typeof(MainLayout)">
<p>Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
</CascadingAuthenticationState>
}
else
{
<div>Loading translations...</div>
}
@code {
private bool _isLoaded;
protected override async Task OnInitializedAsync()
{
// Load both resource files in parallel (ONCE for entire app)
_isLoaded = true;
}
}
+88
View File
@@ -0,0 +1,88 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using UI
@using UI.Components
@using Layout
@using System.Net.Http.Headers
@using ECommerceModule.Components
@using System.Text
@using System;
@using System.Collections.Generic;
@using System.Linq;
@using System.Security.Claims;
@using System.Threading.Tasks;
@using System.Globalization;
@using System.Text.Json;
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using MudBlazor
@* @using AuthModule.Components.Pages.Auths
@using AuthModule.Components.Pages.Roles
@using AuthModule.Components.Pages
@using AuthModule.Components
@using AuthModule *@
@using LayoutLib
@using Microsoft.Extensions.Localization
@using SoloX.BlazorJsonLocalization
@* @using Contracts *@
@* @using Contracts
@using Layout *@
@* @using UI.Components.Common
@using UI.Components.Common.Form
@using UI.Components.Common.Form.Mud
@using UI.Services.Utils
@using UI.Components.Common
@using UI.Components.Common.Form
@using UI.Components.Common.Form.Mud
@using UI.Components.Layout
@using UI.Components.Layout.NavMenus
@using Contracts.DTOs.Requests
@using UI.Components.Pages.Requests
@using UI.Components.Pages.Requests.Components
@using UI.Services
@using UI.Components.Layout
@using UI.Services.Utils
@using Contracts.DTOs.HR
@using UI.Services
@using Contracts.DTOs.Requests
@using UI.Components.Layout.NavMenus *@
@* @using Contracts.DTOs.Auth
@using Contracts.DTOs.Generic
@using Contracts.DTOs.Users
@using Contracts.DTOs
@using Contracts.DTOs.Users
@using Contracts.DTOs.Generic *@