update .net + passkey wip
This commit is contained in:
@@ -17,6 +17,8 @@ pub fn PasskeyRegistrationButton() -> Element
|
|||||||
|
|
||||||
fn start_passkey_registration() {}
|
fn start_passkey_registration() {}
|
||||||
|
|
||||||
|
fn create_credential() {}
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn PasskeyLoginButton() -> Element
|
pub fn PasskeyLoginButton() -> Element
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,16 +7,16 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FFMpegCore" Version="5.2.0" />
|
<PackageReference Include="FFMpegCore" Version="5.4.0" />
|
||||||
<PackageReference Include="Isopoh.Cryptography.Argon2" Version="2.0.0" />
|
<PackageReference Include="Isopoh.Cryptography.Argon2" Version="2.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.7" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.3" />
|
||||||
<PackageReference Include="MaybeError" Version="1.1.0" />
|
<PackageReference Include="MaybeError" Version="1.2.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.7" />
|
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.3" />
|
||||||
<PackageReference Include="MongoDB.Driver" Version="3.4.1" />
|
<PackageReference Include="MongoDB.Driver" Version="3.6.0" />
|
||||||
<PackageReference Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="2.1.0" />
|
<PackageReference Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="3.0.0" />
|
||||||
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.6" />
|
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="2.1.7" />
|
||||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.12.1" />
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.16.0" />
|
||||||
<PackageReference Include="ZLinq" Version="1.5.1" />
|
<PackageReference Include="ZLinq" Version="1.5.5" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -10,22 +10,22 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Fido2" Version="4.0.0" />
|
<PackageReference Include="Fido2" Version="4.0.0" />
|
||||||
<PackageReference Include="Grpc.AspNetCore" Version="2.71.0" />
|
<PackageReference Include="Grpc.AspNetCore" Version="2.76.0" />
|
||||||
<PackageReference Include="Grpc.AspNetCore.Web" Version="2.71.0" />
|
<PackageReference Include="Grpc.AspNetCore.Web" Version="2.76.0" />
|
||||||
<PackageReference Include="Grpc.Tools" Version="2.72.0">
|
<PackageReference Include="Grpc.Tools" Version="2.78.0">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Isopoh.Cryptography.Argon2" Version="2.0.0" />
|
<PackageReference Include="Isopoh.Cryptography.Argon2" Version="2.0.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.7" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.3" />
|
||||||
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.12.1" />
|
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.16.0" />
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
|
||||||
<PackageReference Include="MimeTypesMap" Version="1.0.9" />
|
<PackageReference Include="MimeTypesMap" Version="1.0.9" />
|
||||||
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.12.0" />
|
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.15.0" />
|
||||||
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.9.0-beta.2" />
|
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.9.0-beta.2" />
|
||||||
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" />
|
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.15.0" />
|
||||||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.12.0" />
|
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.15.0" />
|
||||||
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.12.0" />
|
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.15.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,120 +1,120 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option csharp_namespace = "Aoba.RPC";
|
option csharp_namespace = "Aoba.RPC";
|
||||||
package aoba;
|
package aoba;
|
||||||
import "google/protobuf/empty.proto";
|
import "google/protobuf/empty.proto";
|
||||||
|
|
||||||
message Credentials{
|
message Credentials{
|
||||||
string user = 1;
|
string user = 1;
|
||||||
string password = 2;
|
string password = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message Jwt{
|
message Jwt{
|
||||||
string token = 1;
|
string token = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginResponse{
|
message LoginResponse{
|
||||||
oneof result {
|
oneof result {
|
||||||
Jwt jwt = 1;
|
Jwt jwt = 1;
|
||||||
LoginError error = 2;
|
LoginError error = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message LoginError{
|
message LoginError{
|
||||||
string message = 1;
|
string message = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PageFilter {
|
message PageFilter {
|
||||||
optional int32 page = 1;
|
optional int32 page = 1;
|
||||||
optional int32 pageSize = 2;
|
optional int32 pageSize = 2;
|
||||||
optional string query = 3;
|
optional string query = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Id {
|
message Id {
|
||||||
string value = 1;
|
string value = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MediaResponse {
|
message MediaResponse {
|
||||||
oneof result {
|
oneof result {
|
||||||
MediaModel value = 1;
|
MediaModel value = 1;
|
||||||
google.protobuf.Empty empty = 2;
|
google.protobuf.Empty empty = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message ListResponse {
|
message ListResponse {
|
||||||
repeated MediaModel items = 1;
|
repeated MediaModel items = 1;
|
||||||
Pagination pagination = 2;
|
Pagination pagination = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Pagination {
|
message Pagination {
|
||||||
int32 page = 1;
|
int32 page = 1;
|
||||||
int32 pageSize = 2;
|
int32 pageSize = 2;
|
||||||
int32 totalPages = 3;
|
int32 totalPages = 3;
|
||||||
int32 totalItems = 4;
|
int32 totalItems = 4;
|
||||||
optional string query = 5;
|
optional string query = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserResponse {
|
message UserResponse {
|
||||||
oneof userResult {
|
oneof userResult {
|
||||||
UserModel user = 1;
|
UserModel user = 1;
|
||||||
google.protobuf.Empty empty = 2;
|
google.protobuf.Empty empty = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserModel {
|
message UserModel {
|
||||||
Id id = 1;
|
Id id = 1;
|
||||||
string username = 2;
|
string username = 2;
|
||||||
string email = 3;
|
string email = 3;
|
||||||
bool isAdmin = 4;
|
bool isAdmin = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
message MediaModel {
|
message MediaModel {
|
||||||
Id id = 1;
|
Id id = 1;
|
||||||
string fileName = 2;
|
string fileName = 2;
|
||||||
MediaType mediaType = 3;
|
MediaType mediaType = 3;
|
||||||
string ext = 4;
|
string ext = 4;
|
||||||
int32 viewCount = 5;
|
int32 viewCount = 5;
|
||||||
Id owner = 6;
|
Id owner = 6;
|
||||||
string thumbUrl = 7;
|
string thumbUrl = 7;
|
||||||
string mediaUrl = 8;
|
string mediaUrl = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MediaType {
|
enum MediaType {
|
||||||
Image = 0;
|
Image = 0;
|
||||||
Audio = 1;
|
Audio = 1;
|
||||||
Video = 2;
|
Video = 2;
|
||||||
Text = 3;
|
Text = 3;
|
||||||
Code = 4;
|
Code = 4;
|
||||||
Raw = 5;
|
Raw = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ShareXResponse {
|
message ShareXResponse {
|
||||||
oneof dstResult {
|
oneof dstResult {
|
||||||
string destination = 1;
|
string destination = 1;
|
||||||
string error = 2;
|
string error = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
message SearchQuery {
|
message SearchQuery {
|
||||||
optional string queryText = 1;
|
optional string queryText = 1;
|
||||||
repeated Filter filters = 2;
|
repeated Filter filters = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Filter {
|
message Filter {
|
||||||
string key = 1;
|
string key = 1;
|
||||||
repeated string values = 2;
|
repeated string values = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PasskeyPayload {
|
message PasskeyPayload {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message PasskeyRegistrationCreds{
|
message PasskeyRegistrationCreds{
|
||||||
|
|
||||||
}
|
}
|
||||||
message PasskeyPublicKey{
|
message PasskeyPublicKey{
|
||||||
|
|||||||
Reference in New Issue
Block a user