-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename: storeService -> getMembers * simplify: github configs * Simplify: API Config 단순화 * Feat: add additional grade level for the submission * Revert: faker username to userName * feat: add filters for 0 summit members * test: removing fixtures from tests * test: removing fixtures from tests * refactor: api.service 디렉토리 수정 * refactor: getMembers 디렉토리 위치 변경 * temp: Card 컴포넌트 내 Grade 타입 의존성 임시 작업 * remove: config의 branch, teamPrefix 삭제
- Loading branch information
Showing
24 changed files
with
256 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
import type { Grade } from "../services/common/types"; | ||
import type { Grade } from "../services/types"; | ||
import type { Config } from "./types"; | ||
|
||
export const CONFIG: Config = { | ||
study: { | ||
organization: "DaleStudy", | ||
repository: "leetcode-study", | ||
branchName: "main", | ||
teamPrefix: "leetcode", | ||
totalProblemCount: 75, | ||
gradeThresholds: [ | ||
["BIG_TREE", 70], | ||
["SMALL_TREE", 60], | ||
["SPROUT", 50], | ||
["SEED", 0], | ||
] as [Grade, number][], | ||
}, | ||
gitHub: { | ||
baseUrl: "https://api.github.com", | ||
mediaType: "application/vnd.github+json", | ||
token: import.meta.env.VITE_GITHUB_API_TOKEN, | ||
}, | ||
totalProblemCount: 75, | ||
gradeThresholds: [ | ||
["TREE", 70], // 나무 | ||
["FRUIT", 60], // 열매 | ||
["BRANCH", 45], // 가지 | ||
["LEAF", 30], // 잎새 | ||
["SPROUT", 15], // 새싹 | ||
["SEED", 0], // 씨앗 | ||
] as [Grade, number][], | ||
gitHubToken: import.meta.env.VITE_GITHUB_API_TOKEN, | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
import type { Grade } from "../services/common/types"; | ||
import type { Grade } from "../services/types"; | ||
|
||
export type StudyConfig = { | ||
organization: string; | ||
repository: string; | ||
branchName: string; | ||
teamPrefix: string; | ||
export type Config = { | ||
totalProblemCount: number; | ||
gradeThresholds: [Grade, number][]; | ||
}; | ||
|
||
export type GitHubConfig = { | ||
baseUrl: string; | ||
mediaType: string; | ||
token: string; | ||
}; | ||
|
||
export type Config = { | ||
study: StudyConfig; | ||
gitHub: GitHubConfig; | ||
gitHubToken: string; | ||
}; |
16 changes: 10 additions & 6 deletions
16
src/api/services/store/storeService.test.ts → src/api/getMembers.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/api/services/store/storeService.ts → src/api/getMembers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.