Skip to content

Commit 8956e6e

Browse files
iceHub82claude
andcommitted
chore: delete unreferenced vendored assets, styles and scaffolding
Repo-wide sweep for dead weight. Nothing here had a single reference: - bootstrap/dist: kept bootstrap.min.css and bootstrap.bundle.min.js (plus their source maps), dropped the other 40 files - rtl, grid, reboot, utilities, unminified and stray .map variants. 8.4M -> 1.3M. - jquery-validation and jquery-validation-unobtrusive, plus the _ValidationScriptsPartial that loaded them. The app has no form posts. - 9 SVG symbols in _Layout that were never <use>d, and the bootstrap-icons CDN stylesheet - there is not one bi-* class in the tree, .bi is our own rule. - Bootstrap-example CSS residue in site.css: bd-placeholder-img, b-example-divider, b-example-vr, nav-scroller, sidebar-heading, navbar-search, and a .sidebar .offcanvas-lg rule for a class the layout does not use. Also merged the .bi rule that was declared twice. - _logger fields on IndexModel, BacktestModel and ErrorModel: assigned, never read. ErrorModel's constructor went with it. - The duplicated Logging block in appsettings.Development.json, which repeated appsettings.json verbatim; only DetailedErrors differed. - The AdditionalFiles entry for backtest.py, which is an empty file. Verified: every /lib asset still referenced by a page exists, every <use> resolves to a symbol that still exists, build is warning-clean, 14 xUnit and 15 pytest tests pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 1f07ee7 commit 8956e6e

56 files changed

Lines changed: 6 additions & 63403 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

PythonNet.App.Web/Pages/Backtest.cshtml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
namespace PythonNet.App.Web.Pages;
44

