mirror of
https://github.com/git-touch/git-touch
synced 2025-03-13 01:30:09 +01:00
feat(gitlab): graphql schema and build config
This commit is contained in:
parent
ba34337b07
commit
efc2359f27
18
build.yaml
18
build.yaml
@ -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
|
||||
|
@ -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,
|
||||
|
5
lib/gql_gitlab/project.graphql
Normal file
5
lib/gql_gitlab/project.graphql
Normal file
@ -0,0 +1,5 @@
|
||||
query Project($fullPath: String!) {
|
||||
project(fullPath: $fullPath) {
|
||||
name
|
||||
}
|
||||
}
|
36947
lib/gql_gitlab/schema.graphql
Normal file
36947
lib/gql_gitlab/schema.graphql
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user