@stats-organization/github-readme-stats-core 2.1.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/build/api/gist.d.ts +2 -7
  2. package/build/api/gist.d.ts.map +1 -1
  3. package/build/api/gist.js +28 -26
  4. package/build/api/index.d.ts +3 -8
  5. package/build/api/index.d.ts.map +1 -1
  6. package/build/api/index.js +32 -36
  7. package/build/api/pin.d.ts +2 -7
  8. package/build/api/pin.d.ts.map +1 -1
  9. package/build/api/pin.js +18 -33
  10. package/build/api/top-langs.d.ts +2 -7
  11. package/build/api/top-langs.d.ts.map +1 -1
  12. package/build/api/top-langs.js +32 -44
  13. package/build/api/wakatime.d.ts +2 -7
  14. package/build/api/wakatime.d.ts.map +1 -1
  15. package/build/api/wakatime.js +28 -26
  16. package/build/calculateRank.d.ts +12 -11
  17. package/build/calculateRank.d.ts.map +1 -1
  18. package/build/calculateRank.js +18 -18
  19. package/build/cards/common-options.d.ts +13 -0
  20. package/build/cards/common-options.d.ts.map +1 -0
  21. package/build/cards/common-options.js +1 -0
  22. package/build/cards/gist.d.ts +11 -16
  23. package/build/cards/gist.d.ts.map +1 -1
  24. package/build/cards/gist.js +26 -31
  25. package/build/cards/repo.d.ts +19 -16
  26. package/build/cards/repo.d.ts.map +1 -1
  27. package/build/cards/repo.js +79 -72
  28. package/build/cards/stats.d.ts +29 -44
  29. package/build/cards/stats.d.ts.map +1 -1
  30. package/build/cards/stats.js +118 -173
  31. package/build/cards/top-languages.d.ts +81 -77
  32. package/build/cards/top-languages.d.ts.map +1 -1
  33. package/build/cards/top-languages.js +186 -184
  34. package/build/cards/wakatime.d.ts +21 -11
  35. package/build/cards/wakatime.d.ts.map +1 -1
  36. package/build/cards/wakatime.js +92 -109
  37. package/build/common/Card.d.ts +41 -14
  38. package/build/common/Card.d.ts.map +1 -1
  39. package/build/common/Card.js +92 -31
  40. package/build/common/I18n.d.ts +4 -2
  41. package/build/common/I18n.d.ts.map +1 -1
  42. package/build/common/color.d.ts +91 -15
  43. package/build/common/color.d.ts.map +1 -1
  44. package/build/common/color.js +163 -17
  45. package/build/common/config.d.ts +2 -1
  46. package/build/common/config.d.ts.map +1 -1
  47. package/build/common/config.js +16 -26
  48. package/build/common/constants.d.ts +2 -1
  49. package/build/common/constants.d.ts.map +1 -1
  50. package/build/common/date.d.ts +37 -0
  51. package/build/common/date.d.ts.map +1 -0
  52. package/build/common/date.js +31 -0
  53. package/build/common/html.js +1 -1
  54. package/build/common/http.d.ts +37 -5
  55. package/build/common/http.d.ts.map +1 -1
  56. package/build/common/http.js +29 -6
  57. package/build/common/icons.d.ts +1 -0
  58. package/build/common/icons.d.ts.map +1 -1
  59. package/build/common/icons.js +1 -0
  60. package/build/common/languageColors.d.ts +11 -0
  61. package/build/common/languageColors.d.ts.map +1 -0
  62. package/build/common/languageColors.js +15 -0
  63. package/build/common/languageColors.json +10 -1
  64. package/build/common/ops.d.ts +27 -33
  65. package/build/common/ops.d.ts.map +1 -1
  66. package/build/common/ops.js +31 -48
  67. package/build/common/render.d.ts +154 -113
  68. package/build/common/render.d.ts.map +1 -1
  69. package/build/common/render.js +209 -92
  70. package/build/common/retryer.d.ts +15 -6
  71. package/build/common/retryer.d.ts.map +1 -1
  72. package/build/common/retryer.js +2 -0
  73. package/build/fetchers/gist.d.ts +6 -21
  74. package/build/fetchers/gist.d.ts.map +1 -1
  75. package/build/fetchers/gist.js +28 -64
  76. package/build/fetchers/repo.d.ts +12 -11
  77. package/build/fetchers/repo.d.ts.map +1 -1
  78. package/build/fetchers/repo.js +27 -68
  79. package/build/fetchers/stats.d.ts +24 -17
  80. package/build/fetchers/stats.d.ts.map +1 -1
  81. package/build/fetchers/stats.js +302 -184
  82. package/build/fetchers/top-languages.d.ts +10 -15
  83. package/build/fetchers/top-languages.d.ts.map +1 -1
  84. package/build/fetchers/top-languages.js +52 -103
  85. package/build/fetchers/types.d.ts +130 -0
  86. package/build/fetchers/types.d.ts.map +1 -0
  87. package/build/fetchers/types.js +1 -0
  88. package/build/fetchers/wakatime.d.ts +9 -5
  89. package/build/fetchers/wakatime.d.ts.map +1 -1
  90. package/build/fetchers/wakatime.js +8 -4
  91. package/build/graphql/contributionsDocument.d.ts +18 -0
  92. package/build/graphql/contributionsDocument.d.ts.map +1 -0
  93. package/build/graphql/contributionsDocument.js +30 -0
  94. package/build/graphql/generated/common.d.ts +42 -0
  95. package/build/graphql/generated/common.d.ts.map +1 -0
  96. package/build/graphql/generated/common.js +2 -0
  97. package/build/graphql/generated/gist.d.ts +44 -0
  98. package/build/graphql/generated/gist.d.ts.map +1 -0
  99. package/build/graphql/generated/gist.js +27 -0
  100. package/build/graphql/generated/repo.d.ts +67 -0
  101. package/build/graphql/generated/repo.d.ts.map +1 -0
  102. package/build/graphql/generated/repo.js +30 -0
  103. package/build/graphql/generated/stats.d.ts +150 -0
  104. package/build/graphql/generated/stats.d.ts.map +1 -0
  105. package/build/graphql/generated/stats.js +95 -0
  106. package/build/graphql/generated/top-languages.d.ts +54 -0
  107. package/build/graphql/generated/top-languages.d.ts.map +1 -0
  108. package/build/graphql/generated/top-languages.js +27 -0
  109. package/build/graphql/graphqlDocument.d.ts +22 -0
  110. package/build/graphql/graphqlDocument.d.ts.map +1 -0
  111. package/build/graphql/graphqlDocument.js +8 -0
  112. package/build/graphql/reposContributedToDocument.d.ts +27 -0
  113. package/build/graphql/reposContributedToDocument.d.ts.map +1 -0
  114. package/build/graphql/reposContributedToDocument.js +59 -0
  115. package/build/index.d.ts +3 -1
  116. package/build/index.d.ts.map +1 -1
  117. package/build/index.js +2 -1
  118. package/build/themes/index.d.ts +32 -0
  119. package/build/themes/index.d.ts.map +1 -1
  120. package/build/themes/index.js +28 -0
  121. package/build/translations.d.ts +17 -0
  122. package/build/translations.d.ts.map +1 -1
  123. package/build/translations.js +17 -0
  124. package/package.json +14 -8
  125. package/src/_emoji-name-map.d.ts +10 -0
  126. package/src/_github-username-regex.d.ts +4 -0
  127. package/src/api/gist.js +31 -31
  128. package/src/api/index.js +40 -42
  129. package/src/api/pin.js +20 -38
  130. package/src/api/top-langs.js +36 -49
  131. package/src/api/wakatime.js +31 -31
  132. package/src/{calculateRank.js → calculateRank.ts} +29 -19
  133. package/src/cards/common-options.ts +13 -0
  134. package/src/cards/{gist.js → gist.ts} +37 -37
  135. package/src/cards/{repo.js → repo.ts} +107 -79
  136. package/src/cards/{stats.js → stats.ts} +173 -210
  137. package/src/cards/{top-languages.js → top-languages.ts} +325 -243
  138. package/src/cards/{wakatime.js → wakatime.ts} +158 -127
  139. package/src/common/Card.ts +123 -43
  140. package/src/common/I18n.ts +6 -2
  141. package/src/common/color.ts +240 -28
  142. package/src/common/config.ts +22 -29
  143. package/src/common/constants.ts +3 -1
  144. package/src/common/date.ts +45 -0
  145. package/src/common/html.ts +1 -1
  146. package/src/common/http.ts +71 -0
  147. package/src/common/icons.ts +1 -0
  148. package/src/common/languageColors.json +10 -1
  149. package/src/common/languageColors.ts +19 -0
  150. package/src/common/ops.ts +158 -0
  151. package/src/common/render.ts +652 -0
  152. package/src/common/retryer.ts +21 -12
  153. package/src/fetchers/gist.ts +79 -0
  154. package/src/fetchers/repo.ts +114 -0
  155. package/src/fetchers/stats.ts +743 -0
  156. package/src/fetchers/top-languages.ts +135 -0
  157. package/src/fetchers/{types.d.ts → types.ts} +28 -20
  158. package/src/fetchers/{wakatime.js → wakatime.ts} +19 -5
  159. package/src/graphql/contributionsDocument.ts +44 -0
  160. package/src/graphql/generated/common.ts +26 -0
  161. package/src/graphql/generated/gist.ts +59 -0
  162. package/src/graphql/generated/repo.ts +90 -0
  163. package/src/graphql/generated/stats.ts +194 -0
  164. package/src/graphql/generated/top-languages.ts +75 -0
  165. package/src/graphql/graphqlDocument.ts +25 -0
  166. package/src/graphql/queries/gist.graphql +25 -0
  167. package/src/graphql/queries/repo.graphql +28 -0
  168. package/src/graphql/queries/stats.graphql +120 -0
  169. package/src/graphql/queries/top-languages.graphql +34 -0
  170. package/src/graphql/reposContributedToDocument.ts +86 -0
  171. package/src/index.ts +3 -1
  172. package/src/themes/index.ts +33 -0
  173. package/src/translations.ts +17 -0
  174. package/src/cards/types.d.ts +0 -78
  175. package/src/common/http.js +0 -19
  176. package/src/common/ops.js +0 -170
  177. package/src/common/render.js +0 -440
  178. package/src/fetchers/gist.js +0 -112
  179. package/src/fetchers/repo.js +0 -161
  180. package/src/fetchers/stats.js +0 -474
  181. package/src/fetchers/top-languages.js +0 -175
  182. package/src/themes/README.md +0 -229
