Skip to content

Conversation

ju-kkim
Copy link
Collaborator

@ju-kkim ju-kkim commented Apr 6, 2022

team-17 프론트엔드

안녕하세요. 이든, J입니다.
리뷰 잘 부탁드립니다.

협업과정

  • live share를 이용하여 html, css를 페어로 작성하고 있습니다.
  • 백엔드와 함께 아침 스크럼에서 어제 한 일과 오늘 할일을 얘기하고 저녁 리뷰에서는 진행과정을 공유합니다.
  • 이슈, 프로젝트, 마일스톤을 이용하여 프로젝트 관리를 하고 있습니다.

진행사항

  • 빌드환경 세팅
  • HTML 작성
  • SCSS 작성

고민한 사항

  • webpack dev server를 띄우는 과정에서 Cannot GET /라는 오류가 발생하였습니다. dev server에 대한 설정은 해주었지만 html을 연결하는 과정이 잘못되었다고 생각하였습니다. 그래서 HtmlWebpackPlugin의 template키를 이용하여 적용될 html경로를 설정하여 해결하였습니다.

  • scss color 변수를 지정할 때 $highlight-color$blue-color 중에 어떤 것으로 하는게 좋을지 고민했습니다.
    포인트 color가 변경될 경우를 생각하면 $highlight-color로 하는게 좋을 것 같았지만, 좀 더 명시적으로 color를 알기위해 $blue-color와 같이 네이밍하는 것으로 정했습니다.

  • html, css 먼저 vs 대략적인 레이아웃, 기능 후 css

    1. 미리 하드코딩으로 html, css 작업 후 js 작업 할 때 템플릿 리터럴로 가져가서 컴포넌트화 하기.
    2. 처음부터 html body안에 비워둔 채로 js로 컴포넌트 분리 하여서 작업하고 css하기.

    결론 : 2번은 컴포넌트를 먼저 고민하려는 시도였지만 js에서는 처음부터 템플릿으로 작업하는것이 수월하지 않을 것 같아서 figma를 보며 재사용될 컴포넌트만 미리 파악하며 1번으로 진행하기로 하였습니다.

질문사항

빌드환경을 세팅하면서 dist 폴더구조에 대해 고민이 생겼습니다.
기존 작업 폴더 구조

└── src
    ├── css
    ├── img
    └── js

dist 폴더 구조

└── src
    ├── css
    ├── img
        62c00551442b36ae2930610ce9328ad8.png
    └── js
    f98c080e728aef29e35f.png

이미지가 중복으로 img폴더 내,외부에 생성이 되고있습니다. 그리고 css에서 background url의 경로를 img폴더경로로 하고 싶은데 외부의 png에 접근하는 상황입니다. webpack으로 dist폴더를 만들면서 현재 img폴더의 외부의 png파일이 있는데 이것이 디폴트로 외부에서 생성될 수 밖에 없는지 궁금합니다. 그리고 css 경로 처리를 해당 img폴더의 png파일로 접근하게 할 수 있는지 궁금합니다.
추가로 html 이미지태그에 사용한 이미지는 어떻게 dist에 추가하는지 알아보다가 app.js에서 html파일을 import 시키고 html-loader를 사용하는 방법을 알게됐는데 이 방법으로만 이미지를 가져올수 있는지 궁금합니다.

@ju-kkim ju-kkim requested a review from choisohyun April 6, 2022 08:15
@ju-kkim ju-kkim added the review-FE New feature or request label Apr 6, 2022
@ju-kkim ju-kkim assigned choisohyun and unassigned ju-kkim and choisohyun Apr 6, 2022
Copy link

@choisohyun choisohyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요~ 리뷰어 Hoo라고 합니다.
우선 너무 고생많으셨습니다~!!
웹팩 설정과 scss 작업이 깔끔하게 잘 하신 것 같습니다. 웹팩 설정의 경우에는 지금의 설정을 보일러플레이트로 삼아 앞으로 필요한 설정을 추가해 나가는 것을 추천드립니다.
아래 질문사항에 대해 답변을 드렸는데 부족하거나 이해 안가는 부분이 있으면 답변 달아주시면 확인을 다시 해보도록 하겠습니다.

질문에 답변을 드리자면 dist 폴더구조에 대해서는 크게 신경쓰지 않으셔도 됩니다. 서버 단으로 서빙하기 위한 한 벌의 js, css, imgs로 모아둔 것이기 때문입니다. 일반적으로 dist 디렉토리 자체를 github에 올려두지 않기 때문에 보통은 로컬 테스트 외에는 볼 일이 잘 없습니다. 이미지 링크는 웹팩에서 자동으로 설정해 주기도 하구요.
html 이미지 태그 같은 경우는 copy plugin을 사용해 볼 수 있을 것 같습니다.

---
name: Feature Request
about: Suggest new Feature Request for this project
title: "[FE/BE] {ISSUE_TITLE}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요런 템플릿 활용 좋네요 👍

@@ -0,0 +1,35 @@
node_modules

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

보통은 번들 결과물인 dist 디렉토리도 gitignore로 등록합니다!
gitignore인 이유는 자동배포를 하는 경우에는 npm run build 등의 빌드 명령어를 서버환경에서 해주기 때문에 dist를 올릴 필요가 없어서 입니다.


- scss color 변수를 지정할 때 `$highlight-color`와 `$blue-color` 중에 어떤 것으로 하는게 좋을지 고민하였다.
포인트 color가 변경될 경우를 생각하면 `$highlight-color`로 하는게 좋을 것 같았지만,
좀 더 명시적으로 color를 알기위해 `$blue-color`와 같이 네이밍하는 것으로 정하였다.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scss 변수 지정하는 컨벤션은 찾아보니 color를 우선 $color-blue 같은 형태로 저장해 두고 ui 이름을 따와서 다시 저장해서 사용하는 내용이 많이 있네요!
제가 찾은 자료도 참고용으로 두고 갑니다 :)
https://css-tricks.com/what-do-you-name-color-variables/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// COLOR
$blue-color: #0075de;

// UI config
$hightlight-color: $blue-color;
$button-color: $gray-color

이런식으로 사용하여 어떤 ui항목인지 파악할 수 있고 수정시에도 UI config만 수정하면 되어서 유용한 것이군요.

"dependencies": {
"core-js": "^3.21.1",
"webpack": "^5.71.0",
"webpack-cli": "^4.9.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webpack과 core js도 번들링할 때 사용되는 의존성이어서 devDependencies로 옮겨도 될 것 같습니다~
https://stackoverflow.com/questions/40143357/do-you-put-babel-and-webpack-in-devdependencies-or-dependencies

</header>
<main>
<article class="todo_container">
<section class="todo_column_box">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

의미 있는 마크업으로 해주신 게 좋네요 👍

@@ -0,0 +1,2 @@
import resetCss from '../scss/reset.scss';
import css from '../scss/style.scss';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index.html에도 스타일 링크가 들어있던데 여기도 넣어줘야 번들링이 제대로 되나요??
웹팩에 스타일 관련 로더들이 설정되어 있어서 js에만 넣어줘도 동작할 것 같네요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵! js파일에만 올려도 되네요!! webpack을 처음쓰다보니 어려워요😭

}
}

.column_title_box {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class 만드실 때 BEM 방식을 참고해 보셔도 좋을 것 같습니다!
https://nykim.work/15

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const path = require('path');
module.exports = {
mode: 'development',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재는 개발 중이라 개발 모드만 있어도 괜찮지만,
프로덕션에 나가는 용도일 경우에는 mode: 'production', 으로 주면 웹팩이 인식하여 자동으로 코드에서 공백 문자열등을 제거해 주어서 파일 용량을 줄여 줍니다!
mode 변경후에 빌드해 보시면 index.html이 한줄로 줄어 있을 거에요


- webpack dev server를 띄우는 과정에서 `Cannot GET /`라는 오류가 발생하였다.
dev server에 대한 설정은 해주었지만 html을 연결하는 과정이 잘못되었다고 생각해서
`HtmlWebpackPlugin`의 `template`키를 이용하여 적용될 html경로를 설정하여 해결하였다.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webpack-dev-server에서 indext.html을 자동으로 찾아서 삽입해 주지 않기 때문에 HtmlWebpackPlugin로 index.html을 잡아주는 작업이 필요합니다!

2. 처음부터 html body안에 비워둔 채로 js로 컴포넌트 분리 하여서 작업하고 css하기.

결론 : 2번은 컴포넌트를 먼저 고민하려는 시도였지만 js에서는 처음부터 템플릿으로 작업하는것이 수월하지 않을 것 같아서
figma를 보며 재사용될 컴포넌트만 미리 파악하며 1번으로 진행하기로 하였다.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

바닐라로 작업하게 되면 많이 고민하게 되는 부분 중 하나 같습니다.
저도 공통 먼저 보고 html 작업 먼저 하게 되는 것 같아요~
추후 리액트나 뷰 등의 View 중심의 프레임워크를 하게 되면 이런 고민을 덜 하면서 컴포넌트를 분리할 수 있을 것 같네요 ㅎㅎ

@ju-kkim ju-kkim merged commit 3ee0b33 into codesquad-members-2022:team-17 Apr 7, 2022
Dae-Hwa pushed a commit that referenced this pull request Apr 8, 2022
[BE][#36] Swagger를 이용해 api 문서에 주석 추가
renovatio0424 pushed a commit that referenced this pull request Apr 11, 2022
[Android] Stitch&스타크 - 1주차 금요일 피드백
ku-kim added a commit that referenced this pull request Apr 12, 2022
[BE] API Server - 전체 Todo 조회 요청 기능 구현
kowoohyuk pushed a commit that referenced this pull request Apr 14, 2022
* feat: [#33] Header Template 추가

* feat: [#33] HeaderModel menu 상태 관련 메서드 추가

- menuStatus update 메서드
- menuStatus get 메서드

* feat: [#33] HeaderView render 기능 추가

* feat: [#33] HeaderView 이벤트 등록 메서드 추가

* feat: [#33] HeaderModel, HeaderView 생성하는 class Header 추가

* feat: [#33] menuBtn 클릭핸들러_menuStatus update하기

* feat: [#40] History Template 추가

* feat: [#40] HistoryView render 기능 추가

* feat: [#43] History closeBtn 이벤트 등록

* feat: [#43] History animation 기능 추가

* feat: [#33][#43] menuBtn, closeBtn 클릭핸들러, 히스토리 애니메이션 호출

* feat: [#43] HistoryView 생성하는 class History 추가

* feat: Controller, Header, History 인스턴스 생성

* fix: 기존 body 내부 요소 주석처리

* feat: [#34] alert창 기본 동작 구현

* refactor: utils폴더구조 수정

* fix: 인스턴스생성할 필요 없는 클래스 객체로 수정

- 수정하면서 생기는 render 문제 해결

* refactor: [#34] 템플릿리터럴 코드 분리

* fix: git 충돌 해결

* fix: [#36] 카드 write모드 스타일 수정

* feat: [#35] 컬럼 및 카드 템플릿 추가

* feat: [#36] 카드추가 버튼 클릭 후 카드박스 노출 기능 추가

* feat: [#36] 카드추가 기능

* feat: [#36] 카드추가 취소 기능 추가

* feat: [#39] 드래그앤 드롭 도착 잔상 및 맨끝에 추가 제외한 기본 기능 구현

* chore: 드래그기능과 카드추가기능 이벤트 충돌로 인한 주석

* feat: [#37] 카드수정 기능 추가

- 카드 write 모드 스타일 추가
- 수정기능 구현하면서 생기는 오류들 해결

* chore: 지우지 못한 주석 삭제

* feat: [#38] 카드 삭제 기능 구현

* fix: [#37] cardView의 remove 메서드 사용

* feat: [#38] 카드삭제 버튼 mouseover, mouseout이벤트 추가

Co-authored-by: khj <[email protected]>
Co-authored-by: HongJungKim <[email protected]>
eve712 pushed a commit that referenced this pull request Apr 14, 2022
* 카드 등록 - 새로운 카드 입력창 생성 기능 구현 (#36)

* feature: 등록버튼을 누르면 새로운 카드, 카드 개수 렌더링
등록카드의 등록버튼으로 리스트에 새로운 카드를 추가하고 리스트의 카드 개수를 렌더링한다.

* rename: todolistStore.js->todoListStore.js

* feat: 새로운 카드 데이터 post 요청
등록버튼을 누르면 새로운 카드의 데이터를 post 요청하여 업데이트

* 카드 수정 - 내용 수정 기능 구현 (#37)

* feat: 더블 클릭시 수정카드 전환, 수정버튼 활성화
롱클릭과 더블 클릭을 구분하고 수정카드에 기존과 다른 데이터가 입력되면 수정버튼을 활성화

* feat: 등록카드, 수정카드 데이터 fetch 요청
put 메소드로 변경된 카드 데이터를 서버에 보냄

* refactor: activationStore -> todoListStore
모델의 state를 todoListStore모듈에서 관리함

* 카드 삭제 - X 버튼 마우스 오버 이벤트 & 삭제 알럿창 구현 (#41)

* design: delete alert 창 구현

* feat: task x delete button mouseover 이벤트 구현

* mouseover 시 task item 색 변화
* mouseout 시 원래대로 돌아옴

* feat: task title을 이용하여 task 를 삭제하는 함수 구현

* feat: 삭제 Alert 창 생성 기능 구현

* design: delete-button hover 이벤트 클래스로 분리

* feat: Alert 창 결과에 따른 Task 스타일 변화 기능 구현

* remove: todolistStore.js

* rename: todoListStore.js

* 카드 이동 - 리스트 중간에 카드 추가 기능 구현(1) (#42)

* 카드 등록 - 새로운 카드 입력창 생성 기능 구현(1) (#30)

* [team-19] Todo-list 1주차 #1 코드리뷰 요청 (#32)

* Update issue templates

* docs: Update Readme

Readme 1차 업데이트

* docs: Update Readme

기술 스택 추가

* Design: reset scss 적용

* HTML, CSS 작업 - Header, Sidebar (#11)

* design: header HTML markup
Related to: #8

* design: header css style
Related to: #8

* design: sidebar HTML markup
Related to: #8

* design: sidebar css style
Related to: #8

* 메뉴 - 우측 히든 레이어 생성, 애니메이션 구현 (#12)

* feat: sidebar 메뉴 버튼
사이드바 메뉴 버튼 클릭시 사이드바 숨김,보임 기능 구현
Related to: #10

* design: sidebar 애니메이션
왼쪽방향으로 나타나고 오른쪽 방향으로 숨겨지는 애니메이션 구현
Related to: #10

* 메뉴 - 우측 히든 레이어 생성, 애니메이션 구현 (#13)

* feat: sidebar 메뉴 버튼
사이드바 메뉴 버튼 클릭시 사이드바 숨김,보임 기능 구현
Related to: #10

* design: sidebar 애니메이션
왼쪽방향으로 나타나고 오른쪽 방향으로 숨겨지는 애니메이션 구현
Related to: #10

* feat: action분리
action에 따라 sidebar 리스트의 comment를 다르게 출력함
Related to: #10

* feat: timestamp 기능 구현
현재 시간을 기준으로 투두리스트 작성 및 변경 시간을 보여주는 timestamp 구현
Related to: #10

* feat: 을/를, 으로/로 구분
단어의 마지막 글자 종성에 따라 모음을 다르게 렌더하는 기능 구현
Related to: #10

* HTML, CSS 작업 - Card List (#14)

* design: main column list html markup

Related to : #9

* move: svg file move to public/svg

* 기존 public 에 있던 svg 파일을 svg 폴더 내로 이동
* icon-add.svg 파일 추가

Related to : #9

* Design: font mixin 함수 추가

Related to : #9

* design: column list scss style 작성

Related to: #9

* design: column task list scss style 작성

Related to: #9

* design: task commnet padding 을 margin 으로 변경

Related to: #9

* design: sccs convert to css

Related to: #9

* fix: icon svg 파일 경로 수정

Related to: #9

* chore: 빌드환경구성 (#16)

babel, webpack 적용
Related to: #15

* 메뉴 - 사용자 액션 리스트 구현 (#19)

* feat: sidebar 액션 리스트
히든레이어 영역을 애니메이션 효과와 함께 숨김,보임 기능 구현
Related to: #17

* design: sidebar 액션리스트 애니메이션
Related to: #17

* move: package.json, gitignore

* feat: sidebar 스크롤 기능 구현
액션리스트 기록이 많아지면 스크롤을 이용하여 다음 기록을 확인할 수 있음
Related to: #17

* design: 액션리스트 스크롤 구현
Related to: #17

* feature: json server 생성 및 db.json 추가 (#21)

* json server 설치하고 db.json 에 필요한 데이터들을 추가함
Related to: #18

* HTML, CSS 작업 - Card (#22)

* feat: todo-list 입력창 높이 자동 조절
todo-list를 입력하거나 지울 때 입력창의 높이를 자동으로 조절하는 기능 구현
Related to: #20

* design: column button hover color
칼럼 타이틀의 +,x 버튼을 hover할 때 버튼 색상 변경
Related to: #20

* design: 수정카드 디자인 구현
Related to: #20

* 리팩토링 - 1주차 리뷰 반영  (#24)

* refactor: getFinalConsonant 매직넘버 제거
Related to: #23

* refactor: calcTimeForToday 함수 리팩토링
* 매직 넘버 제거
* DayDifference 식 수정
* 몇 년전 조건 추가
Related to: #23

* refactor: writeTime -> timeStamp
Related to: #23

* refactor: identifyCategory 함수 리팩토링

* 구조 분해 할당 적용

Related to: #23

* refactor: svg 파일 경로 변수로 분리

* svg 파일 경로를 constants의 imagePath에 변수로 생성해서 관리하도록 변경

Related to: #23

* feat: fetchData 함수 구현

Related to: #23

* chore: bundle.js

Related to: #23

* refactor: sidebar model 리팩토링

Related to: #23

* refactor: activationStore import 방식 변경

Related to: #23

Co-authored-by: Hemdi <[email protected]>
Co-authored-by: Hemudi <[email protected]>

* 카드 등록 - 새로운 카드 등록 기능 구현 (#29)

* feat: todolist column과 task를 스크립트로 렌더링
list view와 task view를 클래스로 생성하고 db.json의 todolist를 하나의 배열로 묶음

* feat: column add button
칼럼의 추가버튼으로 등록카드 생성,삭제 기능 구현

* feat: task cancle button
등록카드의 취소버튼을 누르면 등록카드를 삭제하는 기능 구현

* refactor: 메인 렌더링 영역을 list에서 main으로 수정
entry point에서 mainInit의 parent를 list에서 main으로 리팩토링

* refactor: input event를 메인에서 task 모듈로 분리
입력창을 autoResize하는 이벤트를 task 모듈로 분리함

* rename: index.js

* feat: 등록버튼 활성화 기능 구현
등록카드에 내용을 입력하면 등록버튼을 활성화, 입력할 수 있는 최대 글자수는 500자

* refactor: registration activation을 todoListStore에서 관리
activiation관리를 task에서 todoListStore로 변경

Co-authored-by: Hemdi <[email protected]>
Co-authored-by: Hemudi <[email protected]>

* Revert "카드 등록 - 새로운 카드 입력창 생성 기능 구현(1) (#30)" (#31)

This reverts commit 7155f85.

* feat: 칼럼 사이 카드 이동
마우스 포인터를 기준으로 드래그중인 카드 아래 새로운 카드 존재 여부에 따라 해당 카드 앞 또는 가장 아래에 드래그 카드 추가

* rename: deleteMenu.js->alertDelete.js

* feat: 드래그앤 드랍 적용
task 인스턴스에 드래그앤드랍 기능 적용

* refactor: export 방식 변경

Co-authored-by: Hemdi <[email protected]>
Co-authored-by: Hemudi <[email protected]>

* feat: task id 추가 + id를 이용한 삭제 기능 구현 (#44)

* 기존 task title 을 이용해 삭제했던 기능을 id 를 이용해 삭제하는 방식으로 변경

Co-authored-by: Hemdi <[email protected]>
Co-authored-by: Hemudi <[email protected]>
namse pushed a commit that referenced this pull request Apr 15, 2022
* Feat: 카드 등록 #21 (#35)

* Design: 버튼 컴포넌트에서 focus도 hover와 같은 효과 주도록 변경

* Design: todo-item 컴포넌트의 border 기본값을 지정.

border 기본값 : 1px solid transparent

마우스 이벤트에 따라 border가 추가되는 과정에서 레이아웃이 조금 변하는 현상을 없애기 위해 이벤트에 따라 border-color만 바꿔줌

* Refactor: db생성하는 함수 getDb로 분리

* Feat: 카드 삭제 버튼 하이라이트 추가

mouseover시 하이라이트

* Refactor: 카드 등록 로직 개선

* Feat: modal에 target element 설정

modal을 여는 경우 원인이 된 element 설정.

modal을 닫는 경우 element값 null로 초기화

* Chore: 배포용 패키지 및 스크립트 추가 #36 (#37)

* Feat: index.html의 css link를 main.scss의 url로 추가

* Chore: webpack 설정 변경, 패키지 추가

html-webpack-plugin, gh-pages패키지 추가

package.json에 배포용 스크립트 추가

* Fix: TodoColumns, TodoColumn init 메서드 변경 (#38)

* Chore: dependency 이동

* Fix: TodoColumns, TodoColumn init 메서드 변경

forEach -> map으로 변경

* Design: drag and drop 위한 스타일 적용 (#40)
kowoohyuk pushed a commit that referenced this pull request Apr 16, 2022
* feat: [#33] Header Template 추가

* feat: [#33] HeaderModel menu 상태 관련 메서드 추가

- menuStatus update 메서드
- menuStatus get 메서드

* feat: [#33] HeaderView render 기능 추가

* feat: [#33] HeaderView 이벤트 등록 메서드 추가

* feat: [#33] HeaderModel, HeaderView 생성하는 class Header 추가

* feat: [#33] menuBtn 클릭핸들러_menuStatus update하기

* feat: [#40] History Template 추가

* feat: [#40] HistoryView render 기능 추가

* feat: [#43] History closeBtn 이벤트 등록

* feat: [#43] History animation 기능 추가

* feat: [#33][#43] menuBtn, closeBtn 클릭핸들러, 히스토리 애니메이션 호출

* feat: [#43] HistoryView 생성하는 class History 추가

* feat: Controller, Header, History 인스턴스 생성

* fix: 기존 body 내부 요소 주석처리

* feat: [#34] alert창 기본 동작 구현

* refactor: utils폴더구조 수정

* fix: 인스턴스생성할 필요 없는 클래스 객체로 수정

- 수정하면서 생기는 render 문제 해결

* refactor: [#34] 템플릿리터럴 코드 분리

* fix: git 충돌 해결

* fix: [#36] 카드 write모드 스타일 수정

* feat: [#35] 컬럼 및 카드 템플릿 추가

* feat: [#36] 카드추가 버튼 클릭 후 카드박스 노출 기능 추가

* feat: [#36] 카드추가 기능

* feat: [#36] 카드추가 취소 기능 추가

* feat: [#39] 드래그앤 드롭 도착 잔상 및 맨끝에 추가 제외한 기본 기능 구현

* chore: 드래그기능과 카드추가기능 이벤트 충돌로 인한 주석

* feat: [#37] 카드수정 기능 추가

- 카드 write 모드 스타일 추가
- 수정기능 구현하면서 생기는 오류들 해결

* chore: 지우지 못한 주석 삭제

* feat: [#38] 카드 삭제 기능 구현

* fix: [#37] cardView의 remove 메서드 사용

* feat: [#38] 카드삭제 버튼 mouseover, mouseout이벤트 추가

* feat: [#78] 초기 컬럼, 카드 서버요청 및 렌더

* refactor: 컬럼, 카드 id data속성으로 변경

* fix: Header updateStatus 수정 (리뷰 반영)

* fix: column querySelector 수정

* fix: [#78] cardlist 렌더 li.start 추가

* feat: [#74] 카드 추가 요청 구현

* feat: [#74] 카드 삭제 요청 구현

* feat: [#74] 카드 수정 요청 구현

* chore: 불필요한 코드 삭제

* chore: 불필요한 주석 제거

* feat: [#78] 초기 히스토리렌더 기능 추가

* fix: [#78] 히스토리 fetch요청 reqest 함수 import하는 방식으로 변경

* feat: [#78] 히스토리 볼때 시간 업데이트 기능 추가

* fix: [#78] 컬럼 fetch요청 request import하여 사용으로 수정

* chore: [#78] 히스토리 내용 을(를) 수정

* feat: [#86] 카드 추가, 수정, 삭제시 히스토리에 반영

* chore: 주석 삭제

Co-authored-by: khj <[email protected]>
Co-authored-by: HongJungKim <[email protected]>
Dae-Hwa pushed a commit that referenced this pull request Apr 16, 2022
Dae-Hwa pushed a commit that referenced this pull request Apr 16, 2022
Dae-Hwa pushed a commit that referenced this pull request Apr 16, 2022
- boardIdx를 변경하는 update 쿼리 작성
- 중복된 Idx 입력 시 boardIdx를 갱신하는 batchUpdate 쿼리 작성
Dae-Hwa pushed a commit that referenced this pull request Apr 16, 2022
- 1. 카드가 없을 경우 INTERVAL(1000) 으로 저장
- 2. 마지막으로 움직여질 경우, 마지막 카드 값 + 1000 으로 저장
- 3. 이동하고자 하는 boardIdx에 이미 값이 존재할 경우 batchUpdate를 통해 boardIdx를 1000단위로 갱신된다.
- 4. 나머지의 경우, 이후 카드의 boardIdx - 1위치로 이동한다.
Dae-Hwa pushed a commit that referenced this pull request Apr 16, 2022
jinan159 pushed a commit that referenced this pull request Apr 17, 2022
* refactor: 서버 base url 변경

* feat: Activity cell body field 에 중요 키워드 강조

* feat: activityCell에 ~분전 기능 구현

* fix: bodyField에 글자 크기 수정

Co-authored-by: Song TaeHwan <[email protected]>
sally-ksh pushed a commit that referenced this pull request Apr 17, 2022
snowjang24 pushed a commit that referenced this pull request Apr 18, 2022
Card 삭제 기능 구현
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-FE New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants