Skip to content

Commit

Permalink
added ui
Browse files Browse the repository at this point in the history
  • Loading branch information
HUSSAR-mtrela committed Dec 22, 2023
1 parent 9215ce4 commit 2ba1d1f
Show file tree
Hide file tree
Showing 23 changed files with 2,183 additions and 31 deletions.
8 changes: 5 additions & 3 deletions App.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Router AppAssembly="@typeof(App).Assembly">
@*<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
Expand All @@ -7,6 +7,8 @@
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</LayoutView>
</NotFound>
</Router>
</Router>*@

<Scripter/>
29 changes: 29 additions & 0 deletions DEV.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

open CMD or press CTRL+D
dotnet watch run

TODO use await
https://github.com/IgniteUI/igniteui-react-examples/blob/vnext/samples/charts/financial-chart/multiple-data/src/StocksHistory.ts

https://stackoverflow.com/questions/12460378/how-to-get-json-from-url-in-javascript
//async function fetchDataAsync(url) {
// const response = await fetch(url);
// console.log(await response.json());
//}
//fetchDataAsync('paste URL');

//fetchData(callback) {
// let url = window.location.protocol + '//' + window.location.host + '/data/bp-extracted-small.json';
// fetch(url)
// .then(response => response.json())
// .then(json => callback(null, json))
// .catch(error => callback(error, null))
//}
//Then use it like this:

//fetchData((error, data) => {
// if (error)
// console.log(error)
// else
// console.log(data[0])
//});
4 changes: 2 additions & 2 deletions Pages/Chart.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject FAF.WebService WebService

@page "/chart"
@page "/"
@*@page "/"*@

@*<PageTitle>Index</PageTitle>*@

Expand All @@ -26,7 +26,7 @@

@* *@

<div class="container vertical fill">
<div class="container vertical fill" style="background: #FFFFFF">
<IgbDataChart
@ref="chart"
Name="chart" Height="600px"
Expand Down
3 changes: 1 addition & 2 deletions Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
<h1>Hello, Commander!</h1>

Welcome to Supreme Units Database

@*<SurveyPrompt Title="How is Blazor working for you?" />*@

8 changes: 8 additions & 0 deletions Pages/Scripter.Evemts.razor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Microsoft.AspNetCore.Components;

namespace SupremeUnitsApp.Pages
{
public class ScripterBase2 : ComponentBase
{
}
}
Loading

0 comments on commit 2ba1d1f

Please sign in to comment.