-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
26,357 additions
and
266 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime", | ||
"@babel/plugin-transform-class-properties", | ||
"@babel/plugin-transform-object-rest-spread" | ||
], | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-typescript" | ||
] | ||
} |
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,14 @@ | ||
<MBAnchor /> | ||
|
||
<Router AppAssembly="@typeof(App).Assembly"> | ||
<Found Context="routeData"> | ||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> | ||
<FocusOnNavigate RouteData="@routeData" Selector="h1" /> | ||
</Found> | ||
<NotFound> | ||
<PageTitle>Not found</PageTitle> | ||
<LayoutView Layout="@typeof(MainLayout)"> | ||
<p role="alert">Sorry, there's nothing at this address.</p> | ||
</LayoutView> | ||
</NotFound> | ||
</Router> |
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,20 @@ | ||
using System; | ||
|
||
namespace ICEBG.Client; | ||
|
||
/// <summary> | ||
/// Adds an assembly attribute enabling the build process to pass in the build date. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Assembly)] | ||
public class BuildDateAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// The calculated build date. | ||
/// </summary> | ||
public readonly string DateString; | ||
|
||
public BuildDateAttribute(string dateString) | ||
{ | ||
DateString = dateString; | ||
} | ||
} |
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,7 @@ | ||
using System.Text.Json; | ||
|
||
namespace ICEBG.Client; | ||
public interface IMessage | ||
{ | ||
string GetMessageCardJson(JsonSerializerOptions jsonSerializerOptions); | ||
} |
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,39 @@ | ||
using System; | ||
|
||
namespace ICEBG.Client; | ||
|
||
/// <summary> | ||
/// Indicates that a razor page should be added to the sitemap. Priority must be within the range zero to one. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public class SitemapAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Indicates the change frequency to be shown in the sitemap. | ||
/// </summary> | ||
public enum eChangeFreqType { Always, Hourly, Daily, Weekly, Monthly, Yearly, Never }; | ||
|
||
|
||
/// <summary> | ||
/// The user selected change frequency. | ||
/// </summary> | ||
public readonly eChangeFreqType ChangeFreq; | ||
|
||
|
||
/// <summary> | ||
/// The user selected priority. | ||
/// </summary> | ||
public double Priority; | ||
|
||
|
||
public SitemapAttribute(eChangeFreqType changeFreq, double priority) | ||
{ | ||
if (priority < 0 || priority > 1) | ||
{ | ||
throw new ArgumentException($"Priority cannot be {priority} - must be between 0 and 1."); | ||
} | ||
|
||
ChangeFreq = changeFreq; | ||
Priority = priority; | ||
} | ||
} |
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,71 @@ | ||
@namespace ICEBG.Client.Components | ||
|
||
<h2>Time is @time</h2> | ||
<h2>Duration is @duration</h2> | ||
@if (statisticsReportResult == null) | ||
{ | ||
<h2>Loading...</h2> | ||
} | ||
else | ||
{ | ||
@if (statisticsReportResult.pSuccess) | ||
{ | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<td><b>SelectStatisticsReport result</b></td> | ||
<td>true</td> | ||
</tr> | ||
<br/> | ||
<tr> | ||
<td><b>Pi start time</b></td> | ||
<td>@statisticsReportResult.pResult.pPiStartTime</td> | ||
</tr> | ||
<tr> | ||
<td><b>Pi last heartbeat</b></td> | ||
<td>@statisticsReportResult.pResult.pPiHeartbeat</td> | ||
</tr> | ||
<tr> | ||
<td><b>Pi average execution time</b></td> | ||
<td>@statisticsReportResult.pResult.pPiAverageSpan</td> | ||
</tr> | ||
<tr> | ||
<td><b>Pi iterations</b></td> | ||
<td>@statisticsReportResult.pResult.pPiIterations</td> | ||
</tr> | ||
@* <br/> | ||
<tr> | ||
<td><b>Sql start time</b></td> | ||
<td>@statisticsReportResult.pResult.pSqlStartTime</td> | ||
</tr> | ||
<tr> | ||
<td><b>Sql last heartbeat</b></td> | ||
<td>@statisticsReportResult.pResult.pSqlHeartbeat</td> | ||
</tr> | ||
<tr> | ||
<td><b>Sql average execution time</b></td> | ||
<td>@statisticsReportResult.pResult.pSqlAverageSpan</td> | ||
</tr> | ||
<tr> | ||
<td><b>Sql iterations</b></td> | ||
<td>@statisticsReportResult.pResult.pSqlIterations</td> | ||
</tr> | ||
*@ </tbody> | ||
</table> | ||
} | ||
else | ||
{ | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<td><b>Success</b></td> | ||
<td>false</td> | ||
</tr> | ||
<tr> | ||
<td><b>pError</b></td> | ||
<td>@statisticsReportResult.pError</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
} | ||
} |
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,15 @@ | ||
using ICEBG.AppConfig; | ||
using ICEBG.DataTier.DataDefinitions; | ||
using ICEBG.DataTier.HelperClasses; | ||
|
||
using Microsoft.AspNetCore.Components; | ||
|
||
namespace ICEBG.Client.Components; | ||
|
||
public partial class FlowLabeledText2 | ||
{ | ||
[Parameter] public string duration { get; set; } | ||
[Parameter] public string time { get; set; } | ||
[Parameter] public ServiceResult<StatisticsReport_DD> statisticsReportResult { get; set; } | ||
} | ||
|
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,8 @@ | ||
namespace ICEBG.Client; | ||
public static class Utilities | ||
{ | ||
public const string NonInteraction = "non_interaction"; | ||
public const string EventLabel = "event_label"; | ||
public const string EventCategory = "event_category"; | ||
public const string DialogActions = "Dialog Actions"; | ||
} |
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,16 @@ | ||
using System; | ||
|
||
namespace ICEBG.Client; | ||
|
||
#nullable enable | ||
|
||
public class WeatherForecast | ||
{ | ||
public DateTime Date { get; set; } | ||
|
||
public int TemperatureC { get; set; } | ||
|
||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); | ||
|
||
public string? Summary { get; set; } | ||
} |
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,26 @@ | ||
using System; | ||
using System.Net.Http.Json; | ||
using System.Threading.Tasks; | ||
|
||
using ICEBG.AppConfig; | ||
using ICEBG.SystemFramework; | ||
|
||
namespace ICEBG.Client; | ||
|
||
#nullable enable | ||
|
||
public class WeatherForecastService | ||
{ | ||
|
||
public async Task<WeatherForecast[]?> GetForecastAsync() | ||
{ | ||
using (var client = new System.Net.Http.HttpClient()) | ||
{ | ||
var request = new System.Net.Http.HttpRequestMessage(); | ||
request.RequestUri = new Uri(ApplicationConfiguration.pDataServicesEndpointPrefix + ApplicationConfiguration.pWeatherEndpoint); | ||
var response = await client.SendAsync(request); | ||
var forecasts = await response.Content.ReadFromJsonAsync<WeatherForecast[]>(); | ||
return forecasts; | ||
} | ||
} | ||
} |
Oops, something went wrong.