-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add webvisor * remove ya metrica in dev env * disable calc button if there is only one person * remove unused code * add tests * #6 fix backend error * fix #6 * #10 add healthcheck * add production config, please close #10 * fix healtcheck * add serilog and sentry, #9, #8; webvison 2; * update release version for Sentry * update manifest.json for mobile version * close #9; close #8; * add keywords for yandex search * Bug/case (#14) * catch corner case * ignore IDE files for Client app * Add tests for #12. Close #12 * remove unused code * remove unused file. Close #12 * Remove autocomplete, change Input to TextField * Update release version
- Loading branch information
1 parent
93b9d29
commit 44ba329
Showing
8 changed files
with
140 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# IDE files | ||
.idea/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import * as React from 'react'; | ||
import { mount, ReactWrapper } from 'enzyme'; | ||
import { Outcomes } from '../components/outcomes/Outcomes'; | ||
|
||
describe('<Outcomes />', () => { | ||
let component: ReactWrapper; | ||
|
||
afterEach(() => { | ||
component.unmount(); | ||
}); | ||
|
||
it('"Я" should be transform to "Мне"', done => { | ||
// Arrange | ||
const transfers: any[] = [ | ||
{ from: 'Алиса', to: 'Я', roubles: 1 } | ||
]; | ||
|
||
// Act | ||
component = mount(<Outcomes transfers={transfers}/>); | ||
|
||
// Assert | ||
const toCell = component.find('#to1').hostNodes(); | ||
expect(toCell.text()).toEqual('Мне'); | ||
done(); | ||
}); | ||
|
||
it('"я" should be transform to "яне"', done => { | ||
// Arrange | ||
const transfers: any[] = [ | ||
{ from: 'Алиса', to: 'я', roubles: 1 } | ||
]; | ||
|
||
// Act | ||
component = mount(<Outcomes transfers={transfers}/>); | ||
|
||
// Assert | ||
const toCell = component.find('#to1').hostNodes(); | ||
expect(toCell.text()).toEqual('мне'); | ||
done(); | ||
}); | ||
|
||
it('"Боб" should be transform to "Бобу"', done => { | ||
// Arrange | ||
const transfers: any[] = [ | ||
{ from: 'Алиса', to: 'Боб', roubles: 1 } | ||
]; | ||
|
||
// Act | ||
component = mount(<Outcomes transfers={transfers}/>); | ||
|
||
// Assert | ||
const toCell = component.find('#to1').hostNodes(); | ||
expect(toCell.text()).toEqual('Бобу'); | ||
done(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
using System; | ||
using System.IO; | ||
using System.Net; | ||
using Microsoft.AspNetCore; | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Sentry; | ||
using Serilog; | ||
using Serilog.Events; | ||
using Serilog.Formatting.Compact; | ||
|
||
namespace Izzy.Web | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
CreateWebHostBuilder(args).Build().Run(); | ||
} | ||
|
||
private static IWebHostBuilder CreateWebHostBuilder(string[] args) => | ||
WebHost.CreateDefaultBuilder(args) | ||
.UseStartup<Startup>() | ||
.UseUrls("http://0.0.0.0:5000") | ||
.UseSerilog((h, c) => | ||
c.Enrich.FromLogContext() | ||
.MinimumLevel.Warning() | ||
.MinimumLevel.Override("Izzy.Web", LogEventLevel.Information) | ||
.WriteTo.ColoredConsole() | ||
.WriteTo.Sentry(s => | ||
{ | ||
s.MinimumBreadcrumbLevel = LogEventLevel.Debug; | ||
s.MinimumEventLevel = LogEventLevel.Error; | ||
}) | ||
) | ||
.UseSentry(options => | ||
{ | ||
options.Release = "1.0.5"; | ||
options.Environment = CurrentEnv(); | ||
options.MaxQueueItems = 100; | ||
options.ShutdownTimeout = TimeSpan.FromSeconds(5); | ||
options.DecompressionMethods = DecompressionMethods.None; | ||
}) | ||
; | ||
|
||
private static String CurrentEnv() | ||
{ | ||
return Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"; | ||
} | ||
} | ||
} | ||
using System; | ||
using System.IO; | ||
using System.Net; | ||
using Microsoft.AspNetCore; | ||
using Microsoft.AspNetCore.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Sentry; | ||
using Serilog; | ||
using Serilog.Events; | ||
using Serilog.Formatting.Compact; | ||
|
||
namespace Izzy.Web | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
CreateWebHostBuilder(args).Build().Run(); | ||
} | ||
|
||
private static IWebHostBuilder CreateWebHostBuilder(string[] args) => | ||
WebHost.CreateDefaultBuilder(args) | ||
.UseStartup<Startup>() | ||
.UseUrls("http://0.0.0.0:5000") | ||
.UseSerilog((h, c) => | ||
c.Enrich.FromLogContext() | ||
.MinimumLevel.Warning() | ||
.MinimumLevel.Override("Izzy.Web", LogEventLevel.Information) | ||
.WriteTo.ColoredConsole() | ||
.WriteTo.Sentry(s => | ||
{ | ||
s.MinimumBreadcrumbLevel = LogEventLevel.Debug; | ||
s.MinimumEventLevel = LogEventLevel.Error; | ||
}) | ||
) | ||
.UseSentry(options => | ||
{ | ||
options.Release = "1.0.6"; | ||
options.Environment = CurrentEnv(); | ||
options.MaxQueueItems = 100; | ||
options.ShutdownTimeout = TimeSpan.FromSeconds(5); | ||
options.DecompressionMethods = DecompressionMethods.None; | ||
}) | ||
; | ||
|
||
private static String CurrentEnv() | ||
{ | ||
return Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.