mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-17 14:19:16 +00:00
fix: GraphQL fragments deduplication
This commit is contained in:
parent
a8bddaaeba
commit
edb02764f7
|
@ -1,5 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'disk_volumes.graphql.dart';
|
||||
import 'package:gql/ast.dart';
|
||||
import 'package:graphql/client.dart' as graphql;
|
||||
import 'package:selfprivacy/utils/scalars.dart';
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
fragment basicMutationReturnFields on MutationReturnInterface{
|
||||
code
|
||||
message
|
||||
success
|
||||
}
|
||||
|
||||
query GetServerDiskVolumes {
|
||||
storage {
|
||||
volumes {
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,4 @@
|
|||
import 'dart:async';
|
||||
import 'disk_volumes.graphql.dart';
|
||||
import 'package:gql/ast.dart';
|
||||
import 'package:graphql/client.dart' as graphql;
|
||||
import 'package:selfprivacy/utils/scalars.dart';
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
fragment basicMutationReturnFields on MutationReturnInterface{
|
||||
code
|
||||
message
|
||||
success
|
||||
}
|
||||
|
||||
query SystemSettings {
|
||||
system {
|
||||
settings {
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,9 +1,3 @@
|
|||
fragment basicMutationReturnFields on MutationReturnInterface{
|
||||
code
|
||||
message
|
||||
success
|
||||
}
|
||||
|
||||
query AllServices {
|
||||
services {
|
||||
allServices {
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,9 +1,3 @@
|
|||
fragment basicMutationReturnFields on MutationReturnInterface{
|
||||
code
|
||||
message
|
||||
success
|
||||
}
|
||||
|
||||
fragment userFields on User{
|
||||
username
|
||||
userType
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -35,7 +35,13 @@ part 'volume_api.dart';
|
|||
part 'backups_api.dart';
|
||||
|
||||
class ServerApi extends GraphQLApiMap
|
||||
with VolumeApi, JobsApi, ServerActionsApi, ServicesApi, UsersApi, BackupsApi {
|
||||
with
|
||||
VolumeApi,
|
||||
JobsApi,
|
||||
ServerActionsApi,
|
||||
ServicesApi,
|
||||
UsersApi,
|
||||
BackupsApi {
|
||||
ServerApi({
|
||||
this.hasLogger = false,
|
||||
this.isWithToken = true,
|
||||
|
|
Loading…
Reference in a new issue