mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Clean up web client
This commit is contained in:
parent
9e8017e17a
commit
a2e20b3821
@ -12,5 +12,4 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
|
||||||
<PackageReference Include="StrawberryShake.Server" Version="13.0.0-rc.4" />
|
<PackageReference Include="StrawberryShake.Server" Version="13.0.0-rc.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
query GetNextRelease($currentVersion: String, $branch: String!, $platform: Platform!) {
|
||||||
|
nextPublishedRelease(version: $currentVersion, branch: $branch, platform: $platform) {
|
||||||
|
id
|
||||||
|
version
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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!) {
|
query GetReleaseById($id: UUID!) {
|
||||||
publishedRelease(id: $id) {
|
publishedRelease(id: $id) {
|
||||||
branch
|
branch
|
||||||
@ -47,12 +23,4 @@ query GetReleaseById($id: UUID!) {
|
|||||||
fragment fileInfo on ArtifactFileInfo {
|
fragment fileInfo on ArtifactFileInfo {
|
||||||
md5Hash
|
md5Hash
|
||||||
downloadSize
|
downloadSize
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetNextRelease($currentVersion: String, $branch: String!, $platform: Platform!) {
|
|
||||||
nextPublishedRelease(version: $currentVersion, branch: $branch, platform: $platform) {
|
|
||||||
id
|
|
||||||
version
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
22
src/Artemis.WebClient.Updating/Queries/GetReleases.graphql
Normal file
22
src/Artemis.WebClient.Updating/Queries/GetReleases.graphql
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user