Skip to content

Commit

Permalink
React App Added (ivanpaulovich#243)
Browse files Browse the repository at this point in the history
* Reactjs App
  • Loading branch information
ivanpaulovich authored Oct 5, 2020
1 parent c32576b commit 7378078
Show file tree
Hide file tree
Showing 28 changed files with 1,207 additions and 251 deletions.
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "https://localhost:5002",
"webRoot": "${workspaceFolder}/wallet-spa"
}
]
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.7.0] - 2020-10-05

### Changed

- Added ReactJs front end.

## [3.6.0] - 2020-09-26

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public async Task<IAccount> GetAccount(AccountId accountId)
{
await this.LoadTransactions(findAccount)
.ConfigureAwait(false);

return account;
}

return AccountNull.Instance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ namespace WebApi.UseCases.V1.Accounts.GetAccount
using Domain;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.FeatureManagement.Mvc;
using Microsoft.AspNetCore.Mvc;
using Microsoft.FeatureManagement.Mvc;
using Modules.Common;
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using WebApi.Modules.Common.FeatureFlags;

using System.Threading.Tasks;
using WebApi.Modules.Common.FeatureFlags;

/// <summary>
/// Accounts
/// <see href="https://github.com/ivanpaulovich/clean-architecture-manga/wiki/Design-Patterns#controller">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ namespace WebApi.UseCases.V1.Accounts.OpenAccount
using Domain;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.FeatureManagement.Mvc;
using Microsoft.AspNetCore.Mvc;
using Microsoft.FeatureManagement.Mvc;
using Modules.Common;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using ViewModels;
using WebApi.Modules.Common.FeatureFlags;

using ViewModels;
using WebApi.Modules.Common.FeatureFlags;

/// <summary>
/// Customers
/// <see href="https://github.com/ivanpaulovich/clean-architecture-manga/wiki/Design-Patterns#controller">
Expand Down
7 changes: 7 additions & 0 deletions accounts-api/src/WebApi/ViewModels/AccountModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public AccountModel(Account account)
this.CurrentBalance = account
.GetCurrentBalance()
.Amount;
this.Currency = account.Currency.Code;
}

/// <summary>
Expand All @@ -31,5 +32,11 @@ public AccountModel(Account account)
/// </summary>
[Required]
public decimal CurrentBalance { get; }

/// <summary>
/// Gets current Balance.
/// </summary>
[Required]
public string Currency { get; }
}
}
Loading

0 comments on commit 7378078

Please sign in to comment.