Skip to content

Commit 4e4a1d0

Browse files
tknsnail
authored andcommitted
fix: 🐛 个性主题色冲突
1 parent 098cfc1 commit 4e4a1d0

File tree

56 files changed

+316
-485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+316
-485
lines changed

src/backend/NetAdmin/NetAdmin.SysComponent.Application/NetAdmin.SysComponent.Application.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="$(SolutionDir)/build/code.quality.props"/>
3+
<ItemGroup>
4+
<EmbeddedResource Include="$(SolutionDir)/assets/captcha/**" LinkBase="Assets/Captcha"/>
5+
</ItemGroup>
36
<ItemGroup>
47
<ProjectReference Include="../NetAdmin.Application/NetAdmin.Application.csproj"/>
58
</ItemGroup>

src/backend/NetAdmin/NetAdmin.SysComponent.Application/Services/Sys/CaptchaService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace NetAdmin.SysComponent.Application.Services.Sys;
77
/// <inheritdoc cref="ICaptchaService" />
88
public sealed class CaptchaService : ServiceBase<ICaptchaService>, ICaptchaService
99
{
10-
private static readonly Assembly _entryAsm = Assembly.GetEntryAssembly();
11-
private static readonly string _entryAsmName = _entryAsm.FullName![.._entryAsm.FullName.IndexOf(',')];
10+
private static readonly Assembly _currAsm = Assembly.GetAssembly(typeof(CaptchaService));
11+
private static readonly string _currAsmName = _currAsm.FullName![.._currAsm.FullName.IndexOf(',')];
1212

1313
/// <summary>
1414
/// Initializes a new instance of the <see cref="CaptchaService" /> class.
@@ -19,8 +19,8 @@ public CaptchaService() { }
1919
public async Task<GetCaptchaRsp> GetCaptchaImageAsync()
2020
{
2121
var (backgroundImage, sliderImage, offsetSaw) = await CaptchaImageHelper.CreateSawSliderImageAsync(
22-
_entryAsm, $"{_entryAsmName}.Assets.Captcha.background"
23-
, $"{_entryAsmName}.Assets.Captcha.template", (1, 101), (1, 7)
22+
_currAsm, $"{_currAsmName}.Assets.Captcha.background"
23+
, $"{_currAsmName}.Assets.Captcha.template", (1, 101), (1, 7)
2424
, new Size(50, 50))
2525
.ConfigureAwait(false);
2626

src/backend/NetAdmin/NetAdmin.SysComponent.Host/NetAdmin.SysComponent.Host.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="$(SolutionDir)/build/code.quality.props"/>
3-
<ItemGroup>
4-
<EmbeddedResource Include="$(SolutionDir)/assets/captcha/**" LinkBase="Assets/Captcha"/>
5-
</ItemGroup>
63
<ItemGroup>
74
<ProjectReference Include="../NetAdmin.Host/NetAdmin.Host.csproj"/>
85
<ProjectReference Include="../NetAdmin.SysComponent.Cache/NetAdmin.SysComponent.Cache.csproj"/>

src/frontend/admin/.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"attributeGroups": ["^v-", "$DEFAULT"],
33
"attributeSort": "ASC",
44
"bracketSameLine": true,
5-
"endOfLine": "auto",
5+
"endOfLine": "lf",
66
"plugins": ["prettier-plugin-organize-attributes"],
77
"printWidth": 150,
88
"semi": false,

src/frontend/admin/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
justify-content: center;
3131
align-items: center;
3232
flex-direction: column;
33-
background: #fff;
33+
background: white;
3434
}
3535

3636
.app-loading__logo {
@@ -47,7 +47,7 @@
4747
width: 35px;
4848
height: 35px;
4949
border: 5px solid transparent;
50-
border-top-color: #000;
50+
border-top-color: black;
5151
border-radius: 50%;
5252
animation: 0.5s loader linear infinite;
5353
position: relative;
@@ -79,7 +79,7 @@
7979
}
8080

8181
.dark .app-loading__loader {
82-
border-top-color: #fff;
82+
border-top-color: white;
8383
}
8484

8585
.dark .app-loading__title {
@@ -103,7 +103,7 @@
103103
<div class="aminui" id="app">
104104
<div class="app-loading">
105105
<div class="app-loading__logo">
106-
<img alt="" src="/src/assets/img/logo.png" />
106+
<img alt="" src="/src/assets/img/logo.svg" />
107107
</div>
108108
<div class="app-loading__loader"></div>
109109
<div class="app-loading__title">NetAdmin</div>
5.25 KB
Binary file not shown.
-26.9 KB
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Loading
-6.23 KB
Binary file not shown.
-6.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)