Skip to content

Commit

Permalink
Development v0.9.0 (#83)
Browse files Browse the repository at this point in the history
* Finished Additional Options Configuration

Finished the code to process the Additional Options text that is needed. Will work on getting the "Testing" button up and running when I create the branch for Issue #25 .

* Added the ability to test Connection Strings

Added the ability to test Connection Strings and shows the appropriate result value in the UI.

* Multiple Fixes/Enhancements

Enhanced by combining the error arrays into a single array.

Enhanced by moving a method that will detect duplicate objects in an array into it's own separate method to use for other items where I need to detect duplicate items.

Fixed the dark mode so that when you load the tables, the every other row is colored appropriately and the table header row is darker as well.

Also fixed an alert modal that I missed adding the dark_mode class to when the switch is toggled.

* Added check that Cache Path wasn't a UNC path

Added check that Cache Path wasn't a UNC path

* Updated Responsive Apps App display and backend

Updated Responsive Apps App display and backend. Also updated one of the automated tests to account for an App being in the web.config file.

* Updated the section outlined in the title

Updated the section for the FormattedTextIframeSupportedDomains so that it had it's own section and all. Also updated all of the automated tests and more.

* Validated an error is queued

After setting a configuration value above the maximum, it did in fact work and queued up an error in the error notification bell.

Also fixed the flashing of the box when  clicking the view button as the timing wasn't right.

* Completed duplicate logic revamp

Completed duplicate logic revamp on the Connection Strings section.

* 40 add the ability to create a new web application from scratch (#82)

* Created all of the core look and functionality

Created all of the core look and functionality that is needed for the modal to create a new configuration from scratch. Right now, I just have the Web Application button visible, but eventually I will add the Client Configuration button visible.

* Created the API endpoint for GetNewConfigurationDetails

Created the API endpoint for GetNewConfigurationDetails

* Created NewConfigurationDetails parsing logic

Created NewConfigurationDetails parsing logic.

* Added JavaScript code to parse version and Web Applications

Added JavaScript code to parse version and Web Applications and to then create the appropriate select optgroup and option elements.

* Created all of the UI elements and logic

Created all of the UI elements and logic to be able to create a new Web Application from scratch. I also added some logic and elements to handle future scenarios to make it all easier to add down the line.

* Fixed some issues and added more functionality

Fixed a couple of JavaScript logic issues as well as fixed the code to pull the VirtualDirectories into the object.

Finished the code to start the creation of the Web Application and create the root Endpoint URL.

* Put in duplicate WebApp/AppPool check

Put in duplicate WebApp/AppPool check to validate that the folder doesn't already exist, the Application doesn't already exist, or the Application Pool doesn't already exist.

* Created the code to create the new Web Application

Created the code to create the new Web Application and added appropriate try/catches.

* Completed the code to create web app from scratch

Completed the code to create web app from scratch.

* Added Dark Mode styling

Added Dark Mode styling to all of the appropriate items.

* Cleaned up old .zip files
  • Loading branch information
rlwakefield authored Aug 2, 2024
1 parent 2ea18ee commit 1571bb4
Show file tree
Hide file tree
Showing 40 changed files with 2,939 additions and 1,167 deletions.
4 changes: 2 additions & 2 deletions COMACON/ComaconHelper/DefaultComaconHelperProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public DefaultComaconHelperProxy(ComaconHelperProxyOptions options)
public string Set(string applicationPath, string applicationName, string applicationType, string serializedOutputObject, string version)
{
var args = generateSetArguments(applicationPath, applicationName, applicationType, serializedOutputObject);
Console.WriteLine(args);
//Console.WriteLine(args);
using var process = CreateProcess(args, version);

process.Start();
Expand All @@ -35,7 +35,7 @@ public string Set(string applicationPath, string applicationName, string applica
public string Get(string applicationPath, string applicationName, string applicationType, string version)
{
var args = generateGetArguments(applicationPath, applicationName, applicationType, webApplicationDataStructures.getWebApplicationDataStructureDictionary(applicationType, version));
Console.WriteLine(args);
//Console.WriteLine(args);

using var process = CreateProcess(args, version);

Expand Down
440 changes: 435 additions & 5 deletions COMACON/Controllers/EndpointController.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>XyVcq9mbQr4HhdIxq/6/aRt5vTEUM/c6qQF5p1t19rY=</dsig:DigestValue>
<dsig:DigestValue>xWI7LaVw4IN3TvcgjSx+GUzbh6fDoW4c3Ws9h+tNnzM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified COMACON/OtherDependencies/231AndUnder/COMACON Helper.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="COMACON Helper.exe" size="14288">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="COMACON Helper.exe" size="15312">
<assemblyIdentity name="COMACON Helper" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>5EopkYk9F3PXqNDcHFA7hl28n+mJ8ukp6Ak0BihVYvA=</dsig:DigestValue>
<dsig:DigestValue>ubnXS0LWvk6Yw/TI7ihJNaaiz2OYNHci7Mk6esFv45c=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand All @@ -61,7 +61,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>N0VnolW7jgzPkR0HrQVSgafVbzIZqguU1y3bSqIwblk=</dsig:DigestValue>
<dsig:DigestValue>tiKnRdx/Pb4Mb+rpOnyJBlNijeSlSCw+X5rz8OAnHYg=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion COMACON/OtherDependencies/COMACON Helper.application
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>XyVcq9mbQr4HhdIxq/6/aRt5vTEUM/c6qQF5p1t19rY=</dsig:DigestValue>
<dsig:DigestValue>xWI7LaVw4IN3TvcgjSx+GUzbh6fDoW4c3Ws9h+tNnzM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified COMACON/OtherDependencies/COMACON Helper.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions COMACON/OtherDependencies/COMACON Helper.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="COMACON Helper.exe" size="14288">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="COMACON Helper.exe" size="15312">
<assemblyIdentity name="COMACON Helper" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>5EopkYk9F3PXqNDcHFA7hl28n+mJ8ukp6Ak0BihVYvA=</dsig:DigestValue>
<dsig:DigestValue>ubnXS0LWvk6Yw/TI7ihJNaaiz2OYNHci7Mk6esFv45c=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand All @@ -61,7 +61,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>N0VnolW7jgzPkR0HrQVSgafVbzIZqguU1y3bSqIwblk=</dsig:DigestValue>
<dsig:DigestValue>tiKnRdx/Pb4Mb+rpOnyJBlNijeSlSCw+X5rz8OAnHYg=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified COMACON/OtherDependencies/COMACONTranslationToHelperUtility.dll
Binary file not shown.
122 changes: 70 additions & 52 deletions COMACON/Views/Core/ApplicationServer.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -532,31 +532,19 @@
</div>
</div>
</div>
@* I will need to figure out how to tackle this still since I need to make sure that the configuration is supported by the backend. *@
@* <div style="width: 60%;margin: 5px 0;padding: 0 0 0 10px;">
<div style="width: 60%;margin: 5px 0;padding: 0 0 0 10px;">
<div class="labelElement">
<label for="Additional-Options">Additional Options</label>
</div>
<div class="inputElement">
<input type="text" name="Additional-Options" id="Additional-Options" style="width: 25rem;" oninput="connectionStringTextInputFieldUpdatedV3(this)">
</div>
</div> *@
<div id="Sql-AdditionalOptions" style="display:none;">
<div class="sectionWithTitleBar">
<div class="titleBar" name="Title-Bar">
Additional Options
</div>
<div class="coreSection">
<input type="checkbox" name="Sql-AdditionalOptions-Encrypt" id="Sql-AdditionalOptions-Encrypt" checked>
<label for="Sql-AdditionalOptions-Encrypt">Encrypt</label>
</div>
</div>
</div>
<div id="Oracle-AdditionalOptions" style="overflow-y:auto;display:none;">

</div>
<div style="display:flex;justify-content:flex-end;">
@* <button id="TestConnectionString" onclick="testConnectionString()" style="font-size:medium;margin: 5px;">Test Connection</button> *@
<button id="TestConnectionString" onclick="testConnectionString()" style="font-size:medium;margin: 5px;" disabled>Test Connection</button>
</div>
<div>
<div id="TestConnectionString-Alert" style="color:red;font-weight:bolder;"></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -2228,7 +2216,6 @@
<div id="UnityClientSection" class="tabcontent">
<div class="row">
<div class="column">
<!-- TODO: Need to make it so that if the user attempts to set this value above the "Documet Query Limit", then it either changes the Document Query Limit value or gives an alert and then reverts the number (maybe). -->
<div class="settingElement">
<div class="labelElement">
<label for="Document-Query-Warning-Threshold">Document Query Warning Threshold: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
Expand Down Expand Up @@ -2407,6 +2394,8 @@
<input type="text" name="Unity-Editable-Filter-Max-Rows" id="Unity-Editable-Filter-Max-Rows">
</div>
</div>
</div>
<div class="column">
<div class="settingElement">
<div class="labelElement">
<label for="ERP-Date-Format-LOB-Broker">ERP Date Format LOB Broker: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
Expand All @@ -2417,14 +2406,30 @@
</div>
</div>
</div>
<div class="column">
<div class="settingElement">
<div class="labelElement">
<label for="Formatted-Text-Iframe-Supported-Domains">Formatted Text Iframe Supported Domains: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="Formatted-Text-Iframe-Supported-Domains-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="sectionWithTitleBar">
<div class="titleBar" name="Title-Bar">
Formatted Text iFrame Supported Domains
</div>
<div class="coreSection">
<div class="row" style="justify-content: space-around;margin:1rem 0;">
<div class="column" style="width:20%;">
<select id="FormattedTextIframeSupportedDomains-SelectList" name="FormattedTextIframeSupportedDomains-SelectList" size="8" style="width:100%" onchange="formattedTextIframeSupportedDomainChanged(this)"></select>
<div style="display:flex;justify-content:space-around;">
<button id="AddFormattedTextIframeSupportedDomain-Button" onclick="addFormattedTextIframeSupportedDomain()" type="button">Add</button>
<button id="DeleteFormattedTextIframeSupportedDomain-Button" onclick="deleteFormattedTextIframeSupportedDomain()" type="button" disabled>Delete</button>
</div>
</div>
<div class="inputElement">
<input type="text" name="Formatted-Text-Iframe-Supported-Domains" id="Formatted-Text-Iframe-Supported-Domains">
<div class="column">
<div class="settingElement">
<div class="labelElement">
<label for="Formatted-Text-Iframe-Supported-Domain">Formatted Text Iframe Supported Domains: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="Formatted-Text-Iframe-Supported-Domain-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="text" name="Formatted-Text-Iframe-Supported-Domain" id="Formatted-Text-Iframe-Supported-Domain" oninput="formattedTextIframeSupportedDomainFieldUpdated(this)" disabled>
</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -2548,37 +2553,50 @@
</div>
</div>
</div>
<div class="row">
<div class="column">
<div class="settingElement">
<div class="labelElement">
<label for="App-Name">App Name: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-Name-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="text" name="App-Name" id="App-Name">
</div>
</div>
<div class="settingElement">
<div class="labelElement">
<label for="App-Icon-URL">App Icon URL: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-Icon-URL-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="url" name="App-Icon-URL" id="App-Icon-URL">
</div>
</div>
<div class="settingElement">
<div class="labelElement">
<label for="App-URL">App URL: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-URL-Tooltip" class="tooltiptext">This is the help text.</span>
<div class="sectionWithTitleBar">
<div class="titleBar" name="Title-Bar">
Apps
</div>
<div class="coreSection">
<div class="row" style="justify-content: space-around;margin:1rem 0;">
<div class="column" style="width:20%;">
<select id="ResponsiveAppsApp-SelectList" name="ResponsiveAppsApp-SelectList" size="8" style="width:100%;" onchange="responsiveAppsAppChanged(this)"></select>
<div style="display:flex;justify-content:space-around;">
<button id="Add-ResponsiveApps-App-Button" onclick="addResponsiveAppsApp()" type="button">Add</button>
<button id="Delete-ResponsiveApps-App-Button" onclick="deleteResponsiveAppsApp()" type="button" disabled>Delete</button>
</div>
</div>
<div class="inputElement">
<input type="url" name="App-URL" id="App-URL">
<div class="column">
<div class="settingElement">
<div class="labelElement">
<label for="App-Name">App Name: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-Name-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="text" name="App-Name" id="App-Name" oninput="responsiveAppsAppFieldUpdated(this)" disabled>
</div>
</div>
<div class="settingElement">
<div class="labelElement">
<label for="App-Icon-URL">App Icon URL: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-Icon-URL-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="url" name="App-Icon-URL" id="App-Icon-URL" oninput="responsiveAppsAppFieldUpdated(this)" disabled>
</div>
</div>
<div class="settingElement">
<div class="labelElement">
<label for="App-URL">App URL: </label><img class="tooltipimage" src="~/images/blue question mark icon - extra small.png" alt="Blue Tooltip Question Mark">
<span id="App-URL-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="url" name="App-URL" id="App-URL" oninput="responsiveAppsAppFieldUpdated(this)" disabled>
</div>
</div>
</div>
</div>
</div>
<div class="column"></div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion COMACON/Views/Core/GatewayCachingServer.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<span id="Cache-Path-Tooltip" class="tooltiptext">This is the help text.</span>
</div>
<div class="inputElement">
<input type="text" name="Cache-Path" id="Cache-Path">
<input type="text" name="Cache-Path" id="Cache-Path" oninput="validateCacheFolderIsntAUncPath(this)">
</div>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions COMACON/Views/Core/Home.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<h1>What would you like to do?</h1>
</div>
<div style="display:flex;justify-content:space-around;">
<div style="width:70%;display:flex;justify-content:space-around;">
<div style="width:70%;display:flex;justify-content:space-around;gap:2rem;">
@* <button style="font-size:x-large;max-height:7.5rem;min-height:5rem;max-width:7.5rem;border-radius: 10px;" onclick="createWebApplication()">Create WebApp</button> *@
<button style="font-size:x-large;max-height:7.5rem;min-height:5rem;max-width:7.5rem;border-radius: 10px;" onclick="openModal()">Open WebApp</button>
<button style="font-size:xx-large;max-height:7.5rem;min-height:5rem;border-radius: 10px;" onclick="createNewConfiguration()">New Configuration</button>
<button style="font-size:xx-large;max-height:7.5rem;min-height:5rem;border-radius: 10px;" onclick="openModal()">Open WebApp</button>
@* <button style="font-size:x-large;max-height:7.5rem;min-height:5rem;max-width:7.5rem;border-radius: 10px;" onclick="createLocalConfiguration()">Create Local Config</button> *@
@* <button style="font-size:x-large;max-height:7.5rem;min-height:5rem;max-width:7.5rem;border-radius: 10px;" onclick="openLocalConfiguration()">Open Local Config</button> *@
</div>
Expand Down
Loading

0 comments on commit 1571bb4

Please sign in to comment.