mirror of
https://github.com/Megghy/MegghysAPI.git
synced 2025-12-06 14:16:56 +08:00
迁移到 Ant Design 并优化 DNS 接口
将项目从 Fluent UI 迁移到 Ant Design Blazor: - 替换 UI 组件,更新样式和脚本。 - 移除 Fluent UI 相关依赖,添加 Ant Design 依赖。 优化 DNS 解析接口: - 将解析接口从 POST 改为 GET,简化参数结构。 - 更新 `DnsResponse` 和配置文件结构。 数据库模型优化: - 为 JSON 数据存储添加 `JArray` 映射支持。 初始化逻辑重构: - 简化 `AutoInit` 初始化逻辑,提升代码可读性。 其他改动: - 升级依赖包版本。 - 移除无用命名空间和属性。
This commit is contained in:
@@ -1,26 +1,43 @@
|
||||
@inherits LayoutComponentBase
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<FluentLayout>
|
||||
<FluentHeader>
|
||||
MegghysAPI
|
||||
</FluentHeader>
|
||||
<FluentStack Class="main" Orientation="Orientation.Horizontal" Width="100%">
|
||||
<NavMenu />
|
||||
<FluentBodyContent Class="body-content">
|
||||
<div class="content">
|
||||
@Body
|
||||
</div>
|
||||
</FluentBodyContent>
|
||||
</FluentStack>
|
||||
<FluentFooter>
|
||||
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
|
||||
<FluentSpacer />
|
||||
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
|
||||
</FluentFooter>
|
||||
</FluentLayout>
|
||||
<Layout class="app-layout">
|
||||
<Header class="app-header">
|
||||
<div class="app-header-title">MegghysAPI</div>
|
||||
</Header>
|
||||
<Layout>
|
||||
<Sider Collapsible="true"
|
||||
Collapsed="@collapsed"
|
||||
OnCollapse="HandleCollapse"
|
||||
Width="220"
|
||||
Class="app-sider">
|
||||
<NavMenu InlineCollapsed="@collapsed" />
|
||||
</Sider>
|
||||
<Layout>
|
||||
<Content class="app-content">
|
||||
<div class="content">
|
||||
@Body
|
||||
</div>
|
||||
</Content>
|
||||
<Footer class="app-footer">
|
||||
<a href="https://antblazor.com" target="_blank">Ant Design Blazor 文档</a>
|
||||
<span class="footer-spacer"></span>
|
||||
<a href="https://learn.microsoft.com/aspnet/core/blazor" target="_blank">About Blazor</a>
|
||||
</Footer>
|
||||
</Layout>
|
||||
</Layout>
|
||||
</Layout>
|
||||
|
||||
<div id="blazor-error-ui" data-nosnippet>
|
||||
An unhandled error has occurred.
|
||||
<a href="." class="reload">Reload</a>
|
||||
<span class="dismiss">🗙</span>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private bool collapsed;
|
||||
|
||||
private void HandleCollapse(bool isCollapsed)
|
||||
{
|
||||
collapsed = isCollapsed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user