From 4bd383f885543300f7bcdc5fee535ebd32b4d642 Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Sun, 6 Sep 2020 15:43:10 -0400 Subject: [PATCH 1/4] Add Dracula theme --- src/theme.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/theme.ts b/src/theme.ts index 8271054..ada19f5 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -23,6 +23,30 @@ export const COLORS: {[name: string]: Theme} = { DEFAULT_RANK_SHADOW: "#333", DEFAULT_RANK_TEXT: "#333", }, + dracula: { + PRIMARY: "#282a36", + SECONDARY: "#f8f8f2", + ICON_CIRCLE: "#f8f8f2", + TEXT: "#ff79c6", + LAUREL: "#50fa7b", + SECRET_RANK_1: "#ff5555", + SECRET_RANK_2: "#bd93f9", + SECRET_RANK_3: "#ff79c6", + SECRET_RANK_TEXT: "#bd93f9", + NEXT_RANK_BAR: "#8be9fd", + S_RANK_BASE: "#ffb86c", + S_RANK_SHADOW: "#ffb86c", + S_RANK_TEXT: "#6272a4", + A_RANK_BASE: "#8be9fd", + A_RANK_SHADOW: "#8be9fd", + A_RAKN_TEXT: "#6272a4", + B_RANK_BASE: "#ff5555", + B_RANK_SHADOW: "#ff5555", + B_RANK_TEXT: "#6272a4", + DEFAULT_RANK_BASE: "#6272a4", + DEFAULT_RANK_SHADOW: "#6272a4", + DEFAULT_RANK_TEXT: "#6272a4", + }, flat: { PRIMARY: "#FFF", SECONDARY: "#000", From 50dcabb3f5386671b22aa91b5fc1860cfdec58fa Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Tue, 8 Sep 2020 22:05:14 +0900 Subject: [PATCH 2/4] Delete contribution count --- src/github_api_client.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/github_api_client.ts b/src/github_api_client.ts index bed482b..6ae538f 100644 --- a/src/github_api_client.ts +++ b/src/github_api_client.ts @@ -7,7 +7,6 @@ export class UserInfo { public totalPullRequests: number, public totalStargazers: number, public totalRepositories: number, - public totalContributed: number, public languageCount: number, public durationYear: number, public acientAccount: number, @@ -31,23 +30,18 @@ export class GithubAPIClient { const query = ` query userInfo($username: String!) { user(login: $username) { - name - login createdAt contributionsCollection { totalCommitContributions restrictedContributionsCount } - repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { - totalCount - } pullRequests(first: 1) { totalCount } issues(first: 1) { totalCount } - followers { + followers(first: 1) { totalCount } repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) { @@ -107,7 +101,6 @@ export class GithubAPIClient { userData.pullRequests.totalCount, totalStargazers, userData.repositories.totalCount, - userData.repositoriesContributedTo.totalCount, languages.size, durationYear, acientAccount, From 5e153d0040254adeffd366247e2d458cbcd206eb Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Tue, 8 Sep 2020 22:17:56 +0900 Subject: [PATCH 3/4] Fix cache format --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index a7c6dc5..9176136 100644 --- a/index.ts +++ b/index.ts @@ -68,7 +68,7 @@ export default async (req: ServerRequest) => { headers: new Headers( { "Content-Type": "image/svg+xml", - "Cache-Control": `public, max-age: ${CONSTANTS.CACHE_MAX_AGE}`, + "Cache-Control": `public, max-age=${CONSTANTS.CACHE_MAX_AGE}`, }, ), }, From 37518079bf0dab6a0269dd814af2054e6a0c32be Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Tue, 8 Sep 2020 23:24:24 +0900 Subject: [PATCH 4/4] Fix color of dracula --- src/theme.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/theme.ts b/src/theme.ts index ada19f5..a137929 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -25,15 +25,15 @@ export const COLORS: {[name: string]: Theme} = { }, dracula: { PRIMARY: "#282a36", - SECONDARY: "#f8f8f2", + SECONDARY: "#ff79c6", ICON_CIRCLE: "#f8f8f2", - TEXT: "#ff79c6", + TEXT: "#f8f8f2", LAUREL: "#50fa7b", SECRET_RANK_1: "#ff5555", - SECRET_RANK_2: "#bd93f9", - SECRET_RANK_3: "#ff79c6", + SECRET_RANK_2: "#ff79c6", + SECRET_RANK_3: "#bd93f9", SECRET_RANK_TEXT: "#bd93f9", - NEXT_RANK_BAR: "#8be9fd", + NEXT_RANK_BAR: "#ff79c6", S_RANK_BASE: "#ffb86c", S_RANK_SHADOW: "#ffb86c", S_RANK_TEXT: "#6272a4",