Skip to content

Commit

Permalink
Merge pull request #14 from gpproton/revert-prerendering-attempts
Browse files Browse the repository at this point in the history
Revert prerendering attempts
  • Loading branch information
gpproton authored Apr 2, 2024
2 parents f019471 + e5d0487 commit 20e09b1
Show file tree
Hide file tree
Showing 550 changed files with 17,489 additions and 6,487 deletions.
10 changes: 8 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "8.0.0",
"version": "7.0.2",
"commands": [
"dotnet-ef"
]
Expand All @@ -19,6 +19,12 @@
"commands": [
"libman"
]
},
"docfx": {
"version": "2.75.3",
"commands": [
"docfx"
]
}
}
}
}
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and test libraries
on:
push:
branches:
- dev-*
- main

jobs:
build:
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-version: 8.x

- name: Restore Workloads
run: dotnet workload restore
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate docs with docfx

on:
push:
branches:
- main

permissions:
actions: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
publish-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x

- run: dotnet tool restore
- run: dotnet r docs

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'docs/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,5 @@ $RECYCLE.BIN/
static-files
**/wwwroot/lib
secret.json
published
published
_site
8 changes: 0 additions & 8 deletions .hintrc

This file was deleted.

7 changes: 0 additions & 7 deletions Common.props

This file was deleted.

7 changes: 7 additions & 0 deletions Common/Base/BaseEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.ComponentModel.DataAnnotations;

namespace CashClaim.Common.Base;

public abstract class BaseEntity : IBaseEntity {
[Key, Required] public Guid Id { get; set; }
}
7 changes: 7 additions & 0 deletions Common/Base/BaseResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace CashClaim.Common.Base;

public abstract class BaseResponse {
public Guid? Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? ModifiedAt { get; set; }
}
5 changes: 5 additions & 0 deletions Common/Base/IBaseEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace CashClaim.Common.Base;

public interface IBaseEntity {
public Guid Id { get; set; }
}
8 changes: 8 additions & 0 deletions Common/Base/ITimeEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace CashClaim.Common.Base;

