Add initial project structure with basic view models, views, and resources

This commit is contained in:
2026-09-14 19:46:46 +03:00
commit 45401645c6
68 changed files with 2538 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using System.Net.Http;
using System.Net.Http.Headers;
using CryptoPortfolio_Tracker.Models;
namespace CryptoPortfolio_Tracker.Core;
public static class AppState
{
public static User? CurrentUser { get; set; } = null;
public static HttpClient CryptoHttpClient { get; }
static AppState()
{
CryptoHttpClient = new HttpClient();
CryptoHttpClient.DefaultRequestHeaders.Add("x-cg-demo-api-key", "CG-tRuAG4pgWucXgGYSpZMi7ADN");
CryptoHttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
CryptoHttpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("CryptoPortfolioApp", "1.0"));
}
}