mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop - Fixed deep linking to an entry
Workshop - Added the ability to upload new releases to existing submissions
This commit is contained in:
1 parent
bf3d5fc75d
commit
2ee170b803
25 files changed
+375
-133
No files matched your search
@@ -44,5 +44,8 @@
|
||||
<GraphQL Update="Queries\RemoveEntry.graphql">
|
||||
<Generator>MSBuild:GenerateGraphQLCode</Generator>
|
||||
</GraphQL>
|
||||
<GraphQL Update="Queries\UpdateEntry.graphql">
|
||||
<Generator>MSBuild:GenerateGraphQLCode</Generator>
|
||||
</GraphQL>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation UpdateEntry ($input: UpdateEntryInput!) {
|
||||
updateEntry(input: $input) {
|
||||
id
|
||||
}
|
||||
}
|
||||
@@ -64,6 +64,24 @@ public class WorkshopService : IWorkshopService
|
||||
await _router.Navigate($"workshop/offline/{status.Message}");
|
||||
return status.IsReachable;
|
||||
}
|
||||
|
||||
public async Task NavigateToEntry(Guid entryId, EntryType entryType)
|
||||
{
|
||||
switch (entryType)
|
||||
{
|
||||
case EntryType.Profile:
|
||||
await _router.Navigate($"workshop/entries/profiles/details/{entryId}");
|
||||
break;
|
||||
case EntryType.Layout:
|
||||
await _router.Navigate($"workshop/entries/layouts/details/{entryId}");
|
||||
break;
|
||||
case EntryType.Plugin:
|
||||
await _router.Navigate($"workshop/entries/plugins/details/{entryId}");
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(entryType));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public interface IWorkshopService
|
||||
@@ -71,6 +89,7 @@ public interface IWorkshopService
|
||||
Task<ImageUploadResult> SetEntryIcon(Guid entryId, Progress<StreamProgress> progress, Stream icon, CancellationToken cancellationToken);
|
||||
Task<WorkshopStatus> GetWorkshopStatus(CancellationToken cancellationToken);
|
||||
Task<bool> ValidateWorkshopStatus(CancellationToken cancellationToken);
|
||||
|
||||
Task NavigateToEntry(Guid entryId, EntryType entryType);
|
||||
|
||||
public record WorkshopStatus(bool IsReachable, string Message);
|
||||
}
|
||||
Reference in new issue
Block a user