-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.razor
More file actions
29 lines (26 loc) · 1006 Bytes
/
App.razor
File metadata and controls
29 lines (26 loc) · 1006 Bytes
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
29
@using Microsoft.AspNetCore.Mvc.ViewFeatures
@inject IFileVersionProvider FileVersionProvider
<!DOCTYPE html>
<html lang="en" data-bs-theme="null" data-fluent-darkmode="null">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="/" />
@DxResourceManager.RegisterTheme(Themes.Fluent.Clone(properties => {
properties.Name = "Fluent Custom";
properties.AddFilePaths("css/custom/dx_variables.css");
properties.ApplyToPageElements = true;
}))
@DxResourceManager.RegisterScripts()
<link href=@AppendVersion("css/site.css") rel="stylesheet" />
<link href=@AppendVersion("DxThemeVariablesExample.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);
}