fix: fix credential3rd graphql

This commit is contained in:
master 2025-05-24 02:32:02 +08:00
parent 0fcbc6bbe9
commit 66413f92e3
23 changed files with 837 additions and 1009 deletions

View File

@ -2,5 +2,5 @@
recorder-playground = "run -p recorder --example playground -- --environment development"
[build]
#rustflags = ["-Zthreads=8", "-Zshare-generics=y"]
rustflags = ["-Zthreads=8"]
rustflags = ["-Zthreads=8", "-Zshare-generics=y"]
#rustflags = ["-Zthreads=8"]

View File

@ -1,3 +1,6 @@
use async_graphql::Error as AsyncGraphQLError;
use seaography::SeaographyError;
#[derive(Debug, snafu::Snafu)]
pub enum CryptoError {
#[snafu(transparent)]
@ -9,3 +12,9 @@ pub enum CryptoError {
#[snafu(transparent)]
SerdeJsonError { source: serde_json::Error },
}
impl From<CryptoError> for SeaographyError {
fn from(error: CryptoError) -> Self {
SeaographyError::AsyncGraphQLError(AsyncGraphQLError::new(error.to_string()))
}
}

View File

@ -1,13 +1,15 @@
use std::{collections::BTreeMap, sync::Arc};
use async_graphql::dynamic::ResolverContext;
use sea_orm::{ColumnTrait, Condition, EntityTrait, Value};
use seaography::{BuilderContext, FnFilterConditionsTransformer, FnMutationInputObjectTransformer};
use async_graphql::dynamic::{ResolverContext, ValueAccessor};
use sea_orm::{ColumnTrait, Condition, EntityTrait, Value as SeaValue};
use seaography::{
BuilderContext, FnFilterConditionsTransformer, FnMutationInputObjectTransformer, SeaResult,
};
use super::util::{get_column_key, get_entity_key};
use crate::auth::AuthUserInfo;
use crate::{app::AppContextTrait, auth::AuthUserInfo, models::credential_3rd};
pub fn filter_condition_transformer<T>(
pub fn build_filter_condition_transformer<T>(
_context: &BuilderContext,
column: &T::Column,
) -> FnFilterConditionsTransformer
@ -29,7 +31,7 @@ where
)
}
pub fn mutation_input_object_transformer<T>(
pub fn build_mutation_input_object_transformer<T>(
context: &BuilderContext,
column: &T::Column,
) -> FnMutationInputObjectTransformer
@ -55,8 +57,8 @@ where
));
Box::new(
move |context: &ResolverContext,
mut input: BTreeMap<String, Value>|
-> BTreeMap<String, Value> {
mut input: BTreeMap<String, SeaValue>|
-> BTreeMap<String, SeaValue> {
let field_name = context.field().name();
if field_name == entity_create_one_mutation_field_name.as_str()
|| field_name == entity_create_batch_mutation_field_name.as_str()
@ -68,7 +70,7 @@ where
if value.is_none() {
input.insert(
column_name.as_str().to_string(),
Value::Int(Some(subscriber_id)),
SeaValue::Int(Some(subscriber_id)),
);
}
input
@ -81,3 +83,91 @@ where
},
)
}
fn add_crypto_column_input_conversion<T>(
context: &mut BuilderContext,
ctx: Arc<dyn AppContextTrait>,
column: &T::Column,
) where
T: EntityTrait,
<T as EntityTrait>::Model: Sync,
{
let entity_key = get_entity_key::<T>(context);
let column_name = get_column_key::<T>(context, column);
let entity_name = context.entity_object.type_name.as_ref()(&entity_key);
let column_name = context.entity_object.column_name.as_ref()(&entity_key, &column_name);
context.types.input_conversions.insert(
format!("{entity_name}.{column_name}"),
Box::new(move |value: &ValueAccessor| -> SeaResult<sea_orm::Value> {
let source = value.string()?;
let encrypted = ctx.crypto().encrypt_string(source.into())?;
Ok(encrypted.into())
}),
);
}
fn add_crypto_column_output_conversion<T>(
context: &mut BuilderContext,
ctx: Arc<dyn AppContextTrait>,
column: &T::Column,
) where
T: EntityTrait,
<T as EntityTrait>::Model: Sync,
{
let entity_key = get_entity_key::<T>(context);
let column_name = get_column_key::<T>(context, column);
let entity_name = context.entity_object.type_name.as_ref()(&entity_key);
let column_name = context.entity_object.column_name.as_ref()(&entity_key, &column_name);
context.types.output_conversions.insert(
format!("{entity_name}.{column_name}"),
Box::new(
move |value: &sea_orm::Value| -> SeaResult<async_graphql::Value> {
if let SeaValue::String(s) = value {
if let Some(s) = s {
let decrypted = ctx.crypto().decrypt_string(s)?;
Ok(async_graphql::Value::String(decrypted))
} else {
Ok(async_graphql::Value::Null)
}
} else {
Err(async_graphql::Error::new("crypto column must be string column").into())
}
},
),
);
}
pub fn crypto_transformer(context: &mut BuilderContext, ctx: Arc<dyn AppContextTrait>) {
add_crypto_column_input_conversion::<credential_3rd::Entity>(
context,
ctx.clone(),
&credential_3rd::Column::Cookies,
);
add_crypto_column_input_conversion::<credential_3rd::Entity>(
context,
ctx.clone(),
&credential_3rd::Column::Username,
);
add_crypto_column_output_conversion::<credential_3rd::Entity>(
context,
ctx.clone(),
&credential_3rd::Column::Password,
);
add_crypto_column_output_conversion::<credential_3rd::Entity>(
context,
ctx.clone(),
&credential_3rd::Column::Cookies,
);
add_crypto_column_output_conversion::<credential_3rd::Entity>(
context,
ctx.clone(),
&credential_3rd::Column::Username,
);
add_crypto_column_output_conversion::<credential_3rd::Entity>(
context,
ctx,
&credential_3rd::Column::Password,
);
}

View File

@ -1,9 +1,9 @@
pub mod config;
pub mod infra;
pub mod schema_root;
mod schema;
pub mod service;
pub mod views;
pub use config::GraphQLConfig;
pub use schema_root::schema;
pub use schema::build_schema;
pub use service::GraphQLService;

View File

