innovationacademy-kr / 24hane-frontend Goto Github PK
View Code? Open in Web Editor NEW42서울 출입기록 관리 서비스
Home Page: https://24hoursarenotenough.42seoul.kr
42서울 출입기록 관리 서비스
Home Page: https://24hoursarenotenough.42seoul.kr
에러메시지
Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.
홈 뷰에서 배경 이미지가 스크롤 여부에 따라 크기가 변경되어 UX상으로 좋아보이지 않는 현상이 모바일 기기에서 존재한다.
해당 이미지가 보이는 영역을 조절해서 해결해보자.
user/login/isLogin
을 통해서 로그인이 되어있는지 확인하여 Main 페이지로 리다이렉트 시킨다.0. public/index.html
1. public/manifest.json
2. public/manifest.json
24hoursnotenogh 를 24hoursnotenough로 수정이 필요합니다.
토큰 유무 및 토큰이 유효한지 여부 외에도 isLogin이라는 변수를 통해서 로그인이 온전한 절차(로그인 버튼->백엔드-> /auth) 를 통해 들어왔을 때만 가능하도록 코드를 뒀었으나, 토큰이 유효한 경우에 접근이 되도록 코드 변경합니다.
현재 백엔드 로그인 시, callback으로 /auth로 넘어와야하나 간헐적으로 500에러가 나오는 버그가 있어서, 해당 기능을 삭제하고 500에러가 났지만 유효한 토큰을 발급 받았다면 로그인이 되도록 변경합니다.
로컬에서는 로그아웃 버튼 클릭 시, 토큰이 잘 삭제 되지만
실제 웹에 올라간 메인 도메인에서는 토큰이 삭제가 되지 않는 버그가 있습니다.
https://stackoverflow.com/questions/68094609/ios-15-safari-floating-address-bar
https://pedia.watcha.com/ko-KR
ios에서 스크롤시 하단 메뉴바가 안보이는 경우, 메뉴바 크기를 조�절하려고 합니다.
왓챠피디아에서 이미 해당 방식으로 동작되고 있는 것을 확인하였고, 해당 코드를 분석해서 조정할 예정입니다.
공통
전체적인 사이즈 늘리고 폰트사이즈 키우기.
footer
메인
로그
pwa 적용을 위한 issue 입니다.
src/utils/dayjs.ts
line : 8
const dateToFormatFullKor = (date: string) => {
//return dayjs(date).format"YYYY년 M월 D일 hh시 mm분 ss초");
return dayjs(date).format"YYYY년 M월 D일 HH시 mm분 ss초");
};
이거 건드리면 되나요
이번달인 경우, 기존 기록이 있고 없고의 유무에 따라서 api를 부를지 말지 결정하여 api 요청을 최소화하는 코드가 있었으나,
해당 코드로 인한 오류가 있어서 이번의 백엔드 api 속도가 전반적으로 빨라짐에 따라 해당 기능을 간소화하여 이번 달인 경우 perMonth api를 요청하도록 수정할 계획입니다.
24HANE 의 데이터들이 서버데이터에 의존적이여서 API통신이 빈번하게 일어납니다.
onSuccess, onError 등의 옵션을 이용하여 API 요청에 대한 처리를 간단하게 할 수 있습니다.
브랜치를 파서 작업 후에 괜찮다면 도입할 예정
일정 시간이 지난 후 재 로그인 시 ~.kr/main이 아닌 ~.kr/mainmain으로 이동하여 404 페이지로 접근됩니다.
이전의 perMonth에서 값을 받아오는 방식으로 오늘 누적, 월 누적을 계산했었습니다.
그 당시 백엔드에서 api 요청 후 값을 받아오는데 시간이 오래 걸렸기 때문에 이 방식으로 값을 계산했었는데,
성능 업데이트가 있음에 따라 다시 원래의 목적에 맞는 api를 사용하도록 변경할 예정입니다.
구글 애널리스틱 적용
404 페이지 추가
{
path: "/404",
name: "notFound",
component: NotFoundViewVue,
},
{
path: "/:pathMatch(.*)*",
redirect: "/404",
},
유효하지 않은 라우터의 경우 /404
로 가도록 설정하여 404 페이지를 보여주는 방식으로 처리할 계획입니다.
22년과 현재월을 제외한 중간 월들이 안나오는 문제 발생
월이 지났을때 로그가 안보이는 현상이 있습니다.
월이 변경 되었을 때 로그 전체를 관리하는 logContainer에 새로운 월이 추가가 되지 않았기 때문에 발생하는 문제입니다.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.