-
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.
- Loading branch information
Showing
57 changed files
with
2,406 additions
and
104 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
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
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
interface IRepositoryState { | ||
data: IRepository[]; | ||
loading: boolean; | ||
error: boolean; | ||
filter: { | ||
name: string; | ||
data: IRepository[]; | ||
starred: boolean; | ||
sortBy: Sort; | ||
}; | ||
listType: ListType; | ||
} | ||
|
||
interface State { | ||
repository: IRepositoryState; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface ILicense { | ||
name: string; | ||
} | ||
interface IRepository { | ||
id: number; | ||
full_name: string; | ||
stargazers_count: number; | ||
forks: number; | ||
open_issues: number; | ||
created_at: string; | ||
pushed_at: string; | ||
license: ILicense | null; | ||
starred?: boolean; | ||
language: string; | ||
} | ||
|
||
interface IRepositoryList { | ||
items: IRepository[]; | ||
} | ||
type Sort = 'stars' | 'forks' | 'openIssues' | 'age' | 'lastCommit' | ''; | ||
type ListType = 'grid' | 'row'; | ||
interface FilterActionSort { | ||
type: string; | ||
payload: Sort; | ||
} |
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,6 +1,14 @@ | ||
import React from 'react'; | ||
import Home from './pages/Home'; | ||
|
||
const App = () => (<Home />) | ||
import GlobalStyle from './styles/globalStyles'; | ||
import '@clayui/css/lib/css/atlas.css'; | ||
import { Provider } from 'react-redux'; | ||
import store from './redux/store'; | ||
const App: React.FC = () => ( | ||
<Provider store={store}> | ||
<Home /> | ||
<GlobalStyle /> | ||
</Provider> | ||
); | ||
|
||
export default App; |
Oops, something went wrong.