improvement: repository screen header

This commit is contained in:
Rongjian Zhang
2020-01-01 20:44:18 +08:00
parent d2ae236356
commit b5933dd895
5 changed files with 90 additions and 22 deletions

View File

@@ -46,6 +46,9 @@ class GithubRepositoryRepository extends GithubRepositoryPinnableItem
@override
String description;
@override
String homepageUrl;
@override
bool isPrivate;
@@ -109,6 +112,7 @@ class GithubRepositoryRepository extends GithubRepositoryPinnableItem
owner,
name,
description,
homepageUrl,
isPrivate,
isFork,
stargazers,
@@ -667,6 +671,8 @@ class GithubRepositoryRepositoryInfo with EquatableMixin {
String description;
String homepageUrl;
bool isPrivate;
bool isFork;
@@ -685,6 +691,7 @@ class GithubRepositoryRepositoryInfo with EquatableMixin {
owner,
name,
description,
homepageUrl,
isPrivate,
isFork,
hasIssuesEnabled,
@@ -803,6 +810,12 @@ class GithubRepositoryQuery
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'homepageUrl'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'isPrivate'),
alias: null,
@@ -1205,7 +1218,7 @@ class GithubRepositoryQuery
arguments: [
ArgumentNode(
name: NameNode(value: 'first'),
value: IntValueNode(value: '100'))
value: IntValueNode(value: '10'))
],
directives: [],
selectionSet: SelectionSetNode(selections: [

View File

@@ -28,6 +28,7 @@ GithubRepositoryRepository _$GithubRepositoryRepositoryFromJson(
json['owner'] as Map<String, dynamic>)
..name = json['name'] as String
..description = json['description'] as String
..homepageUrl = json['homepageUrl'] as String
..isPrivate = json['isPrivate'] as bool
..isFork = json['isFork'] as bool
..stargazers = json['stargazers'] == null
@@ -79,6 +80,7 @@ Map<String, dynamic> _$GithubRepositoryRepositoryToJson(
'owner': instance.owner?.toJson(),
'name': instance.name,
'description': instance.description,
'homepageUrl': instance.homepageUrl,
'isPrivate': instance.isPrivate,
'isFork': instance.isFork,
'stargazers': instance.stargazers?.toJson(),
@@ -523,6 +525,7 @@ GithubRepositoryRepositoryInfo _$GithubRepositoryRepositoryInfoFromJson(
json['owner'] as Map<String, dynamic>)
..name = json['name'] as String
..description = json['description'] as String
..homepageUrl = json['homepageUrl'] as String
..isPrivate = json['isPrivate'] as bool
..isFork = json['isFork'] as bool
..hasIssuesEnabled = json['hasIssuesEnabled'] as bool
@@ -540,6 +543,7 @@ Map<String, dynamic> _$GithubRepositoryRepositoryInfoToJson(
'owner': instance.owner?.toJson(),
'name': instance.name,
'description': instance.description,
'homepageUrl': instance.homepageUrl,
'isPrivate': instance.isPrivate,
'isFork': instance.isFork,
'hasIssuesEnabled': instance.hasIssuesEnabled,

View File

@@ -12,6 +12,7 @@ query(
}
name
description
homepageUrl
isPrivate
isFork
stargazers {
@@ -88,7 +89,7 @@ query(
name
spdxId
}
repositoryTopics(first: 100) {
repositoryTopics(first: 10) {
nodes {
url
topic {