-
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.
Merge pull request #23 from coldsurfers/feature/hotsurf
feat: implemented nx
- Loading branch information
Showing
150 changed files
with
13,142 additions
and
3,586 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules/ | ||
node_modules/ | ||
|
||
.nx/cache |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged -v |
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,5 @@ | ||
node_modules/ | ||
.next/ | ||
.vercel/ | ||
.gitignore | ||
dist/ |
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,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,5 @@ | ||
module.exports = { | ||
'*.{ts,tsx}': (filenames) => [ | ||
// "bash -c 'yarn validate'" | ||
], | ||
} |
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,5 @@ | ||
{ | ||
"affected": { | ||
"defaultBase": "main" | ||
} | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,3 @@ | ||
{ | ||
"extends": [ | ||
"../../tsconfig.paths.json", | ||
"../../tsconfig.utils.json" | ||
] | ||
} | ||
"extends": ["../../tsconfig.paths.json", "../../tsconfig.utils.json"], | ||
} |
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 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
Large diffs are not rendered by default.
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,6 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"../../tsconfig.paths.json", | ||
"../../tsconfig.utils.json" | ||
] | ||
} | ||
"extends": ["../../tsconfig.paths.json", "../../tsconfig.utils.json"], | ||
} |
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 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,13 +1,13 @@ | ||
{ | ||
"port": "", | ||
"secrets": { | ||
"jwt": "", | ||
"AWS_S3_BUCKET": "", | ||
"AWS_S3_REGION": "", | ||
"AWS_S3_ACCESS_KEY_ID": "", | ||
"AWS_S3_SECRET_ACCESS_KEY": "", | ||
"MAILER_EMAIL_APP_PASSWORD": "" | ||
}, | ||
"MAILER_EMAIL_ADDRESS": "", | ||
"MAILER_SERVICE": "" | ||
} | ||
"port": "", | ||
"secrets": { | ||
"jwt": "", | ||
"AWS_S3_BUCKET": "", | ||
"AWS_S3_REGION": "", | ||
"AWS_S3_ACCESS_KEY_ID": "", | ||
"AWS_S3_SECRET_ACCESS_KEY": "", | ||
"MAILER_EMAIL_APP_PASSWORD": "" | ||
}, | ||
"MAILER_EMAIL_ADDRESS": "", | ||
"MAILER_SERVICE": "" | ||
} |
Large diffs are not rendered by default.
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,6 +1,3 @@ | ||
{ | ||
"extends": [ | ||
"../../tsconfig.paths.json", | ||
"../../tsconfig.server.json" | ||
] | ||
"extends": ["../../tsconfig.paths.json", "../../tsconfig.server.json"], | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
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,96 @@ | ||
import { Button, palette, Text, TextInput, Toast } from '@coldsurfers/hotsurf' | ||
import { memo, useState } from 'react' | ||
import styled from '@emotion/styled' | ||
import Loader from './LoginFormLoader' | ||
|
||
const Wrapper = styled.section` | ||
position: absolute; | ||
top: 50%; /* position the top edge of the element at the middle of the parent */ | ||
left: 50%; /* position the left edge of the element at the middle of the parent */ | ||
transform: translate(-50%, -50%); | ||
padding: 1rem; | ||
border-radius: 3px; | ||
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); | ||
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); | ||
` | ||
|
||
const ToastWrapper = styled.div` | ||
position: absolute; | ||
bottom: 20px; | ||
left: 0; | ||
right: 0; | ||
` | ||
|
||
interface Props { | ||
onClickLoginButton: () => void | ||
isLoading?: boolean | ||
withRequestButtonUI?: boolean | ||
onClickRequestButtonUI?: () => void | ||
errorMessage?: string | ||
} | ||
|
||
const LoginForm = ({ | ||
onClickLoginButton, | ||
isLoading, | ||
withRequestButtonUI, | ||
onClickRequestButtonUI, | ||
errorMessage, | ||
}: Props) => { | ||
const [email, setEmail] = useState<string>('') | ||
const [password, setPassword] = useState<string>('') | ||
|
||
return ( | ||
<> | ||
<Wrapper> | ||
<Text | ||
weight="bold" | ||
style={{ | ||
fontSize: 18, | ||
marginBottom: 14, | ||
}} | ||
> | ||
Billets 어드민 | ||
</Text> | ||
<TextInput | ||
value={email} | ||
onChangeText={(text) => setEmail(text)} | ||
placeholder="이메일" | ||
style={{ width: 300 }} | ||
/> | ||
<TextInput | ||
value={password} | ||
onChangeText={(text) => setPassword(text)} | ||
placeholder="패스워드" | ||
secureTextEntry | ||
style={{ width: 300, marginTop: 14 }} | ||
/> | ||
<Button | ||
text="로그인" | ||
onPress={onClickLoginButton} | ||
style={{ marginTop: 14 }} | ||
/> | ||
{withRequestButtonUI && ( | ||
<Button | ||
text="가입 요청하기" | ||
onPress={onClickRequestButtonUI} | ||
style={{ marginTop: 14, backgroundColor: palette.black }} | ||
/> | ||
)} | ||
</Wrapper> | ||
{!!errorMessage && ( | ||
<ToastWrapper> | ||
<Toast type="error" message={errorMessage} /> | ||
</ToastWrapper> | ||
)} | ||
{isLoading && <Loader />} | ||
</> | ||
) | ||
} | ||
|
||
export default memo(LoginForm) |
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,30 @@ | ||
import { palette } from '@coldsurfers/hotsurf' | ||
import { PulseLoader } from 'react-spinners' | ||
import styled from '@emotion/styled' | ||
|
||
const Background = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
z-index: 1; | ||
background-color: rgba(0, 0, 0, 0.1); | ||
` | ||
|
||
const Pulse = styled(PulseLoader)` | ||
z-index: 2; | ||
position: absolute; | ||
top: 50%; /* position the top edge of the element at the middle of the parent */ | ||
left: 50%; /* position the left edge of the element at the middle of the parent */ | ||
transform: translate(-50%, -50%); | ||
` | ||
|
||
const Loader = () => ( | ||
<Background> | ||
<Pulse color={palette.pink} /> | ||
</Background> | ||
) | ||
|
||
export default Loader |
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 +1,2 @@ | ||
export { default as LoginModal } from './LoginModal' | ||
export { default as LoginForm } from './LoginForm' |
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,3 @@ | ||
{ | ||
"extends": [ | ||
"../../tsconfig.paths.json", | ||
"../../tsconfig.ui.json" | ||
] | ||
"extends": ["../../tsconfig.paths.json", "../../tsconfig.ui.json"], | ||
} |
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,4 +1,4 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} | ||
} |
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
Oops, something went wrong.