This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
generated from kuubson/react-vite-trpc
-
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
35 changed files
with
9 additions
and
409 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
apps/server/src/trpc/api/resolvers/getRole/getRole.e2e.test.ts
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
apps/server/src/trpc/api/resolvers/getRole/getRole.integration.test.ts
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 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 |
---|---|---|
|
@@ -29,9 +29,6 @@ | |
|
||
"^assets(.*)", | ||
|
||
"(.*)styled$", | ||
"(.*)styled/(.*)", | ||
|
||
"^components/shared$", | ||
|
||
"^components(.*)", | ||
|
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
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,30 +1,7 @@ | ||
import styled from 'styled-components' | ||
|
||
import { Label } from '@react-vite-trpc/ui' | ||
|
||
import { trpc } from 'trpc' | ||
|
||
import * as Styled from './styled' | ||
|
||
export const Home = () => { | ||
const { data } = trpc.getRole.useQuery() | ||
|
||
return ( | ||
<HomeContainer> | ||
<Label>Current role: {data?.role}</Label> | ||
<Styled.Gif | ||
src="https://media.giphy.com/media/Dh5q0sShxgp13DwrvG/giphy.gif" | ||
alt="I have no idea what I'm doing" | ||
/> | ||
</HomeContainer> | ||
) | ||
return <div>Current role: {data?.role}</div> | ||
} | ||
|
||
const HomeContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
background: linear-gradient(to right, #434343, #000000); | ||
` |
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 |
---|---|---|
@@ -1,22 +1,16 @@ | ||
import { QueryClientProvider } from '@tanstack/react-query' | ||
import { type PropsWithChildren } from 'react' | ||
import { ThemeProvider } from 'styled-components' | ||
|
||
import { trpc } from 'trpc' | ||
|
||
import { theme } from 'styles' | ||
import 'styles/index.scss' | ||
|
||
import { useTrpc } from 'hooks' | ||
|
||
export const Providers = ({ children }: PropsWithChildren) => { | ||
const { trpcQueryClient, trpcClient } = useTrpc() | ||
|
||
return ( | ||
<trpc.Provider client={trpcClient} queryClient={trpcQueryClient}> | ||
<QueryClientProvider client={trpcQueryClient}> | ||
<ThemeProvider theme={theme}>{children}</ThemeProvider> | ||
</QueryClientProvider> | ||
<QueryClientProvider client={trpcQueryClient}>{children}</QueryClientProvider> | ||
</trpc.Provider> | ||
) | ||
} |
Oops, something went wrong.