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

Feature/예약목록refetch #55

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
afeefcd
예약 확정 method 추가
GwangjoGong Nov 21, 2021
dc81231
Merge pull request #21 from CS492-Team-1/feature/reservations
GwangjoGong Nov 21, 2021
8eb366e
[로그인] 로그인 페이지 마크업 작성 완료 (#22)
ramel0915 Nov 22, 2021
4bb1d0c
[예약목록] 예약목록 마크업 작성 완료 (#24)
SeonghakIm Nov 23, 2021
ea4af49
[로그인] 로그인 기능 구현 (#25)
ramel0915 Nov 23, 2021
d27d1fc
[예약] 모바일 마크업 작성
GwangjoGong Nov 24, 2021
8d643b4
[예약] 예약 UI 로직 구현 (#27)
GwangjoGong Nov 24, 2021
33a26c7
[로그인] 회원가입 페이지 마크업 작성 (#28)
ramel0915 Nov 25, 2021
2957559
Feature/예약목록관리 (#30)
SeonghakIm Nov 25, 2021
1221537
회원가입 기능 구현 (#32)
ramel0915 Nov 26, 2021
5fa652a
피드백 구현 (#35)
GwangjoGong Nov 27, 2021
6edcfe7
netlify 설정 파일 추가 (#37)
GwangjoGong Nov 27, 2021
62aaa0d
[예약목록] 예약목록 모달 (#38)
SeonghakIm Nov 30, 2021
0056f70
[예약확정] 마크업 및 UI 로직 구현 (#40)
GwangjoGong Nov 30, 2021
b23e516
[예약] 데스크톱 UI 확장 (#41)
GwangjoGong Nov 30, 2021
bc70abb
[예약 확정] 데스크톱 UI 확장 (#42)
GwangjoGong Nov 30, 2021
e82d30d
로그인/회원가입 마크업을 데스크탑으로 확장 (#43)
ramel0915 Dec 1, 2021
610e4c4
Feature/예약목록마크업확장 (#44)
SeonghakIm Dec 1, 2021
faec618
[예약목록] 예약목록이 rendering 될 때마다, refetch, refetch 될 때마다 loading = true
SeonghakIm Dec 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/"
status = 200
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@apollo/client": "^3.4.17",
"@inlet/react-pixi": "^6.6.5",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
Expand All @@ -12,15 +13,19 @@
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"graphql": "15.5.2",
"pixi-viewport": "^4.34.1",
"pixi.js": "^6.2.0",
"react": "^17.0.2",
"react-datepicker": "^4.3.0",
"react-dom": "^17.0.2",
"react-hook-form": "^7.19.5",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"styled-components": "^5.3.3",
"styled-normalize": "^8.0.7",
"subscriptions-transport-ws": "^0.11.0",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1",
"subscriptions-transport-ws": "^0.11.0"
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down Expand Up @@ -53,6 +58,7 @@
"@graphql-codegen/typescript-apollo-client-helpers": "^1.1.9",
"@graphql-codegen/typescript-operations": "^1.18.3",
"@graphql-codegen/typescript-react-apollo": "^2.2.8",
"@types/react-datepicker": "^4.3.2",
"@types/react-router-dom": "^5.3.2",
"@types/styled-components": "^5.1.15"
}
Expand Down
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link href='//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css' rel='stylesheet' type='text/css'>
<link href='//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-jp.css' rel='stylesheet' type='text/css'>
<title>WeTicket</title>
</head>
<body>
Expand Down
Binary file added src/assets/icons/ticket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/styles/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const colors = {
primary: '#0a3d62',
primary_light: '#60a3bc',
black: '#000000',
gray: '#F0F0F0',
white: '#ffffff',
error: '#ea2027',
success: '#2ecc71',
Expand Down
7 changes: 2 additions & 5 deletions src/assets/styles/global-styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { createGlobalStyle } from 'styled-components';
import { normalize } from 'styled-normalize';

Expand Down Expand Up @@ -50,9 +49,7 @@ export const GlobalStyle = createGlobalStyle`
}

* {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-family: 'Spoqa Han Sans Neo', 'Spoqa Han Sans JP', sans-serif !important;
}
`;



`;
26 changes: 26 additions & 0 deletions src/components/Loading.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import styled, { keyframes } from 'styled-components';

import { colors } from '../assets/styles/colors';

const spinner = keyframes`
0% {transform: rotate(0deg); }
100% {transform: rotate(360deg);}
`;

export const Spinner = styled.div`
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 48px;
height: 48px;
margin-top: -24px;
margin-left: -24px;
border-radius: 50%;
border: 6px solid transparent;
border-top-color: ${colors.primary};
border-bottom-color: ${colors.primary_light};
border-right-color: ${colors.primary_light};
border-left-color: ${colors.primary_light};
animation: ${spinner} 0.8s ease infinite;
`;
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Loading';
15 changes: 12 additions & 3 deletions src/pages/Login/LoginContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const LoginContainer: React.FC = () => {
* @param username 아이디
* @param password 패스워드
*/

const login = async (username: string, password: string) => {
try {
const { data } = await loginMutation({
Expand Down Expand Up @@ -67,7 +68,7 @@ export const LoginContainer: React.FC = () => {
* @param username 아이디
* @param password 패스워드
*/
const register = async (username: string, password: string) => {
const register = async (username: string, password: string, togglePage: ()=>void) => {
try {
const { data } = await registerMutation({
variables: {
Expand All @@ -79,7 +80,10 @@ export const LoginContainer: React.FC = () => {
});

if (data?.register.ok) {
// TODO : 회원가입 성공시 핸들링

togglePage();
window.alert("회원가입에 성공했습니다!");

} else if (data?.register.error) {
window.alert(data.register.error);
}
Expand All @@ -94,5 +98,10 @@ export const LoginContainer: React.FC = () => {
};

//TODO : prop으로 필요한 데이터 및 메소드 전달
return <LoginPresenter login={_tempLogin} />;
return <LoginPresenter
login={login}
loginLoading= {loginLoading}
register = {register}
registerLoading = {registerLoading}
/>;
};
Loading