Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migration #36

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules/
.nx/cache

.turbo

dist/
10 changes: 5 additions & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
20 changes: 8 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
{
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"typescript",
"javascript",
"typescriptreact"
],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["typescript", "javascript", "typescriptreact"],
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
File renamed without changes.
4 changes: 4 additions & 0 deletions _pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages:
- 'utils/*'
- 'clients/*'
- 'servers/*'
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export const FormLayout = styled.section`
display: flex;
flex-direction: column;

box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
`
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"incremental": true,
"plugins": [
{
"name": "next"
}
"name": "next",
},
],
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
import {
LoginForm as LoginFormUI,
type LoginFormRefHandle,
Toast,
} from '@coldsurfers/hotsurf'
import { useRouter } from 'next/navigation'
import { useCallback, useEffect, useState, useRef } from 'react'
import useLoginMutation from '@hooks/useLoginMutation'
import { ME_QUERY } from '@hooks/useMeQuery'
import storage from '@utils/storage/storage'
import Loader from '@ui/Loader'
import useLoginMutation from 'clients/billets-admin-client/hooks/useLoginMutation'
import { ME_QUERY } from 'clients/billets-admin-client/hooks/useMeQuery'
import storage from 'clients/billets-admin-client/utils/storage/storage'
import Loader from 'clients/billets-admin-client/ui/Loader'
// eslint-disable-next-line import/no-extraneous-dependencies
import { View } from 'react-native'

const SigninPage = () => {
const router = useRouter()
Expand Down Expand Up @@ -63,17 +66,26 @@ const SigninPage = () => {
}, [login])

return (
<LoginFormUI
ref={formRef}
onPressLoginButton={login}
withRequestButtonUI
onPressRequestButtonUI={useCallback(() => {
router.push('/auth/request')
}, [router])}
isLoading={loading}
LoadingUI={<Loader />}
errorMessage={errorMessage}
/>
<>
<LoginFormUI
ref={formRef}
onPressLoginButton={login}
withRequestButtonUI
onPressRequestButtonUI={useCallback(() => {
router.push('/auth/request')
}, [router])}
/>
{loading && <Loader />}
{errorMessage && (
<View style={{ position: 'absolute', bottom: 20, left: 0, right: 0 }}>
<Toast
type="error"
message={errorMessage}
onPress={() => setErrorMessage('')}
/>
</View>
)}
</>
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ const Table = styled.table`
margin-top: 60px;
background-color: ${palette.white};
width: 90vw;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
border-radius: 3px;
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ const Wrapper = styled.div`
height: 68.5px;
background-color: ${palette.white};

box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,9 @@ const Wrapper = styled.div`
width: 900px;

background-color: ${palette.white};
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
`

Expand Down Expand Up @@ -770,7 +772,9 @@ const PosterThumbnail = styled.img`
border-radius: 8px;
margin-top: 10px;
margin-bottom: 10px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.12),
0 1px 2px rgba(0, 0, 0, 0.24);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
object-fit: contain;
`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading