diff --git a/Bimix.API/Bimix.API.csproj b/BimAI.API/BimAI.API.csproj
similarity index 86%
rename from Bimix.API/Bimix.API.csproj
rename to BimAI.API/BimAI.API.csproj
index e4972ba..2ac61ec 100644
--- a/Bimix.API/Bimix.API.csproj
+++ b/BimAI.API/BimAI.API.csproj
@@ -1,26 +1,26 @@
-
-
-
- net8.0
- enable
- enable
-
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BimAI.API/BimAI.API.http b/BimAI.API/BimAI.API.http
new file mode 100644
index 0000000..79ef21c
--- /dev/null
+++ b/BimAI.API/BimAI.API.http
@@ -0,0 +1,6 @@
+@BimAI.API_HostAddress = http://localhost:5090
+
+GET {{BimAI.API_HostAddress}}/weatherforecast/
+Accept: application/json
+
+###
diff --git a/Bimix.API/Controllers/AuthController.cs b/BimAI.API/Controllers/AuthController.cs
similarity index 96%
rename from Bimix.API/Controllers/AuthController.cs
rename to BimAI.API/Controllers/AuthController.cs
index 7ed1397..56a7ed4 100644
--- a/Bimix.API/Controllers/AuthController.cs
+++ b/BimAI.API/Controllers/AuthController.cs
@@ -1,10 +1,10 @@
using System.Security.Claims;
-using Bimix.API.Services;
-using Bimix.Application.DTOModels;
+using BimAI.API.Services;
+using BimAI.Application.DTOModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
-namespace Bimix.API.Controllers;
+namespace BimAI.API.Controllers;
public class AuthController(
GoogleAuthService googleAuthService,
diff --git a/Bimix.API/Controllers/ProductsController.cs b/BimAI.API/Controllers/ProductsController.cs
similarity index 87%
rename from Bimix.API/Controllers/ProductsController.cs
rename to BimAI.API/Controllers/ProductsController.cs
index eb8e48d..5d56bc5 100644
--- a/Bimix.API/Controllers/ProductsController.cs
+++ b/BimAI.API/Controllers/ProductsController.cs
@@ -1,17 +1,16 @@
-using Bimix.Application.DTOModels;
-using Bimix.Application.DTOModels.Common;
+using BimAI.Application.DTOModels;
+using BimAI.Application.DTOModels.Common;
+using BimAI.Infrastructure.Data;
using Microsoft.AspNetCore.Mvc;
-using Bimix.Infrastructure.Data;
-using Bimix.Domain.Entities;
using Microsoft.EntityFrameworkCore;
-namespace Bimix.API.Controllers;
+namespace BimAI.API.Controllers;
[ApiController]
[Route("api/[controller]")]
-public class ProductsController(BimixDbContext context) : ControllerBase
+public class ProductsController(BimAIDbContext context) : ControllerBase
{
- private readonly BimixDbContext _context = context;
+ private readonly BimAIDbContext _context = context;
[HttpGet]
public async Task>> GetProducts([FromQuery] ProductFilterRequest request)
diff --git a/Bimix.API/Controllers/SyncController.cs b/BimAI.API/Controllers/SyncController.cs
similarity index 83%
rename from Bimix.API/Controllers/SyncController.cs
rename to BimAI.API/Controllers/SyncController.cs
index af13761..0c28598 100644
--- a/Bimix.API/Controllers/SyncController.cs
+++ b/BimAI.API/Controllers/SyncController.cs
@@ -1,7 +1,7 @@
-using Bimix.Infrastructure.Sync;
+using BimAI.Infrastructure.Sync;
using Microsoft.AspNetCore.Mvc;
-namespace Bimix.API.Controllers;
+namespace BimAI.API.Controllers;
[ApiController]
[Route("api/[controller]")]
diff --git a/Bimix.API/Program.cs b/BimAI.API/Program.cs
similarity index 89%
rename from Bimix.API/Program.cs
rename to BimAI.API/Program.cs
index c614b8e..b0c7e75 100644
--- a/Bimix.API/Program.cs
+++ b/BimAI.API/Program.cs
@@ -1,71 +1,71 @@
-using System.Text;
-using Bimix.API.Services;
-using Bimix.Infrastructure.Data;
-using Bimix.Infrastructure.Sync;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.AspNetCore.Authentication.JwtBearer;
-using Microsoft.IdentityModel.Tokens;
-
-
-var builder = WebApplication.CreateBuilder(args);
-
-var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
-builder.Services.AddDbContext(options => options.UseSqlServer(connectionString));
-builder.Services.AddScoped();
-
-builder.Services.AddHttpClient();
-builder.Services.AddControllers();
-builder.Services.AddEndpointsApiExplorer();
-builder.Services.AddSwaggerGen();
-
-// Start auth section
-var jwtSettings = builder.Configuration.GetSection("JwtSettings");
-var secretKey = jwtSettings["SecretKey"];
-var issuer = jwtSettings["Issuer"];
-var audience = jwtSettings["Audience"];
-
-builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
- .AddJwtBearer(options =>
- {
- options.TokenValidationParameters = new TokenValidationParameters
- {
- ValidateIssuer = true,
- ValidateAudience = true,
- ValidateLifetime = true,
- ValidateIssuerSigningKey = true,
- ValidIssuer = issuer,
- ValidAudience = audience,
- IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(secretKey)),
- ClockSkew = TimeSpan.Zero,
- };
- });
-builder.Services.AddAuthentication();
-
-builder.Services.AddScoped();
-builder.Services.AddScoped();
-
-builder.Services.AddCors(options =>
-{
- options.AddPolicy("AllowAll", policy =>
- {
- policy.AllowAnyOrigin()
- .AllowAnyMethod()
- .AllowAnyHeader();
- });
-});
-// End auth section
-
-var app = builder.Build();
-
-if (app.Environment.IsDevelopment())
-{
- app.UseSwagger();
- app.UseSwaggerUI();
-}
-
-app.UseHttpsRedirection();
-app.UseCors("AllowAll");
-app.UseAuthorization();
-app.UseAuthorization();
-app.MapControllers();
+using System.Text;
+using BimAI.API.Services;
+using BimAI.Infrastructure.Data;
+using BimAI.Infrastructure.Sync;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.AspNetCore.Authentication.JwtBearer;
+using Microsoft.IdentityModel.Tokens;
+
+
+var builder = WebApplication.CreateBuilder(args);
+
+var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");
+builder.Services.AddDbContext(options => options.UseSqlServer(connectionString));
+builder.Services.AddScoped();
+
+builder.Services.AddHttpClient();
+builder.Services.AddControllers();
+builder.Services.AddEndpointsApiExplorer();
+builder.Services.AddSwaggerGen();
+
+// Start auth section
+var jwtSettings = builder.Configuration.GetSection("JwtSettings");
+var secretKey = jwtSettings["SecretKey"];
+var issuer = jwtSettings["Issuer"];
+var audience = jwtSettings["Audience"];
+
+builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
+ .AddJwtBearer(options =>
+ {
+ options.TokenValidationParameters = new TokenValidationParameters
+ {
+ ValidateIssuer = true,
+ ValidateAudience = true,
+ ValidateLifetime = true,
+ ValidateIssuerSigningKey = true,
+ ValidIssuer = issuer,
+ ValidAudience = audience,
+ IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(secretKey)),
+ ClockSkew = TimeSpan.Zero,
+ };
+ });
+builder.Services.AddAuthentication();
+
+builder.Services.AddScoped();
+builder.Services.AddScoped();
+
+builder.Services.AddCors(options =>
+{
+ options.AddPolicy("AllowAll", policy =>
+ {
+ policy.AllowAnyOrigin()
+ .AllowAnyMethod()
+ .AllowAnyHeader();
+ });
+});
+// End auth section
+
+var app = builder.Build();
+
+if (app.Environment.IsDevelopment())
+{
+ app.UseSwagger();
+ app.UseSwaggerUI();
+}
+
+app.UseHttpsRedirection();
+app.UseCors("AllowAll");
+app.UseAuthorization();
+app.UseAuthorization();
+app.MapControllers();
app.Run();
\ No newline at end of file
diff --git a/Bimix.API/Properties/launchSettings.json b/BimAI.API/Properties/launchSettings.json
similarity index 96%
rename from Bimix.API/Properties/launchSettings.json
rename to BimAI.API/Properties/launchSettings.json
index 6fe39d5..59e80da 100644
--- a/Bimix.API/Properties/launchSettings.json
+++ b/BimAI.API/Properties/launchSettings.json
@@ -1,14 +1,14 @@
-{
- "profiles": {
- "dev": {
- "commandName": "Project",
- "dotnetRunMessages": true,
- "launchBrowser": true,
- "launchUrl": "swagger",
- "applicationUrl": "http://localhost:7142;http://0.0.0.0:7142",
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- }
- }
+{
+ "profiles": {
+ "dev": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "applicationUrl": "http://localhost:7142;http://0.0.0.0:7142",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/Bimix.API/Services/GoogleAuthService.cs b/BimAI.API/Services/GoogleAuthService.cs
similarity index 86%
rename from Bimix.API/Services/GoogleAuthService.cs
rename to BimAI.API/Services/GoogleAuthService.cs
index 8ca694d..c19e2a4 100644
--- a/Bimix.API/Services/GoogleAuthService.cs
+++ b/BimAI.API/Services/GoogleAuthService.cs
@@ -1,13 +1,13 @@
-using Bimix.Domain.Entities;
-using Bimix.Infrastructure.Data;
+using BimAI.Domain.Entities;
+using BimAI.Infrastructure.Data;
using Google.Apis.Auth;
using Microsoft.EntityFrameworkCore;
-namespace Bimix.API.Services;
+namespace BimAI.API.Services;
-public class GoogleAuthService(BimixDbContext context, IConfiguration configuration, ILogger logger)
+public class GoogleAuthService(BimAIDbContext context, IConfiguration configuration, ILogger logger)
{
- private readonly BimixDbContext _context = context;
+ private readonly BimAIDbContext _context = context;
private readonly IConfiguration _configuration = configuration;
private readonly ILogger _logger = logger;
@@ -35,8 +35,8 @@ public class GoogleAuthService(BimixDbContext context, IConfiguration configurat
if (user == null)
{
- _logger.LogError("User not found in Bimix database: {Email}", payload.Email);
- return (false, null, "User not found in Bimix database");
+ _logger.LogError("User not found in BimAI database: {Email}", payload.Email);
+ return (false, null, "User not found in BimAI database");
}
if (!user.IsActive)
diff --git a/Bimix.API/Services/JwtTokenService.cs b/BimAI.API/Services/JwtTokenService.cs
similarity index 98%
rename from Bimix.API/Services/JwtTokenService.cs
rename to BimAI.API/Services/JwtTokenService.cs
index f37cfda..09d1b4b 100644
--- a/Bimix.API/Services/JwtTokenService.cs
+++ b/BimAI.API/Services/JwtTokenService.cs
@@ -1,11 +1,10 @@
-using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
-using Bimix.Domain.Entities;
+using BimAI.Domain.Entities;
+using Microsoft.IdentityModel.Tokens;
-
-namespace Bimix.API.Services;
+namespace BimAI.API.Services;
public class JwtTokenService(IConfiguration configuration, ILogger logger)
{
diff --git a/BimAI.API/appsettings.Development.json b/BimAI.API/appsettings.Development.json
new file mode 100644
index 0000000..dcec6fb
--- /dev/null
+++ b/BimAI.API/appsettings.Development.json
@@ -0,0 +1,27 @@
+{
+ "AllowedHosts": "*",
+ "ConnectionStrings": {
+ "DefaultConnection": "Server=localhost,1433;Database=bimai;User Id=sa;Password=9832&^*&huihj;TrustServerCertificate=True;"
+ },
+ "E5_CRM": {
+ "ApiKey": "7e50a8a5-f01f-4fbc-8c1b-59f3fc474bb5"
+ },
+ "GoogleAuth": {
+ "ClientId": "1037727384847-t1l2au6du34kdckamro81guklk17cjah.apps.googleusercontent.com"
+ },
+ "JwtSettings": {
+ "SecretKey": "BimAISuperSecretKeyThatMustBeAtLeast32CharactersLong123456789",
+ "Issuer": "BimAI.API",
+ "Audience": "BimAI.Clients",
+ "ExpiryDays": 7
+ },
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning",
+ "Microsoft.EntityFrameworkCore": "Warning",
+ "Microsoft.EntityFrameworkCore.Database.Command": "Warning",
+ "Microsoft.EntityFrameworkCore.Infrastructure": "Warning"
+ }
+ }
+}
diff --git a/Bimix.UI.Web/appsettings.json b/BimAI.API/appsettings.json
similarity index 100%
rename from Bimix.UI.Web/appsettings.json
rename to BimAI.API/appsettings.json
diff --git a/Bimix.Application/Bimix.Application.csproj b/BimAI.Application/BimAI.Application.csproj
similarity index 76%
rename from Bimix.Application/Bimix.Application.csproj
rename to BimAI.Application/BimAI.Application.csproj
index e6b0ca9..e16c50a 100644
--- a/Bimix.Application/Bimix.Application.csproj
+++ b/BimAI.Application/BimAI.Application.csproj
@@ -1,13 +1,13 @@
-
-
-
-
-
-
-
- net8.0
- enable
- enable
-
-
-
+
+
+
+
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Bimix.Application/DTOModels/AuthDto.cs b/BimAI.Application/DTOModels/AuthDto.cs
similarity index 92%
rename from Bimix.Application/DTOModels/AuthDto.cs
rename to BimAI.Application/DTOModels/AuthDto.cs
index a150a9c..81f1bf4 100644
--- a/Bimix.Application/DTOModels/AuthDto.cs
+++ b/BimAI.Application/DTOModels/AuthDto.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Application.DTOModels;
+namespace BimAI.Application.DTOModels;
public class GoogleAuthRequest
{
diff --git a/Bimix.Application/DTOModels/Common/PagedResult.cs b/BimAI.Application/DTOModels/Common/PagedResult.cs
similarity index 88%
rename from Bimix.Application/DTOModels/Common/PagedResult.cs
rename to BimAI.Application/DTOModels/Common/PagedResult.cs
index 4c8a50b..99e8a3f 100644
--- a/Bimix.Application/DTOModels/Common/PagedResult.cs
+++ b/BimAI.Application/DTOModels/Common/PagedResult.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Application.DTOModels.Common;
+namespace BimAI.Application.DTOModels.Common;
public class PagedResult
{
diff --git a/Bimix.Application/DTOModels/ProductDto.cs b/BimAI.Application/DTOModels/ProductDto.cs
similarity index 94%
rename from Bimix.Application/DTOModels/ProductDto.cs
rename to BimAI.Application/DTOModels/ProductDto.cs
index 6f71deb..3c9816b 100644
--- a/Bimix.Application/DTOModels/ProductDto.cs
+++ b/BimAI.Application/DTOModels/ProductDto.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Application.DTOModels;
+namespace BimAI.Application.DTOModels;
public class ProductDto
{
diff --git a/Bimix.Domain/Bimix.Domain.csproj b/BimAI.Domain/BimAI.Domain.csproj
similarity index 95%
rename from Bimix.Domain/Bimix.Domain.csproj
rename to BimAI.Domain/BimAI.Domain.csproj
index bb23fb7..fa71b7a 100644
--- a/Bimix.Domain/Bimix.Domain.csproj
+++ b/BimAI.Domain/BimAI.Domain.csproj
@@ -1,9 +1,9 @@
-
-
-
- net8.0
- enable
- enable
-
-
-
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Bimix.Domain/Entities/BaseEntity.cs b/BimAI.Domain/Entities/BaseEntity.cs
similarity index 82%
rename from Bimix.Domain/Entities/BaseEntity.cs
rename to BimAI.Domain/Entities/BaseEntity.cs
index 4ad619b..c244739 100644
--- a/Bimix.Domain/Entities/BaseEntity.cs
+++ b/BimAI.Domain/Entities/BaseEntity.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Domain.Entities;
+namespace BimAI.Domain.Entities;
public abstract class BaseEntity
{
diff --git a/Bimix.Domain/Entities/Product.cs b/BimAI.Domain/Entities/Product.cs
similarity index 86%
rename from Bimix.Domain/Entities/Product.cs
rename to BimAI.Domain/Entities/Product.cs
index 9e68ae1..8e8cc75 100644
--- a/Bimix.Domain/Entities/Product.cs
+++ b/BimAI.Domain/Entities/Product.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Domain.Entities;
+namespace BimAI.Domain.Entities;
public class Product : BaseEntity
{
diff --git a/Bimix.Domain/Entities/SyncState.cs b/BimAI.Domain/Entities/SyncState.cs
similarity index 81%
rename from Bimix.Domain/Entities/SyncState.cs
rename to BimAI.Domain/Entities/SyncState.cs
index 01dd76c..c5f4dbd 100644
--- a/Bimix.Domain/Entities/SyncState.cs
+++ b/BimAI.Domain/Entities/SyncState.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Domain.Entities;
+namespace BimAI.Domain.Entities;
public class SyncState
{
diff --git a/Bimix.Domain/Entities/User.cs b/BimAI.Domain/Entities/User.cs
similarity index 89%
rename from Bimix.Domain/Entities/User.cs
rename to BimAI.Domain/Entities/User.cs
index 490a4a0..302461a 100644
--- a/Bimix.Domain/Entities/User.cs
+++ b/BimAI.Domain/Entities/User.cs
@@ -1,4 +1,4 @@
-namespace Bimix.Domain.Entities;
+namespace BimAI.Domain.Entities;
public class User : BaseEntity
{
diff --git a/Bimix.Infrastructure/Bimix.Infrastructure.csproj b/BimAI.Infrastructure/BimAI.Infrastructure.csproj
similarity index 82%
rename from Bimix.Infrastructure/Bimix.Infrastructure.csproj
rename to BimAI.Infrastructure/BimAI.Infrastructure.csproj
index f86390f..5b7cb5e 100644
--- a/Bimix.Infrastructure/Bimix.Infrastructure.csproj
+++ b/BimAI.Infrastructure/BimAI.Infrastructure.csproj
@@ -1,23 +1,23 @@
-
-
-
-
-
-
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
- net8.0
- enable
- enable
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Bimix.Infrastructure/Data/BimixDbContext.cs b/BimAI.Infrastructure/Data/BimixDbContext.cs
similarity index 96%
rename from Bimix.Infrastructure/Data/BimixDbContext.cs
rename to BimAI.Infrastructure/Data/BimixDbContext.cs
index 96875cb..41954cd 100644
--- a/Bimix.Infrastructure/Data/BimixDbContext.cs
+++ b/BimAI.Infrastructure/Data/BimixDbContext.cs
@@ -1,9 +1,9 @@
-using Bimix.Domain.Entities;
using Microsoft.EntityFrameworkCore;
+using BimAI.Domain.Entities;
-namespace Bimix.Infrastructure.Data;
+namespace BimAI.Infrastructure.Data;
-public class BimixDbContext(DbContextOptions options) : DbContext(options)
+public class BimAIDbContext(DbContextOptions options) : DbContext(options)
{
public DbSet Products { get; set; }
public DbSet SyncStates { get; set; }
diff --git a/Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs b/BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs
similarity index 89%
rename from Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs
rename to BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs
index a8d60d7..5c08bd3 100644
--- a/Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs
+++ b/BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -9,9 +9,9 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
+ [DbContext(typeof(BimAIDbContext))]
[Migration("20250619185202_InitDatabase")]
partial class InitDatabase
{
@@ -25,7 +25,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
diff --git a/Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.cs b/BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.cs
similarity index 96%
rename from Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.cs
rename to BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.cs
index 0c06211..f8be6c6 100644
--- a/Bimix.Infrastructure/Migrations/20250619185202_InitDatabase.cs
+++ b/BimAI.Infrastructure/Migrations/20250619185202_InitDatabase.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
///
public partial class InitDatabase : Migration
diff --git a/Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs b/BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs
similarity index 88%
rename from Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs
rename to BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs
index 2b3e72a..984239e 100644
--- a/Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs
+++ b/BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -9,9 +9,9 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
+ [DbContext(typeof(BimAIDbContext))]
[Migration("20250623184943_AddSyncState")]
partial class AddSyncState
{
@@ -25,7 +25,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -47,7 +47,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("Products");
});
- modelBuilder.Entity("Bimix.Domain.Entities.SyncState", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.SyncState", b =>
{
b.Property("Entity")
.HasColumnType("nvarchar(450)");
diff --git a/Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.cs b/BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.cs
similarity index 95%
rename from Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.cs
rename to BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.cs
index 456a24e..9b59995 100644
--- a/Bimix.Infrastructure/Migrations/20250623184943_AddSyncState.cs
+++ b/BimAI.Infrastructure/Migrations/20250623184943_AddSyncState.cs
@@ -2,7 +2,7 @@
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
///
public partial class AddSyncState : Migration
diff --git a/Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs b/BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs
similarity index 88%
rename from Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs
rename to BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs
index f14b2cf..5f19307 100644
--- a/Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs
+++ b/BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -9,9 +9,9 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
+ [DbContext(typeof(BimAIDbContext))]
[Migration("20250623194653_ResizeProductName")]
partial class ResizeProductName
{
@@ -25,7 +25,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -47,7 +47,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("Products");
});
- modelBuilder.Entity("Bimix.Domain.Entities.SyncState", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.SyncState", b =>
{
b.Property("Entity")
.HasColumnType("nvarchar(450)");
diff --git a/Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.cs b/BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.cs
similarity index 96%
rename from Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.cs
rename to BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.cs
index fb882ec..18c72ad 100644
--- a/Bimix.Infrastructure/Migrations/20250623194653_ResizeProductName.cs
+++ b/BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.cs
@@ -2,7 +2,7 @@
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
///
public partial class ResizeProductName : Migration
diff --git a/Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs b/BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs
similarity index 90%
rename from Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs
rename to BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs
index b03e9e9..b9bf7a2 100644
--- a/Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs
+++ b/BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -9,9 +9,9 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
+ [DbContext(typeof(BimAIDbContext))]
[Migration("20250624193445_Products-NewFields")]
partial class ProductsNewFields
{
@@ -25,7 +25,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -62,7 +62,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("Products");
});
- modelBuilder.Entity("Bimix.Domain.Entities.SyncState", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.SyncState", b =>
{
b.Property("Entity")
.HasColumnType("nvarchar(450)");
diff --git a/Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.cs b/BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
similarity index 97%
rename from Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
rename to BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
index 8cb9efd..b02a671 100644
--- a/Bimix.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
+++ b/BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
@@ -2,7 +2,7 @@
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
///
public partial class ProductsNewFields : Migration
diff --git a/Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs b/BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs
similarity index 93%
rename from Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs
rename to BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs
index 56377d1..e2cb4bf 100644
--- a/Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs
+++ b/BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -9,9 +9,9 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
+ [DbContext(typeof(BimAIDbContext))]
[Migration("20250718162313_AddUsersTable")]
partial class AddUsersTable
{
@@ -25,7 +25,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -66,7 +66,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("Products");
});
- modelBuilder.Entity("Bimix.Domain.Entities.SyncState", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.SyncState", b =>
{
b.Property("Entity")
.HasColumnType("nvarchar(450)");
@@ -79,7 +79,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("SyncStates");
});
- modelBuilder.Entity("Bimix.Domain.Entities.User", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
diff --git a/Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.cs b/BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.cs
similarity index 98%
rename from Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.cs
rename to BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.cs
index 95a9473..dbdd0c4 100644
--- a/Bimix.Infrastructure/Migrations/20250718162313_AddUsersTable.cs
+++ b/BimAI.Infrastructure/Migrations/20250718162313_AddUsersTable.cs
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
///
public partial class AddUsersTable : Migration
diff --git a/Bimix.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs b/BimAI.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs
similarity index 92%
rename from Bimix.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs
rename to BimAI.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs
index 02130e5..1271f2f 100644
--- a/Bimix.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs
+++ b/BimAI.Infrastructure/Migrations/BimixDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using Bimix.Infrastructure.Data;
+using BimAI.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -8,10 +8,10 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
-namespace Bimix.Infrastructure.Migrations
+namespace BimAI.Infrastructure.Migrations
{
- [DbContext(typeof(BimixDbContext))]
- partial class BimixDbContextModelSnapshot : ModelSnapshot
+ [DbContext(typeof(BimAIDbContext))]
+ partial class BimAIDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
@@ -22,7 +22,7 @@ namespace Bimix.Infrastructure.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("Bimix.Domain.Entities.Product", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.Product", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -63,7 +63,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("Products");
});
- modelBuilder.Entity("Bimix.Domain.Entities.SyncState", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.SyncState", b =>
{
b.Property("Entity")
.HasColumnType("nvarchar(450)");
@@ -76,7 +76,7 @@ namespace Bimix.Infrastructure.Migrations
b.ToTable("SyncStates");
});
- modelBuilder.Entity("Bimix.Domain.Entities.User", b =>
+ modelBuilder.Entity("BimAI.Domain.Entities.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
diff --git a/Bimix.Infrastructure/Sync/ProductSyncService.cs b/BimAI.Infrastructure/Sync/ProductSyncService.cs
similarity index 92%
rename from Bimix.Infrastructure/Sync/ProductSyncService.cs
rename to BimAI.Infrastructure/Sync/ProductSyncService.cs
index a83426f..b68dd28 100644
--- a/Bimix.Infrastructure/Sync/ProductSyncService.cs
+++ b/BimAI.Infrastructure/Sync/ProductSyncService.cs
@@ -1,14 +1,12 @@
-using System.Reflection.Metadata.Ecma335;
using System.Text.Json;
-using System.Text.RegularExpressions;
using System.Web;
-using Bimix.Domain.Entities;
-using Bimix.Infrastructure.Data;
+using BimAI.Domain.Entities;
+using BimAI.Infrastructure.Data;
using Microsoft.Extensions.Configuration;
-namespace Bimix.Infrastructure.Sync;
+namespace BimAI.Infrastructure.Sync;
-public class ProductSyncService(HttpClient httpClient, BimixDbContext db, IConfiguration configuration)
+public class ProductSyncService(HttpClient httpClient, BimAIDbContext db, IConfiguration configuration)
{
///
/// Dekoduje encje HTML w ciągu znaków (np. " na ")
diff --git a/Bimix.UI.Mobile/App.xaml b/BimAI.UI.Mobile/App.xaml
similarity index 100%
rename from Bimix.UI.Mobile/App.xaml
rename to BimAI.UI.Mobile/App.xaml
diff --git a/Bimix.UI.Mobile/App.xaml.cs b/BimAI.UI.Mobile/App.xaml.cs
similarity index 84%
rename from Bimix.UI.Mobile/App.xaml.cs
rename to BimAI.UI.Mobile/App.xaml.cs
index 31b462d..9ee7070 100644
--- a/Bimix.UI.Mobile/App.xaml.cs
+++ b/BimAI.UI.Mobile/App.xaml.cs
@@ -1,4 +1,4 @@
-namespace Bimix.UI.Mobile;
+namespace BimAI.UI.Mobile;
public partial class App : Microsoft.Maui.Controls.Application
{
diff --git a/Bimix.UI.Mobile/Bimix.UI.Mobile.csproj b/BimAI.UI.Mobile/BimAI.UI.Mobile.csproj
similarity index 80%
rename from Bimix.UI.Mobile/Bimix.UI.Mobile.csproj
rename to BimAI.UI.Mobile/BimAI.UI.Mobile.csproj
index e3df775..e985cc8 100644
--- a/Bimix.UI.Mobile/Bimix.UI.Mobile.csproj
+++ b/BimAI.UI.Mobile/BimAI.UI.Mobile.csproj
@@ -15,7 +15,7 @@
Exe
- Bimix.UI.Mobile
+ BimAI.UI.Mobile
true
true
enable
@@ -23,10 +23,10 @@
enable
- Bimix
+ BimAI
- cloud.bimit.bimix
+
1.0
@@ -41,30 +41,11 @@
- cloud.bimit.bimix
+
Apple Development: Michal Zielinski (2F35ZHMBTB)
- bimix-local
+ bimai-local
ios-arm64
-
-
-
-
-
-
-
- PreserveNewest
- true
- PreserveNewest
-
-
-
- PreserveNewest
- true
- PreserveNewest
- appsettings.json
-
-
@@ -103,7 +84,7 @@
-
+
\ No newline at end of file
diff --git a/Bimix.UI.Mobile/MainPage.xaml b/BimAI.UI.Mobile/MainPage.xaml
similarity index 100%
rename from Bimix.UI.Mobile/MainPage.xaml
rename to BimAI.UI.Mobile/MainPage.xaml
diff --git a/Bimix.UI.Mobile/MainPage.xaml.cs b/BimAI.UI.Mobile/MainPage.xaml.cs
similarity index 79%
rename from Bimix.UI.Mobile/MainPage.xaml.cs
rename to BimAI.UI.Mobile/MainPage.xaml.cs
index 63fb0bb..d4f1cc9 100644
--- a/Bimix.UI.Mobile/MainPage.xaml.cs
+++ b/BimAI.UI.Mobile/MainPage.xaml.cs
@@ -1,4 +1,4 @@
-namespace Bimix.UI.Mobile;
+namespace BimAI.UI.Mobile;
public partial class MainPage : ContentPage
{
diff --git a/Bimix.UI.Mobile/MauiProgram.cs b/BimAI.UI.Mobile/MauiProgram.cs
similarity index 91%
rename from Bimix.UI.Mobile/MauiProgram.cs
rename to BimAI.UI.Mobile/MauiProgram.cs
index 9e08df7..7394cb9 100644
--- a/Bimix.UI.Mobile/MauiProgram.cs
+++ b/BimAI.UI.Mobile/MauiProgram.cs
@@ -1,8 +1,8 @@
using System.Reflection;
-using Bimix.UI.Mobile.Services;
-using Bimix.UI.Shared.Extensions;
-using Bimix.UI.Shared.Interfaces;
-using Bimix.UI.Shared.Services;
+using BimAI.UI.Mobile.Services;
+using BimAI.UI.Shared.Extensions;
+using BimAI.UI.Shared.Interfaces;
+using BimAI.UI.Shared.Services;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@@ -12,7 +12,7 @@ using Microsoft.Maui.Hosting;
using MudBlazor.Services;
using ZXing.Net.Maui.Controls;
-namespace Bimix.UI.Mobile;
+namespace BimAI.UI.Mobile;
public static class MauiProgram
{
diff --git a/Bimix.UI.Mobile/Properties/launchSettings.json b/BimAI.UI.Mobile/Properties/launchSettings.json
similarity index 100%
rename from Bimix.UI.Mobile/Properties/launchSettings.json
rename to BimAI.UI.Mobile/Properties/launchSettings.json
diff --git a/Bimix.UI.Mobile/Resources/AppIcon/appicon.svg b/BimAI.UI.Mobile/Resources/AppIcon/appicon.svg
similarity index 100%
rename from Bimix.UI.Mobile/Resources/AppIcon/appicon.svg
rename to BimAI.UI.Mobile/Resources/AppIcon/appicon.svg
diff --git a/Bimix.UI.Mobile/Resources/AppIcon/appiconfg.svg b/BimAI.UI.Mobile/Resources/AppIcon/appiconfg.svg
similarity index 100%
rename from Bimix.UI.Mobile/Resources/AppIcon/appiconfg.svg
rename to BimAI.UI.Mobile/Resources/AppIcon/appiconfg.svg
diff --git a/Bimix.UI.Mobile/Resources/Fonts/OpenSans-Regular.ttf b/BimAI.UI.Mobile/Resources/Fonts/OpenSans-Regular.ttf
similarity index 100%
rename from Bimix.UI.Mobile/Resources/Fonts/OpenSans-Regular.ttf
rename to BimAI.UI.Mobile/Resources/Fonts/OpenSans-Regular.ttf
diff --git a/Bimix.UI.Mobile/Resources/Images/dotnet_bot.svg b/BimAI.UI.Mobile/Resources/Images/dotnet_bot.svg
similarity index 100%
rename from Bimix.UI.Mobile/Resources/Images/dotnet_bot.svg
rename to BimAI.UI.Mobile/Resources/Images/dotnet_bot.svg
diff --git a/Bimix.UI.Mobile/Resources/Raw/AboutAssets.txt b/BimAI.UI.Mobile/Resources/Raw/AboutAssets.txt
similarity index 100%
rename from Bimix.UI.Mobile/Resources/Raw/AboutAssets.txt
rename to BimAI.UI.Mobile/Resources/Raw/AboutAssets.txt
diff --git a/Bimix.UI.Mobile/Resources/Splash/splash.svg b/BimAI.UI.Mobile/Resources/Splash/splash.svg
similarity index 100%
rename from Bimix.UI.Mobile/Resources/Splash/splash.svg
rename to BimAI.UI.Mobile/Resources/Splash/splash.svg
diff --git a/Bimix.UI.Mobile/Services/ScannerService.cs b/BimAI.UI.Mobile/Services/ScannerService.cs
similarity index 98%
rename from Bimix.UI.Mobile/Services/ScannerService.cs
rename to BimAI.UI.Mobile/Services/ScannerService.cs
index 290b36b..f5d914e 100644
--- a/Bimix.UI.Mobile/Services/ScannerService.cs
+++ b/BimAI.UI.Mobile/Services/ScannerService.cs
@@ -1,8 +1,8 @@
-using Bimix.UI.Shared.Interfaces;
+using BimAI.UI.Shared.Interfaces;
using ZXing.Net.Maui;
using ZXing.Net.Maui.Controls;
-namespace Bimix.UI.Mobile.Services;
+namespace BimAI.UI.Mobile.Services;
public class ScannerService : IScannerService
{
diff --git a/Bimix.UI.Mobile/appsettings.Development.json b/BimAI.UI.Mobile/appsettings.Development.json
similarity index 100%
rename from Bimix.UI.Mobile/appsettings.Development.json
rename to BimAI.UI.Mobile/appsettings.Development.json
diff --git a/Bimix.UI.Mobile/appsettings.json b/BimAI.UI.Mobile/appsettings.json
similarity index 100%
rename from Bimix.UI.Mobile/appsettings.json
rename to BimAI.UI.Mobile/appsettings.json
diff --git a/Bimix.UI.Mobile/wwwroot/css/app.css b/BimAI.UI.Mobile/wwwroot/css/app.css
similarity index 100%
rename from Bimix.UI.Mobile/wwwroot/css/app.css
rename to BimAI.UI.Mobile/wwwroot/css/app.css
diff --git a/Bimix.UI.Mobile/wwwroot/index.html b/BimAI.UI.Mobile/wwwroot/index.html
similarity index 100%
rename from Bimix.UI.Mobile/wwwroot/index.html
rename to BimAI.UI.Mobile/wwwroot/index.html
diff --git a/Bimix.UI.Shared/Bimix.UI.Shared.csproj b/BimAI.UI.Shared/BimAI.UI.Shared.csproj
similarity index 82%
rename from Bimix.UI.Shared/Bimix.UI.Shared.csproj
rename to BimAI.UI.Shared/BimAI.UI.Shared.csproj
index c7a5aec..9fbbeed 100644
--- a/Bimix.UI.Shared/Bimix.UI.Shared.csproj
+++ b/BimAI.UI.Shared/BimAI.UI.Shared.csproj
@@ -1,30 +1,30 @@
-
-
-
- net8.0
- enable
- enable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bimix.UI.Shared/Components/AuthGuard.razor b/BimAI.UI.Shared/Components/AuthGuard.razor
similarity index 97%
rename from Bimix.UI.Shared/Components/AuthGuard.razor
rename to BimAI.UI.Shared/Components/AuthGuard.razor
index 06d437f..abed981 100644
--- a/Bimix.UI.Shared/Components/AuthGuard.razor
+++ b/BimAI.UI.Shared/Components/AuthGuard.razor
@@ -1,4 +1,4 @@
-@using Bimix.UI.Shared.Services
+@using BimAI.UI.Shared.Services
@inject AuthService AuthService
@inject NavigationManager Navigation
diff --git a/Bimix.UI.Shared/Components/Dashboard.razor b/BimAI.UI.Shared/Components/Dashboard.razor
similarity index 100%
rename from Bimix.UI.Shared/Components/Dashboard.razor
rename to BimAI.UI.Shared/Components/Dashboard.razor
diff --git a/Bimix.UI.Shared/Components/Index.razor b/BimAI.UI.Shared/Components/Index.razor
similarity index 100%
rename from Bimix.UI.Shared/Components/Index.razor
rename to BimAI.UI.Shared/Components/Index.razor
diff --git a/Bimix.UI.Shared/Components/LoginCard.razor b/BimAI.UI.Shared/Components/LoginCard.razor
similarity index 97%
rename from Bimix.UI.Shared/Components/LoginCard.razor
rename to BimAI.UI.Shared/Components/LoginCard.razor
index 6ce8c58..5a6bb63 100644
--- a/Bimix.UI.Shared/Components/LoginCard.razor
+++ b/BimAI.UI.Shared/Components/LoginCard.razor
@@ -1,6 +1,6 @@
+@using BimAI.UI.Shared.Services
@using Microsoft.Extensions.Configuration
-@using Bimix.UI.Shared.Services
@inject IJSRuntime JS
@inject IConfiguration Configuration
@inject AuthService AuthService
@@ -8,7 +8,7 @@
- Witaj w Bimix
+ Witaj w BimAI
Zaloguj się używając konta Google
diff --git a/Bimix.UI.Shared/Components/NavMenu.razor b/BimAI.UI.Shared/Components/NavMenu.razor
similarity index 100%
rename from Bimix.UI.Shared/Components/NavMenu.razor
rename to BimAI.UI.Shared/Components/NavMenu.razor
diff --git a/Bimix.UI.Shared/Components/ProductListComponent.razor b/BimAI.UI.Shared/Components/ProductListComponent.razor
similarity index 100%
rename from Bimix.UI.Shared/Components/ProductListComponent.razor
rename to BimAI.UI.Shared/Components/ProductListComponent.razor
diff --git a/Bimix.UI.Shared/Components/ProductListComponent.razor.cs b/BimAI.UI.Shared/Components/ProductListComponent.razor.cs
similarity index 93%
rename from Bimix.UI.Shared/Components/ProductListComponent.razor.cs
rename to BimAI.UI.Shared/Components/ProductListComponent.razor.cs
index 6743de3..e7250a8 100644
--- a/Bimix.UI.Shared/Components/ProductListComponent.razor.cs
+++ b/BimAI.UI.Shared/Components/ProductListComponent.razor.cs
@@ -1,12 +1,11 @@
-using Bimix.Application.DTOModels;
-using Bimix.Application.DTOModels.Common;
-using Bimix.UI.Shared.Interfaces;
-using Bimix.UI.Shared.Services;
+using BimAI.UI.Shared.Interfaces;
+using BimAI.UI.Shared.Services;
using Microsoft.AspNetCore.Components;
+using BimAI.Application.DTOModels;
+using BimAI.Application.DTOModels.Common;
using MudBlazor;
-
-namespace Bimix.UI.Shared.Components;
+namespace BimAI.UI.Shared.Components;
public partial class ProductListComponent : ComponentBase
{
diff --git a/Bimix.UI.Shared/Components/Routes.razor b/BimAI.UI.Shared/Components/Routes.razor
similarity index 100%
rename from Bimix.UI.Shared/Components/Routes.razor
rename to BimAI.UI.Shared/Components/Routes.razor
diff --git a/Bimix.UI.Shared/EmptyLayout.razor b/BimAI.UI.Shared/EmptyLayout.razor
similarity index 100%
rename from Bimix.UI.Shared/EmptyLayout.razor
rename to BimAI.UI.Shared/EmptyLayout.razor
diff --git a/Bimix.UI.Shared/Extensions/ServiceCollectionExtensions.cs b/BimAI.UI.Shared/Extensions/ServiceCollectionExtensions.cs
similarity index 84%
rename from Bimix.UI.Shared/Extensions/ServiceCollectionExtensions.cs
rename to BimAI.UI.Shared/Extensions/ServiceCollectionExtensions.cs
index 5cf395f..10bb813 100644
--- a/Bimix.UI.Shared/Extensions/ServiceCollectionExtensions.cs
+++ b/BimAI.UI.Shared/Extensions/ServiceCollectionExtensions.cs
@@ -1,7 +1,7 @@
-using Bimix.UI.Shared.Services;
+using BimAI.UI.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
-namespace Bimix.UI.Shared.Extensions;
+namespace BimAI.UI.Shared.Extensions;
public static class ServiceCollectionExtensions
{
diff --git a/Bimix.UI.Shared/Interfaces/IScannerService.cs b/BimAI.UI.Shared/Interfaces/IScannerService.cs
similarity index 80%
rename from Bimix.UI.Shared/Interfaces/IScannerService.cs
rename to BimAI.UI.Shared/Interfaces/IScannerService.cs
index fdc7454..8d7ab32 100644
--- a/Bimix.UI.Shared/Interfaces/IScannerService.cs
+++ b/BimAI.UI.Shared/Interfaces/IScannerService.cs
@@ -1,4 +1,4 @@
-namespace Bimix.UI.Shared.Interfaces;
+namespace BimAI.UI.Shared.Interfaces;
public interface IScannerService
{
diff --git a/Bimix.UI.Shared/MainLayout.razor b/BimAI.UI.Shared/MainLayout.razor
similarity index 97%
rename from Bimix.UI.Shared/MainLayout.razor
rename to BimAI.UI.Shared/MainLayout.razor
index 0e55d0e..7adcd86 100644
--- a/Bimix.UI.Shared/MainLayout.razor
+++ b/BimAI.UI.Shared/MainLayout.razor
@@ -16,7 +16,7 @@
OnClick="ToggleDrawer"
Class="mud-hidden-md-up"/>
- Bimix
+ BimAI
Produkty
diff --git a/Bimix.UI.Shared/Services/AuthService.cs b/BimAI.UI.Shared/Services/AuthService.cs
similarity index 99%
rename from Bimix.UI.Shared/Services/AuthService.cs
rename to BimAI.UI.Shared/Services/AuthService.cs
index 0099663..f76a6cf 100644
--- a/Bimix.UI.Shared/Services/AuthService.cs
+++ b/BimAI.UI.Shared/Services/AuthService.cs
@@ -1,7 +1,7 @@
using System.Text.Json;
using Microsoft.JSInterop;
-namespace Bimix.UI.Shared.Services;
+namespace BimAI.UI.Shared.Services;
public class UserInfo
{
diff --git a/Bimix.UI.Shared/Services/GoogleAuthConfig.cs b/BimAI.UI.Shared/Services/GoogleAuthConfig.cs
similarity index 78%
rename from Bimix.UI.Shared/Services/GoogleAuthConfig.cs
rename to BimAI.UI.Shared/Services/GoogleAuthConfig.cs
index 94e258b..07ab92a 100644
--- a/Bimix.UI.Shared/Services/GoogleAuthConfig.cs
+++ b/BimAI.UI.Shared/Services/GoogleAuthConfig.cs
@@ -1,4 +1,4 @@
-namespace Bimix.UI.Shared.Services;
+namespace BimAI.UI.Shared.Services;
// TODO it's a good place for this file?
public class GoogleAuthConfig
diff --git a/Bimix.UI.Shared/Services/NoOpScannerService.cs b/BimAI.UI.Shared/Services/NoOpScannerService.cs
similarity index 80%
rename from Bimix.UI.Shared/Services/NoOpScannerService.cs
rename to BimAI.UI.Shared/Services/NoOpScannerService.cs
index 5467890..84e8505 100644
--- a/Bimix.UI.Shared/Services/NoOpScannerService.cs
+++ b/BimAI.UI.Shared/Services/NoOpScannerService.cs
@@ -1,4 +1,6 @@
-using Bimix.UI.Shared.Interfaces;
+using BimAI.UI.Shared.Interfaces;
+
+namespace BimAI.UI.Shared.Services;
public class NoOpScannerService : IScannerService
{
diff --git a/Bimix.UI.Shared/Services/ProductService.cs b/BimAI.UI.Shared/Services/ProductService.cs
similarity index 92%
rename from Bimix.UI.Shared/Services/ProductService.cs
rename to BimAI.UI.Shared/Services/ProductService.cs
index 0f8d2b2..6975d1d 100644
--- a/Bimix.UI.Shared/Services/ProductService.cs
+++ b/BimAI.UI.Shared/Services/ProductService.cs
@@ -1,9 +1,9 @@
using System.Text.Json;
-using Bimix.Application.DTOModels;
-using Bimix.Application.DTOModels.Common;
+using BimAI.Application.DTOModels;
+using BimAI.Application.DTOModels.Common;
using Microsoft.AspNetCore.WebUtilities;
-namespace Bimix.UI.Shared.Services;
+namespace BimAI.UI.Shared.Services;
public class ProductService(HttpClient httpClient)
{
diff --git a/Bimix.UI.Web/Components/_Imports.razor b/BimAI.UI.Shared/_Imports.razor
similarity index 69%
rename from Bimix.UI.Web/Components/_Imports.razor
rename to BimAI.UI.Shared/_Imports.razor
index 65684ed..1405344 100644
--- a/Bimix.UI.Web/Components/_Imports.razor
+++ b/BimAI.UI.Shared/_Imports.razor
@@ -6,8 +6,7 @@
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
-@using Bimix.UI.Web
-@using Bimix.UI.Web.Components
-@using Bimix.UI.Shared
-@using Bimix.UI.Shared.Components
-@using MudBlazor
\ No newline at end of file
+@using BimAI.UI.Shared
+@using MudBlazor@using BimAI.Application.DTOModels
+@using BimAI.Application.DTOModels.Common
+@using BimAI.UI.Shared.Components
diff --git a/Bimix.UI.Shared/wwwroot/images/login-background.jpg b/BimAI.UI.Shared/wwwroot/images/login-background.jpg
similarity index 100%
rename from Bimix.UI.Shared/wwwroot/images/login-background.jpg
rename to BimAI.UI.Shared/wwwroot/images/login-background.jpg
diff --git a/Bimix.UI.Shared/wwwroot/js/auth.js b/BimAI.UI.Shared/wwwroot/js/auth.js
similarity index 88%
rename from Bimix.UI.Shared/wwwroot/js/auth.js
rename to BimAI.UI.Shared/wwwroot/js/auth.js
index 5fb6860..babb6b8 100644
--- a/Bimix.UI.Shared/wwwroot/js/auth.js
+++ b/BimAI.UI.Shared/wwwroot/js/auth.js
@@ -28,7 +28,7 @@ async function handleAuthError(error, context = '') {
const errorMessage = error?.message || error?.type || error?.toString() || 'Unknown error';
const fullError = `${context}: ${errorMessage}`;
console.error('Google Auth Error:', { context, error, fullError });
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError', fullError);
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError', fullError);
}
async function fetchUserInfo(accessToken) {
@@ -39,7 +39,7 @@ async function fetchUserInfo(accessToken) {
if (!response.ok) {
const errorText = await response.text();
console.error('Failed to fetch user info:', errorText);
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
`Failed to fetch user info: HTTP ${response.status}`);
return null;
}
@@ -62,7 +62,7 @@ window.initGoogleSignIn = async function(clientId) {
try {
if (tokenResponse.error) {
console.error('Token response error:', tokenResponse.error);
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
tokenResponse.error);
return;
}
@@ -70,7 +70,7 @@ window.initGoogleSignIn = async function(clientId) {
const userInfo = await fetchUserInfo(tokenResponse.access_token);
if (!userInfo) return;
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInSuccess',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInSuccess',
tokenResponse.access_token,
userInfo.name || '',
userInfo.email || '',
@@ -78,7 +78,7 @@ window.initGoogleSignIn = async function(clientId) {
);
} catch (error) {
console.error('Callback error:', error);
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
error.message || 'Unknown callback error');
} finally {
isSigningIn = false;
@@ -86,7 +86,7 @@ window.initGoogleSignIn = async function(clientId) {
},
error_callback: async (error) => {
console.error('OAuth flow error:', error);
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
error.type || 'OAuth flow error');
isSigningIn = false;
}
@@ -95,7 +95,7 @@ window.initGoogleSignIn = async function(clientId) {
return googleClient;
} catch (error) {
console.error('Initiaxcrun xctrace list deviceslization error:', error);
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
error.message || 'Failed to initialize Google Sign-In');
isSigningIn = false;
}
@@ -109,7 +109,7 @@ window.requestGoogleSignIn = async function() {
if (!googleClient) {
console.error('Google Sign-In not initialized');
- await DotNet.invokeMethodAsync('Bimix.UI.Shared', 'OnGoogleSignInError',
+ await DotNet.invokeMethodAsync('Bimai.UI.Shared', 'OnGoogleSignInError',
'Google Sign-In not initialized. Call initGoogleSignIn first.');
return;
}
diff --git a/Bimix.UI.Web/Bimix.UI.Web.csproj b/BimAI.UI.Web/BimAI.UI.Web.csproj
similarity index 84%
rename from Bimix.UI.Web/Bimix.UI.Web.csproj
rename to BimAI.UI.Web/BimAI.UI.Web.csproj
index 84cadf1..00e8e18 100644
--- a/Bimix.UI.Web/Bimix.UI.Web.csproj
+++ b/BimAI.UI.Web/BimAI.UI.Web.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/Bimix.UI.Web/Components/App.razor b/BimAI.UI.Web/Components/App.razor
similarity index 85%
rename from Bimix.UI.Web/Components/App.razor
rename to BimAI.UI.Web/Components/App.razor
index 2b804f5..dcf5692 100644
--- a/Bimix.UI.Web/Components/App.razor
+++ b/BimAI.UI.Web/Components/App.razor
@@ -8,13 +8,13 @@
-
+
-
+
@@ -30,7 +30,7 @@
-
+