Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to integration from master #249

Merged
merged 52 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d442792
Merge pull request #207 from DiyorMarket/integration
Mirazyzz Dec 23, 2024
83d1d5a
Delete .github/workflows directory
Mirazyzz Dec 29, 2024
401677e
Add or update the Azure App Service build and deployment workflow config
Mirazyzz Dec 29, 2024
e7ebf87
Update and rename master_atp-garaj.yml to Azure-Deploy.yml
Mirazyzz Dec 29, 2024
f17a5f1
setup Serilog
Mirazyzz Dec 29, 2024
838a6cb
refactor dashboard models
Mirazyzz Dec 31, 2024
52dfa77
update configuration constants
Mirazyzz Dec 31, 2024
d87a0e8
update DI registration
Mirazyzz Dec 31, 2024
3b56d25
implement AuthStore
Mirazyzz Dec 31, 2024
114513c
improve API client implementation
Mirazyzz Dec 31, 2024
e2e16bd
refactor exception filter
Mirazyzz Dec 31, 2024
ef988aa
add auth flow models
Mirazyzz Dec 31, 2024
f10f48f
Update CheckDrive.Web.csproj
Mirazyzz Dec 31, 2024
fb05cfa
remove redundant controllers
Mirazyzz Jan 1, 2025
7e13e45
remove accounts views
Mirazyzz Jan 1, 2025
2c2942c
implement employee views
Mirazyzz Jan 1, 2025
bac76db
update clients side scripts and layouts
Mirazyzz Jan 1, 2025
cae0d4e
replace dashboard page
Mirazyzz Jan 1, 2025
23c593a
update check point page
Mirazyzz Jan 1, 2025
070c1a8
implement employee store
Mirazyzz Jan 1, 2025
e193cb0
Update CheckDrive.Web.csproj
Mirazyzz Jan 1, 2025
36a8152
update models & mappings
Mirazyzz Jan 1, 2025
e17cfd5
update stores and remove old implementation
Mirazyzz Jan 1, 2025
49b18c8
update car model
Mirazyzz Jan 1, 2025
853af83
remove unnecessary controllers & update auth flow
Mirazyzz Jan 1, 2025
bd170f4
Update appsettings.Development.json
Mirazyzz Jan 1, 2025
ac49eab
move position enum to models
Mirazyzz Jan 1, 2025
2868429
update employee pdf export
Mirazyzz Jan 2, 2025
915cb9b
update download button
Mirazyzz Jan 5, 2025
c0106f3
update button width
Mirazyzz Jan 5, 2025
ed6232b
add authorization handler for http client
Mirazyzz Jan 27, 2025
72bc79b
Debts
jamshidbek-choriyev Jan 30, 2025
4bcf2cc
used primary constructor and removed unnecessary codes
Ramadan1011 Jan 30, 2025
83104a3
stores updated and renamed
Ramadan1011 Jan 30, 2025
4e402a5
added mapping that maps to request from viewmodel
Ramadan1011 Jan 30, 2025
b01fe0d
craeted requests and viewmodels for car and oilmark
Ramadan1011 Jan 30, 2025
6cb07f9
checkdriveapi used primary constructor
Ramadan1011 Jan 30, 2025
ea41f28
updated views of car and employee pages
Ramadan1011 Jan 30, 2025
3b47725
home/Dashboard stores and controller
Boburm1rzo Jan 30, 2025
e8be91a
DI
Boburm1rzo Jan 30, 2025
304e865
update AuthStore
Boburm1rzo Jan 30, 2025
31943b3
checkpoints store and Controller
Boburm1rzo Jan 30, 2025
97a1022
home index
Boburm1rzo Jan 30, 2025
5cbdc5b
fix , names
jamshidbek-choriyev Jan 31, 2025
480055c
fix FullName
jamshidbek-choriyev Jan 31, 2025
8534ea7
fix names
jamshidbek-choriyev Feb 1, 2025
47d1176
primary constructors and namespaces
Boburm1rzo Feb 2, 2025
9efbc72
Merge pull request #252 from DiyorMarket/CheckPoints
Mirazyzz Feb 2, 2025
6bd7e32
Merge branch 'master' into roma
Mirazyzz Feb 2, 2025
931e60e
Merge pull request #251 from DiyorMarket/roma
Mirazyzz Feb 2, 2025
7970b6c
Merge branch 'master' into Debts
Mirazyzz Feb 2, 2025
d6294fd
Merge pull request #250 from DiyorMarket/Debts
Mirazyzz Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,68 +1,67 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - CheckDriver

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.x'
include-prerelease: true

