Skip to content

Commit

Permalink
fix: correct some tooling and dependency issues (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex authored Jan 3, 2023
1 parent 241bcbd commit cb4ec9f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
30 changes: 16 additions & 14 deletions next-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface DbRepoPR {
readonly merged_at: string;
readonly updated_at: string;
readonly filesCount: number;
protected linesCount: number;
linesCount: number;
readonly merged: boolean;
readonly repo_owner: string;
readonly repo_name: string;
Expand All @@ -50,6 +50,7 @@ interface Meta {
}

interface DbContribution {
readonly id: number;
readonly commits: string,
readonly commit_days: string,
readonly files_modified: string,
Expand All @@ -64,6 +65,7 @@ interface DbContribution {
}

interface DbInsight {
readonly id: number;
readonly interval: number;
readonly day: string;
readonly all_prs: number;
Expand All @@ -84,20 +86,20 @@ interface DbInsight {
}

interface DbUserInsight {
id: number;
user_id: number;
name: string;
is_public: boolean;
is_favorite: boolean;
short_code: string;
created_at: string;
updated_at: string;
repos: DbUserInsightRepo[]
readonly id: number;
readonly user_id: number;
readonly name: string;
readonly is_public: boolean;
readonly is_favorite: boolean;
readonly short_code: string;
readonly created_at: string;
readonly updated_at: string;
readonly repos: DbUserInsightRepo[]
}

interface DbUserInsightRepo {
id: number;
insight_id: number;
repo_id: number;
created_at: string;
readonly id: number;
readonly insight_id: number;
readonly repo_id: number;
readonly created_at: string;
}
13 changes: 0 additions & 13 deletions pages/api/hello.ts

This file was deleted.

4 changes: 4 additions & 0 deletions stories/molecules/insight-page-card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default storyConfig;

const contributors: DbContribution[] = [
{
id: 1,
commits: "2",
commit_days: "ES",
last_commit_time: "1661496920000",
Expand All @@ -25,6 +26,7 @@ const contributors: DbContribution[] = [
recent_repo_list: ""
},
{
id: 2,
commits: "2",
commit_days: "ES",
last_commit_time: "1661496920000",
Expand All @@ -38,6 +40,7 @@ const contributors: DbContribution[] = [
recent_repo_list: ""
},
{
id: 3,
commits: "2",
commit_days: "ES",
last_commit_time: "1661496920000",
Expand All @@ -51,6 +54,7 @@ const contributors: DbContribution[] = [
recent_repo_list: ""
},
{
id: 4,
commits: "2",
commit_days: "ES",
last_commit_time: "1661496920000",
Expand Down

0 comments on commit cb4ec9f

Please sign in to comment.