-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.razor
More file actions
28 lines (25 loc) · 1.08 KB
/
App.razor
File metadata and controls
28 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@using Microsoft.AspNetCore.Mvc.ViewFeatures
@inject IFileVersionProvider FileVersionProvider
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
@DxResourceManager.RegisterTheme(FluentLight)
@DxResourceManager.RegisterScripts()
<link href=@AppendVersion("https://cdn3.devexpress.com/jslib/25.1.3/css/dx.common.css") rel="stylesheet" />
<link href=@AppendVersion("https://cdn3.devexpress.com/jslib/25.1.3/css/dx.fluent.blue.light.css") rel="stylesheet" />
<link href=@AppendVersion("css/site.css") rel="stylesheet" />
<link href=@AppendVersion("BlazorSlider.styles.css") rel="stylesheet" />
<HeadOutlet />
</head>
<body class="dxbl-theme-fluent">
<Routes />
<script src="_framework/blazor.web.js"></script>
</body>
</html>
@code {
private string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
private static readonly ITheme FluentLight = Themes.Fluent.Clone(p => p.AddFilePaths($"css/theme-fluent.css"));
}