1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Clean up web client

This commit is contained in:
Robert 2023-03-25 09:55:38 +01:00
parent 9e8017e17a
commit a2e20b3821
4 changed files with 29 additions and 34 deletions

View File

@ -12,5 +12,4 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="StrawberryShake.Server" Version="13.0.0-rc.4" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,6 @@
query GetNextRelease($currentVersion: String, $branch: String!, $platform: Platform!) {
nextPublishedRelease(version: $currentVersion, branch: $branch, platform: $platform) {
id
version
}
}

View File

@ -1,27 +1,3 @@
query GetReleases($branch: String!, $platform: Platform!, $take: Int!, $after: String) {
publishedReleases(
first: $take
after: $after
where: {
and: [
{ branch: { eq: $branch } }
{ artifacts: { some: { platform: { eq: $platform } } } }
]
}
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
version
createdAt
}
}
}
query GetReleaseById($id: UUID!) {
publishedRelease(id: $id) {
branch
@ -47,12 +23,4 @@ query GetReleaseById($id: UUID!) {
fragment fileInfo on ArtifactFileInfo {
md5Hash
downloadSize
}
query GetNextRelease($currentVersion: String, $branch: String!, $platform: Platform!) {
nextPublishedRelease(version: $currentVersion, branch: $branch, platform: $platform) {
id
version
}
}
}

View File

@ -0,0 +1,22 @@
query GetReleases($branch: String!, $platform: Platform!, $take: Int!, $after: String) {
publishedReleases(
first: $take
after: $after
where: {
and: [
{ branch: { eq: $branch } }
{ artifacts: { some: { platform: { eq: $platform } } } }
]
}
) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
version
createdAt
}
}
}