Playwright start

This commit is contained in:
2026-05-30 10:04:12 -04:00
parent 73f29cea08
commit 1f7a0819fc
108 changed files with 37445 additions and 62 deletions
@@ -19,21 +19,6 @@
<LayoutLargeContentComponent>
<WebsiteTitleComponent>Build Calculator</WebsiteTitleComponent>
<AlertComponent Type="@SeverityType.Warning">
<Title>Work In Progress and Not Fully Tested</Title>
<Message>
Build Calculator hasn't been thoroughly tested. Bugs and inaccurate results assumed.
<br/>
Currently not considering running out of alloy and ether to harvest.
<br/>
<br/>
Build Calculator was built based on a much older version of the game and was only quickly modified for the
June 2025 Playtest version, so the above disclaimer is only more true.
<br/>
Expect even more oddities and invalid data then the above warning implies.
</Message>
</AlertComponent>
<ContentDividerComponent></ContentDividerComponent>
<div class="calculatorGrid">
@@ -5,13 +5,17 @@
@implements IDisposable
<FormLayoutComponent>
<FormTextAreaComponent Label="JSON Data"
Rows="14"
Value="@buildOrderService.AsJson()">
</FormTextAreaComponent>
</FormLayoutComponent>
@code {
/**
// TODO: Make this more elegant, and useful. Also, it currently doesn't clear properly
<FormTextAreaComponent Label="JSON Data"
Rows="14"
Value="@buildOrderService.AsJson()">
</FormTextAreaComponent>
*/
protected override void OnInitialized()
{
@@ -1,7 +1,6 @@
@inject IJSRuntime JsRuntime
@inject IKeyService KeyService
@inject IImmortalSelectionService FilterService
@inject IBuildOrderService BuildOrderService
@inject IStorageService StorageService
@using Services.Website
@implements IDisposable
@@ -51,21 +50,6 @@
_viewType = StorageService.GetValue<bool>(StorageKeys.IsPlainView) ? EntityViewType.Plain : EntityViewType.Detailed;
}
protected override bool ShouldRender()
{
#if DEBUG
JsRuntime.InvokeVoidAsync("console.time", "EntityClickViewComponent");
#endif
return true;
}
protected override void OnAfterRender(bool firstRender)
{
#if DEBUG
JsRuntime.InvokeVoidAsync("console.timeEnd", "EntityClickViewComponent");
#endif
}
private void HandleClick()
{
var hotkey = KeyService.GetHotkey();
@@ -74,6 +58,8 @@
var faction = FilterService.GetFaction();
var immortal = FilterService.GetImmortal();
Console.WriteLine(hotkey);
var foundEntity = EntityModel.GetFrom(hotkey!, hotkeyGroup, isHoldSpace, faction, immortal);
if (foundEntity != null && _entity != foundEntity)
@@ -82,5 +68,4 @@
StateHasChanged();
}
}
}
-12
View File
@@ -6,14 +6,6 @@
<LayoutLargeContentComponent>
<WebsiteTitleComponent>Data Tables</WebsiteTitleComponent>
<AlertComponent Type="@SeverityType.Warning">
<Title>Errors Present</Title>
<Message>
Incomplete feature for easily comparing unit stats.
</Message>
</AlertComponent>
<MudTabs Elevation="2">
<MudTabPanel Text="Attacks">
<WeaponTable/>
@@ -29,7 +21,6 @@
</MudTabPanel>
</MudTabs>
<ContentDividerComponent></ContentDividerComponent>
<PaperComponent>
@@ -43,10 +34,7 @@
attack belongs to.
</InfoAnswerComponent>
</InfoBodyComponent>
</PaperComponent>
</LayoutLargeContentComponent>
<style>
-7
View File
@@ -9,13 +9,6 @@
<LayoutMediumContentComponent>
<WebsiteTitleComponent>Harass Calculator</WebsiteTitleComponent>
<AlertComponent Type="@SeverityType.Warning">
<Title>Might be out of date</Title>
<Message>
This calculation is from several years ago and might not reflect the current state of the game.
</Message>
</AlertComponent>
<PaperComponent>
Credit to Zard for deriving the formula.
</PaperComponent>