|
1 |
| -@using System.Globalization |
2 |
| -@using Microsoft.AspNetCore.Localization |
3 |
| - |
4 |
| -<!DOCTYPE html> |
5 |
| -<html lang="en"> |
6 |
| - |
7 |
| -<head> |
8 |
| - <meta charset="utf-8" /> |
9 |
| - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
10 |
| - <base href="/blazor-financial-dashboard/" /> |
11 |
| - <link rel="stylesheet" href="https://blazor.cdn.telerik.com/blazor/8.1.1/kendo-theme-material/swatches/material-main-dark.css" /> |
12 |
| - <link rel="stylesheet" href="https://unpkg.com/@@progress/kendo-theme-utils/dist/all.css" /> |
13 |
| - <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" /> |
14 |
| - <script src="https://blazor.cdn.telerik.com/blazor/8.1.1/telerik-blazor.min.js" defer></script> |
15 |
| - <link rel="stylesheet" href="app.css" /> |
16 |
| - <link rel="stylesheet" href="BlazorFinancialDashboard.styles.css" /> |
17 |
| - <link rel="icon" type="image/png" sizes="48x48" href="favicon-48x48.png" /> |
18 |
| - <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> |
19 |
| - <link rel="shortcut icon" href="/favicon.ico" /> |
20 |
| - <link rel="apple-touch-icon" type="image/png" href="/apple-touch-icon.png" /> |
21 |
| - <HeadOutlet @rendermode="@InteractiveServer" /> |
22 |
| -</head> |
23 |
| - |
24 |
| -<body class="k-body"> |
25 |
| - <Routes @rendermode="@InteractiveServer" /> |
26 |
| - <script src="_framework/blazor.web.js" autostart="false"></script> |
27 |
| - <script src="app.js" autostart="false"></script> |
28 |
| - <script> |
29 |
| - document.addEventListener("DOMContentLoaded", function() { |
30 |
| - Blazor.start(); |
31 |
| - }); |
32 |
| - </script> |
33 |
| -</body> |
34 |
| - |
35 |
| -</html> |
36 |
| - |
37 |
| -@code { |
38 |
| - [CascadingParameter] |
39 |
| - public HttpContext? HttpContext { get; set; } |
40 |
| - |
41 |
| - protected override void OnInitialized() |
42 |
| - { |
43 |
| - HttpContext?.Response.Cookies.Append( |
44 |
| - CookieRequestCultureProvider.DefaultCookieName, |
45 |
| - CookieRequestCultureProvider.MakeCookieValue( |
46 |
| - new RequestCulture( |
47 |
| - CultureInfo.CurrentCulture, |
48 |
| - CultureInfo.CurrentUICulture))); |
49 |
| - } |
50 |
| -} |
| 1 | +@using System.Globalization |
| 2 | +@using Microsoft.AspNetCore.Localization |
| 3 | + |
| 4 | +<!DOCTYPE html> |
| 5 | +<html lang="en"> |
| 6 | + |
| 7 | +<head> |
| 8 | + <meta charset="utf-8" /> |
| 9 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 10 | + <base href="/blazor-financial-dashboard/" /> |
| 11 | + <link rel="stylesheet" href="https://blazor.cdn.telerik.com/blazor/9.0.0/kendo-theme-material/swatches/material-main-dark.css" /> |
| 12 | + <link rel="stylesheet" href="https://unpkg.com/@@progress/kendo-theme-utils/dist/all.css" /> |
| 13 | + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" /> |
| 14 | + <script src="https://blazor.cdn.telerik.com/blazor/8.1.1/telerik-blazor.min.js" defer></script> |
| 15 | + <link rel="stylesheet" href="app.css" /> |
| 16 | + <link rel="stylesheet" href="BlazorFinancialDashboard.styles.css" /> |
| 17 | + <link rel="icon" type="image/png" sizes="48x48" href="favicon-48x48.png" /> |
| 18 | + <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> |
| 19 | + <link rel="shortcut icon" href="/favicon.ico" /> |
| 20 | + <link rel="apple-touch-icon" type="image/png" href="/apple-touch-icon.png" /> |
| 21 | + <HeadOutlet @rendermode="@InteractiveServer" /> |
| 22 | +</head> |
| 23 | + |
| 24 | +<body class="k-body"> |
| 25 | + <Routes @rendermode="@InteractiveServer" /> |
| 26 | + <script src="_framework/blazor.web.js" autostart="false"></script> |
| 27 | + <script src="app.js" autostart="false"></script> |
| 28 | + <script> |
| 29 | + document.addEventListener("DOMContentLoaded", function() { |
| 30 | + Blazor.start(); |
| 31 | + }); |
| 32 | + </script> |
| 33 | +</body> |
| 34 | + |
| 35 | +</html> |
| 36 | + |
| 37 | +@code { |
| 38 | + [CascadingParameter] |
| 39 | + public HttpContext? HttpContext { get; set; } |
| 40 | + |
| 41 | + protected override void OnInitialized() |
| 42 | + { |
| 43 | + HttpContext?.Response.Cookies.Append( |
| 44 | + CookieRequestCultureProvider.DefaultCookieName, |
| 45 | + CookieRequestCultureProvider.MakeCookieValue( |
| 46 | + new RequestCulture( |
| 47 | + CultureInfo.CurrentCulture, |
| 48 | + CultureInfo.CurrentUICulture))); |
| 49 | + } |
| 50 | +} |
0 commit comments