Skip to content

Commit

Permalink
merged from -standard. includes ng15.2.0 update, nuget package update…
Browse files Browse the repository at this point in the history
…s, lint cleanups
  • Loading branch information
emonney committed Mar 23, 2023
1 parent b3ae495 commit 3758b96
Show file tree
Hide file tree
Showing 67 changed files with 5,626 additions and 4,965 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ obj/
Obj/
log/
Log/
keys/
Keys/

# Visual Studio 2015 cache/options directory
.vs/
Expand Down Expand Up @@ -263,5 +265,4 @@ __pycache__/
*.pyc
# Others
*.licenseheader
Thumbs.db
tempkey.jwk
Thumbs.db
2 changes: 2 additions & 0 deletions DAL/Core/AccountManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public async Task<ApplicationRole> GetRoleLoadRelatedAsync(string roleName)
var role = await _context.Roles
.Include(r => r.Claims)
.Include(r => r.Users)
.AsSingleQuery()
.Where(r => r.Name == roleName)
.SingleOrDefaultAsync();

Expand All @@ -274,6 +275,7 @@ public async Task<List<ApplicationRole>> GetRolesLoadRelatedAsync(int page, int
IQueryable<ApplicationRole> rolesQuery = _context.Roles
.Include(r => r.Claims)
.Include(r => r.Users)
.AsSingleQuery()
.OrderBy(r => r.Name);

if (page != -1)
Expand Down
8 changes: 4 additions & 4 deletions DAL/DAL.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>6.0.0</Version>
<TargetFramework>net7.0</TargetFramework>
<Version>7.0.1</Version>
<Description>Data Access Layer for the Quick Application template</Description>
<Copyright>Copyright © 2022 www.ebenmonney.com</Copyright>
<Copyright>Copyright © 2023 www.ebenmonney.com</Copyright>
<PackageProjectUrl>https://www.ebenmonney.com/quickapp</PackageProjectUrl>
<Company>EBENMONNEY</Company>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.4" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions DAL/Repositories/CustomerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public IEnumerable<Customer> GetAllCustomersData()
return _appContext.Customers
.Include(c => c.Orders).ThenInclude(o => o.OrderDetails).ThenInclude(d => d.Product)
.Include(c => c.Orders).ThenInclude(o => o.Cashier)
.AsSingleQuery()
.OrderBy(c => c.Name)
.ToList();
}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Ebenezer Monney
Copyright (c) 2023 Ebenezer Monney

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion QuickApp.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32602.215
VisualStudioVersion = 17.4.33110.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuickApp", "QuickApp\QuickApp.csproj", "{8FD3A1CC-28FA-4298-A847-21F907B566F2}"
EndProject
Expand Down
7 changes: 3 additions & 4 deletions QuickApp/Authorization/ProfileService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using IdentityModel;
using IdentityServer4.Extensions;
using IdentityServer4.Models;
using IdentityServer4.Services;
using Duende.IdentityServer.Services;
using Duende.IdentityServer.Models;
using Duende.IdentityServer.Extensions;
using Microsoft.AspNetCore.Identity;
using DAL.Core;
using DAL.Models;
Expand Down
16 changes: 0 additions & 16 deletions QuickApp/ClientApp/.browserslistrc

This file was deleted.

3 changes: 0 additions & 3 deletions QuickApp/ClientApp/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.{razor,cshtml}]
charset = utf-8-bom
2 changes: 1 addition & 1 deletion QuickApp/ClientApp/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# QuickApp

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.7.
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.2.2.

## Development server

Expand Down
15 changes: 7 additions & 8 deletions QuickApp/ClientApp/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -144,10 +146,11 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"src/assets"
Expand Down Expand Up @@ -214,9 +217,5 @@
}
}
}
},
"defaultProject": "quickapp",
"cli": {
"analytics": false
}
}
51 changes: 0 additions & 51 deletions QuickApp/ClientApp/karma.conf.js

This file was deleted.

Loading

0 comments on commit 3758b96

Please sign in to comment.