5-
public class BacktestModel(ILogger<BacktestModel> logger) : PageModel
5+
public class BacktestModel : PageModel
66
{
7-
private readonly ILogger<BacktestModel> _logger = logger;
8-
97
public List<object> Tickers { get; set; } = [];
108
public string? StartDate { get; set; }
119
public string? EndDate { get; set; }

PythonNet.App.Web/Pages/Error.cshtml.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ public class ErrorModel : PageModel
1212

1313
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
1414

15-
private readonly ILogger<ErrorModel> _logger;
16-
17-
public ErrorModel(ILogger<ErrorModel> logger)
18-
{
19-
_logger = logger;
20-
}
21-
2215
public void OnGet()
2316
{
2417
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;

PythonNet.App.Web/Pages/Index.cshtml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
namespace PythonNet.App.Web.Pages;
44

5-
public class IndexModel(ILogger<IndexModel> logger) : PageModel
5+
public class IndexModel : PageModel
66
{
7-
private readonly ILogger<IndexModel> _logger = logger;
8-
97
public List<object> Tickers { get; set; } = [];
108
public string? StartDate { get; set; }
119
public string? EndDate { get; set; }

PythonNet.App.Web/Pages/Shared/_Layout.cshtml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<meta name="description" content="PythonNet">
99
<title>@ViewData["Title"] - PythonNet</title>
1010
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
11-
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.min.css" rel="stylesheet">
1211
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
1312
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
1413
</head>
@@ -60,50 +59,19 @@
6059
</div>
6160

6261
<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
63-
<symbol id="calendar3" viewBox="0 0 16 16">
64-
<path d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"/>
65-
<path d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
66-
</symbol>
6762
<symbol id="cart" viewBox="0 0 16 16">
6863
<path d="M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .49.598l-1 5a.5.5 0 0 1-.465.401l-9.397.472L4.415 11H13a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5zM3.102 4l.84 4.479 9.144-.459L13.89 4H3.102zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
6964
</symbol>
70-
<symbol id="chevron-right" viewBox="0 0 16 16">
71-
<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
72-
</symbol>
73-
<symbol id="door-closed" viewBox="0 0 16 16">
74-
<path d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v13h1.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1 0-1H3V2zm1 13h8V2H4v13z"/>
75-
<path d="M9 9a1 1 0 1 0 2 0 1 1 0 0 0-2 0z"/>
76-
</symbol>
7765
<symbol id="file-earmark" viewBox="0 0 16 16">
7866
<path d="M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"/>
7967
</symbol>
80-
<symbol id="file-earmark-text" viewBox="0 0 16 16">
81-
<path d="M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5z"/>
82-
<path d="M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5L9.5 0zm0 1v2A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/>
83-
</symbol>
84-
<symbol id="gear-wide-connected" viewBox="0 0 16 16">
85-
<path d="M7.068.727c.243-.97 1.62-.97 1.864 0l.071.286a.96.96 0 0 0 1.622.434l.205-.211c.695-.719 1.888-.03 1.613.931l-.08.284a.96.96 0 0 0 1.187 1.187l.283-.081c.96-.275 1.65.918.931 1.613l-.211.205a.96.96 0 0 0 .434 1.622l.286.071c.97.243.97 1.62 0 1.864l-.286.071a.96.96 0 0 0-.434 1.622l.211.205c.719.695.03 1.888-.931 1.613l-.284-.08a.96.96 0 0 0-1.187 1.187l.081.283c.275.96-.918 1.65-1.613.931l-.205-.211a.96.96 0 0 0-1.622.434l-.071.286c-.243.97-1.62.97-1.864 0l-.071-.286a.96.96 0 0 0-1.622-.434l-.205.211c-.695.719-1.888.03-1.613-.931l.08-.284a.96.96 0 0 0-1.186-1.187l-.284.081c-.96.275-1.65-.918-.931-1.613l.211-.205a.96.96 0 0 0-.434-1.622l-.286-.071c-.97-.243-.97-1.62 0-1.864l.286-.071a.96.96 0 0 0 .434-1.622l-.211-.205c-.719-.695-.03-1.888.931-1.613l.284.08a.96.96 0 0 0 1.187-1.186l-.081-.284c-.275-.96.918-1.65 1.613-.931l.205.211a.96.96 0 0 0 1.622-.434l.071-.286zM12.973 8.5H8.25l-2.834 3.779A4.998 4.998 0 0 0 12.973 8.5zm0-1a4.998 4.998 0 0 0-7.557-3.779l2.834 3.78h4.723zM5.048 3.967c-.03.021-.058.043-.087.065l.087-.065zm-.431.355A4.984 4.984 0 0 0 3.002 8c0 1.455.622 2.765 1.615 3.678L7.375 8 4.617 4.322zm.344 7.646.087.065-.087-.065z"/>
86-
</symbol>
87-
<symbol id="graph-up" viewBox="0 0 16 16">
88-
<path fill-rule="evenodd" d="M0 0h1v15h15v1H0V0Zm14.817 3.113a.5.5 0 0 1 .07.704l-4.5 5.5a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61 4.15-5.073a.5.5 0 0 1 .704-.07Z"/>
89-
</symbol>
9068
<symbol id="house-fill" viewBox="0 0 16 16">
9169
<path d="M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L8 2.207l6.646 6.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5Z"/>
9270
<path d="m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6Z"/>
9371
</symbol>
9472
<symbol id="list" viewBox="0 0 16 16">
9573
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
9674
</symbol>
97-
<symbol id="people" viewBox="0 0 16 16">
98-
<path d="M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1h8Zm-7.978-1A.261.261 0 0 1 7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002a.274.274 0 0 1-.014.002H7.022ZM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816ZM4.92 10A5.493 5.493 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275ZM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"/>
99-
</symbol>
100-
<symbol id="plus-circle" viewBox="0 0 16 16">
101-
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
102-
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>
103-
</symbol>
104-
<symbol id="puzzle" viewBox="0 0 16 16">
105-
<path d="M3.112 3.645A1.5 1.5 0 0 1 4.605 2H7a.5.5 0 0 1 .5.5v.382c0 .696-.497 1.182-.872 1.469a.459.459 0 0 0-.115.118.113.113 0 0 0-.012.025L6.5 4.5v.003l.003.01c.004.01.014.028.036.053a.86.86 0 0 0 .27.194C7.09 4.9 7.51 5 8 5c.492 0 .912-.1 1.19-.24a.86.86 0 0 0 .271-.194.213.213 0 0 0 .039-.063v-.009a.112.112 0 0 0-.012-.025.459.459 0 0 0-.115-.118c-.375-.287-.872-.773-.872-1.469V2.5A.5.5 0 0 1 9 2h2.395a1.5 1.5 0 0 1 1.493 1.645L12.645 6.5h.237c.195 0 .42-.147.675-.48.21-.274.528-.52.943-.52.568 0 .947.447 1.154.862C15.877 6.807 16 7.387 16 8s-.123 1.193-.346 1.638c-.207.415-.586.862-1.154.862-.415 0-.733-.246-.943-.52-.255-.333-.48-.48-.675-.48h-.237l.243 2.855A1.5 1.5 0 0 1 11.395 14H9a.5.5 0 0 1-.5-.5v-.382c0-.696.497-1.182.872-1.469a.459.459 0 0 0 .115-.118.113.113 0 0 0 .012-.025L9.5 11.5v-.003a.214.214 0 0 0-.039-.064.859.859 0 0 0-.27-.193C8.91 11.1 8.49 11 8 11c-.491 0-.912.1-1.19.24a.859.859 0 0 0-.271.194.214.214 0 0 0-.039.063v.003l.001.006a.113.113 0 0 0 .012.025c.016.027.05.068.115.118.375.287.872.773.872 1.469v.382a.5.5 0 0 1-.5.5H4.605a1.5 1.5 0 0 1-1.493-1.645L3.356 9.5h-.238c-.195 0-.42.147-.675.48-.21.274-.528.52-.943.52-.568 0-.947-.447-1.154-.862C.123 9.193 0 8.613 0 8s.123-1.193.346-1.638C.553 5.947.932 5.5 1.5 5.5c.415 0 .733.246.943.52.255.333.48.48.675.48h.238l-.244-2.855zM4.605 3a.5.5 0 0 0-.498.55l.001.007.29 3.4A.5.5 0 0 1 3.9 7.5h-.782c-.696 0-1.182-.497-1.469-.872a.459.459 0 0 0-.118-.115.112.112 0 0 0-.025-.012L1.5 6.5h-.003a.213.213 0 0 0-.064.039.86.86 0 0 0-.193.27C1.1 7.09 1 7.51 1 8c0 .491.1.912.24 1.19.07.14.14.225.194.271a.213.213 0 0 0 .063.039H1.5l.006-.001a.112.112 0 0 0 .025-.012.459.459 0 0 0 .118-.115c.287-.375.773-.872 1.469-.872H3.9a.5.5 0 0 1 .498.542l-.29 3.408a.5.5 0 0 0 .497.55h1.878c-.048-.166-.195-.352-.463-.557-.274-.21-.52-.528-.52-.943 0-.568.447-.947.862-1.154C6.807 10.123 7.387 10 8 10s1.193.123 1.638.346c.415.207.862.586.862 1.154 0 .415-.246.733-.52.943-.268.205-.415.39-.463.557h1.878a.5.5 0 0 0 .498-.55l-.001-.007-.29-3.4A.5.5 0 0 1 12.1 8.5h.782c.696 0 1.182.497 1.469.872.05.065.091.099.118.115.013.008.021.01.025.012a.02.02 0 0 0 .006.001h.003a.214.214 0 0 0 .064-.039.86.86 0 0 0 .193-.27c.14-.28.24-.7.24-1.191 0-.492-.1-.912-.24-1.19a.86.86 0 0 0-.194-.271.215.215 0 0 0-.063-.039H14.5l-.006.001a.113.113 0 0 0-.025.012.459.459 0 0 0-.118.115c-.287.375-.773.872-1.469.872H12.1a.5.5 0 0 1-.498-.543l.29-3.407a.5.5 0 0 0-.497-.55H9.517c.048.166.195.352.463.557.274.21.52.528.52.943 0 .568-.447.947-.862 1.154C9.193 5.877 8.613 6 8 6s-1.193-.123-1.638-.346C5.947 5.447 5.5 5.068 5.5 4.5c0-.415.246-.733.52-.943.268-.205.415-.39.463-.557H4.605z"/>
106-
</symbol>
10775
<symbol id="search" viewBox="0 0 16 16">
10876
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
10977
</symbol>

PythonNet.App.Web/Pages/Shared/_ValidationScriptsPartial.cshtml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
{
2-
"DetailedErrors": true,
3-
"Logging": {
4-
"LogLevel": {
5-
"Default": "Information",
6-
"Microsoft.AspNetCore": "Warning"
7-
}
8-
}
2+
"DetailedErrors": true
93
}

PythonNet.App.Web/wwwroot/css/site.css

Lines changed: 3 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,11 @@
1-
.bd-placeholder-img {
2-
font-size: 1.125rem;
3-
text-anchor: middle;
4-
-webkit-user-select: none;
5-
-moz-user-select: none;
6-
user-select: none;
7-
}
8-
9-
@media (min-width: 768px) {
10-
.bd-placeholder-img-lg {
11-
font-size: 3.5rem;
12-
}
13-
}
14-
15-
.b-example-divider {
16-
width: 100%;
17-
height: 3rem;
18-
background-color: rgba(0, 0, 0, .1);
19-
border: solid rgba(0, 0, 0, .15);
20-
border-width: 1px 0;
21-
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
22-
}
23-
24-
.b-example-vr {
25-
flex-shrink: 0;
26-
width: 1.5rem;
27-
height: 100vh;
28-
}
29-
301
.bi {
2+
display: inline-block;
3+
width: 1rem;
4+
height: 1rem;
315
vertical-align: -.125em;
326
fill: currentColor;
337
}
348

35-
.nav-scroller {
36-
position: relative;
37-
z-index: 2;
38-
height: 2.75rem;
39-
overflow-y: hidden;
40-
}
41-
42-
.nav-scroller .nav {
43-
display: flex;
44-
flex-wrap: nowrap;
45-
padding-bottom: 1rem;
46-
margin-top: -1px;
47-
overflow-x: auto;
48-
text-align: center;
49-
white-space: nowrap;
50-
-webkit-overflow-scrolling: touch;
51-
}
52-
539
.btn-bd-primary {
5410
--bd-violet-bg: #712cf9;
5511
--bd-violet-rgb: 112.520718, 44.062154, 249.437846;
@@ -74,25 +30,7 @@
7430
display: block !important;
7531
}
7632

77-
.bi {
78-
display: inline-block;
79-
width: 1rem;
80-
height: 1rem;
81-
}
82-
8333
/* Sidebar */
84-
@media (min-width: 768px) {
85-
.sidebar .offcanvas-lg {
86-
position: -webkit-sticky;
87-
position: sticky;
88-
top: 48px;
89-
}
90-
91-
.navbar-search {
92-
display: block;
93-
}
94-
}
95-
9634
.sidebar .nav-link {
9735
font-size: .875rem;
9836
font-weight: 500;
@@ -102,10 +40,6 @@
10240
color: #2470dc;
10341
}
10442

105-
.sidebar-heading {
106-
font-size: .75rem;
107-
}
108-
10943
/* Navbar */
11044
.navbar-brand {
11145
padding-top: .75rem;

0 commit comments

Comments
 (0)