Expose maximum picture sizes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-04-12 10:13:11 +02:00
parent fb614cf877
commit 0210b677c5
7 changed files with 39 additions and 4 deletions

View File

@@ -75,6 +75,11 @@ export const CONFIG = gql`
label
}
}
uploadLimits {
default
avatar
banner
}
}
}
`;

View File

@@ -89,4 +89,9 @@ export interface IConfig {
ldap: boolean;
oauthProviders: IOAuthProvider[];
};
uploadLimits: {
default: number;
avatar: number;
banner: number;
};
}

View File

@@ -102,6 +102,12 @@ export const configMock = {
},
],
slogan: null,
uploadLimits: {
__typename: "UploadLimits",
default: 10_000_000,
avatar: 2_000_000,
banner: 4_000_000,
},
},
},
};