mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-11 10:08:34 +00:00
Small code formatting fix in client, log cloud upload request/response
This commit is contained in:
1 parent
c711bf02c9
commit
f8a51f6887
2 files changed
+5
-2
No files matched your search
@@ -173,10 +173,11 @@ public class MessageTests(ITestOutputHelper testOutputHelper, TestFixture fixtur
|
||||
}
|
||||
}
|
||||
};
|
||||
testOutputHelper.WriteLine(content.ToJson(indent: true));
|
||||
var res = await Assert.HttpSuccess(await Client.ApiHttpClient.PostAsJsonAsync($"channels/{Channel.Id}/messages", content,
|
||||
cancellationToken: TestContext.Current.CancellationToken));
|
||||
var json = (await res.Content.ReadFromJsonAsync<JsonObject>());
|
||||
// testOutputHelper.WriteLine(json.ToJson(indent: true));
|
||||
testOutputHelper.WriteLine(json.ToJson(indent: true));
|
||||
var msg = json.Deserialize<Message>();
|
||||
Assert.Equal("meow", msg.Content);
|
||||
Assert.Single(msg.Attachments);
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
@using Spacebar.Client.Components
|
||||
@using Spacebar.Models.Gateway
|
||||
@using Spacebar.Models.Generic
|
||||
@using ArcaneLibs.Blazor.Components.Services
|
||||
@using Spacebar.Client.Components
|
||||
@inject JsConsoleService jsConsole
|
||||
|
||||
<style>@_guildCss</style>
|
||||
@@ -53,7 +55,7 @@
|
||||
foreach (var role in App.ClientManager.ClientState.Guilds[GuildId].Roles) {
|
||||
_guildCss += $$"""
|
||||
.role_{{role.Id}} {
|
||||
color: #{{role.Colors.PrimaryColor.ToString("X6")}};
|
||||
color: #{{role.Colors.PrimaryColor:X6}};
|
||||
}
|
||||
|
||||
""";
|
||||
|
||||
Reference in new issue
Block a user