-
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.
refactor(search): making search components more compact
- Loading branch information
Showing
50 changed files
with
973 additions
and
529 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,8 @@ | ||
import search from '@/pkg/github/api/search' | ||
import deleteRepo from '@/pkg/github/api/delete' | ||
import { patch } from '@/pkg/github/api/patch' | ||
export { | ||
search as GET, | ||
deleteRepo as DELETE, | ||
patch as PATCH | ||
} |
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,10 @@ | ||
import LayoutFull from '@/pkg/ui/views/LayoutFull'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function Layout({children}: PropsWithChildren) { | ||
return ( | ||
<LayoutFull> | ||
{children} | ||
</LayoutFull> | ||
) | ||
} |
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,10 @@ | ||
import LayoutDefault from '@/pkg/ui/views/LayoutDefault'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export default function Layout({children}: PropsWithChildren) { | ||
return ( | ||
<LayoutDefault> | ||
{children} | ||
</LayoutDefault> | ||
) | ||
} |
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,6 @@ | ||
import Dashboard from '@/pkg/github/components/Dashboard' | ||
import GitHubDashboard from '@/pkg/github/pages/DashboardPage' | ||
|
||
export default function DashboardPage() { | ||
return <Dashboard/> | ||
return GitHubDashboard() | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { GitHubEnumSortOrder } from './types'; | ||
|
||
export const GitHub = { | ||
search: { | ||
perPage: 6, | ||
sort: 'updated', | ||
order: GitHubEnumSortOrder.asc, | ||
cacheKey: 'github_search_params', | ||
queryKey: 'gitHubSearch' | ||
}, | ||
fetch: { | ||
queryKey: 'gitHubFetch' | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.