This commit is contained in:
Viktor Tachev 2024-06-11 10:52:54 +03:00 коммит произвёл Dimitar Goshev
Родитель 48cecd9f5f
Коммит 20d038393b
5 изменённых файлов: 22 добавлений и 21 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove="wwwroot\lib\jquery-validation-unobtrusive\**" />
@ -18,17 +18,17 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.13" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client.Core" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0">
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.6" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client.Core" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.6">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.10" />
<PackageReference Include="Telerik.UI.for.AspNet.Core.Trial" Version="2023.3.1114" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.2" />
<PackageReference Include="Telerik.UI.for.AspNet.Core.Trial" Version="2024.2.514" />
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -7,7 +7,7 @@
<div class="col d-flex justify-content-between align-items-center py-5">
<h1>My Portfolio</h1>
<a href="~/Home">
<span class="k-icon icon-close"></span>
<span id="close-icon"></span>
</a>
</div>
<div class=" row d-flex justify-content-between pt-5">
@ -85,6 +85,7 @@
<script>
$(document).ready(function(){
$('header, footer').css("display","none");
kendo.ui.icon($("#close-icon"), { icon: 'x' });
});
</script>

Просмотреть файл

@ -18,9 +18,9 @@
.Name("select-period")
.Items(t =>
{
t.Add().Text("Result List").HtmlAttributes(new {@class="k-button-flat"});
t.Add().Text("Heatmap View").HtmlAttributes(new {@class="k-button-flat"});
t.Add().Text("Data Virtualization").HtmlAttributes(new {@class="k-button-flat"});
t.Add().Text("Result List").Selected(@Html.Raw(Model.currentView).ToString() == "Home");
t.Add().Text("Heatmap View").Selected(@Html.Raw(Model.currentView).ToString() == "HeatMap");
t.Add().Text("Data Virtualization").Selected(@Html.Raw(Model.currentView).ToString() == "DataVirtualization");
})
.Events(e => e.Select("onSelect"))
)

Просмотреть файл

@ -6,14 +6,14 @@
<meta name="description" content="Create powerful stocks portfolio, finance portfolio, data virtualization, result lists and heatmap view dashboards with Telerik UI for ASP.NET Core components.">
<title>ASP.NET Core Data Virtualization - Finance Portfolio Demo | Telerik UI for ASP.NET Core</title>
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/themes/7.0.2/bootstrap/bootstrap-main.css" />
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/themes/8.0.1/bootstrap/bootstrap-main.css" />
<script src="~/js/signalr.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2023.3.1114/js/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2023.3.1114/js/kendo.all.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2023.3.1114/js/kendo.aspnetmvc.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2023.3.1114/js/cultures/kendo.culture.en-US.min.js"></script>
<script src="https://unpkg.com/jszip/dist/jszip.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2024.2.514/js/kendo.all.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2024.2.514/js/kendo.aspnetmvc.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2024.2.514/js/cultures/kendo.culture.en-US.min.js"></script>
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>

Просмотреть файл

@ -446,9 +446,9 @@ function updateChart() {
var navi = chart.navigator;
var fixedRangeIndex = $("#timeFilter li span.selected").index();
var duration = fixedRangeIndex !== -1 ? timeFilters[fixedRangeIndex].Duration / toMins : timeFilters[0].Duration / toMins;
end = range.end || new Date();
start = range.start || new Date();
end = range ? range.end : new Date();
start = range? range.start : new Date();
start.setMinutes(end.getMinutes() - duration);
navi.select(start, end);
chart.dataSource.read();