@ -10,7 +10,9 @@ use crate::graphql::{
register_jsonb_input_filter_to_dynamic_schema, subscriber_id_condition_function,
},
guard::{guard_entity_with_subscriber_id, guard_field_with_subscriber_id},
transformer::{filter_condition_transformer, mutation_input_object_transformer},
transformer::{
build_filter_condition_transformer, build_mutation_input_object_transformer,
},
util::{get_entity_column_key, get_entity_key},
},
views::register_subscriptions_to_schema,
@ -69,14 +71,14 @@ where
);
context.transformers.filter_conditions_transformers.insert(
entity_key.clone(),
filter_condition_transformer::<T>(context, column),
build_filter_condition_transformer::<T>(context, column),
);
context
.transformers
.mutation_input_object_transformers
.insert(
entity_key,
mutation_input_object_transformer::<T>(context, column),
build_mutation_input_object_transformer::<T>(context, column),
);
context
.entity_input
@ -85,7 +87,7 @@ where
context.entity_input.update_skips.push(entity_column_key);
}
pub fn schema(
pub fn build_schema(
database: DatabaseConnection,
depth: Option<usize>,
complexity: Option<usize>,
@ -138,6 +140,10 @@ pub fn schema(
&mut context,
&subscriber_tasks::Column::SubscriberId,
);
restrict_subscriber_for_entity::<credential_3rd::Entity>(
&mut context,
&credential_3rd::Column::SubscriberId,
);
restrict_jsonb_filter_input_for_entity::<subscriber_tasks::Entity>(
&mut context,
&subscriber_tasks::Column::Job,
@ -185,6 +191,7 @@ pub fn schema(
subscription_episode,
subscriptions,
subscriber_tasks,
credential_3rd
]
);
@ -193,6 +200,7 @@ pub fn schema(
builder.register_enumeration::<subscriptions::SubscriptionCategory>();
builder.register_enumeration::<downloaders::DownloaderCategory>();
builder.register_enumeration::<downloads::DownloadMime>();
builder.register_enumeration::<credential_3rd::Credential3rdType>();
}
{

View File

@ -1,7 +1,7 @@
use async_graphql::dynamic::Schema;
use sea_orm::DatabaseConnection;
use super::{config::GraphQLConfig, schema_root};
use super::{build_schema, config::GraphQLConfig};
use crate::errors::RecorderResult;
#[derive(Debug)]
@ -14,7 +14,7 @@ impl GraphQLService {
config: GraphQLConfig,
db: DatabaseConnection,
) -> RecorderResult<Self> {
let schema = schema_root::schema(
let schema = build_schema(
db,
config.depth_limit.and_then(|l| l.into()),
config.complexity_limit.and_then(|l| l.into()),

View File

@ -66,6 +66,14 @@ impl Related<super::subscriptions::Entity> for Entity {
}
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelatedEntity)]
pub enum RelatedEntity {
#[sea_orm(entity = "super::subscribers::Entity")]
Subscriber,
#[sea_orm(entity = "super::subscriptions::Entity")]
Subscription,
}
#[async_trait]
impl ActiveModelBehavior for ActiveModel {}

View File

@ -39,6 +39,8 @@ pub enum Relation {
Episode,
#[sea_orm(has_many = "super::auth::Entity")]
Auth,
#[sea_orm(has_many = "super::credential_3rd::Entity")]
Credential3rd,
}
impl Related<super::subscriptions::Entity> for Entity {
@ -71,6 +73,12 @@ impl Related<super::auth::Entity> for Entity {
}
}
impl Related<super::credential_3rd::Entity> for Entity {
fn to() -> RelationDef {
Relation::Credential3rd.def()
}
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelatedEntity)]
pub enum RelatedEntity {
#[sea_orm(entity = "super::subscriptions::Entity")]
@ -81,6 +89,8 @@ pub enum RelatedEntity {
Bangumi,
#[sea_orm(entity = "super::episodes::Entity")]
Episode,
#[sea_orm(entity = "super::credential_3rd::Entity")]
Credential3rd,
}
#[derive(Debug, Deserialize, Serialize)]
@ -103,7 +113,7 @@ impl Model {
let subscriber = Entity::find_by_id(id)
.one(db)
.await?
.ok_or_else(|| RecorderError::from_db_record_not_found("subscriptions::find_by_id"))?;
.ok_or_else(|| RecorderError::from_db_record_not_found("subscribers::find_by_id"))?;
Ok(subscriber)
}

View File

@ -141,6 +141,8 @@ pub enum RelatedEntity {
SubscriptionEpisode,
#[sea_orm(entity = "super::subscription_bangumi::Entity")]
SubscriptionBangumi,
#[sea_orm(entity = "super::credential_3rd::Entity")]
Credential3rd,
}
#[async_trait]

View File

@ -0,0 +1,54 @@
import { gql } from '@apollo/client';
export const GET_CREDENTIAL_3RD = gql`
query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {
credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {
nodes {
id
cookies
username
password
userAgent
createdAt
updatedAt
credentialType
}
}
}
`;
export const INSERT_CREDENTIAL_3RD = gql`
mutation InsertCredential3rd($data: Credential3rdInsertInput!) {
credential3rdCreateOne(data: $data) {
id
cookies
username
password
userAgent
createdAt
updatedAt
credentialType
}
}
`;
export const UPDATE_CREDENTIAL_3RD = gql`
mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {
credential3rdUpdate(data: $data, filter: $filters) {
id
cookies
username
password
userAgent
createdAt
updatedAt
credentialType
}
}
`;
export const DELETE_CREDENTIAL_3RD = gql`
mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {
credential3rdDelete(filter: $filters)
}
`;

View File

@ -1,20 +1,9 @@
import { gql } from '@apollo/client';
import type {
GetSubscriptionDetailQuery,
GetSubscriptionsQuery,
} from '@/infra/graphql/gql/graphql';
export const GET_SUBSCRIPTIONS = gql`
query GetSubscriptions(
$page: PageInput!,
$filters: SubscriptionsFilterInput!,
$orderBy: SubscriptionsOrderInput!
) {
query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {
subscriptions(
pagination: {
page: $page
}
pagination: $pagination
filters: $filters
orderBy: $orderBy
) {
@ -35,9 +24,6 @@ export const GET_SUBSCRIPTIONS = gql`
}
`;
export type SubscriptionDto =
GetSubscriptionsQuery['subscriptions']['nodes'][number];
export const UPDATE_SUBSCRIPTIONS = gql`
mutation UpdateSubscriptions(
$data: SubscriptionsUpdateInput!,
@ -99,9 +85,3 @@ query GetSubscriptionDetail ($id: Int!) {
}
}
`;
export type SubscriptionDetailDto =
GetSubscriptionDetailQuery['subscriptions']['nodes'][number];
export type SubscriptionDetailBangumiDto =
SubscriptionDetailDto['bangumi']['nodes'][number];

View File

@ -14,14 +14,22 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
*/
type Documents = {
"\n query GetSubscriptions(\n $page: PageInput!,\n $filters: SubscriptionsFilterInput!,\n $orderBy: SubscriptionsOrderInput!\n) {\n subscriptions(\n pagination: {\n page: $page\n }\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n": typeof types.GetSubscriptionsDocument,
"\n query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {\n credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {\n nodes {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n }\n": typeof types.GetCredential3rdDocument,
"\n mutation InsertCredential3rd($data: Credential3rdInsertInput!) {\n credential3rdCreateOne(data: $data) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n": typeof types.InsertCredential3rdDocument,
"\n mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {\n credential3rdUpdate(data: $data, filter: $filters) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n": typeof types.UpdateCredential3rdDocument,
"\n mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {\n credential3rdDelete(filter: $filters)\n }\n": typeof types.DeleteCredential3rdDocument,
"\n query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {\n subscriptions(\n pagination: $pagination\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n": typeof types.GetSubscriptionsDocument,
"\n mutation UpdateSubscriptions(\n $data: SubscriptionsUpdateInput!,\n $filters: SubscriptionsFilterInput!,\n ) {\n subscriptionsUpdate (\n data: $data\n filter: $filters\n ) {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n}\n": typeof types.UpdateSubscriptionsDocument,
"\n mutation DeleteSubscriptions($filters: SubscriptionsFilterInput) {\n subscriptionsDelete(filter: $filters)\n }\n": typeof types.DeleteSubscriptionsDocument,
"\nquery GetSubscriptionDetail ($id: Int!) {\n subscriptions(filters: { id: {\n eq: $id\n } }) {\n nodes {\n id\n displayName\n createdAt\n updatedAt\n category\n sourceUrl\n enabled\n bangumi {\n nodes {\n createdAt\n updatedAt\n id\n mikanBangumiId\n displayName\n rawName\n season\n seasonRaw\n fansub\n mikanFansubId\n rssLink\n posterLink\n savePath\n homepage\n }\n }\n }\n }\n}\n": typeof types.GetSubscriptionDetailDocument,
"\n mutation CreateSubscription($input: SubscriptionsInsertInput!) {\n subscriptionsCreateOne(data: $input) {\n id\n displayName\n sourceUrl\n enabled\n category\n }\n }\n": typeof types.CreateSubscriptionDocument,
};
const documents: Documents = {
"\n query GetSubscriptions(\n $page: PageInput!,\n $filters: SubscriptionsFilterInput!,\n $orderBy: SubscriptionsOrderInput!\n) {\n subscriptions(\n pagination: {\n page: $page\n }\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n": types.GetSubscriptionsDocument,
"\n query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {\n credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {\n nodes {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n }\n": types.GetCredential3rdDocument,
"\n mutation InsertCredential3rd($data: Credential3rdInsertInput!) {\n credential3rdCreateOne(data: $data) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n": types.InsertCredential3rdDocument,
"\n mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {\n credential3rdUpdate(data: $data, filter: $filters) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n": types.UpdateCredential3rdDocument,
"\n mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {\n credential3rdDelete(filter: $filters)\n }\n": types.DeleteCredential3rdDocument,
"\n query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {\n subscriptions(\n pagination: $pagination\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n": types.GetSubscriptionsDocument,
"\n mutation UpdateSubscriptions(\n $data: SubscriptionsUpdateInput!,\n $filters: SubscriptionsFilterInput!,\n ) {\n subscriptionsUpdate (\n data: $data\n filter: $filters\n ) {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n}\n": types.UpdateSubscriptionsDocument,
"\n mutation DeleteSubscriptions($filters: SubscriptionsFilterInput) {\n subscriptionsDelete(filter: $filters)\n }\n": types.DeleteSubscriptionsDocument,
"\nquery GetSubscriptionDetail ($id: Int!) {\n subscriptions(filters: { id: {\n eq: $id\n } }) {\n nodes {\n id\n displayName\n createdAt\n updatedAt\n category\n sourceUrl\n enabled\n bangumi {\n nodes {\n createdAt\n updatedAt\n id\n mikanBangumiId\n displayName\n rawName\n season\n seasonRaw\n fansub\n mikanFansubId\n rssLink\n posterLink\n savePath\n homepage\n }\n }\n }\n }\n}\n": types.GetSubscriptionDetailDocument,
@ -45,7 +53,23 @@ export function gql(source: string): unknown;
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function gql(source: "\n query GetSubscriptions(\n $page: PageInput!,\n $filters: SubscriptionsFilterInput!,\n $orderBy: SubscriptionsOrderInput!\n) {\n subscriptions(\n pagination: {\n page: $page\n }\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n"): (typeof documents)["\n query GetSubscriptions(\n $page: PageInput!,\n $filters: SubscriptionsFilterInput!,\n $orderBy: SubscriptionsOrderInput!\n) {\n subscriptions(\n pagination: {\n page: $page\n }\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n"];
export function gql(source: "\n query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {\n credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {\n nodes {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n }\n"): (typeof documents)["\n query GetCredential3rd($filters: Credential3rdFilterInput!, $orderBy: Credential3rdOrderInput, $pagination: PaginationInput) {\n credential3rd(filters: $filters, orderBy: $orderBy, pagination: $pagination) {\n nodes {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n }\n"];
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function gql(source: "\n mutation InsertCredential3rd($data: Credential3rdInsertInput!) {\n credential3rdCreateOne(data: $data) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n"): (typeof documents)["\n mutation InsertCredential3rd($data: Credential3rdInsertInput!) {\n credential3rdCreateOne(data: $data) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n"];
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function gql(source: "\n mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {\n credential3rdUpdate(data: $data, filter: $filters) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n"): (typeof documents)["\n mutation UpdateCredential3rd($data: Credential3rdUpdateInput!, $filters: Credential3rdFilterInput!) {\n credential3rdUpdate(data: $data, filter: $filters) {\n id\n cookies\n username\n password\n userAgent\n createdAt\n updatedAt\n credentialType\n }\n }\n"];
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function gql(source: "\n mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {\n credential3rdDelete(filter: $filters)\n }\n"): (typeof documents)["\n mutation DeleteCredential3rd($filters: Credential3rdFilterInput!) {\n credential3rdDelete(filter: $filters)\n }\n"];
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function gql(source: "\n query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {\n subscriptions(\n pagination: $pagination\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n"): (typeof documents)["\n query GetSubscriptions($filters: SubscriptionsFilterInput!, $orderBy: SubscriptionsOrderInput!, $pagination: PaginationInput!) {\n subscriptions(\n pagination: $pagination\n filters: $filters\n orderBy: $orderBy\n ) {\n nodes {\n id\n createdAt\n updatedAt\n displayName\n category\n sourceUrl\n enabled\n }\n paginationInfo {\n total\n pages\n }\n }\n }\n"];
/**
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/

View File

@ -181,6 +181,120 @@ export type BooleanFilterInput = {
ne?: InputMaybe<Scalars['Boolean']['input']>;
};
export type Credential3rd = {
__typename?: 'Credential3rd';
cookies?: Maybe<Scalars['String']['output']>;
createdAt: Scalars['String']['output'];
credentialType: Credential3rdTypeEnum;
id: Scalars['Int']['output'];
password?: Maybe<Scalars['String']['output']>;
subscriber?: Maybe<Subscribers>;
subscriberId: Scalars['Int']['output'];
subscription: SubscriptionsConnection;
updatedAt: Scalars['String']['output'];
userAgent?: Maybe<Scalars['String']['output']>;
username?: Maybe<Scalars['String']['output']>;
};
export type Credential3rdSubscriptionArgs = {
filters?: InputMaybe<SubscriptionsFilterInput>;
orderBy?: InputMaybe<SubscriptionsOrderInput>;
pagination?: InputMaybe<PaginationInput>;
};
export type Credential3rdBasic = {
__typename?: 'Credential3rdBasic';
cookies?: Maybe<Scalars['String']['output']>;
createdAt: Scalars['String']['output'];
credentialType: Credential3rdTypeEnum;
id: Scalars['Int']['output'];
password?: Maybe<Scalars['String']['output']>;
subscriberId: Scalars['Int']['output'];
updatedAt: Scalars['String']['output'];
userAgent?: Maybe<Scalars['String']['output']>;
username?: Maybe<Scalars['String']['output']>;
};
export type Credential3rdConnection = {
__typename?: 'Credential3rdConnection';
edges: Array<Credential3rdEdge>;
nodes: Array<Credential3rd>;
pageInfo: PageInfo;
paginationInfo?: Maybe<PaginationInfo>;
};
export type Credential3rdEdge = {
__typename?: 'Credential3rdEdge';
cursor: Scalars['String']['output'];
node: Credential3rd;
};
export type Credential3rdFilterInput = {
and?: InputMaybe<Array<Credential3rdFilterInput>>;
cookies?: InputMaybe<StringFilterInput>;
createdAt?: InputMaybe<TextFilterInput>;
credentialType?: InputMaybe<Credential3rdTypeEnumFilterInput>;
id?: InputMaybe<IntegerFilterInput>;
or?: InputMaybe<Array<Credential3rdFilterInput>>;
password?: InputMaybe<StringFilterInput>;
subscriberId?: InputMaybe<SubscriberIdFilterInput>;
updatedAt?: InputMaybe<TextFilterInput>;
userAgent?: InputMaybe<StringFilterInput>;
username?: InputMaybe<StringFilterInput>;
};
export type Credential3rdInsertInput = {
cookies?: InputMaybe<Scalars['String']['input']>;
createdAt?: InputMaybe<Scalars['String']['input']>;
credentialType: Credential3rdTypeEnum;
id?: InputMaybe<Scalars['Int']['input']>;
password?: InputMaybe<Scalars['String']['input']>;
updatedAt?: InputMaybe<Scalars['String']['input']>;
userAgent?: InputMaybe<Scalars['String']['input']>;
username?: InputMaybe<Scalars['String']['input']>;
};
export type Credential3rdOrderInput = {
cookies?: InputMaybe<OrderByEnum>;
createdAt?: InputMaybe<OrderByEnum>;
credentialType?: InputMaybe<OrderByEnum>;
id?: InputMaybe<OrderByEnum>;
password?: InputMaybe<OrderByEnum>;
subscriberId?: InputMaybe<OrderByEnum>;
updatedAt?: InputMaybe<OrderByEnum>;
userAgent?: InputMaybe<OrderByEnum>;
username?: InputMaybe<OrderByEnum>;
};
export enum Credential3rdTypeEnum {
Mikan = 'mikan'
}
export type Credential3rdTypeEnumFilterInput = {
eq?: InputMaybe<Credential3rdTypeEnum>;
gt?: InputMaybe<Credential3rdTypeEnum>;
gte?: InputMaybe<Credential3rdTypeEnum>;
is_in?: InputMaybe<Array<Credential3rdTypeEnum>>;
is_not_in?: InputMaybe<Array<Credential3rdTypeEnum>>;
is_not_null?: InputMaybe<Credential3rdTypeEnum>;
is_null?: InputMaybe<Credential3rdTypeEnum>;
lt?: InputMaybe<Credential3rdTypeEnum>;
lte?: InputMaybe<Credential3rdTypeEnum>;
ne?: InputMaybe<Credential3rdTypeEnum>;
};
export type Credential3rdUpdateInput = {
cookies?: InputMaybe<Scalars['String']['input']>;
createdAt?: InputMaybe<Scalars['String']['input']>;
credentialType?: InputMaybe<Credential3rdTypeEnum>;
id?: InputMaybe<Scalars['Int']['input']>;
password?: InputMaybe<Scalars['String']['input']>;
updatedAt?: InputMaybe<Scalars['String']['input']>;
userAgent?: InputMaybe<Scalars['String']['input']>;
username?: InputMaybe<Scalars['String']['input']>;
};
export type CursorInput = {
cursor?: InputMaybe<Scalars['String']['input']>;
limit: Scalars['Int']['input'];
@ -659,6 +773,10 @@ export type Mutation = {
bangumiCreateOne: BangumiBasic;
bangumiDelete: Scalars['Int']['output'];
bangumiUpdate: Array<BangumiBasic>;
credential3rdCreateBatch: Array<Credential3rdBasic>;
credential3rdCreateOne: Credential3rdBasic;
credential3rdDelete: Scalars['Int']['output'];
credential3rdUpdate: Array<Credential3rdBasic>;
downloadersCreateBatch: Array<DownloadersBasic>;
downloadersCreateOne: DownloadersBasic;
downloadersDelete: Scalars['Int']['output'];
@ -712,6 +830,27 @@ export type MutationBangumiUpdateArgs = {
};
export type MutationCredential3rdCreateBatchArgs = {
data: Array<Credential3rdInsertInput>;
};
export type MutationCredential3rdCreateOneArgs = {
data: Credential3rdInsertInput;
};
export type MutationCredential3rdDeleteArgs = {
filter?: InputMaybe<Credential3rdFilterInput>;
};
export type MutationCredential3rdUpdateArgs = {
data: Credential3rdUpdateInput;
filter?: InputMaybe<Credential3rdFilterInput>;
};
export type MutationDownloadersCreateBatchArgs = {
data: Array<DownloadersInsertInput>;
};
@ -904,6 +1043,7 @@ export type Query = {
__typename?: 'Query';
_sea_orm_entity_metadata?: Maybe<Scalars['String']['output']>;
bangumi: BangumiConnection;
credential3rd: Credential3rdConnection;
downloaders: DownloadersConnection;
downloads: DownloadsConnection;
episodes: EpisodesConnection;
@ -929,6 +1069,13 @@ export type QueryBangumiArgs = {
};
export type QueryCredential3rdArgs = {
filters?: InputMaybe<Credential3rdFilterInput>;
orderBy?: InputMaybe<Credential3rdOrderInput>;
pagination?: InputMaybe<PaginationInput>;
};
export type QueryDownloadersArgs = {
filters?: InputMaybe<DownloadersFilterInput>;
orderBy?: InputMaybe<DownloadersOrderInput>;
@ -1125,6 +1272,7 @@ export type Subscribers = {
__typename?: 'Subscribers';
bangumi: BangumiConnection;
createdAt: Scalars['String']['output'];
credential3rd: Credential3rdConnection;
displayName: Scalars['String']['output'];
downloader: DownloadersConnection;
episode: EpisodesConnection;
@ -1141,6 +1289,13 @@ export type SubscribersBangumiArgs = {
};
export type SubscribersCredential3rdArgs = {
filters?: InputMaybe<Credential3rdFilterInput>;
orderBy?: InputMaybe<Credential3rdOrderInput>;
pagination?: InputMaybe<PaginationInput>;
};
export type SubscribersDownloaderArgs = {
filters?: InputMaybe<DownloadersFilterInput>;
orderBy?: InputMaybe<DownloadersOrderInput>;
@ -1336,6 +1491,7 @@ export type Subscriptions = {
bangumi: BangumiConnection;
category: SubscriptionCategoryEnum;
createdAt: Scalars['String']['output'];
credential3rd?: Maybe<Credential3rd>;
credentialId?: Maybe<Scalars['Int']['output']>;
displayName: Scalars['String']['output'];
enabled: Scalars['Boolean']['output'];
@ -1478,10 +1634,41 @@ export type TextFilterInput = {
not_between?: InputMaybe<Array<Scalars['String']['input']>>;
};
export type GetCredential3rdQueryVariables = Exact<{
filters: Credential3rdFilterInput;
orderBy?: InputMaybe<Credential3rdOrderInput>;
pagination?: InputMaybe<PaginationInput>;
}>;
export type GetCredential3rdQuery = { __typename?: 'Query', credential3rd: { __typename?: 'Credential3rdConnection', nodes: Array<{ __typename?: 'Credential3rd', id: number, cookies?: string | null, username?: string | null, password?: string | null, userAgent?: string | null, createdAt: string, updatedAt: string, credentialType: Credential3rdTypeEnum }> } };
export type InsertCredential3rdMutationVariables = Exact<{
data: Credential3rdInsertInput;
}>;
export type InsertCredential3rdMutation = { __typename?: 'Mutation', credential3rdCreateOne: { __typename?: 'Credential3rdBasic', id: number, cookies?: string | null, username?: string | null, password?: string | null, userAgent?: string | null, createdAt: string, updatedAt: string, credentialType: Credential3rdTypeEnum } };
export type UpdateCredential3rdMutationVariables = Exact<{
data: Credential3rdUpdateInput;
filters: Credential3rdFilterInput;
}>;
export type UpdateCredential3rdMutation = { __typename?: 'Mutation', credential3rdUpdate: Array<{ __typename?: 'Credential3rdBasic', id: number, cookies?: string | null, username?: string | null, password?: string | null, userAgent?: string | null, createdAt: string, updatedAt: string, credentialType: Credential3rdTypeEnum }> };
export type DeleteCredential3rdMutationVariables = Exact<{
filters: Credential3rdFilterInput;
}>;
export type DeleteCredential3rdMutation = { __typename?: 'Mutation', credential3rdDelete: number };
export type GetSubscriptionsQueryVariables = Exact<{
page: PageInput;
filters: SubscriptionsFilterInput;
orderBy: SubscriptionsOrderInput;
pagination: PaginationInput;
}>;
@ -1517,7 +1704,11 @@ export type CreateSubscriptionMutationVariables = Exact<{
export type CreateSubscriptionMutation = { __typename?: 'Mutation', subscriptionsCreateOne: { __typename?: 'SubscriptionsBasic', id: number, displayName: string, sourceUrl: string, enabled: boolean, category: SubscriptionCategoryEnum } };
export const GetSubscriptionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSubscriptions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PageInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsFilterInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsOrderInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subscriptions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}}]}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"paginationInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"pages"}}]}}]}}]}}]} as unknown as DocumentNode<GetSubscriptionsQuery, GetSubscriptionsQueryVariables>;
export const GetCredential3rdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCredential3rd"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdFilterInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdOrderInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"PaginationInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"credential3rd"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}},{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"cookies"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"password"}},{"kind":"Field","name":{"kind":"Name","value":"userAgent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"credentialType"}}]}}]}}]}}]} as unknown as DocumentNode<GetCredential3rdQuery, GetCredential3rdQueryVariables>;
export const InsertCredential3rdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertCredential3rd"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdInsertInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"credential3rdCreateOne"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"cookies"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"password"}},{"kind":"Field","name":{"kind":"Name","value":"userAgent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"credentialType"}}]}}]}}]} as unknown as DocumentNode<InsertCredential3rdMutation, InsertCredential3rdMutationVariables>;
export const UpdateCredential3rdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCredential3rd"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdUpdateInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"credential3rdUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"cookies"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"password"}},{"kind":"Field","name":{"kind":"Name","value":"userAgent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"credentialType"}}]}}]}}]} as unknown as DocumentNode<UpdateCredential3rdMutation, UpdateCredential3rdMutationVariables>;
export const DeleteCredential3rdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCredential3rd"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Credential3rdFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"credential3rdDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}]}]}}]} as unknown as DocumentNode<DeleteCredential3rdMutation, DeleteCredential3rdMutationVariables>;
export const GetSubscriptionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSubscriptions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsFilterInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsOrderInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaginationInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subscriptions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pagination"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pagination"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"orderBy"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}},{"kind":"Field","name":{"kind":"Name","value":"paginationInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"pages"}}]}}]}}]}}]} as unknown as DocumentNode<GetSubscriptionsQuery, GetSubscriptionsQueryVariables>;
export const UpdateSubscriptionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSubscriptions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"data"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsUpdateInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsFilterInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subscriptionsUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"data"},"value":{"kind":"Variable","name":{"kind":"Name","value":"data"}}},{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}}]}}]}}]} as unknown as DocumentNode<UpdateSubscriptionsMutation, UpdateSubscriptionsMutationVariables>;
export const DeleteSubscriptionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteSubscriptions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SubscriptionsFilterInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subscriptionsDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filter"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}]}]}}]} as unknown as DocumentNode<DeleteSubscriptionsMutation, DeleteSubscriptionsMutationVariables>;
export const GetSubscriptionDetailDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSubscriptionDetail"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subscriptions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"id"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"eq"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"category"}},{"kind":"Field","name":{"kind":"Name","value":"sourceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}},{"kind":"Field","name":{"kind":"Name","value":"bangumi"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"mikanBangumiId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"rawName"}},{"kind":"Field","name":{"kind":"Name","value":"season"}},{"kind":"Field","name":{"kind":"Name","value":"seasonRaw"}},{"kind":"Field","name":{"kind":"Name","value":"fansub"}},{"kind":"Field","name":{"kind":"Name","value":"mikanFansubId"}},{"kind":"Field","name":{"kind":"Name","value":"rssLink"}},{"kind":"Field","name":{"kind":"Name","value":"posterLink"}},{"kind":"Field","name":{"kind":"Name","value":"savePath"}},{"kind":"Field","name":{"kind":"Name","value":"homepage"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetSubscriptionDetailQuery, GetSubscriptionDetailQueryVariables>;

View File

@ -1,6 +1,7 @@
import {
BookOpen,
Folders,
KeyRound,
Settings2,
SquareTerminal,
Telescope,
@ -49,6 +50,27 @@ export const AppNavMainData = [
},
],
},
{
title: 'Credential',
link: {
to: '/credential3rd',
},
icon: KeyRound,
children: [
{
title: 'Manage',
link: {
to: '/credential3rd/manage',
},
},
{
title: 'Create',
link: {
to: '/credential3rd/create',
},
},
],
},
{
title: 'Playground',
icon: SquareTerminal,

View File

@ -10,27 +10,30 @@
// Import Routes
import { Route as R404Import } from './routes/404.tsx';
import { Route as rootRoute } from './routes/__root.tsx';
import { Route as AppExploreExploreImport } from './routes/_app/_explore/explore.tsx';
import { Route as AppExploreFeedImport } from './routes/_app/_explore/feed.tsx';
import { Route as AppBangumiManageImport } from './routes/_app/bangumi/manage.tsx';
import { Route as AppBangumiRouteImport } from './routes/_app/bangumi/route.tsx';
import { Route as AppPlaygroundGraphqlApiImport } from './routes/_app/playground/graphql-api.tsx';
import { Route as AppPlaygroundRouteImport } from './routes/_app/playground/route.tsx';
import { Route as AppRouteImport } from './routes/_app/route.tsx';
import { Route as AppSettingsDownloaderImport } from './routes/_app/settings/downloader.tsx';
import { Route as AppSettingsRouteImport } from './routes/_app/settings/route.tsx';
import { Route as AppSubscriptionsCreateImport } from './routes/_app/subscriptions/create.tsx';
import { Route as AppSubscriptionsDetailSubscriptionIdImport } from './routes/_app/subscriptions/detail.$subscriptionId.tsx';
import { Route as AppSubscriptionsEditSubscriptionIdImport } from './routes/_app/subscriptions/edit.$subscriptionId.tsx';
import { Route as AppSubscriptionsManageImport } from './routes/_app/subscriptions/manage.tsx';
import { Route as AppSubscriptionsRouteImport } from './routes/_app/subscriptions/route.tsx';
import { Route as AboutImport } from './routes/about.tsx';
import { Route as AuthOidcCallbackImport } from './routes/auth/oidc/callback.tsx';
import { Route as AuthSignInImport } from './routes/auth/sign-in.tsx';
import { Route as AuthSignUpImport } from './routes/auth/sign-up.tsx';
import { Route as IndexImport } from './routes/index.tsx';
import { Route as rootRoute } from './routes/__root'
import { Route as AboutImport } from './routes/about'
import { Route as R404Import } from './routes/404'
import { Route as AppRouteImport } from './routes/_app/route'
import { Route as IndexImport } from './routes/index'
import { Route as AuthSignUpImport } from './routes/auth/sign-up'
import { Route as AuthSignInImport } from './routes/auth/sign-in'
import { Route as AppSubscriptionsRouteImport } from './routes/_app/subscriptions/route'
import { Route as AppSettingsRouteImport } from './routes/_app/settings/route'
import { Route as AppPlaygroundRouteImport } from './routes/_app/playground/route'
import { Route as AppCredential3rdRouteImport } from './routes/_app/credential3rd/route'
import { Route as AppBangumiRouteImport } from './routes/_app/bangumi/route'
import { Route as AuthOidcCallbackImport } from './routes/auth/oidc/callback'
import { Route as AppSubscriptionsManageImport } from './routes/_app/subscriptions/manage'
import { Route as AppSubscriptionsCreateImport } from './routes/_app/subscriptions/create'
import { Route as AppSettingsDownloaderImport } from './routes/_app/settings/downloader'
import { Route as AppPlaygroundGraphqlApiImport } from './routes/_app/playground/graphql-api'
import { Route as AppCredential3rdManageImport } from './routes/_app/credential3rd/manage'
import { Route as AppCredential3rdCreateImport } from './routes/_app/credential3rd/create'
import { Route as AppBangumiManageImport } from './routes/_app/bangumi/manage'
import { Route as AppExploreFeedImport } from './routes/_app/_explore/feed'
import { Route as AppExploreExploreImport } from './routes/_app/_explore/explore'
import { Route as AppSubscriptionsEditSubscriptionIdImport } from './routes/_app/subscriptions/edit.$subscriptionId'
import { Route as AppSubscriptionsDetailSubscriptionIdImport } from './routes/_app/subscriptions/detail.$subscriptionId'
// Create/Update Routes
@ -38,313 +41,367 @@ const AboutRoute = AboutImport.update({
id: '/about',
path: '/about',
getParentRoute: () => rootRoute,
} as any);
} as any)
const R404Route = R404Import.update({
id: '/404',
path: '/404',
getParentRoute: () => rootRoute,
} as any);
} as any)
const AppRouteRoute = AppRouteImport.update({
id: '/_app',
getParentRoute: () => rootRoute,
} as any);
} as any)
const IndexRoute = IndexImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRoute,
} as any);
} as any)
const AuthSignUpRoute = AuthSignUpImport.update({
id: '/auth/sign-up',
path: '/auth/sign-up',
getParentRoute: () => rootRoute,
} as any);
} as any)
const AuthSignInRoute = AuthSignInImport.update({
id: '/auth/sign-in',
path: '/auth/sign-in',
getParentRoute: () => rootRoute,
} as any);
} as any)
const AppSubscriptionsRouteRoute = AppSubscriptionsRouteImport.update({
id: '/subscriptions',
path: '/subscriptions',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AppSettingsRouteRoute = AppSettingsRouteImport.update({
id: '/settings',
path: '/settings',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AppPlaygroundRouteRoute = AppPlaygroundRouteImport.update({
id: '/playground',
path: '/playground',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AppCredential3rdRouteRoute = AppCredential3rdRouteImport.update({
id: '/credential3rd',
path: '/credential3rd',
getParentRoute: () => AppRouteRoute,
} as any)
const AppBangumiRouteRoute = AppBangumiRouteImport.update({
id: '/bangumi',
path: '/bangumi',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AuthOidcCallbackRoute = AuthOidcCallbackImport.update({
id: '/auth/oidc/callback',
path: '/auth/oidc/callback',
getParentRoute: () => rootRoute,
} as any);
} as any)
const AppSubscriptionsManageRoute = AppSubscriptionsManageImport.update({
id: '/manage',
path: '/manage',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any);
} as any)
const AppSubscriptionsCreateRoute = AppSubscriptionsCreateImport.update({
id: '/create',
path: '/create',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any);
} as any)
const AppSettingsDownloaderRoute = AppSettingsDownloaderImport.update({
id: '/downloader',
path: '/downloader',
getParentRoute: () => AppSettingsRouteRoute,
} as any);
} as any)
const AppPlaygroundGraphqlApiRoute = AppPlaygroundGraphqlApiImport.update({
id: '/graphql-api',
path: '/graphql-api',
getParentRoute: () => AppPlaygroundRouteRoute,
} as any).lazy(() =>
import('./routes/_app/playground/graphql-api.lazy.tsx').then((d) => d.Route)
);
import('./routes/_app/playground/graphql-api.lazy').then((d) => d.Route),
)
const AppCredential3rdManageRoute = AppCredential3rdManageImport.update({
id: '/manage',
path: '/manage',
getParentRoute: () => AppCredential3rdRouteRoute,
} as any)
const AppCredential3rdCreateRoute = AppCredential3rdCreateImport.update({
id: '/create',
path: '/create',
getParentRoute: () => AppCredential3rdRouteRoute,
} as any)
const AppBangumiManageRoute = AppBangumiManageImport.update({
id: '/manage',
path: '/manage',
getParentRoute: () => AppBangumiRouteRoute,
} as any);
} as any)
const AppExploreFeedRoute = AppExploreFeedImport.update({
id: '/_explore/feed',
path: '/feed',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AppExploreExploreRoute = AppExploreExploreImport.update({
id: '/_explore/explore',
path: '/explore',
getParentRoute: () => AppRouteRoute,
} as any);
} as any)
const AppSubscriptionsEditSubscriptionIdRoute =
AppSubscriptionsEditSubscriptionIdImport.update({
id: '/edit/$subscriptionId',
path: '/edit/$subscriptionId',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any);
} as any)
const AppSubscriptionsDetailSubscriptionIdRoute =
AppSubscriptionsDetailSubscriptionIdImport.update({
id: '/detail/$subscriptionId',
path: '/detail/$subscriptionId',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any);
} as any)
// Populate the FileRoutesByPath interface
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/';
path: '/';
fullPath: '/';
preLoaderRoute: typeof IndexImport;
parentRoute: typeof rootRoute;
};
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexImport
parentRoute: typeof rootRoute
}
'/_app': {
id: '/_app';
path: '';
fullPath: '';
preLoaderRoute: typeof AppRouteImport;
parentRoute: typeof rootRoute;
};
id: '/_app'
path: ''
fullPath: ''
preLoaderRoute: typeof AppRouteImport
parentRoute: typeof rootRoute
}
'/404': {
id: '/404';
path: '/404';
fullPath: '/404';
preLoaderRoute: typeof R404Import;
parentRoute: typeof rootRoute;
};
id: '/404'
path: '/404'
fullPath: '/404'
preLoaderRoute: typeof R404Import
parentRoute: typeof rootRoute
}
'/about': {
id: '/about';
path: '/about';
fullPath: '/about';
preLoaderRoute: typeof AboutImport;
parentRoute: typeof rootRoute;
};
id: '/about'
path: '/about'
fullPath: '/about'
preLoaderRoute: typeof AboutImport
parentRoute: typeof rootRoute
}
'/_app/bangumi': {
id: '/_app/bangumi';
path: '/bangumi';
fullPath: '/bangumi';
preLoaderRoute: typeof AppBangumiRouteImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/bangumi'
path: '/bangumi'
fullPath: '/bangumi'
preLoaderRoute: typeof AppBangumiRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/credential3rd': {
id: '/_app/credential3rd'
path: '/credential3rd'
fullPath: '/credential3rd'
preLoaderRoute: typeof AppCredential3rdRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/playground': {
id: '/_app/playground';
path: '/playground';
fullPath: '/playground';
preLoaderRoute: typeof AppPlaygroundRouteImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/playground'
path: '/playground'
fullPath: '/playground'
preLoaderRoute: typeof AppPlaygroundRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/settings': {
id: '/_app/settings';
path: '/settings';
fullPath: '/settings';
preLoaderRoute: typeof AppSettingsRouteImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/settings'
path: '/settings'
fullPath: '/settings'
preLoaderRoute: typeof AppSettingsRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/subscriptions': {
id: '/_app/subscriptions';
path: '/subscriptions';
fullPath: '/subscriptions';
preLoaderRoute: typeof AppSubscriptionsRouteImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/subscriptions'
path: '/subscriptions'
fullPath: '/subscriptions'
preLoaderRoute: typeof AppSubscriptionsRouteImport
parentRoute: typeof AppRouteImport
}
'/auth/sign-in': {
id: '/auth/sign-in';
path: '/auth/sign-in';
fullPath: '/auth/sign-in';
preLoaderRoute: typeof AuthSignInImport;
parentRoute: typeof rootRoute;
};
id: '/auth/sign-in'
path: '/auth/sign-in'
fullPath: '/auth/sign-in'
preLoaderRoute: typeof AuthSignInImport
parentRoute: typeof rootRoute
}
'/auth/sign-up': {
id: '/auth/sign-up';
path: '/auth/sign-up';
fullPath: '/auth/sign-up';
preLoaderRoute: typeof AuthSignUpImport;
parentRoute: typeof rootRoute;
};
id: '/auth/sign-up'
path: '/auth/sign-up'
fullPath: '/auth/sign-up'
preLoaderRoute: typeof AuthSignUpImport
parentRoute: typeof rootRoute
}
'/_app/_explore/explore': {
id: '/_app/_explore/explore';
path: '/explore';
fullPath: '/explore';
preLoaderRoute: typeof AppExploreExploreImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/_explore/explore'
path: '/explore'
fullPath: '/explore'
preLoaderRoute: typeof AppExploreExploreImport
parentRoute: typeof AppRouteImport
}
'/_app/_explore/feed': {
id: '/_app/_explore/feed';
path: '/feed';
fullPath: '/feed';
preLoaderRoute: typeof AppExploreFeedImport;
parentRoute: typeof AppRouteImport;
};
id: '/_app/_explore/feed'
path: '/feed'
fullPath: '/feed'
preLoaderRoute: typeof AppExploreFeedImport
parentRoute: typeof AppRouteImport
}
'/_app/bangumi/manage': {
id: '/_app/bangumi/manage';
path: '/manage';
fullPath: '/bangumi/manage';
preLoaderRoute: typeof AppBangumiManageImport;
parentRoute: typeof AppBangumiRouteImport;
};
id: '/_app/bangumi/manage'
path: '/manage'
fullPath: '/bangumi/manage'
preLoaderRoute: typeof AppBangumiManageImport
parentRoute: typeof AppBangumiRouteImport
}
'/_app/credential3rd/create': {
id: '/_app/credential3rd/create'
path: '/create'
fullPath: '/credential3rd/create'
preLoaderRoute: typeof AppCredential3rdCreateImport
parentRoute: typeof AppCredential3rdRouteImport
}
'/_app/credential3rd/manage': {
id: '/_app/credential3rd/manage'
path: '/manage'
fullPath: '/credential3rd/manage'
preLoaderRoute: typeof AppCredential3rdManageImport
parentRoute: typeof AppCredential3rdRouteImport
}
'/_app/playground/graphql-api': {
id: '/_app/playground/graphql-api';
path: '/graphql-api';
fullPath: '/playground/graphql-api';
preLoaderRoute: typeof AppPlaygroundGraphqlApiImport;
parentRoute: typeof AppPlaygroundRouteImport;
};
id: '/_app/playground/graphql-api'
path: '/graphql-api'
fullPath: '/playground/graphql-api'
preLoaderRoute: typeof AppPlaygroundGraphqlApiImport
parentRoute: typeof AppPlaygroundRouteImport
}
'/_app/settings/downloader': {
id: '/_app/settings/downloader';
path: '/downloader';
fullPath: '/settings/downloader';
preLoaderRoute: typeof AppSettingsDownloaderImport;
parentRoute: typeof AppSettingsRouteImport;
};
id: '/_app/settings/downloader'
path: '/downloader'
fullPath: '/settings/downloader'
preLoaderRoute: typeof AppSettingsDownloaderImport
parentRoute: typeof AppSettingsRouteImport
}
'/_app/subscriptions/create': {
id: '/_app/subscriptions/create';
path: '/create';
fullPath: '/subscriptions/create';
preLoaderRoute: typeof AppSubscriptionsCreateImport;
parentRoute: typeof AppSubscriptionsRouteImport;
};
id: '/_app/subscriptions/create'
path: '/create'
fullPath: '/subscriptions/create'
preLoaderRoute: typeof AppSubscriptionsCreateImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/_app/subscriptions/manage': {
id: '/_app/subscriptions/manage';
path: '/manage';
fullPath: '/subscriptions/manage';
preLoaderRoute: typeof AppSubscriptionsManageImport;
parentRoute: typeof AppSubscriptionsRouteImport;
};
id: '/_app/subscriptions/manage'
path: '/manage'
fullPath: '/subscriptions/manage'
preLoaderRoute: typeof AppSubscriptionsManageImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/auth/oidc/callback': {
id: '/auth/oidc/callback';
path: '/auth/oidc/callback';
fullPath: '/auth/oidc/callback';
preLoaderRoute: typeof AuthOidcCallbackImport;
parentRoute: typeof rootRoute;
};
id: '/auth/oidc/callback'
path: '/auth/oidc/callback'
fullPath: '/auth/oidc/callback'
preLoaderRoute: typeof AuthOidcCallbackImport
parentRoute: typeof rootRoute
}
'/_app/subscriptions/detail/$subscriptionId': {
id: '/_app/subscriptions/detail/$subscriptionId';
path: '/detail/$subscriptionId';
fullPath: '/subscriptions/detail/$subscriptionId';
preLoaderRoute: typeof AppSubscriptionsDetailSubscriptionIdImport;
parentRoute: typeof AppSubscriptionsRouteImport;
};
id: '/_app/subscriptions/detail/$subscriptionId'
path: '/detail/$subscriptionId'
fullPath: '/subscriptions/detail/$subscriptionId'
preLoaderRoute: typeof AppSubscriptionsDetailSubscriptionIdImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/_app/subscriptions/edit/$subscriptionId': {
id: '/_app/subscriptions/edit/$subscriptionId';
path: '/edit/$subscriptionId';
fullPath: '/subscriptions/edit/$subscriptionId';
preLoaderRoute: typeof AppSubscriptionsEditSubscriptionIdImport;
parentRoute: typeof AppSubscriptionsRouteImport;
};
id: '/_app/subscriptions/edit/$subscriptionId'
path: '/edit/$subscriptionId'
fullPath: '/subscriptions/edit/$subscriptionId'
preLoaderRoute: typeof AppSubscriptionsEditSubscriptionIdImport
parentRoute: typeof AppSubscriptionsRouteImport
}
}
}
// Create and export the route tree
interface AppBangumiRouteRouteChildren {
AppBangumiManageRoute: typeof AppBangumiManageRoute;
AppBangumiManageRoute: typeof AppBangumiManageRoute
}
const AppBangumiRouteRouteChildren: AppBangumiRouteRouteChildren = {
AppBangumiManageRoute: AppBangumiManageRoute,
};
}
const AppBangumiRouteRouteWithChildren = AppBangumiRouteRoute._addFileChildren(
AppBangumiRouteRouteChildren
);
AppBangumiRouteRouteChildren,
)
interface AppCredential3rdRouteRouteChildren {
AppCredential3rdCreateRoute: typeof AppCredential3rdCreateRoute
AppCredential3rdManageRoute: typeof AppCredential3rdManageRoute
}
const AppCredential3rdRouteRouteChildren: AppCredential3rdRouteRouteChildren = {
AppCredential3rdCreateRoute: AppCredential3rdCreateRoute,
AppCredential3rdManageRoute: AppCredential3rdManageRoute,
}
const AppCredential3rdRouteRouteWithChildren =
AppCredential3rdRouteRoute._addFileChildren(
AppCredential3rdRouteRouteChildren,
)
interface AppPlaygroundRouteRouteChildren {
AppPlaygroundGraphqlApiRoute: typeof AppPlaygroundGraphqlApiRoute;
AppPlaygroundGraphqlApiRoute: typeof AppPlaygroundGraphqlApiRoute
}
const AppPlaygroundRouteRouteChildren: AppPlaygroundRouteRouteChildren = {
AppPlaygroundGraphqlApiRoute: AppPlaygroundGraphqlApiRoute,
};
}
const AppPlaygroundRouteRouteWithChildren =
AppPlaygroundRouteRoute._addFileChildren(AppPlaygroundRouteRouteChildren);
AppPlaygroundRouteRoute._addFileChildren(AppPlaygroundRouteRouteChildren)
interface AppSettingsRouteRouteChildren {
AppSettingsDownloaderRoute: typeof AppSettingsDownloaderRoute;
AppSettingsDownloaderRoute: typeof AppSettingsDownloaderRoute
}
const AppSettingsRouteRouteChildren: AppSettingsRouteRouteChildren = {
AppSettingsDownloaderRoute: AppSettingsDownloaderRoute,
};
}
const AppSettingsRouteRouteWithChildren =
AppSettingsRouteRoute._addFileChildren(AppSettingsRouteRouteChildren);
AppSettingsRouteRoute._addFileChildren(AppSettingsRouteRouteChildren)
interface AppSubscriptionsRouteRouteChildren {
AppSubscriptionsCreateRoute: typeof AppSubscriptionsCreateRoute;
AppSubscriptionsManageRoute: typeof AppSubscriptionsManageRoute;
AppSubscriptionsDetailSubscriptionIdRoute: typeof AppSubscriptionsDetailSubscriptionIdRoute;
AppSubscriptionsEditSubscriptionIdRoute: typeof AppSubscriptionsEditSubscriptionIdRoute;
AppSubscriptionsCreateRoute: typeof AppSubscriptionsCreateRoute
AppSubscriptionsManageRoute: typeof AppSubscriptionsManageRoute
AppSubscriptionsDetailSubscriptionIdRoute: typeof AppSubscriptionsDetailSubscriptionIdRoute
AppSubscriptionsEditSubscriptionIdRoute: typeof AppSubscriptionsEditSubscriptionIdRoute
}
const AppSubscriptionsRouteRouteChildren: AppSubscriptionsRouteRouteChildren = {
@ -354,113 +411,125 @@ const AppSubscriptionsRouteRouteChildren: AppSubscriptionsRouteRouteChildren = {
AppSubscriptionsDetailSubscriptionIdRoute,
AppSubscriptionsEditSubscriptionIdRoute:
AppSubscriptionsEditSubscriptionIdRoute,
};
}
const AppSubscriptionsRouteRouteWithChildren =
AppSubscriptionsRouteRoute._addFileChildren(
AppSubscriptionsRouteRouteChildren
);
AppSubscriptionsRouteRouteChildren,
)
interface AppRouteRouteChildren {
AppBangumiRouteRoute: typeof AppBangumiRouteRouteWithChildren;
AppPlaygroundRouteRoute: typeof AppPlaygroundRouteRouteWithChildren;
AppSettingsRouteRoute: typeof AppSettingsRouteRouteWithChildren;
AppSubscriptionsRouteRoute: typeof AppSubscriptionsRouteRouteWithChildren;
AppExploreExploreRoute: typeof AppExploreExploreRoute;
AppExploreFeedRoute: typeof AppExploreFeedRoute;
AppBangumiRouteRoute: typeof AppBangumiRouteRouteWithChildren
AppCredential3rdRouteRoute: typeof AppCredential3rdRouteRouteWithChildren
AppPlaygroundRouteRoute: typeof AppPlaygroundRouteRouteWithChildren
AppSettingsRouteRoute: typeof AppSettingsRouteRouteWithChildren
AppSubscriptionsRouteRoute: typeof AppSubscriptionsRouteRouteWithChildren
AppExploreExploreRoute: typeof AppExploreExploreRoute
AppExploreFeedRoute: typeof AppExploreFeedRoute
}
const AppRouteRouteChildren: AppRouteRouteChildren = {
AppBangumiRouteRoute: AppBangumiRouteRouteWithChildren,
AppCredential3rdRouteRoute: AppCredential3rdRouteRouteWithChildren,
AppPlaygroundRouteRoute: AppPlaygroundRouteRouteWithChildren,
AppSettingsRouteRoute: AppSettingsRouteRouteWithChildren,
AppSubscriptionsRouteRoute: AppSubscriptionsRouteRouteWithChildren,
AppExploreExploreRoute: AppExploreExploreRoute,
AppExploreFeedRoute: AppExploreFeedRoute,
};
}
const AppRouteRouteWithChildren = AppRouteRoute._addFileChildren(
AppRouteRouteChildren
);
AppRouteRouteChildren,
)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute;
'': typeof AppRouteRouteWithChildren;
'/404': typeof R404Route;
'/about': typeof AboutRoute;
'/bangumi': typeof AppBangumiRouteRouteWithChildren;
'/playground': typeof AppPlaygroundRouteRouteWithChildren;
'/settings': typeof AppSettingsRouteRouteWithChildren;
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren;
'/auth/sign-in': typeof AuthSignInRoute;
'/auth/sign-up': typeof AuthSignUpRoute;
'/explore': typeof AppExploreExploreRoute;
'/feed': typeof AppExploreFeedRoute;
'/bangumi/manage': typeof AppBangumiManageRoute;
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute;
'/settings/downloader': typeof AppSettingsDownloaderRoute;
'/subscriptions/create': typeof AppSubscriptionsCreateRoute;
'/subscriptions/manage': typeof AppSubscriptionsManageRoute;
'/auth/oidc/callback': typeof AuthOidcCallbackRoute;
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute;
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute;
'/': typeof IndexRoute
'': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/bangumi': typeof AppBangumiRouteRouteWithChildren
'/credential3rd': typeof AppCredential3rdRouteRouteWithChildren
'/playground': typeof AppPlaygroundRouteRouteWithChildren
'/settings': typeof AppSettingsRouteRouteWithChildren
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/explore': typeof AppExploreExploreRoute
'/feed': typeof AppExploreFeedRoute
'/bangumi/manage': typeof AppBangumiManageRoute
'/credential3rd/create': typeof AppCredential3rdCreateRoute
'/credential3rd/manage': typeof AppCredential3rdManageRoute
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/settings/downloader': typeof AppSettingsDownloaderRoute
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute;
'': typeof AppRouteRouteWithChildren;
'/404': typeof R404Route;
'/about': typeof AboutRoute;
'/bangumi': typeof AppBangumiRouteRouteWithChildren;
'/playground': typeof AppPlaygroundRouteRouteWithChildren;
'/settings': typeof AppSettingsRouteRouteWithChildren;
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren;
'/auth/sign-in': typeof AuthSignInRoute;
'/auth/sign-up': typeof AuthSignUpRoute;
'/explore': typeof AppExploreExploreRoute;
'/feed': typeof AppExploreFeedRoute;
'/bangumi/manage': typeof AppBangumiManageRoute;
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute;
'/settings/downloader': typeof AppSettingsDownloaderRoute;
'/subscriptions/create': typeof AppSubscriptionsCreateRoute;
'/subscriptions/manage': typeof AppSubscriptionsManageRoute;
'/auth/oidc/callback': typeof AuthOidcCallbackRoute;
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute;
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute;
'/': typeof IndexRoute
'': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/bangumi': typeof AppBangumiRouteRouteWithChildren
'/credential3rd': typeof AppCredential3rdRouteRouteWithChildren
'/playground': typeof AppPlaygroundRouteRouteWithChildren
'/settings': typeof AppSettingsRouteRouteWithChildren
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/explore': typeof AppExploreExploreRoute
'/feed': typeof AppExploreFeedRoute
'/bangumi/manage': typeof AppBangumiManageRoute
'/credential3rd/create': typeof AppCredential3rdCreateRoute
'/credential3rd/manage': typeof AppCredential3rdManageRoute
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/settings/downloader': typeof AppSettingsDownloaderRoute
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRoutesById {
__root__: typeof rootRoute;
'/': typeof IndexRoute;
'/_app': typeof AppRouteRouteWithChildren;
'/404': typeof R404Route;
'/about': typeof AboutRoute;
'/_app/bangumi': typeof AppBangumiRouteRouteWithChildren;
'/_app/playground': typeof AppPlaygroundRouteRouteWithChildren;
'/_app/settings': typeof AppSettingsRouteRouteWithChildren;
'/_app/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren;
'/auth/sign-in': typeof AuthSignInRoute;
'/auth/sign-up': typeof AuthSignUpRoute;
'/_app/_explore/explore': typeof AppExploreExploreRoute;
'/_app/_explore/feed': typeof AppExploreFeedRoute;
'/_app/bangumi/manage': typeof AppBangumiManageRoute;
'/_app/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute;
'/_app/settings/downloader': typeof AppSettingsDownloaderRoute;
'/_app/subscriptions/create': typeof AppSubscriptionsCreateRoute;
'/_app/subscriptions/manage': typeof AppSubscriptionsManageRoute;
'/auth/oidc/callback': typeof AuthOidcCallbackRoute;
'/_app/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute;
'/_app/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute;
__root__: typeof rootRoute
'/': typeof IndexRoute
'/_app': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/_app/bangumi': typeof AppBangumiRouteRouteWithChildren
'/_app/credential3rd': typeof AppCredential3rdRouteRouteWithChildren
'/_app/playground': typeof AppPlaygroundRouteRouteWithChildren
'/_app/settings': typeof AppSettingsRouteRouteWithChildren
'/_app/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/_app/_explore/explore': typeof AppExploreExploreRoute
'/_app/_explore/feed': typeof AppExploreFeedRoute
'/_app/bangumi/manage': typeof AppBangumiManageRoute
'/_app/credential3rd/create': typeof AppCredential3rdCreateRoute
'/_app/credential3rd/manage': typeof AppCredential3rdManageRoute
'/_app/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/_app/settings/downloader': typeof AppSettingsDownloaderRoute
'/_app/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/_app/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/_app/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/_app/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath;
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| '/'
| ''
| '/404'
| '/about'
| '/bangumi'
| '/credential3rd'
| '/playground'
| '/settings'
| '/subscriptions'
@ -469,20 +538,23 @@ export interface FileRouteTypes {
| '/explore'
| '/feed'
| '/bangumi/manage'
| '/credential3rd/create'
| '/credential3rd/manage'
| '/playground/graphql-api'
| '/settings/downloader'
| '/subscriptions/create'
| '/subscriptions/manage'
| '/auth/oidc/callback'
| '/subscriptions/detail/$subscriptionId'
| '/subscriptions/edit/$subscriptionId';
fileRoutesByTo: FileRoutesByTo;
| '/subscriptions/edit/$subscriptionId'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| ''
| '/404'
| '/about'
| '/bangumi'
| '/credential3rd'
| '/playground'
| '/settings'
| '/subscriptions'
@ -491,13 +563,15 @@ export interface FileRouteTypes {
| '/explore'
| '/feed'
| '/bangumi/manage'
| '/credential3rd/create'
| '/credential3rd/manage'
| '/playground/graphql-api'
| '/settings/downloader'
| '/subscriptions/create'
| '/subscriptions/manage'
| '/auth/oidc/callback'
| '/subscriptions/detail/$subscriptionId'
| '/subscriptions/edit/$subscriptionId';
| '/subscriptions/edit/$subscriptionId'
id:
| '__root__'
| '/'
@ -505,6 +579,7 @@ export interface FileRouteTypes {
| '/404'
| '/about'
| '/_app/bangumi'
| '/_app/credential3rd'
| '/_app/playground'
| '/_app/settings'
| '/_app/subscriptions'
@ -513,24 +588,26 @@ export interface FileRouteTypes {
| '/_app/_explore/explore'
| '/_app/_explore/feed'
| '/_app/bangumi/manage'
| '/_app/credential3rd/create'
| '/_app/credential3rd/manage'
| '/_app/playground/graphql-api'
| '/_app/settings/downloader'
| '/_app/subscriptions/create'
| '/_app/subscriptions/manage'
| '/auth/oidc/callback'
| '/_app/subscriptions/detail/$subscriptionId'
| '/_app/subscriptions/edit/$subscriptionId';
fileRoutesById: FileRoutesById;
| '/_app/subscriptions/edit/$subscriptionId'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute;
AppRouteRoute: typeof AppRouteRouteWithChildren;
R404Route: typeof R404Route;
AboutRoute: typeof AboutRoute;
AuthSignInRoute: typeof AuthSignInRoute;
AuthSignUpRoute: typeof AuthSignUpRoute;
AuthOidcCallbackRoute: typeof AuthOidcCallbackRoute;
IndexRoute: typeof IndexRoute
AppRouteRoute: typeof AppRouteRouteWithChildren
R404Route: typeof R404Route
AboutRoute: typeof AboutRoute
AuthSignInRoute: typeof AuthSignInRoute
AuthSignUpRoute: typeof AuthSignUpRoute
AuthOidcCallbackRoute: typeof AuthOidcCallbackRoute
}
const rootRouteChildren: RootRouteChildren = {
@ -541,11 +618,11 @@ const rootRouteChildren: RootRouteChildren = {
AuthSignInRoute: AuthSignInRoute,
AuthSignUpRoute: AuthSignUpRoute,
AuthOidcCallbackRoute: AuthOidcCallbackRoute,
};
}
export const routeTree = rootRoute
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>();
._addFileTypes<FileRouteTypes>()
/* ROUTE_MANIFEST_START
{
@ -569,6 +646,7 @@ export const routeTree = rootRoute
"filePath": "_app/route.tsx",
"children": [
"/_app/bangumi",
"/_app/credential3rd",
"/_app/playground",
"/_app/settings",
"/_app/subscriptions",
@ -589,6 +667,14 @@ export const routeTree = rootRoute
"/_app/bangumi/manage"
]
},
"/_app/credential3rd": {
"filePath": "_app/credential3rd/route.tsx",
"parent": "/_app",
"children": [
"/_app/credential3rd/create",
"/_app/credential3rd/manage"
]
},
"/_app/playground": {
"filePath": "_app/playground/route.tsx",
"parent": "/_app",
@ -631,6 +717,14 @@ export const routeTree = rootRoute
"filePath": "_app/bangumi/manage.tsx",
"parent": "/_app/bangumi"
},
"/_app/credential3rd/create": {
"filePath": "_app/credential3rd/create.tsx",
"parent": "/_app/credential3rd"
},
"/_app/credential3rd/manage": {
"filePath": "_app/credential3rd/manage.tsx",
"parent": "/_app/credential3rd"
},
"/_app/playground/graphql-api": {
"filePath": "_app/playground/graphql-api.tsx",
"parent": "/_app/playground"

View File

@ -0,0 +1,9 @@
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/_app/credential3rd/create')({
component: CredentialCreateRouteComponent,
});
function CredentialCreateRouteComponent() {
return <div>Hello "/_app/credential/create"!</div>;
}

View File

@ -0,0 +1,9 @@
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/_app/credential3rd/manage')({
component: CredentialManageRouteComponent,
});
function CredentialManageRouteComponent() {
return <div>Hello "/_app/credential/manage"!</div>;
}

View File

@ -0,0 +1,8 @@
import { buildVirtualBranchRouteOptions } from '@/infra/routes/utils';
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/_app/credential3rd')(
buildVirtualBranchRouteOptions({
title: 'Credential',
})
);

View File

@ -1,7 +1,7 @@
import type { GetSubscriptionDetailQuery } from '@/infra/graphql/gql/graphql';
import { useQuery } from '@apollo/client';
import { createFileRoute } from '@tanstack/react-router';
import { GET_SUBSCRIPTION_DETAIL } from './-defs.ts';
import { GET_SUBSCRIPTION_DETAIL } from '../../../../domains/recorder/graphql/subscriptions.js';
export const Route = createFileRoute(
'/_app/subscriptions/detail/$subscriptionId'

View File

@ -1,7 +1,7 @@
import { DataTablePagination } from '@/components/ui/data-table-pagination';
import { DataTableViewOptions } from '@/components/ui/data-table-view-options';
import { QueryErrorView } from '@/components/ui/query-error-view.tsx';
import { Skeleton } from '@/components/ui/skeleton.tsx';
import { QueryErrorView } from '@/components/ui/query-error-view';
import { Skeleton } from '@/components/ui/skeleton';
import { Switch } from '@/components/ui/switch';
import {
Table,
@ -16,8 +16,8 @@ import type {
SubscriptionsUpdateInput,
} from '@/infra/graphql/gql/graphql';
import type { RouteStateDataOption } from '@/infra/routes/traits';
import { useDebouncedSkeleton } from '@/presentation/hooks/use-debounded-skeleton.ts';
import { useEvent } from '@/presentation/hooks/use-event.ts';
import { useDebouncedSkeleton } from '@/presentation/hooks/use-debounded-skeleton';
import { useEvent } from '@/presentation/hooks/use-event';
import { useMutation, useQuery } from '@apollo/client';
import { createFileRoute } from '@tanstack/react-router';
import { useNavigate } from '@tanstack/react-router';
@ -34,13 +34,13 @@ import {
} from '@tanstack/react-table';
import { useMemo, useState } from 'react';
import { toast } from 'sonner';
import { DataTableRowActions } from '../../../../components/ui/data-table-row-actions.tsx';
import { DataTableRowActions } from '../../../../components/ui/data-table-row-actions';
import {
DELETE_SUBSCRIPTIONS,
GET_SUBSCRIPTIONS,
type SubscriptionDto,
UPDATE_SUBSCRIPTIONS,
} from './-defs.ts';
} from '../../../../domains/recorder/graphql/subscriptions.js';
export const Route = createFileRoute('/_app/subscriptions/manage')({
component: SubscriptionManageRouteComponent,

View File

@ -1,689 +0,0 @@
/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
// Import Routes
import { Route as rootRoute } from './__root'
import { Route as AboutImport } from './about'
import { Route as R404Import } from './404'
import { Route as AppRouteImport } from './_app/route'
import { Route as IndexImport } from './index'
import { Route as RouteTreeGenImport } from './routeTree.gen'
import { Route as AuthSignUpImport } from './auth/sign-up'
import { Route as AuthSignInImport } from './auth/sign-in'
import { Route as AppSubscriptionsRouteImport } from './_app/subscriptions/route'
import { Route as AppSettingsRouteImport } from './_app/settings/route'
import { Route as AppPlaygroundRouteImport } from './_app/playground/route'
import { Route as AppBangumiRouteImport } from './_app/bangumi/route'
import { Route as AuthOidcCallbackImport } from './auth/oidc/callback'
import { Route as AppSubscriptionsManageImport } from './_app/subscriptions/manage'
import { Route as AppSubscriptionsCreateImport } from './_app/subscriptions/create'
import { Route as AppSettingsDownloaderImport } from './_app/settings/downloader'
import { Route as AppPlaygroundGraphqlApiImport } from './_app/playground/graphql-api'
import { Route as AppBangumiManageImport } from './_app/bangumi/manage'
import { Route as AppExploreFeedImport } from './_app/_explore/feed'
import { Route as AppExploreExploreImport } from './_app/_explore/explore'
import { Route as AppSubscriptionsEditSubscriptionIdImport } from './_app/subscriptions/edit.$subscriptionId'
import { Route as AppSubscriptionsDetailSubscriptionIdImport } from './_app/subscriptions/detail.$subscriptionId'
// Create/Update Routes
const AboutRoute = AboutImport.update({
id: '/about',
path: '/about',
getParentRoute: () => rootRoute,
} as any)
const R404Route = R404Import.update({
id: '/404',
path: '/404',
getParentRoute: () => rootRoute,
} as any)
const AppRouteRoute = AppRouteImport.update({
id: '/_app',
getParentRoute: () => rootRoute,
} as any)
const IndexRoute = IndexImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRoute,
} as any)
const RouteTreeGenRoute = RouteTreeGenImport.update({
id: '/routeTree/gen',
path: '/routeTree/gen',
getParentRoute: () => rootRoute,
} as any)
const AuthSignUpRoute = AuthSignUpImport.update({
id: '/auth/sign-up',
path: '/auth/sign-up',
getParentRoute: () => rootRoute,
} as any)
const AuthSignInRoute = AuthSignInImport.update({
id: '/auth/sign-in',
path: '/auth/sign-in',
getParentRoute: () => rootRoute,
} as any)
const AppSubscriptionsRouteRoute = AppSubscriptionsRouteImport.update({
id: '/subscriptions',
path: '/subscriptions',
getParentRoute: () => AppRouteRoute,
} as any)
const AppSettingsRouteRoute = AppSettingsRouteImport.update({
id: '/settings',
path: '/settings',
getParentRoute: () => AppRouteRoute,
} as any)
const AppPlaygroundRouteRoute = AppPlaygroundRouteImport.update({
id: '/playground',
path: '/playground',
getParentRoute: () => AppRouteRoute,
} as any)
const AppBangumiRouteRoute = AppBangumiRouteImport.update({
id: '/bangumi',
path: '/bangumi',
getParentRoute: () => AppRouteRoute,
} as any)
const AuthOidcCallbackRoute = AuthOidcCallbackImport.update({
id: '/auth/oidc/callback',
path: '/auth/oidc/callback',
getParentRoute: () => rootRoute,
} as any)
const AppSubscriptionsManageRoute = AppSubscriptionsManageImport.update({
id: '/manage',
path: '/manage',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any)
const AppSubscriptionsCreateRoute = AppSubscriptionsCreateImport.update({
id: '/create',
path: '/create',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any)
const AppSettingsDownloaderRoute = AppSettingsDownloaderImport.update({
id: '/downloader',
path: '/downloader',
getParentRoute: () => AppSettingsRouteRoute,
} as any)
const AppPlaygroundGraphqlApiRoute = AppPlaygroundGraphqlApiImport.update({
id: '/graphql-api',
path: '/graphql-api',
getParentRoute: () => AppPlaygroundRouteRoute,
} as any).lazy(() =>
import('./_app/playground/graphql-api.lazy').then((d) => d.Route),
)
const AppBangumiManageRoute = AppBangumiManageImport.update({
id: '/manage',
path: '/manage',
getParentRoute: () => AppBangumiRouteRoute,
} as any)
const AppExploreFeedRoute = AppExploreFeedImport.update({
id: '/_explore/feed',
path: '/feed',
getParentRoute: () => AppRouteRoute,
} as any)
const AppExploreExploreRoute = AppExploreExploreImport.update({
id: '/_explore/explore',
path: '/explore',
getParentRoute: () => AppRouteRoute,
} as any)
const AppSubscriptionsEditSubscriptionIdRoute =
AppSubscriptionsEditSubscriptionIdImport.update({
id: '/edit/$subscriptionId',
path: '/edit/$subscriptionId',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any)
const AppSubscriptionsDetailSubscriptionIdRoute =
AppSubscriptionsDetailSubscriptionIdImport.update({
id: '/detail/$subscriptionId',
path: '/detail/$subscriptionId',
getParentRoute: () => AppSubscriptionsRouteRoute,
} as any)
// Populate the FileRoutesByPath interface
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexImport
parentRoute: typeof rootRoute
}
'/_app': {
id: '/_app'
path: ''
fullPath: ''
preLoaderRoute: typeof AppRouteImport
parentRoute: typeof rootRoute
}
'/404': {
id: '/404'
path: '/404'
fullPath: '/404'
preLoaderRoute: typeof R404Import
parentRoute: typeof rootRoute
}
'/about': {
id: '/about'
path: '/about'
fullPath: '/about'
preLoaderRoute: typeof AboutImport
parentRoute: typeof rootRoute
}
'/_app/bangumi': {
id: '/_app/bangumi'
path: '/bangumi'
fullPath: '/bangumi'
preLoaderRoute: typeof AppBangumiRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/playground': {
id: '/_app/playground'
path: '/playground'
fullPath: '/playground'
preLoaderRoute: typeof AppPlaygroundRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/settings': {
id: '/_app/settings'
path: '/settings'
fullPath: '/settings'
preLoaderRoute: typeof AppSettingsRouteImport
parentRoute: typeof AppRouteImport
}
'/_app/subscriptions': {
id: '/_app/subscriptions'
path: '/subscriptions'
fullPath: '/subscriptions'
preLoaderRoute: typeof AppSubscriptionsRouteImport
parentRoute: typeof AppRouteImport
}
'/auth/sign-in': {
id: '/auth/sign-in'
path: '/auth/sign-in'
fullPath: '/auth/sign-in'
preLoaderRoute: typeof AuthSignInImport
parentRoute: typeof rootRoute
}
'/auth/sign-up': {
id: '/auth/sign-up'
path: '/auth/sign-up'
fullPath: '/auth/sign-up'
preLoaderRoute: typeof AuthSignUpImport
parentRoute: typeof rootRoute
}
'/routeTree/gen': {
id: '/routeTree/gen'
path: '/routeTree/gen'
fullPath: '/routeTree/gen'
preLoaderRoute: typeof RouteTreeGenImport
parentRoute: typeof rootRoute
}
'/_app/_explore/explore': {
id: '/_app/_explore/explore'
path: '/explore'
fullPath: '/explore'
preLoaderRoute: typeof AppExploreExploreImport
parentRoute: typeof AppRouteImport
}
'/_app/_explore/feed': {
id: '/_app/_explore/feed'
path: '/feed'
fullPath: '/feed'
preLoaderRoute: typeof AppExploreFeedImport
parentRoute: typeof AppRouteImport
}
'/_app/bangumi/manage': {
id: '/_app/bangumi/manage'
path: '/manage'
fullPath: '/bangumi/manage'
preLoaderRoute: typeof AppBangumiManageImport
parentRoute: typeof AppBangumiRouteImport
}
'/_app/playground/graphql-api': {
id: '/_app/playground/graphql-api'
path: '/graphql-api'
fullPath: '/playground/graphql-api'
preLoaderRoute: typeof AppPlaygroundGraphqlApiImport
parentRoute: typeof AppPlaygroundRouteImport
}
'/_app/settings/downloader': {
id: '/_app/settings/downloader'
path: '/downloader'
fullPath: '/settings/downloader'
preLoaderRoute: typeof AppSettingsDownloaderImport
parentRoute: typeof AppSettingsRouteImport
}
'/_app/subscriptions/create': {
id: '/_app/subscriptions/create'
path: '/create'
fullPath: '/subscriptions/create'
preLoaderRoute: typeof AppSubscriptionsCreateImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/_app/subscriptions/manage': {
id: '/_app/subscriptions/manage'
path: '/manage'
fullPath: '/subscriptions/manage'
preLoaderRoute: typeof AppSubscriptionsManageImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/auth/oidc/callback': {
id: '/auth/oidc/callback'
path: '/auth/oidc/callback'
fullPath: '/auth/oidc/callback'
preLoaderRoute: typeof AuthOidcCallbackImport
parentRoute: typeof rootRoute
}
'/_app/subscriptions/detail/$subscriptionId': {
id: '/_app/subscriptions/detail/$subscriptionId'
path: '/detail/$subscriptionId'
fullPath: '/subscriptions/detail/$subscriptionId'
preLoaderRoute: typeof AppSubscriptionsDetailSubscriptionIdImport
parentRoute: typeof AppSubscriptionsRouteImport
}
'/_app/subscriptions/edit/$subscriptionId': {
id: '/_app/subscriptions/edit/$subscriptionId'
path: '/edit/$subscriptionId'
fullPath: '/subscriptions/edit/$subscriptionId'
preLoaderRoute: typeof AppSubscriptionsEditSubscriptionIdImport
parentRoute: typeof AppSubscriptionsRouteImport
}
}
}
// Create and export the route tree
interface AppBangumiRouteRouteChildren {
AppBangumiManageRoute: typeof AppBangumiManageRoute
}
const AppBangumiRouteRouteChildren: AppBangumiRouteRouteChildren = {
AppBangumiManageRoute: AppBangumiManageRoute,
}
const AppBangumiRouteRouteWithChildren = AppBangumiRouteRoute._addFileChildren(
AppBangumiRouteRouteChildren,
)
interface AppPlaygroundRouteRouteChildren {
AppPlaygroundGraphqlApiRoute: typeof AppPlaygroundGraphqlApiRoute
}
const AppPlaygroundRouteRouteChildren: AppPlaygroundRouteRouteChildren = {
AppPlaygroundGraphqlApiRoute: AppPlaygroundGraphqlApiRoute,
}
const AppPlaygroundRouteRouteWithChildren =
AppPlaygroundRouteRoute._addFileChildren(AppPlaygroundRouteRouteChildren)
interface AppSettingsRouteRouteChildren {
AppSettingsDownloaderRoute: typeof AppSettingsDownloaderRoute
}
const AppSettingsRouteRouteChildren: AppSettingsRouteRouteChildren = {
AppSettingsDownloaderRoute: AppSettingsDownloaderRoute,
}
const AppSettingsRouteRouteWithChildren =
AppSettingsRouteRoute._addFileChildren(AppSettingsRouteRouteChildren)
interface AppSubscriptionsRouteRouteChildren {
AppSubscriptionsCreateRoute: typeof AppSubscriptionsCreateRoute
AppSubscriptionsManageRoute: typeof AppSubscriptionsManageRoute
AppSubscriptionsDetailSubscriptionIdRoute: typeof AppSubscriptionsDetailSubscriptionIdRoute
AppSubscriptionsEditSubscriptionIdRoute: typeof AppSubscriptionsEditSubscriptionIdRoute
}
const AppSubscriptionsRouteRouteChildren: AppSubscriptionsRouteRouteChildren = {
AppSubscriptionsCreateRoute: AppSubscriptionsCreateRoute,
AppSubscriptionsManageRoute: AppSubscriptionsManageRoute,
AppSubscriptionsDetailSubscriptionIdRoute:
AppSubscriptionsDetailSubscriptionIdRoute,
AppSubscriptionsEditSubscriptionIdRoute:
AppSubscriptionsEditSubscriptionIdRoute,
}
const AppSubscriptionsRouteRouteWithChildren =
AppSubscriptionsRouteRoute._addFileChildren(
AppSubscriptionsRouteRouteChildren,
)
interface AppRouteRouteChildren {
AppBangumiRouteRoute: typeof AppBangumiRouteRouteWithChildren
AppPlaygroundRouteRoute: typeof AppPlaygroundRouteRouteWithChildren
AppSettingsRouteRoute: typeof AppSettingsRouteRouteWithChildren
AppSubscriptionsRouteRoute: typeof AppSubscriptionsRouteRouteWithChildren
AppExploreExploreRoute: typeof AppExploreExploreRoute
AppExploreFeedRoute: typeof AppExploreFeedRoute
}
const AppRouteRouteChildren: AppRouteRouteChildren = {
AppBangumiRouteRoute: AppBangumiRouteRouteWithChildren,
AppPlaygroundRouteRoute: AppPlaygroundRouteRouteWithChildren,
AppSettingsRouteRoute: AppSettingsRouteRouteWithChildren,
AppSubscriptionsRouteRoute: AppSubscriptionsRouteRouteWithChildren,
AppExploreExploreRoute: AppExploreExploreRoute,
AppExploreFeedRoute: AppExploreFeedRoute,
}
const AppRouteRouteWithChildren = AppRouteRoute._addFileChildren(
AppRouteRouteChildren,
)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/bangumi': typeof AppBangumiRouteRouteWithChildren
'/playground': typeof AppPlaygroundRouteRouteWithChildren
'/settings': typeof AppSettingsRouteRouteWithChildren
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/routeTree/gen': typeof RouteTreeGenRoute
'/explore': typeof AppExploreExploreRoute
'/feed': typeof AppExploreFeedRoute
'/bangumi/manage': typeof AppBangumiManageRoute
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/settings/downloader': typeof AppSettingsDownloaderRoute
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/bangumi': typeof AppBangumiRouteRouteWithChildren
'/playground': typeof AppPlaygroundRouteRouteWithChildren
'/settings': typeof AppSettingsRouteRouteWithChildren
'/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/routeTree/gen': typeof RouteTreeGenRoute
'/explore': typeof AppExploreExploreRoute
'/feed': typeof AppExploreFeedRoute
'/bangumi/manage': typeof AppBangumiManageRoute
'/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/settings/downloader': typeof AppSettingsDownloaderRoute
'/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRoutesById {
__root__: typeof rootRoute
'/': typeof IndexRoute
'/_app': typeof AppRouteRouteWithChildren
'/404': typeof R404Route
'/about': typeof AboutRoute
'/_app/bangumi': typeof AppBangumiRouteRouteWithChildren
'/_app/playground': typeof AppPlaygroundRouteRouteWithChildren
'/_app/settings': typeof AppSettingsRouteRouteWithChildren
'/_app/subscriptions': typeof AppSubscriptionsRouteRouteWithChildren
'/auth/sign-in': typeof AuthSignInRoute
'/auth/sign-up': typeof AuthSignUpRoute
'/routeTree/gen': typeof RouteTreeGenRoute
'/_app/_explore/explore': typeof AppExploreExploreRoute
'/_app/_explore/feed': typeof AppExploreFeedRoute
'/_app/bangumi/manage': typeof AppBangumiManageRoute
'/_app/playground/graphql-api': typeof AppPlaygroundGraphqlApiRoute
'/_app/settings/downloader': typeof AppSettingsDownloaderRoute
'/_app/subscriptions/create': typeof AppSubscriptionsCreateRoute
'/_app/subscriptions/manage': typeof AppSubscriptionsManageRoute
'/auth/oidc/callback': typeof AuthOidcCallbackRoute
'/_app/subscriptions/detail/$subscriptionId': typeof AppSubscriptionsDetailSubscriptionIdRoute
'/_app/subscriptions/edit/$subscriptionId': typeof AppSubscriptionsEditSubscriptionIdRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths:
| '/'
| ''
| '/404'
| '/about'
| '/bangumi'
| '/playground'
| '/settings'
| '/subscriptions'
| '/auth/sign-in'
| '/auth/sign-up'
| '/routeTree/gen'
| '/explore'
| '/feed'
| '/bangumi/manage'
| '/playground/graphql-api'
| '/settings/downloader'
| '/subscriptions/create'
| '/subscriptions/manage'
| '/auth/oidc/callback'
| '/subscriptions/detail/$subscriptionId'
| '/subscriptions/edit/$subscriptionId'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
| ''
| '/404'
| '/about'
| '/bangumi'
| '/playground'
| '/settings'
| '/subscriptions'
| '/auth/sign-in'
| '/auth/sign-up'
| '/routeTree/gen'
| '/explore'
| '/feed'
| '/bangumi/manage'
| '/playground/graphql-api'
| '/settings/downloader'
| '/subscriptions/create'
| '/subscriptions/manage'
| '/auth/oidc/callback'
| '/subscriptions/detail/$subscriptionId'
| '/subscriptions/edit/$subscriptionId'
id:
| '__root__'
| '/'
| '/_app'
| '/404'
| '/about'
| '/_app/bangumi'
| '/_app/playground'
| '/_app/settings'
| '/_app/subscriptions'
| '/auth/sign-in'
| '/auth/sign-up'
| '/routeTree/gen'
| '/_app/_explore/explore'
| '/_app/_explore/feed'
| '/_app/bangumi/manage'
| '/_app/playground/graphql-api'
| '/_app/settings/downloader'
| '/_app/subscriptions/create'
| '/_app/subscriptions/manage'
| '/auth/oidc/callback'
| '/_app/subscriptions/detail/$subscriptionId'
| '/_app/subscriptions/edit/$subscriptionId'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AppRouteRoute: typeof AppRouteRouteWithChildren
R404Route: typeof R404Route
AboutRoute: typeof AboutRoute
AuthSignInRoute: typeof AuthSignInRoute
AuthSignUpRoute: typeof AuthSignUpRoute
RouteTreeGenRoute: typeof RouteTreeGenRoute
AuthOidcCallbackRoute: typeof AuthOidcCallbackRoute
}
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AppRouteRoute: AppRouteRouteWithChildren,
R404Route: R404Route,
AboutRoute: AboutRoute,
AuthSignInRoute: AuthSignInRoute,
AuthSignUpRoute: AuthSignUpRoute,
RouteTreeGenRoute: RouteTreeGenRoute,
AuthOidcCallbackRoute: AuthOidcCallbackRoute,
}
export const routeTree = rootRoute
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
/* ROUTE_MANIFEST_START
{
"routes": {
"__root__": {
"filePath": "__root.tsx",
"children": [
"/",
"/_app",
"/404",
"/about",
"/auth/sign-in",
"/auth/sign-up",
"/routeTree/gen",
"/auth/oidc/callback"
]
},
"/": {
"filePath": "index.tsx"
},
"/_app": {
"filePath": "_app/route.tsx",
"children": [
"/_app/bangumi",
"/_app/playground",
"/_app/settings",
"/_app/subscriptions",
"/_app/_explore/explore",
"/_app/_explore/feed"
]
},
"/404": {
"filePath": "404.tsx"
},
"/about": {
"filePath": "about.tsx"
},
"/_app/bangumi": {
"filePath": "_app/bangumi/route.tsx",
"parent": "/_app",
"children": [
"/_app/bangumi/manage"
]
},
"/_app/playground": {
"filePath": "_app/playground/route.tsx",
"parent": "/_app",
"children": [
"/_app/playground/graphql-api"
]
},
"/_app/settings": {
"filePath": "_app/settings/route.tsx",
"parent": "/_app",
"children": [
"/_app/settings/downloader"
]
},
"/_app/subscriptions": {
"filePath": "_app/subscriptions/route.tsx",
"parent": "/_app",
"children": [
"/_app/subscriptions/create",
"/_app/subscriptions/manage",
"/_app/subscriptions/detail/$subscriptionId",
"/_app/subscriptions/edit/$subscriptionId"
]
},
"/auth/sign-in": {
"filePath": "auth/sign-in.tsx"
},
"/auth/sign-up": {
"filePath": "auth/sign-up.tsx"
},
"/routeTree/gen": {
"filePath": "routeTree.gen.ts"
},
"/_app/_explore/explore": {
"filePath": "_app/_explore/explore.tsx",
"parent": "/_app"
},
"/_app/_explore/feed": {
"filePath": "_app/_explore/feed.tsx",
"parent": "/_app"
},
"/_app/bangumi/manage": {
"filePath": "_app/bangumi/manage.tsx",
"parent": "/_app/bangumi"
},
"/_app/playground/graphql-api": {
"filePath": "_app/playground/graphql-api.tsx",
"parent": "/_app/playground"
},
"/_app/settings/downloader": {
"filePath": "_app/settings/downloader.tsx",
"parent": "/_app/settings"
},
"/_app/subscriptions/create": {
"filePath": "_app/subscriptions/create.tsx",
"parent": "/_app/subscriptions"
},
"/_app/subscriptions/manage": {
"filePath": "_app/subscriptions/manage.tsx",
"parent": "/_app/subscriptions"
},
"/auth/oidc/callback": {
"filePath": "auth/oidc/callback.tsx"
},
"/_app/subscriptions/detail/$subscriptionId": {
"filePath": "_app/subscriptions/detail.$subscriptionId.tsx",
"parent": "/_app/subscriptions"
},
"/_app/subscriptions/edit/$subscriptionId": {
"filePath": "_app/subscriptions/edit.$subscriptionId.tsx",
"parent": "/_app/subscriptions"
}
}
}
ROUTE_MANIFEST_END */

View File

@ -1,4 +1,4 @@
{
"routesDirectory": "./src/presentation/routes",
"generatedRouteTree": "./src/presentation/routes/routeTree.gen.ts"
"generatedRouteTree": "./src/presentation/routeTree.gen.ts"
}

View File

@ -13,7 +13,6 @@
"moduleDetection": "force",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"skipLibCheck": true,
"target": "ES2020",