(() => ({
ID: 1,
- Name: DynamicEventSearch.Name,
+ Name: 'Eventsearch Results Table',
Type: DynamicEventSearch.Name,
Setting: JSON.stringify({
...DynamicEventSearch.DefaultSettings,
diff --git a/PQBrowser/Scripts/TSX/Components/EventSearch/EventSearchData.ts b/PQBrowser/Scripts/TSX/Components/EventSearch/EventSearchData.ts
index b8cb3cd9..271f362b 100644
--- a/PQBrowser/Scripts/TSX/Components/EventSearch/EventSearchData.ts
+++ b/PQBrowser/Scripts/TSX/Components/EventSearch/EventSearchData.ts
@@ -67,13 +67,10 @@ export function BuildDynamicEventSearchRequest(
},
transientMin: characteristics.transientMin ?? 0,
transientMax: characteristics.transientMax ?? 0,
- transientType: characteristics.transientType,
sagMin: characteristics.sagMin ?? 0,
sagMax: characteristics.sagMax ?? 0,
- sagType: characteristics.sagType,
swellMin: characteristics.swellMin ?? 0,
swellMax: characteristics.swellMax ?? 0,
- swellType: characteristics.swellType,
curveID: characteristics.curveID,
curveInside: characteristics.curveInside,
curveOutside: characteristics.curveOutside,
diff --git a/PQBrowser/Scripts/TSX/Components/EventSearch/Navbar/EventCharacteristics.tsx b/PQBrowser/Scripts/TSX/Components/EventSearch/Navbar/EventCharacteristics.tsx
index 5e175d40..3201d541 100644
--- a/PQBrowser/Scripts/TSX/Components/EventSearch/Navbar/EventCharacteristics.tsx
+++ b/PQBrowser/Scripts/TSX/Components/EventSearch/Navbar/EventCharacteristics.tsx
@@ -232,20 +232,6 @@ const EventSearchNavbar = () => {
-
-
- Record={newEventCharacteristicFilter}
- Label=''
- Field='sagType'
- Setter={handleSetEventCharacteristicFilter}
- Options={[
- { Label: 'LL', Value: 'LL' },
- { Label: 'LN', Value: 'LN' },
- { Label: 'Both', Value: 'both' }
- ]}
- Style={{ marginBottom: 0 }}
- />
-
@@ -308,20 +294,6 @@ const EventSearchNavbar = () => {
-
-
- Record={newEventCharacteristicFilter}
- Label=''
- Field='transientType'
- Setter={handleSetEventCharacteristicFilter}
- Options={[
- { Label: 'LL', Value: 'LL' },
- { Label: 'LN', Value: 'LN' },
- { Label: 'Both', Value: 'both' }
- ]}
- Style={{ marginBottom: 0 }}
- />
-
@@ -362,20 +334,6 @@ const EventSearchNavbar = () => {
-
-
- Record={newEventCharacteristicFilter}
- Label=''
- Field='swellType'
- Setter={handleSetEventCharacteristicFilter}
- Options={[
- { Label: 'LL', Value: 'LL' },
- { Label: 'LN', Value: 'LN' },
- { Label: 'Both', Value: 'both' }
- ]}
- Style={{ marginBottom: 0 }}
- />
-
diff --git a/PQBrowser/Scripts/TSX/Store/EventSearchSlice.ts b/PQBrowser/Scripts/TSX/Store/EventSearchSlice.ts
index 93f990cb..28c25d2e 100644
--- a/PQBrowser/Scripts/TSX/Store/EventSearchSlice.ts
+++ b/PQBrowser/Scripts/TSX/Store/EventSearchSlice.ts
@@ -80,9 +80,6 @@ const initialState: Redux.EventSearchState = {
sagMax: null,
swellMin: null,
swellMax: null,
- sagType: 'both',
- swellType: 'both',
- transientType: 'both',
curveID: 1,
curveInside: true,
curveOutside: true
@@ -138,10 +135,6 @@ export const EventSearchsSlice = createSlice({
state.EventCharacteristic.swellMax = parseOptionalNumber(action.payload.query['swellMax']);
state.EventCharacteristic.swellMin = parseOptionalNumber(action.payload.query['swellMin']);
- state.EventCharacteristic.sagType = (action.payload.query['sagType'] ?? 'both') as ('both' | 'LL' | 'LN');
- state.EventCharacteristic.swellType = (action.payload.query['swellType'] ?? 'both') as ('both' | 'LL' | 'LN');
- state.EventCharacteristic.transientType = (action.payload.query['transientType'] ?? 'both') as ('both' | 'LL' | 'LN');
-
state.EventCharacteristic.curveID = parseInt(action.payload.query['curveID']?.toString() ?? '1');
state.EventCharacteristic.curveInside = (action.payload.query['curveInside'] ?? 'true') == 'true';
state.EventCharacteristic.curveOutside = (action.payload.query['curveOutside'] ?? 'true') == 'true';
@@ -183,7 +176,7 @@ export const EventSearchsSlice = createSlice({
state.EventCharacteristic = {
durationMax: null, durationMin: null,
phases: { AN: true, BN: true, CN: true, AB: true, BC: true, CA: true, ABG: true, BCG: true, ABC: true, ABCG: true },
- transientMin: null, transientMax: null, sagMin: null, sagMax: null, swellMin: null, swellMax: null, sagType: 'both', swellType: 'both', transientType: 'both',
+ transientMin: null, transientMax: null, sagMin: null, sagMax: null, swellMin: null, swellMax: null,
curveID: 1, curveInside: true, curveOutside: true
};
@@ -329,13 +322,6 @@ export function GenerateQueryParams(
if (event.swellMin != 0)
result['swellMin'] = event.swellMin
- if (event.sagType != 'both')
- result['sagType'] = event.sagType
- if (event.swellType != 'both')
- result['swellType'] = event.swellType
- if (event.transientType != 'both')
- result['transientType'] = event.transientType
-
if (event.curveID != 1)
result['curveID'] = event.curveID
if (!event.curveInside)
diff --git a/PQBrowser/Scripts/TSX/global.d.ts b/PQBrowser/Scripts/TSX/global.d.ts
index 9f7b7cfa..9561ecd2 100644
--- a/PQBrowser/Scripts/TSX/global.d.ts
+++ b/PQBrowser/Scripts/TSX/global.d.ts
@@ -126,13 +126,10 @@ export namespace PQBrowser {
phases: IPhaseFilters,
transientMin: number | null,
transientMax: number | null,
- transientType: ('LL'|'LN'|'both'),
sagMin: number | null,
sagMax: number | null,
- sagType: ('LL' | 'LN' | 'both'),
swellMin: number | null,
swellMax: number | null,
- swellType: ('LL' | 'LN' | 'both'),
curveID: number,
curveInside: boolean,
curveOutside: boolean
diff --git a/PQBrowser/Startup.cs b/PQBrowser/Startup.cs
index 2e77036c..7637743e 100644
--- a/PQBrowser/Startup.cs
+++ b/PQBrowser/Startup.cs
@@ -42,7 +42,6 @@
using PQBrowser.Security;
using System;
using System.IO;
-using System.Text.Json;
namespace PQBrowser;
public class Startup
@@ -52,9 +51,6 @@ public Startup(IConfiguration configuration, IWebHostEnvironment env)
SetupTempPath();
Configuration = configuration;
Env = env;
-
- using JsonDocument package = JsonDocument.Parse(File.ReadAllText(Path.Combine(env.ContentRootPath, "package.json")));
- UIVersion = package.RootElement.GetProperty("version").GetString()!;
}
public static class Policies
@@ -65,7 +61,6 @@ public static class Policies
public IWebHostEnvironment Env { get; set; }
public IConfiguration Configuration { get; }
- public static string UIVersion { get; private set; } = "";
public void ConfigureServices(IServiceCollection services)
{
diff --git a/PQBrowser/Views/Home/Index.cshtml b/PQBrowser/Views/Home/Index.cshtml
index 1614ff15..72ece45f 100644
--- a/PQBrowser/Views/Home/Index.cshtml
+++ b/PQBrowser/Views/Home/Index.cshtml
@@ -22,6 +22,7 @@
//*******************************************************************************************************@
@using Gemstone.Data
@using Gemstone.Configuration;
+@using Gemstone.Reflection
@using Microsoft.AspNetCore.Antiforgery
@using Microsoft.AspNetCore.Authentication.Cookies
@using Microsoft.Extensions.Options
@@ -40,6 +41,9 @@
@{
Layout = "";
+ Version assemblyVersionInfo = AssemblyInfo.EntryAssembly.Version;
+ string applicationVersion = assemblyVersionInfo.Major + "." + assemblyVersionInfo.Minor + "." + assemblyVersionInfo.Build;
+
try {
using (AdoDataConnection connection = new AdoDataConnection(Settings.Default))
{
@@ -123,6 +127,6 @@
-
+