@@ -0,0 +1,30 @@
1
+ // Generated file — see .github/CONTRIBUTING.md
2
+ import { graphqlDocument } from "../graphqlDocument.js";
3
+ export const GetRepoDocument = graphqlDocument(`
4
+ query getRepo($login: String!, $repo: String!) {
5
+ user(login: $login) {
6
+ repository(name: $repo) {
7
+ ...RepoInfo
8
+ }
9
+ }
10
+ organization(login: $login) {
11
+ repository(name: $repo) {
12
+ ...RepoInfo
13
+ }
14
+ }
15
+ }
16
+ fragment RepoInfo on Repository {
17
+ name
18
+ nameWithOwner
19
+ isPrivate
20
+ isArchived
21
+ isTemplate
22
+ stargazerCount
23
+ description
24
+ primaryLanguage {
25
+ color
26
+ id
27
+ name
28
+ }
29
+ forkCount
30
+ }`);
@@ -0,0 +1,150 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ import type * as Types from "./common.js";
8
+ export type RepoNodeFragment = {
9
+ name: string;
10
+ stargazerCount: number;
11
+ };
12
+ export type RepoStarsFragment = {
13
+ repositories: {
14
+ totalCount: number;
15
+ nodes: Array<{
16
+ name: string;
17
+ stargazerCount: number;
18
+ } | null> | null;
19
+ pageInfo: {
20
+ hasNextPage: boolean;
21
+ endCursor: string | null;
22
+ };
23
+ };
24
+ };
25
+ export type UserReposQueryVariables = Exact<{
26
+ login: string;
27
+ after?: string | null | undefined;
28
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
29
+ }>;
30
+ export type UserReposQuery = {
31
+ user: {
32
+ repositories: {
33
+ totalCount: number;
34
+ nodes: Array<{
35
+ name: string;
36
+ stargazerCount: number;
37
+ } | null> | null;
38
+ pageInfo: {
39
+ hasNextPage: boolean;
40
+ endCursor: string | null;
41
+ };
42
+ };
43
+ } | null;
44
+ };
45
+ export type UserInfoQueryVariables = Exact<{
46
+ login: string;
47
+ after?: string | null | undefined;
48
+ includeMergedPullRequests: boolean;
49
+ includeDiscussions: boolean;
50
+ includeDiscussionsAnswers: boolean;
51
+ startTime?: string | null | undefined;
52
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
53
+ includeUserRepositories: boolean;
54
+ }>;
55
+ export type UserInfoQuery = {
56
+ user: {
57
+ name: string | null;
58
+ login: string;
59
+ commits: {
60
+ totalCommitContributions: number;
61
+ };
62
+ reviews: {
63
+ totalPullRequestReviewContributions: number;
64
+ };
65
+ repositoriesContributedTo: {
66
+ totalCount: number;
67
+ };
68
+ pullRequests: {
69
+ totalCount: number;
70
+ };
71
+ mergedPullRequests?: {
72
+ totalCount: number;
73
+ };
74
+ openIssues: {
75
+ totalCount: number;
76
+ };
77
+ closedIssues: {
78
+ totalCount: number;
79
+ };
80
+ followers: {
81
+ totalCount: number;
82
+ };
83
+ repositoryDiscussions?: {
84
+ totalCount: number;
85
+ };
86
+ repositoryDiscussionComments?: {
87
+ totalCount: number;
88
+ };
89
+ contributionsCollection: {
90
+ contributionYears: Array<number>;
91
+ };
92
+ repositories: {
93
+ totalCount: number;
94
+ nodes: Array<{
95
+ name: string;
96
+ stargazerCount: number;
97
+ } | null> | null;
98
+ pageInfo: {
99
+ hasNextPage: boolean;
100
+ endCursor: string | null;
101
+ };
102
+ };
103
+ } | null;
104
+ };
105
+ export type YearContributionsFragment = {
106
+ contributionCalendar: {
107
+ totalContributions: number;
108
+ };
109
+ };
110
+ export type RangeContributionsByRepoFragment = {
111
+ commitContributionsByRepository: Array<{
112
+ repository: {
113
+ nameWithOwner: string;
114
+ };
115
+ }>;
116
+ issueContributionsByRepository: Array<{
117
+ repository: {
118
+ nameWithOwner: string;
119
+ };
120
+ }>;
121
+ pullRequestContributionsByRepository: Array<{
122
+ repository: {
123
+ nameWithOwner: string;
124
+ };
125
+ }>;
126
+ repositoryContributions?: {
127
+ nodes: Array<{
128
+ repository: {
129
+ nameWithOwner: string;
130
+ };
131
+ } | null> | null;
132
+ };
133
+ };
134
+ export declare const UserReposDocument: import("../graphqlDocument.js").GraphQLDocument<UserReposQuery, Exact<{
135
+ login: string;
136
+ after?: string | null | undefined;
137
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
138
+ }>>;
139
+ export declare const UserInfoDocument: import("../graphqlDocument.js").GraphQLDocument<UserInfoQuery, Exact<{
140
+ login: string;
141
+ after?: string | null | undefined;
142
+ includeMergedPullRequests: boolean;
143
+ includeDiscussions: boolean;
144
+ includeDiscussionsAnswers: boolean;
145
+ startTime?: string | null | undefined;
146
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
147
+ includeUserRepositories: boolean;
148
+ }>>;
149
+ export {};
150
+ //# sourceMappingURL=stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/graphql/generated/stats.ts"],"names":[],"mappings":"AAEA,0CAA0C;AAC1C,KAAK,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAC5E,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE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OAAO;wBACd,OAAO;+BACA,OAAO;gBACtB,MAAM,GAAG,IAAI,GAAG,SAAS;wBAEjC,KAAK,CAAC,KAAK,CAAC,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC,GACrD,KAAK,CAAC,qBAAqB,GAC3B,IAAI,GACJ,SAAS;6BACY,OAAO;GAgJ/B,CAAC"}
@@ -0,0 +1,95 @@
1
+ // Generated file — see .github/CONTRIBUTING.md
2
+ import { graphqlDocument } from "../graphqlDocument.js";
3
+ export const UserReposDocument = graphqlDocument(`
4
+ query userRepos($login: String!, $after: String, $ownerAffiliations: [RepositoryAffiliation]) {
5
+ user(login: $login) {
6
+ ...RepoStars
7
+ }
8
+ }
9
+ fragment RepoStars on User {
10
+ repositories(
11
+ first: 100
12
+ after: $after
13
+ ownerAffiliations: $ownerAffiliations
14
+ orderBy: {direction: DESC, field: STARGAZERS}
15
+ ) {
16
+ totalCount
17
+ nodes {
18
+ ...RepoNode
19
+ }
20
+ pageInfo {
21
+ hasNextPage
22
+ endCursor
23
+ }
24
+ }
25
+ }
26
+ fragment RepoNode on Repository {
27
+ name
28
+ stargazerCount
29
+ }`);
30
+ export const UserInfoDocument = graphqlDocument(`
31
+ query userInfo($login: String!, $after: String, $includeMergedPullRequests: Boolean!, $includeDiscussions: Boolean!, $includeDiscussionsAnswers: Boolean!, $startTime: DateTime = null, $ownerAffiliations: [RepositoryAffiliation], $includeUserRepositories: Boolean!) {
32
+ user(login: $login) {
33
+ name
34
+ login
35
+ commits: contributionsCollection(from: $startTime) {
36
+ totalCommitContributions
37
+ }
38
+ reviews: contributionsCollection {
39
+ totalPullRequestReviewContributions
40
+ }
41
+ repositoriesContributedTo(
42
+ first: 1
43
+ contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]
44
+ includeUserRepositories: $includeUserRepositories
45
+ ) {
46
+ totalCount
47
+ }
48
+ pullRequests(first: 1) {
49
+ totalCount
50
+ }
51
+ mergedPullRequests: pullRequests(states: MERGED) @include(if: $includeMergedPullRequests) {
52
+ totalCount
53
+ }
54
+ openIssues: issues(states: OPEN) {
55
+ totalCount
56
+ }
57
+ closedIssues: issues(states: CLOSED) {
58
+ totalCount
59
+ }
60
+ followers {
61
+ totalCount
62
+ }
63
+ repositoryDiscussions @include(if: $includeDiscussions) {
64
+ totalCount
65
+ }
66
+ repositoryDiscussionComments(onlyAnswers: true) @include(if: $includeDiscussionsAnswers) {
67
+ totalCount
68
+ }
69
+ contributionsCollection {
70
+ contributionYears
71
+ }
72
+ ...RepoStars
73
+ }
74
+ }
75
+ fragment RepoStars on User {
76
+ repositories(
77
+ first: 100
78
+ after: $after
79
+ ownerAffiliations: $ownerAffiliations
80
+ orderBy: {direction: DESC, field: STARGAZERS}
81
+ ) {
82
+ totalCount
83
+ nodes {
84
+ ...RepoNode
85
+ }
86
+ pageInfo {
87
+ hasNextPage
88
+ endCursor
89
+ }
90
+ }
91
+ }
92
+ fragment RepoNode on Repository {
93
+ name
94
+ stargazerCount
95
+ }`);
@@ -0,0 +1,54 @@
1
+ /** Internal type. DO NOT USE DIRECTLY. */
2
+ type Exact<T extends {
3
+ [key: string]: unknown;
4
+ }> = {
5
+ [K in keyof T]: T[K];
6
+ };
7
+ import type * as Types from "./common.js";
8
+ export type TopLanguageFragment = {
9
+ size: number;
10
+ node: {
11
+ color: string | null;
12
+ name: string;
13
+ };
14
+ };
15
+ export type TopLanguagesRepositoryFragment = {
16
+ name: string;
17
+ languages: {
18
+ edges: Array<{
19
+ size: number;
20
+ node: {
21
+ color: string | null;
22
+ name: string;
23
+ };
24
+ } | null> | null;
25
+ } | null;
26
+ };
27
+ export type TopLanguagesQueryVariables = Exact<{
28
+ login: string;
29
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
30
+ }>;
31
+ export type TopLanguagesQuery = {
32
+ user: {
33
+ repositories: {
34
+ nodes: Array<{
35
+ name: string;
36
+ languages: {
37
+ edges: Array<{
38
+ size: number;
39
+ node: {
40
+ color: string | null;
41
+ name: string;
42
+ };
43
+ } | null> | null;
44
+ } | null;
45
+ } | null> | null;
46
+ };
47
+ } | null;
48
+ };
49
+ export declare const TopLanguagesDocument: import("../graphqlDocument.js").GraphQLDocument<TopLanguagesQuery, Exact<{
50
+ login: string;
51
+ ownerAffiliations?: Array<Types.RepositoryAffiliation | null | undefined> | Types.RepositoryAffiliation | null | undefined;
52
+ }>>;
53
+ export {};
54
+ //# sourceMappingURL=top-languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-languages.d.ts","sourceRoot":"","sources":["../../../src/graphql/generated/top-languages.ts"],"names":[],"mappings":"AAEA,0CAA0C;AAC1C,KAAK,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAC5E,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAC;AAG1C,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE;QACT,KAAK,EAAE,KAAK,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE;gBAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,CAAC;SAC9C,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;KAClB,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EACd,KAAK,CAAC,KAAK,CAAC,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC,GACrD,KAAK,CAAC,qBAAqB,GAC3B,IAAI,GACJ,SAAS,CAAC;CACf,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE;QACJ,YAAY,EAAE;YACZ,KAAK,EAAE,KAAK,CAAC;gBACX,IAAI,EAAE,MAAM,CAAC;gBACb,SAAS,EAAE;oBACT,KAAK,EAAE,KAAK,CAAC;wBACX,IAAI,EAAE,MAAM,CAAC;wBACb,IAAI,EAAE;4BAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;4BAAC,IAAI,EAAE,MAAM,CAAA;yBAAE,CAAC;qBAC9C,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;iBAClB,GAAG,IAAI,CAAC;aACV,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;SAClB,CAAC;KACH,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,oBAAoB;WAxBxB,MAAM;wBAET,KAAK,CAAC,KAAK,CAAC,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC,GACrD,KAAK,CAAC,qBAAqB,GAC3B,IAAI,GACJ,SAAS;GA8CZ,CAAC"}
@@ -0,0 +1,27 @@
1
+ // Generated file — see .github/CONTRIBUTING.md
2
+ import { graphqlDocument } from "../graphqlDocument.js";
3
+ export const TopLanguagesDocument = graphqlDocument(`
4
+ query topLanguages($login: String!, $ownerAffiliations: [RepositoryAffiliation]) {
5
+ user(login: $login) {
6
+ repositories(ownerAffiliations: $ownerAffiliations, isFork: false, first: 100) {
7
+ nodes {
8
+ ...TopLanguagesRepository
9
+ }
10
+ }
11
+ }
12
+ }
13
+ fragment TopLanguagesRepository on Repository {
14
+ name
15
+ languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
16
+ edges {
17
+ ...TopLanguage
18
+ }
19
+ }
20
+ }
21
+ fragment TopLanguage on LanguageEdge {
22
+ size
23
+ node {
24
+ color
25
+ name
26
+ }
27
+ }`);
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A GraphQL query paired with the types of its result and variables.
3
+ *
4
+ * `text` is what goes over the wire; the other two members only carry types and are never assigned.
5
+ * Documents are generated from `queries/*.graphql`
6
+ * See `scripts/generate-graphql-types.js`.
7
+ */
8
+ interface GraphQLDocument<TResult, TVariables> {
9
+ readonly text: string;
10
+ readonly __result?: TResult;
11
+ readonly __variables?: TVariables;
12
+ }
13
+ /**
14
+ * Build a typed document.
15
+ *
16
+ * @param text The query text, including every fragment it spreads.
17
+ * @returns The document to pass to the function created by `createGraphQLFetcher`.
18
+ */
19
+ declare const graphqlDocument: <TResult, TVariables>(text: string) => GraphQLDocument<TResult, TVariables>;
20
+ export { graphqlDocument };
21
+ export type { GraphQLDocument };
22
+ //# sourceMappingURL=graphqlDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphqlDocument.d.ts","sourceRoot":"","sources":["../../src/graphql/graphqlDocument.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,UAAU,eAAe,CAAC,OAAO,EAAE,UAAU;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;CACnC;AAED;;;;;GAKG;AACH,QAAA,MAAM,eAAe,GAAI,OAAO,EAAE,UAAU,EAC1C,MAAM,MAAM,KACX,eAAe,CAAC,OAAO,EAAE,UAAU,CAAe,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Build a typed document.
3
+ *
4
+ * @param text The query text, including every fragment it spreads.
5
+ * @returns The document to pass to the function created by `createGraphQLFetcher`.
6
+ */
7
+ const graphqlDocument = (text) => ({ text });
8
+ export { graphqlDocument };
@@ -0,0 +1,27 @@
1
+ import type { GitHubDateRange } from "../common/date.js";
2
+ import type { RangeContributionsByRepoFragment } from "./generated/stats.js";
3
+ /** max value GitHub allows for `first/maxRepositories` */
4
+ declare const MAX_REPOSITORIES_LIMIT = 100;
5
+ interface ReposContributedToQueryVariables {
6
+ login: string;
7
+ maxRepositories: number;
8
+ }
9
+ interface ReposContributedToQuery {
10
+ user: Record<`range_${number}`, RangeContributionsByRepoFragment> | null;
11
+ }
12
+ /**
13
+ * Build a query for the repositories a user contributed to within multiple time
14
+ * ranges. One aliased `contributionsCollection` field per range, so all ranges
15
+ * are fetched in a single request. The shape is only known at runtime.
16
+ *
17
+ * Mirrors the `contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]`
18
+ * filter used by `repositoriesContributedTo` in `stats.graphql`.
19
+ *
20
+ * @param ranges Ranges to fetch, one `range_<index>` alias each.
21
+ * @param includeOwnRepos Whether to select `repositoryContributions`.
22
+ * @returns Document for `createGraphQLFetcher`.
23
+ */
24
+ declare const buildReposContributedToDocument: (ranges: Array<GitHubDateRange>, includeOwnRepos: boolean) => import("./graphqlDocument.js").GraphQLDocument<ReposContributedToQuery, ReposContributedToQueryVariables>;
25
+ export { buildReposContributedToDocument, MAX_REPOSITORIES_LIMIT };
26
+ export type { ReposContributedToQuery };
27
+ //# sourceMappingURL=reposContributedToDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reposContributedToDocument.d.ts","sourceRoot":"","sources":["../../src/graphql/reposContributedToDocument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAG7E,0DAA0D;AAC1D,QAAA,MAAM,sBAAsB,MAAM,CAAC;AAEnC,UAAU,gCAAgC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,MAAM,CAAC,SAAS,MAAM,EAAE,EAAE,gCAAgC,CAAC,GAAG,IAAI,CAAC;CAC1E;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,+BAA+B,GACnC,QAAQ,KAAK,CAAC,eAAe,CAAC,EAC9B,iBAAiB,OAAO,8GAkDzB,CAAC;AAEF,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,CAAC;AACnE,YAAY,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { toGitHubDateTime } from "../common/date.js";
2
+ import { graphqlDocument } from "./graphqlDocument.js";
3
+ /** max value GitHub allows for `first/maxRepositories` */
4
+ const MAX_REPOSITORIES_LIMIT = 100;
5
+ /**
6
+ * Build a query for the repositories a user contributed to within multiple time
7
+ * ranges. One aliased `contributionsCollection` field per range, so all ranges
8
+ * are fetched in a single request. The shape is only known at runtime.
9
+ *
10
+ * Mirrors the `contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]`
11
+ * filter used by `repositoriesContributedTo` in `stats.graphql`.
12
+ *
13
+ * @param ranges Ranges to fetch, one `range_<index>` alias each.
14
+ * @param includeOwnRepos Whether to select `repositoryContributions`.
15
+ * @returns Document for `createGraphQLFetcher`.
16
+ */
17
+ const buildReposContributedToDocument = (ranges, includeOwnRepos) => {
18
+ const rangeFields = ranges
19
+ .map(({ from, to }, index) => `range_${index}: contributionsCollection(from: "${toGitHubDateTime(from)}", to: "${toGitHubDateTime(to)}") { ...RangeContributionsByRepo }`)
20
+ .join("\n");
21
+ // `repositoryContributions` only ever returns repos the user owns,
22
+ // so it is left out rather than gated with @include: an excluded field still counts toward the query's node cost.
23
+ // stats.graphql carries the directive so the generated type marks the field optional.
24
+ const ownRepoField = includeOwnRepos
25
+ ? `repositoryContributions(first: $maxRepositories) {
26
+ nodes {
27
+ repository {
28
+ nameWithOwner
29
+ }
30
+ }
31
+ }`
32
+ : "";
33
+ // fragment must match queries/stats.graphql, which generates its type
34
+ return graphqlDocument(`
35
+ query userReposContributedTo($login: String!, $maxRepositories: Int!) {
36
+ user(login: $login) {
37
+ ${rangeFields}
38
+ }
39
+ }
40
+ fragment RangeContributionsByRepo on ContributionsCollection {
41
+ commitContributionsByRepository(maxRepositories: $maxRepositories) {
42
+ repository {
43
+ nameWithOwner
44
+ }
45
+ }
46
+ issueContributionsByRepository(maxRepositories: $maxRepositories) {
47
+ repository {
48
+ nameWithOwner
49
+ }
50
+ }
51
+ pullRequestContributionsByRepository(maxRepositories: $maxRepositories) {
52
+ repository {
53
+ nameWithOwner
54
+ }
55
+ }
56
+ ${ownRepoField}
57
+ }`);
58
+ };
59
+ export { buildReposContributedToDocument, MAX_REPOSITORIES_LIMIT };
package/build/index.d.ts CHANGED
@@ -7,7 +7,8 @@
7
7
  export { fetchWakatimeStats } from "./fetchers/wakatime.js";
