2024-07-01 21:40:27 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import gql from 'graphql-tag';
|
|
|
|
|
|
|
|
|
|
export const CATEGORY_BASE_FIELDS = gql`
|
|
|
|
|
fragment CATEGORY_BASE_FIELDS on CategoryType {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
|
|
|
|
|
default
|
|
|
|
|
order
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const CATEGORY_LIBRARY_FIELDS = gql`
|
|
|
|
|
${CATEGORY_BASE_FIELDS}
|
|
|
|
|
|
|
|
|
|
fragment CATEGORY_LIBRARY_FIELDS on CategoryType {
|
|
|
|
|
...CATEGORY_BASE_FIELDS
|
|
|
|
|
|
2024-09-17 03:40:55 +02:00
|
|
|
meta {
|
2024-09-21 20:01:06 +02:00
|
|
|
categoryId
|
2024-09-17 03:40:55 +02:00
|
|
|
key
|
|
|
|
|
value
|
|
|
|
|
}
|
2024-07-01 21:40:27 +02:00
|
|
|
mangas {
|
|
|
|
|
totalCount
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const CATEGORY_SETTING_FIELDS = gql`
|
|
|
|
|
${CATEGORY_BASE_FIELDS}
|
|
|
|
|
|
|
|
|
|
fragment CATEGORY_SETTING_FIELDS on CategoryType {
|
|
|
|
|
...CATEGORY_BASE_FIELDS
|
|
|
|
|
|
|
|
|
|
includeInUpdate
|
|
|
|
|
includeInDownload
|
|
|
|
|
}
|
|
|
|
|
`;
|