Skip to content
Permalink
Browse files

Changed design to our gray/blue color scheme (#65)

* Done with the new design
* Updated ASP.NET Core
  • Loading branch information...
jgauffin committed Mar 30, 2019
1 parent 8a3a531 commit 57733aa44197234b2dd3a32fc5ac6bea0878f638
Showing with 33,380 additions and 217 deletions.
  1. +1 −1 src/Server/Coderr.Server.Api.Client/Coderr.Server.Api.Client.csproj
  2. +1 −1 src/Server/Coderr.Server.Api/Coderr.Server.Api.csproj
  3. +1 −1 src/Server/Coderr.Server.App/Coderr.Server.App.csproj
  4. +3 −1 src/Server/Coderr.Server.Domain/Core/Incidents/Events/IncidentCreated.cs
  5. +1 −1 src/Server/Coderr.Server.Infrastructure/Coderr.Server.Infrastructure.csproj
  6. +1 −1 src/Server/Coderr.Server.ReportAnalyzer/Coderr.Server.ReportAnalyzer.csproj
  7. +14 −8 src/Server/Coderr.Server.ReportAnalyzer/ErrorOrigins/Handlers/StorePositionFromNewReport.cs
  8. +1 −1 src/Server/Coderr.Server.ReportAnalyzer/Inbound/Handlers/Reports/ReportAnalyzer.cs
  9. +1 −1 src/Server/Coderr.Server.SqlServer.Tests/Coderr.Server.SqlServer.Tests.csproj
  10. +1 −1 src/Server/Coderr.Server.SqlServer/Coderr.Server.SqlServer.csproj
  11. +1 −1 src/Server/Coderr.Server.SqlServer/Core/Applications/ApplicationRepository.cs
  12. +43 −40 src/Server/Coderr.Server.Web/ClientApp/boot.ts
  13. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/analyze/analyze.ts
  14. +5 −5 src/Server/Coderr.Server.Web/ClientApp/components/analyze/incidents/incident.vue.html
  15. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/analyze/incidents/report.vue.html
  16. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/discover/discover.ts
  17. +14 −1 src/Server/Coderr.Server.Web/ClientApp/components/discover/home/home.ts
  18. +16 −4 src/Server/Coderr.Server.Web/ClientApp/components/discover/home/home.vue.html
  19. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/discover/incidents/incident.vue.html
  20. +3 −2 src/Server/Coderr.Server.Web/ClientApp/components/discover/incidents/search.ts
  21. +31 −27 src/Server/Coderr.Server.Web/ClientApp/components/discover/incidents/search.vue.html
  22. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/home/app.ts
  23. +2 −2 src/Server/Coderr.Server.Web/ClientApp/components/home/home.vue.html
  24. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/application/app.ts
  25. +3 −0 src/Server/Coderr.Server.Web/ClientApp/components/manage/application/security/security.ts
  26. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/application/settings/settings.vue.html
  27. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/apikeys/apikey-create.vue.html
  28. +2 −2 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/apikeys/apikey-edit.vue.html
  29. +6 −3 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/apikeys/apikeys.vue.html
  30. +5 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/home/home.vue.html
  31. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/manage.ts
  32. +1 −1 src/Server/Coderr.Server.Web/ClientApp/components/manage/system/menu.vue.html
  33. +2 −2 src/Server/Coderr.Server.Web/Coderr.Server.Web.csproj
  34. +1 −1 src/Server/Coderr.Server.Web/Controllers/ReportReceiverController.cs
  35. +79 −0 src/Server/Coderr.Server.Web/GulpFile.js
  36. +9 −1 src/Server/Coderr.Server.Web/Startup.cs
  37. +9 −11 src/Server/Coderr.Server.Web/Views/Shared/_Layout.NotAuthed.cshtml
  38. +3 −3 src/Server/Coderr.Server.Web/Views/Shared/_Layout.cshtml
  39. +1 −1 src/Server/Coderr.Server.Web/appsettings.json
  40. +9,466 −0 src/Server/Coderr.Server.Web/npm-shrinkwrap.json
  41. +10,152 −0 src/Server/Coderr.Server.Web/package-lock.json
  42. +28 −25 src/Server/Coderr.Server.Web/package.json
  43. +0 −1 src/Server/Coderr.Server.Web/tsconfig.json
  44. +18 −6 src/Server/Coderr.Server.Web/webpack.config.js
  45. +4 −1 src/Server/Coderr.Server.Web/webpack.config.vendor.js
  46. +4,616 −0 src/Server/Coderr.Server.Web/wwwroot/dist/css/bootstrap-coderr.css
  47. +1 −0 src/Server/Coderr.Server.Web/wwwroot/dist/css/bundle.min.css
  48. +53 −0 src/Server/Coderr.Server.Web/wwwroot/dist/css/common.css
  49. +677 −0 src/Server/Coderr.Server.Web/wwwroot/dist/css/site.css
  50. +6,902 −0 src/Server/Coderr.Server.Web/wwwroot/dist/main.js
  51. +1 −0 src/Server/Coderr.Server.Web/wwwroot/dist/main.js.map
  52. +1 −1 src/Server/Coderr.Server.Web/wwwroot/dist/site.css
  53. +1 −1 src/Server/Coderr.Server.Web/wwwroot/dist/vendor-manifest.json
  54. +4 −4 src/Server/Coderr.Server.Web/wwwroot/dist/vendor.css
  55. +249 −39 src/Server/Coderr.Server.Web/wwwroot/dist/vendor.js
  56. BIN src/Server/Coderr.Server.Web/wwwroot/images/admin/change-app.png
  57. BIN src/Server/Coderr.Server.Web/wwwroot/images/coderr_white.png
  58. BIN src/Server/Coderr.Server.Web/wwwroot/images/coderr_white2.png
  59. BIN src/Server/Coderr.Server.Web/wwwroot/images/logo-w.png
  60. BIN src/Server/Coderr.Server.Web/wwwroot/images/logo.png
  61. +45 −0 src/Server/Coderr.Server.Web/wwwroot/scss/bootstrap-coderr.scss
  62. +49 −0 src/Server/Coderr.Server.Web/wwwroot/scss/coderr-variables.scss
  63. +95 −0 src/Server/Coderr.Server.Web/wwwroot/scss/common.scss
  64. +738 −0 src/Server/Coderr.Server.Web/wwwroot/scss/site.scss
  65. +7 −5 src/Server/Coderr.Server.Web/wwwroot/site.webmanifest
  66. +3 −0 src/Server/package-lock.json
@@ -22,7 +22,7 @@
<AssemblyName>Coderr.Server.Api.Client</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="System.ComponentModel.Annotations" Version="4.4.1" />
</ItemGroup>
<ItemGroup>
@@ -25,7 +25,7 @@
<NoWarn>1701;1702;1705;1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net452'">
<Reference Include="System.Net.Http" />
@@ -21,7 +21,7 @@
<PackageReference Include="ColorCode" Version="1.0.1">
<NoWarn>NU1701</NoWarn>
</PackageReference>
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="Griffin.Framework" Version="2.0.1" />
<PackageReference Include="log4net" Version="2.0.8" />
<PackageReference Include="Markdig" Version="0.14.9" />
@@ -9,11 +9,13 @@ namespace Coderr.Server.Domain.Core.Incidents.Events
/// </summary>
public class IncidentCreated
{
public IncidentCreated(int incidentId, string incidentDescription, string exceptionTypeName)
public IncidentCreated(int applicationId, int incidentId, string incidentDescription, string exceptionTypeName)
{
if (incidentDescription == null) throw new ArgumentNullException(nameof(incidentDescription));
if (exceptionTypeName == null) throw new ArgumentNullException(nameof(exceptionTypeName));
if (incidentId <= 0) throw new ArgumentOutOfRangeException(nameof(incidentId));
if (applicationId <= 0) throw new ArgumentOutOfRangeException(nameof(applicationId));
ApplicationId = applicationId;
IncidentId = incidentId;

var pos = incidentDescription.IndexOfAny(new[] {'\r', '\n'});
@@ -5,7 +5,7 @@
<AssemblyName>Coderr.Server.Infrastructure</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="Griffin.Framework" Version="2.0.1" />
<PackageReference Include="log4net" Version="2.0.8" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Coderr.Client.NetStd" Version="1.1.3" />
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="DotNetCqs.DependencyInjection.Microsoft" Version="1.0.0" />
<PackageReference Include="DotNetCqs.Queues.AdoNet" Version="1.0.6" />
<PackageReference Include="Griffin.Framework" Version="2.0.1" />
@@ -49,14 +49,20 @@ public async Task HandleAsync(IMessageContext context, ReportAddedToIncident e)
if (string.IsNullOrEmpty(_originConfiguration.Value?.ApiKey))
return;

if (e.Report.RemoteAddress == "::1")
return;
if (e.Report.RemoteAddress == "127.0.0.1")
// Random swedish IP for testing purposes
if (e.Report.RemoteAddress == "::1" || e.Report.RemoteAddress == "127.0.0.1")
e.Report.RemoteAddress = "94.254.57.227";

var errorOrigin = await LookupIpAddress(e);
await _repository.CreateAsync(errorOrigin, e.Incident.ApplicationId, e.Incident.Id, e.Report.Id);
}

private async Task<ErrorOrigin> LookupIpAddress(ReportAddedToIncident e)
{
var url = $"http://api.ipstack.com/{e.Report.RemoteAddress}?access_key={_originConfiguration.Value.ApiKey}";
var request = WebRequest.CreateHttp(url);
string json = "";
var json = "";
ErrorOrigin errorOrigin;
try
{
var response = await request.GetResponseAsync();
@@ -71,7 +77,7 @@ public async Task HandleAsync(IMessageContext context, ReportAddedToIncident e)

var lat = double.Parse(jsonObj["latitude"].Value<string>(), CultureInfo.InvariantCulture);
var lon = double.Parse(jsonObj["longitude"].Value<string>(), CultureInfo.InvariantCulture);
var cmd = new ErrorOrigin(e.Report.RemoteAddress, lon, lat)
errorOrigin = new ErrorOrigin(e.Report.RemoteAddress, lon, lat)
{
City = jsonObj["city"].ToString(),
CountryCode = jsonObj["country_code"].ToString(),
@@ -80,13 +86,13 @@ public async Task HandleAsync(IMessageContext context, ReportAddedToIncident e)
RegionName = jsonObj["region_name"].ToString(),
ZipCode = jsonObj["zip"].ToString()
};

await _repository.CreateAsync(cmd, e.Incident.ApplicationId, e.Incident.Id, e.Report.Id);
}
catch (Exception exception)
{
_logger.Error($"Failed to store location for incident {e.Incident.Id}/report {e.Report.Id}: {json}", exception);
throw new InvalidOperationException($"Failed to call lookupService or parse the JSON: {json}.", exception);
}

return errorOrigin;
}
}
}
@@ -90,7 +90,7 @@ public async Task Analyze(IMessageContext context, ErrorReportEntity report)
incident = BuildIncident(report);
_repository.CreateIncident(incident);