8
8
  export { retryer } from "./common/retryer.js";
9
9
  export { renderError } from "./common/render.js";
10
- export { dateDiff, clampValue } from "./common/ops.js";
10
+ export { clampValue } from "./common/ops.js";
11
+ export { dateDiff } from "./common/date.js";
11
12
  export { logger } from "./common/log.js";
12
13
  export { request } from "./common/http.js";
13
14
  export { default as gist } from "./api/gist.js";
@@ -17,4 +18,5 @@ export { default as topLangs } from "./api/top-langs.js";
17
18
  export { default as wakatime } from "./api/wakatime.js";
18
19
  export { getConfig, loadConfigFromEnv } from "./common/config.js";
19
20
  export { themes } from "./themes/index.js";
21
+ export type { ThemeName } from "./themes/index.js";
20
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE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AO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
package/build/index.js CHANGED
@@ -7,7 +7,8 @@
7
7
  export { fetchWakatimeStats } from "./fetchers/wakatime.js";
8
8
  export { retryer } from "./common/retryer.js";
9
9
  export { renderError } from "./common/render.js";
10
- export { dateDiff, clampValue } from "./common/ops.js";
10
+ export { clampValue } from "./common/ops.js";
11
+ export { dateDiff } from "./common/date.js";
11
12
  export { logger } from "./common/log.js";
