Skip to content

Commit be00be2

Browse files
committed
Implementing some part of the website
1 parent 0616bdf commit be00be2

File tree

130 files changed

+15986
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+15986
-19
lines changed

DristorApp/Controllers/OrderStatusUpdatesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public async Task<ActionResult<OrderStatusUpdate>> GetOrderStatusUpdate(int id)
5252
// PUT: api/OrderStatusUpdates/3
5353
// To protect from overposting attacks, see https://go.microsoft.com/fwlink/?linkid=2123754
5454
[HttpPut("{id}")]
55-
public async Task<IActionResult> PutOrderStatusUpdate(int id, OrderStatusUpdateUpdateDTO orderStatusUpdateUDTO)
55+
public async Task<IActionResult> PutOrderStatusUpdate(int id, OrderStatusUpdateCreateDTO orderStatusUpdateUDTO)
5656
{
5757
if (id != orderStatusUpdateUDTO.Id)
5858
{

DristorApp/Controllers/UsersController.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ public class UsersController : ControllerBase
1717
private readonly IRoleRepository _rolesRepository;
1818
private readonly IRepository<Address, int> _addressRepository;
1919

20-
public UsersController(IUserRepository usersRepository, IRoleRepository rolesRepository, IRepository<Address, int> addressRepository)
20+
public UsersController(
21+
IUserRepository usersRepository,
22+
IRoleRepository rolesRepository,
23+
IRepository<Address, int> addressRepository
24+
)
2125
{
2226
_usersRepository = usersRepository;
2327
_rolesRepository = rolesRepository;

DristorApp/Data/DTOs/OrderStatusUpdate/OrderStatusUpdateUpdateDTO.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

DristorApp/Data/db/AppDbContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ protected override void OnModelCreating(ModelBuilder builder)
7878
// Add-Migration EditingUserMode3
7979
// Add-Migration EditingUserMode4
8080
// Add-Migration EditingOrderItem
81+
// Add-Migration AddNewOrderStatusUpdateCreate
8182

8283
// Add-Migration testingDocker
8384

DristorApp/DristorApp.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
<UserSecretsId>1e5de407-1c51-4956-90c8-5b2403b798f1</UserSecretsId>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<Compile Remove="Data\DTOs\NewFolder\**" />
12+
<Content Remove="Data\DTOs\NewFolder\**" />
13+
<EmbeddedResource Remove="Data\DTOs\NewFolder\**" />
14+
<None Remove="Data\DTOs\NewFolder\**" />
15+
</ItemGroup>
16+
1017
<ItemGroup>
1118
<None Remove="Data\" />
1219
<None Remove="Data\Models\" />
@@ -45,7 +52,6 @@
4552
<None Remove="UserManagementService\" />
4653
</ItemGroup>
4754
<ItemGroup>
48-
<Folder Include="Data\DTOs\NewFolder\" />
4955
<Folder Include="Data\Models\" />
5056
<Folder Include="Data\DTOs\Address\" />
5157
<Folder Include="Data\DTOs\CartItem\" />

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# DristorApp
1+
# DristorApp:
2+
- A simple API that has CRUD functions

frontend/.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

frontend/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

frontend/.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
16+
# IDEs and editors
17+
/.idea
18+
.project
19+
.classpath
20+
.c9/
21+
*.launch
22+
.settings/
23+
*.sublime-workspace
24+
25+
# IDE - VSCode
26+
.vscode/*
27+
!.vscode/settings.json
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
.history/*
32+
33+
# IDE - WebStorm
34+
.idea/
35+
36+
# misc
37+
/.angular/cache
38+
/.sass-cache
39+
/connect.lock
40+
/coverage
41+
/libpeerconnection.log
42+
npm-debug.log
43+
yarn-error.log
44+
testem.log
45+
/typings
46+
47+
# System Files
48+
.DS_Store
49+
Thumbs.db

frontend/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# DristorApp
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.0.3.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8+
9+
## Build
10+
11+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
12+
13+
## Further help
14+
15+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

0 commit comments

Comments
 (0)