- name: Build with dotnet
run: dotnet build --configuration Release
working-directory: CheckDrive.Web

- name: dotnet publish
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
working-directory: CheckDrive.Web

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp

deploy:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E9AF348E5C5C43AA8D4DC6D5D7832550 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C81C36AF407F47E0841F8C513B2E4689 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_548C4B80BB1545B19DFB28DE2B816ED6 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'CheckDriver'
slot-name: 'Production'
package: .

# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - atp-garaj

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'

- name: Build with dotnet
run: dotnet build --configuration Release
working-directory: CheckDrive.Web

- name: dotnet publish
run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/CheckDrive.Web"
working-directory: CheckDrive.Web

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/CheckDrive.Web

deploy:
runs-on: windows-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_279F79A3A14745E19F51BFF7917E4B2D }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E60C40B70B324D0DB04BC5600FF11804 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D88C36E96A8740BB8F8121A45BF9CD0F }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'atp-garaj'
slot-name: 'Production'
package: .

31 changes: 0 additions & 31 deletions .github/workflows/dotnet.yml

This file was deleted.

22 changes: 9 additions & 13 deletions CheckDrive.Web/CheckDrive.Web/CheckDrive.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,14 @@
<None Remove="Controllers\**" />
<Content Remove="wwwroot\css\LogOutButtun.css" />
<_ContentIncludedByDefault Remove="appsettings.Production.json" />
<Compile Include="Controllers\AccountsController.cs" />
<Compile Include="Controllers\AuthController.cs" />
<Compile Include="Controllers\CarsController.cs" />
<Compile Include="Controllers\CheckPointController.cs" />
<Compile Include="Controllers\DashboardController.cs" />
<Compile Include="Controllers\DebtsController.cs" />
<Compile Include="Controllers\DispatcherReviewsController.cs" />
<Compile Include="Controllers\DoctorReviewsController.cs" />
<Compile Include="Controllers\DoctorsController.cs" />
<Compile Include="Controllers\DriversController.cs" />
<Compile Include="Controllers\EmployeesController.cs" />
<Compile Include="Controllers\ErrorController.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Controllers\OilMarksController.cs" />
<Compile Include="Controllers\RolesController.cs" />
<Compile Include="Controllers\MechanicAcceptancesController.cs" />
<Compile Include="Controllers\MechanicHandoversController.cs" />
<Compile Include="Controllers\MechanicsController.cs" />
<Compile Include="Controllers\OperatorReviewsController.cs" />
<Compile Include="Controllers\OperatorsController.cs" />
<Compile Include="Controllers\TechniciansController.cs" />
<None Include="wwwroot\css\LogOutButtun.css" />
<None Include="wwwroot\font-awesome\js\all.js" />
<None Include="wwwroot\font-awesome\js\all.min.js" />
Expand All @@ -56,8 +45,15 @@
<None Include="wwwroot\font-awesome\webfonts\fa-v4compatibility.woff2" />
<PackageReference Include="CheckDrive.ApiContracts" Version="1.4.9" />
<PackageReference Include="CheckDrive.DTOs" Version="1.0.0" />
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.22.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.3" />
<PackageReference Include="Serilog" Version="4.2.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="4.0.1-dev-00046" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="27.1.50" />
<PackageReference Include="Syncfusion.Licensing" Version="27.1.50" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.6.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;

namespace CheckDrive.Web.Configurations;

public sealed class CheckDriveApiSettings
{
public const string SectionName = "CheckDriveApi";

[Required(ErrorMessage = "API Base address is required.")]
public required string BaseAddress { get; init; }

[Required(ErrorMessage = "Timeout seconds required.")]
public int TimeoutSeconds { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace CheckDrive.Web.Constants;

public static class ConfigurationConstants
{
public const string JwtToken = "JwtToken";
public const string SynfusionLicenseKey = nameof(SynfusionLicenseKey);
public const string AuthorizationCookieHeader = "AuthToken";
}
8 changes: 0 additions & 8 deletions CheckDrive.Web/CheckDrive.Web/Constants/Configurations.cs

This file was deleted.

8 changes: 8 additions & 0 deletions CheckDrive.Web/CheckDrive.Web/Constants/HeaderConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace CheckDrive.Web.Constants;

public static class HeaderConstants
{
public const string AccessTokenHeader = "access_token";
public const string RefreshTokenHeader = "refresh_token";
public const string AuthenticationSchema = "Bearer";
}
Loading
Loading