feat(gitlab): graphql schema and build config

This commit is contained in:
Rongjian Zhang 2022-10-01 15:10:25 +08:00
parent ba34337b07
commit efc2359f27
5 changed files with 36975 additions and 0 deletions

View File

@ -1,5 +1,11 @@
targets:
$default:
builders:
json_serializable:
options:
github:
sources:
- lib/gql_github/*
builders:
ferry_generator|graphql_builder:
enabled: true
@ -19,3 +25,15 @@ targets:
custom_serializers:
- import: package:git_touch/utils/date_time_serializer.dart
name: DateTimeSerializer
gitlab:
sources:
- lib/gql_gitlab/*
builders:
ferry_generator|graphql_builder:
enabled: true
options:
schema: git_touch|lib/gql_gitlab/schema.graphql
ferry_generator|serializer_builder:
enabled: true
options:
schema: git_touch|lib/gql_gitlab/schema.graphql

View File

@ -62,6 +62,9 @@ class MyApp extends StatelessWidget {
theme: CupertinoThemeData(
brightness: theme.brightness,
primaryColor: antTheme.colorPrimary,
scaffoldBackgroundColor: theme.brightness == Brightness.dark
? const Color(0x00ff2629)
: const Color(0xfffafbfc),
textTheme: CupertinoTextThemeData(
textStyle: TextStyle(
fontSize: antTheme.fontSizeMain,

View File

@ -0,0 +1,5 @@
query Project($fullPath: String!) {
project(fullPath: $fullPath) {
name
}
}

36947
lib/gql_gitlab/schema.graphql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,3 +2,5 @@
# https://docs.github.com/en/graphql/overview/public-schema
curl -o lib/gql_github/schema.graphql https://docs.github.com/public/schema.docs.graphql
npx --yes get-graphql-schema https://gitlab.com/api/graphql > lib/gql_gitlab/schema.graphql