var evt = new IncidentCreated(incident.Id, incident.Description, incident.FullName)
var evt = new IncidentCreated(incident.ApplicationId, incident.Id, incident.Description, incident.FullName)
{
ApplicationVersion = applicationVersion
};
@@ -18,7 +18,7 @@
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="FluentAssertions" Version="5.2.0" />
<PackageReference Include="NSubstitute" Version="3.1.0" />
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>
<ItemGroup>
@@ -5,7 +5,7 @@
<AssemblyName>Coderr.Server.SqlServer</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DotNetCqs" Version="2.0.9" />
<PackageReference Include="DotNetCqs" Version="2.0.10" />
<PackageReference Include="Griffin.Framework" Version="2.0.1" />
<PackageReference Include="log4net" Version="2.0.8" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
@@ -31,7 +31,7 @@ public async Task<UserApplication[]> GetForUserAsync(int accountId)
if (accountId <= 0) throw new ArgumentOutOfRangeException(nameof(accountId));
using (var cmd = (DbCommand) _uow.CreateCommand())
{
cmd.CommandText = @"SELECT a.Id ApplicationId, a.Name ApplicationName, ApplicationMembers.Roles, a.NumberOfDevelopers
cmd.CommandText = @"SELECT a.Id ApplicationId, a.Name ApplicationName, ApplicationMembers.Roles, a.NumberOfFtes NumberOfDevelopers
FROM Applications a
JOIN ApplicationMembers ON (ApplicationMembers.ApplicationId = a.Id)
WHERE ApplicationMembers.AccountId = @userId
Oops, something went wrong.

0 comments on commit 57733aa

Please sign in to comment.
You can’t perform that action at this time.