12
13
  export { request } from "./common/http.js";
13
14
  export { default as gist } from "./api/gist.js";
@@ -15,6 +15,34 @@ export declare const themes: {
15
15
  readonly text_color: "434d58";
16
16
  readonly bg_color: "fffefe";
17
17
  };
18
+ readonly light_github: {
19
+ readonly title_color: "0969da";
20
+ readonly icon_color: "0969da";
21
+ readonly text_color: "59636e";
22
+ readonly bg_color: "ffffff";
23
+ readonly border_color: "d1d9e0";
24
+ };
25
+ readonly dark_github: {
26
+ readonly title_color: "4493f8";
27
+ readonly icon_color: "4493f8";
28
+ readonly text_color: "9198a1";
29
+ readonly bg_color: "0d1117";
30
+ readonly border_color: "3d444d";
31
+ };
32
+ readonly light_github_repocard: {
33
+ readonly title_color: "0969da";
34
+ readonly icon_color: "59636e";
35
+ readonly text_color: "59636e";
36
+ readonly bg_color: "ffffff";
37
+ readonly border_color: "d1d9e0";
38
+ };
39
+ readonly dark_github_repocard: {
40
+ readonly title_color: "4493f8";
41
+ readonly icon_color: "9198a1";
42
+ readonly text_color: "9198a1";
43
+ readonly bg_color: "0d1117";
44
+ readonly border_color: "3d444d";
45
+ };
18
46
  readonly transparent: {
19
47
  readonly title_color: "006AFF";
20
48
  readonly icon_color: "0579C3";
@@ -466,4 +494,8 @@ export declare const themes: {
466
494
  readonly bg_color: "35,4158d0,c850c0,ffcc70";
467
495
  };
468
496
  };
