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

[17팀 정소윤][Chapter 1-1] 프레임워크 없이 SPA 만들기 #9

Closed
wants to merge 44 commits into from

Commits on Sep 22, 2024

  1. feat: templates html 확장자 js로 변경

    - error.html -> Error.js
    - login.html -> Login.js
    - main.html -> Home.js
    - profile.html -> Profile.js
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b509516 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a87400 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2c7e2f View commit details
    Browse the repository at this point in the history
  4. fix: main.js 라우터 로직 수정

    - navigate 파라미터 event 대신 target path로 전달받을 수 있도록 수정
    - a 태그 click event 등록 시 event.preventDefault 호출
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    4756577 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    576194e View commit details
    Browse the repository at this point in the history
  6. feat: main.js protectedRoute 추가

    - '/', '/profile' 접근 시 user 없으면 '/login'으로 이동
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    ac5c0a8 View commit details
    Browse the repository at this point in the history
  7. feat: 로그아웃 기능 추가

    - logout 버튼 a 태그 => button 태그로 수정
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b22171b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0a6d993 View commit details
    Browse the repository at this point in the history
  9. refactor: templates 페이지 파일명 수정

    - 페이지명 + Page.js
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    61ec7a3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2dd5567 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2b17dbd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a5561bf View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    117b9c8 View commit details
    Browse the repository at this point in the history
  14. refactor: main.js 내 신규 생성 모듈 import

    - useNavigate, useAuth, useProfile
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    b54575c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    01fdd6e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e8ef1e5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7eb087f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4debd96 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0c05461 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ca02e35 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    a3cd34e View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ed8e0e4 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    9c7f3b1 View commit details
    Browse the repository at this point in the history
  24. refactor: a tag eventListener addEvent 함수 안으로 위치 이동

    - 기존 render 내부 => 변경 addEvent 내부
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    92570ab View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ac4d7b2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    5f80d2c View commit details
    Browse the repository at this point in the history
  27. refactor: Header, Footer 컴포넌트 구조로 변경

    - 페이지 컴포넌트 렌더링 root -> main 기준으로 수정
    - 페이지별 header/footer 조건부 렌더링
    - 기존 HomePage, ProfilePage 내 Header/Footer 태그 삭제
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    e0622c4 View commit details
    Browse the repository at this point in the history
  28. refactor: a 태그 및 logout 이벤트 등록 통합

    - 중복 제거
    soyoonJ committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    8353655 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    435ba8c View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. refactor: pages render 내부 호출 함수 외부로 호출 위치 변경

    - pages/Login.js, pages/Profile.js
    soyoonJ committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    4f1d4da View commit details
    Browse the repository at this point in the history
  2. fix: '/' 로그인 유무와 상관없이 접근 가능하도록 수정, 네비게이션 분기처리

    - 기존: 로그인 시에만 접근 가능
    - 변경: 비로그인도 '/' 접근 가능. 네비게이션 홈|로그인 보이도록 분기처리 추가
    soyoonJ committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    94b36d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8129a84 View commit details
    Browse the repository at this point in the history
  4. fix: src/pages 컴포넌트명 -Page로 수정

    - 기존 templates 하단 파일명 소문자로 수정
    - 기존 pages 하단 파일명 -Page로 수정
    soyoonJ committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    948cb23 View commit details
    Browse the repository at this point in the history
  5. feature: store 생성

    soyoonJ committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    eb35c60 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    73a00d8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b8fc056 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. fix: store isLoggedIn 상태 추가

    - 헤더 토글 user 기준 -> isLoggedIn 기준
    soyoonJ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    d8d851b View commit details
    Browse the repository at this point in the history
  2. refactor: Header 메뉴 return 구조 수정

    - 기존: 하드코딩
    - 변경: menus로 리스트 생성 후 map으로 관리
    soyoonJ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    bd25dca View commit details
    Browse the repository at this point in the history
  3. feat: login 사용자 이름 입력 및 검증 로직 추가

    - 기존: input required에 의존
    soyoonJ committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    2b835c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    131412f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7ce0458 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a31d266 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    71d396f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7aed1b0 View commit details
    Browse the repository at this point in the history