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