Feature/about screen add option to check for and trigger updates (#485)

* [VersionMapping] Require server version "r1436" for preview

* Move ts util types to new type file

* Add buttons for updating server and webUI
This commit is contained in:
schroda
2023-12-09 23:08:27 +01:00
committed by GitHub
parent 2caf88ce51
commit 78310496aa
13 changed files with 389 additions and 39 deletions

View File

@@ -7,9 +7,10 @@
*/
import gql from 'graphql-tag';
import { WEBUI_UPDATE_STATUS } from '@/lib/graphql/Fragments';
import { ABOUT_WEBUI, WEBUI_UPDATE_CHECK, WEBUI_UPDATE_STATUS } from '@/lib/graphql/Fragments';
export const GET_ABOUT = gql`
${ABOUT_WEBUI}
query GET_ABOUT {
aboutServer {
buildTime
@@ -21,8 +22,7 @@ export const GET_ABOUT = gql`
version
}
aboutWebUI {
channel
tag
...ABOUT_WEBUI
}
}
`;
@@ -38,11 +38,10 @@ export const CHECK_FOR_SERVER_UPDATES = gql`
`;
export const CHECK_FOR_WEBUI_UPDATE = gql`
${WEBUI_UPDATE_CHECK}
query CHECK_FOR_WEBUI_UPDATE {
checkForWebUIUpdate {
channel
tag
updateAvailable
...WEBUI_UPDATE_CHECK
}
}
`;