public class ITimedEntity : IBaseEntity {
public Guid Id { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? ModifiedAt { get; set; }
public DateTime? DeletedAt { get; set; }
}
7 changes: 7 additions & 0 deletions Common/Base/TimedEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace CashClaim.Common.Base;

public abstract class TimedEntity : ITimedEntity {
new public DateTime CreatedAt { get; set; }
new public DateTime? ModifiedAt { get; set; }
new public DateTime? DeletedAt { get; set; }
}
8 changes: 8 additions & 0 deletions Common/CashClaim.Common.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
<PackageReference Include="Nextended.Core" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions Common/Dtos/AuthResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace CashClaim.Common.Dtos;

public class AuthResponse {
public bool Confirmed { get; set; }
public DateTime? ExpiryTimeStamp { get; set; }
public int ExpiresIn { get; set; }
public string? Token { get; set; }
public string Message { get; set; } = string.Empty;
public string UserName { get; set; } = string.Empty;
public string Role { get; set; } = string.Empty;
public UserResponse? Data { get; set; }
}
13 changes: 13 additions & 0 deletions Common/Dtos/BankAccountResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class BankAccountResponse : BaseResponse {
public string FullName { get; set; } = string.Empty;
public BankResponse? Bank { get; set; }
public Guid? BankId { get; set; }
public UserResponse? Owner { get; set; }
public Guid? OwnerId { get; set; }
public string Number { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
}
10 changes: 10 additions & 0 deletions Common/Dtos/BankResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class BankResponse : BaseResponse {
public string Name { get; set; } = string.Empty;
public string SwiftCode { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public bool Active { get; set; }
}
12 changes: 12 additions & 0 deletions Common/Dtos/CategoryResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class CategoryResponse : BaseResponse {
public string Name { get; set; } = string.Empty;
public CompanyResponse? Company { get; set; }
public Guid? CompanyId { get; set; }
public string Description { get; set; } = string.Empty;
public bool Active { get; set; }
public string Icon { get; set; } = string.Empty;
}
26 changes: 26 additions & 0 deletions Common/Dtos/ClaimResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using CashClaim.Common.Base;
using CashClaim.Common.Enums;

namespace CashClaim.Common.Dtos;

public class ClaimResponse : BaseResponse {
public string Description { get; set; } = string.Empty;
public string Notes { get; set; } = string.Empty;
public decimal Amount { get; set; } = 100;
public ClaimPriority Priority { get; set; } = ClaimPriority.Normal;
public CategoryResponse? Category { get; set; }
public Guid? CategoryId { get; set; }
public CompanyResponse? Company { get; set; }
public Guid? CompanyId { get; set; }
public CurrencyResponse? Currency { get; set; }
public Guid? CurrencyId { get; set; }
public ClaimStatus Status { get; set; } = ClaimStatus.Pending;
public UserResponse? Owner { get; set; }
public UserResponse? ReviewedBy { get; set; }
public DateTime? ReviewedAt { get; set; }
public UserResponse? ConfirmedBy { get; set; }
public DateTime? ConfirmedAt { get; set; }
public UserResponse? ApprovedBy { get; set; }
public DateTime? ApprovedAt { get; set; }
public ICollection<FileResponse> Files { get; set; } = default!;
}
19 changes: 19 additions & 0 deletions Common/Dtos/ClaimStateResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using CashClaim.Common.Base;
using CashClaim.Common.Enums;

namespace CashClaim.Common.Dtos;

public class ClaimStateResponse : BaseResponse {
public string? Description { get; set; }
public string? Notes { get; set; }
public string? Currency { get; set; } = "$";
public decimal Amount { get; set; }
public string? Category { get; set; }
public ClaimStatus Status { get; set; }
public string? Owner { get; set; }
public Guid? OwnerId { get; set; }
public bool Approved { get; set; }
public bool Completed { get; set; }

public bool Payed { get; set; }
}
10 changes: 10 additions & 0 deletions Common/Dtos/CommentResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class CommentResponse : BaseResponse {
public ClaimResponse? Claim { get; set; }
public PaymentResponse? Payment { get; set; }
public UserResponse? Owner { get; set; }
public string Content { get; set; } = string.Empty;
}
12 changes: 12 additions & 0 deletions Common/Dtos/CompanyResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class CompanyResponse : BaseResponse {
public string ShortName { get; set; } = string.Empty;
public string FullName { get; set; } = string.Empty;
public string AdminEmail { get; set; } = string.Empty;
public UserResponse? Manager { get; set; }
public Guid? ManagerId { get; set; }
public bool Active { get; set; }
}
13 changes: 13 additions & 0 deletions Common/Dtos/CurrencyResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class CurrencyResponse : BaseResponse {
public string Name { get; set; } = string.Empty;

public string Symbol { get; set; } = string.Empty;
public string Code { get; set; } = string.Empty;
public decimal Rate { get; set; }
public string Description { get; set; } = string.Empty;
public bool Active { get; set; }
}
9 changes: 9 additions & 0 deletions Common/Dtos/DomainResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class DomainResponse : BaseResponse {
public string Address { get; set; } = string.Empty;
public bool Active { get; set; }
public string Description { get; set; } = string.Empty;
}
11 changes: 11 additions & 0 deletions Common/Dtos/EventResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using CashClaim.Common.Base;
using CashClaim.Common.Enums;

namespace CashClaim.Common.Dtos;

public class EventResponse : BaseResponse {
public EventType Type { get; set; } = EventType.Claim;
public ClaimResponse? Claim { get; set; }
public PaymentResponse? Payment { get; set; }
public string Description { get; set; } = string.Empty;
}
10 changes: 10 additions & 0 deletions Common/Dtos/FileResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class FileResponse : BaseResponse {
public string Name { get; set; } = string.Empty;
public string Path { get; set; } = string.Empty;
public string Extension { get; set; } = string.Empty;
public UserResponse? Owner { get; set; }
}
12 changes: 12 additions & 0 deletions Common/Dtos/NotificationResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using CashClaim.Common.Base;
using CashClaim.Common.Enums;

namespace CashClaim.Common.Dtos;

public class NotificationResponse : BaseResponse {
public UserResponse? Owner { get; set; }
public Guid? OwnerId { get; set; }
public bool Disabled { get; set; }
public ICollection<NotificationChannels> Channels { get; set; } = default!;
public ICollection<EventType> Types { get; set; } = default!;
}
20 changes: 20 additions & 0 deletions Common/Dtos/PaymentResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class PaymentResponse : BaseResponse {
public string Description { get; set; } = string.Empty;
public decimal Amount { get; set; }
public string Notes { get; set; } = string.Empty;
public UserResponse? Owner { get; set; }
public Guid? OwnerId { get; set; }
public CompanyResponse? Company { get; set; }
public Guid? CompanyId { get; set; }
public UserResponse? CreatedBy { get; set; }
public Guid? CreatedById { get; set; }
public DateTime? ConfirmedAt { get; set; }
public bool Confirmed => ConfirmedAt != null;
public int Count { get; set; }
public ICollection<ClaimResponse> Claims { get; set; } = default!;
public ICollection<FileResponse> Files { get; set; } = default!;
}
15 changes: 15 additions & 0 deletions Common/Dtos/PaymentStateResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using CashClaim.Common.Base;

namespace CashClaim.Common.Dtos;

public class PaymentStateResponse : BaseResponse {
public string Description { get; set; } = string.Empty;
public decimal Amount { get; set; }
public string Notes { get; set; } = string.Empty;
public string? Owner { get; set; }
public Guid? OwnerId { get; set; }
public string? CreatedBy { get; set; }
public DateTime? ConfirmedAt { get; set; }
public bool Confirmed => ConfirmedAt != null;
public int Count { get; set; }
}
Loading

0 comments on commit 20e09b1

Please sign in to comment.