Skip to content

Commit 79b0e24

Browse files
authored
feat(ThemeLoader): remove ThemeLoader component (#4587)
* refactor: 移除 ThemeLoader 组件 # Conflicts: # src/BootstrapBlazor.Server/Components/App.razor * refactor: 移除 ThemeLoader 组件 * doc: 更新文档
1 parent 1035c2a commit 79b0e24

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

src/BootstrapBlazor.Server/Components/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<meta name="keywords" content="bootstrap,blazor,wasm,webassembly,UI,netcore,web,assembly">
1313
<meta name="description" content="基于 Bootstrap 风格的 Blazor UI 组件库,用于研发企业级中后台产品。">
1414
<meta name="author" content="argo ([email protected])">
15+
<title>@Localizer["Title"]</title>
1516
<base href="/" />
1617
<link rel="icon" href="favicon.ico" type="image/x-icon">
1718
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
@@ -24,7 +25,6 @@
2425
<Link Href="BootstrapBlazor.Server.styles.css" />
2526
<Link Href="css/site.css" />
2627
<HeadOutlet @rendermode="new InteractiveServerRenderMode(false)" />
27-
<title>@Localizer["Title"]</title>
2828
</head>
2929

3030
<body>

src/BootstrapBlazor.Server/Components/Samples/ThemeProviders.razor

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,4 @@ private IThemeProvider? ThemeProvider { get; set; }</Pre>
3030
<li><code>ThemeProvider</code> 组件选中主题后,默认使用 <code>localStorage</code> 对值进行了本地存储</li>
3131
</ul>
3232

33-
<p class="code-label">5. 本地存储</p>
34-
35-
<p>页面首次加载时,通过 <code>ThemeLoader</code> 组件读取本地存储值(<code>App.razor</code> 文件内)</p>
36-
37-
<Pre>&lt;head&gt;
38-
&lt;meta charset="utf-8" /&gt;
39-
&lt;ThemeLoader&gt;&lt;/ThemeLoader&gt;
40-
&lt;/head&gt;</Pre>
41-
4233
<Video Name="@_videoFileName"></Video>

src/BootstrapBlazor/Components/ThemeProvider/ThemeLoader.razor

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/BootstrapBlazor/wwwroot/modules/theme.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)