497
+ /**
498
+ * Name of one of the {@link themes}.
499
+ */
500
+ export type ThemeName = keyof typeof themes;
469
501
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgduB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4euB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC"}
@@ -15,6 +15,34 @@ export const themes = {
15
15
  text_color: "434d58",
16
16
  bg_color: "fffefe",
17
17
  },
18
+ light_github: {
19
+ title_color: "0969da",
20
+ icon_color: "0969da",
21
+ text_color: "59636e",
22
+ bg_color: "ffffff",
23
+ border_color: "d1d9e0",
24
+ },
25
+ dark_github: {
26
+ title_color: "4493f8",
27
+ icon_color: "4493f8",
28
+ text_color: "9198a1",
29
+ bg_color: "0d1117",
30
+ border_color: "3d444d",
31
+ },
32
+ light_github_repocard: {
33
+ title_color: "0969da",
34
+ icon_color: "59636e",
35
+ text_color: "59636e",
36
+ bg_color: "ffffff",
37
+ border_color: "d1d9e0",
38
+ },
39
+ dark_github_repocard: {
40
+ title_color: "4493f8",
41
+ icon_color: "9198a1",
42
+ text_color: "9198a1",
43
+ bg_color: "0d1117",
44
+ border_color: "3d444d",
45
+ },
18
46
  transparent: {
19
47
  title_color: "006AFF",
20
48
  icon_color: "0579C3",