목록Projects (41)
Creative Code

잠시 Lunar의 개발이 중단됩니다..! 왼쪽 Friend list에서 서로 팔로우가 되어있는 유저들 목록 출력이 되고 각 유저의 아이디를 클릭하면 대화내역 불러오는 기능, 오른쪽 사이드바에는 오픈채팅을 생성하고 (인원 제한 설정가능), 오픈채팅 버튼을 누르면 역시 대화내용들을 불러올 수 있다. participating rooms 에는 현재 참여중인 채팅방의 목록이 표시된다. ※pages/chat.py 코드 # lunar.state.home 모듈에서 필요한 State 및 HomeState를 가져옵니다. import reflex as rx from lunar.state.base import State from lunar.state.home import HomeState # 컴포넌트를 가져옵니다. from ..

2월 3일 다음 업데이트 예정! sql 문에 오류가 계속 생겨서 해결하는데 어려웠지만 어쨌든 날짜별로 대화내용을 조회하고 삭제할 수 있는 기능도 추가하는데 성공했다.. sql좀 다시 봐야겠다.. 내일부터는 message기능..! ※pages/aichat.py 전체 코드 # lunar.state.home 모듈에서 필요한 State 및 HomeState를 가져옵니다. import reflex as rx from lunar.state.base import State from lunar.state.home import HomeState # 컴포넌트를 가져옵니다. from ..components import container color = "rgb(107,99,246)" # 탭 버튼을 생성하는 함수 def tab..

전에 했던 aurora 에서 카카오 api 의 kogpt를 사용했더니 답변이 조금 부족해 Chat GPT나 google Bard를 사용하려고 시도했는데 두가지 방법다 오류?가나서 뜻밖의 최신ai버전인 구글 Gemini api를 사용하게 되었다. 답변의 정확성이 조금 올라간것 같은느낌도.. 우선 대화내용을 입력하면 답변이 데이터베이스에 저장되고 데이터베이스에 저장된 대화내역들을 전체 삭제할 수 있다. 내일은 날짜별로 대화내역저장 기능 + 디자인 수정 진행! ※pages/aichat.py 전체코드# lunar.state.home 모듈에서 필요한 State 및 HomeState를 가져옵니다. import reflex as rx from lunar.state.base import State from lunar...
※state/auth.py 전체 코드"""The authentication state.""" import reflex as rx from sqlmodel import select,and_,or_ from .base import State, User import re class AuthState(State): """The authentication state for sign up and login page.""" # 비밀번호 찾기 화면에서 유저가 입력한 아이디를 저장할 변수 user_find_password_id:str # 비밀번호 찾기 화면에서 유저가 입력한 이메일을 저장할 변수 user_find_password_email_address:str # 비밀번호 찾기 화면에서 유저가 입력한 생일을 저장할 변수..

※pages/login.py 전체 코드 """Login page. Uses auth_layout to render UI shared with the sign up page.""" import reflex as rx from lunar.state.auth import AuthState def login(): return rx.container( rx.container(height='150px'), rx.hstack( rx.vstack( rx.hstack( rx.vstack( rx.container(height='20px'), rx.image( src = "/moonico.ico", width="70px", height="70px", ), ), rx.vstack( rx.container(height='8px..

화면 왼쪽에는 실시간 재난 문자 정보를 받아오는 기능, 화면 중앙에는 전세계의 지역명을 검색하면 해당 지역의 현재 날씨 정보를 받아와 아이콘으로 표시하는 기능, 화면 오른쪽에는 각종 기상관련 사이트로 이동할 수 있는 링크를 삽입해두었다. ※pages/weather.py 코드 # lunar.state.home 모듈에서 필요한 State 및 HomeState를 가져옵니다. import reflex as rx from lunar.state.base import State from lunar.state.home import HomeState from PIL import Image # 컴포넌트를 가져옵니다. from ..components import container color = "rgb(107,99,246)..