kmes055 / AutoDrawer

Capstone project in dept. of CS. Application for designers, artists using TextureGAN, DisgoGAN
0 stars 1 forks source link

We need to refactor file structure #54

Closed kmes055 closed 4 years ago

kmes055 commented 4 years ago

Reducers ㄴindex.js ㄴmetadataReducer.js ㄴpatternReducer.js ㄴsketchReducer.js Actions ㄴbaseAction.js // 나중에 분리할 예정이긴 한데, 일단 여기 정리해놨어요 ㄴindex.js ㄴtypes.js Components ㄴsketch, pattern, home 등 App.js 제외한 화면들 들어가면 좋을거같아요


그리고 action, reducer, store 등 객체 작성을 위해 각 component별로 state에 필요한 변수들을 여기 정리해두고 싶습니다 각 component별 이름 / type / 기능을 간단하게 적어주세염 예) Palette oldColor : String. RGB color information Color: Dictionary? HSV color information etc...

hacking-racoon commented 4 years ago

home - sketchSelected patternSelected

Pattern - patternGallery patternPalette

Sketch - sketchGallery sketchTaken

yellow2041 commented 4 years ago

transfer진행 상황을 받아 올 progressStatus 필요

kmes055 commented 4 years ago

+이미 논의된 것들이나 딱봐도 필요한 수준에서 Action들(state 변환하는 함수들) 만들건데, 혹시 '이건 놓치실 것 같아요!' 싶은 함수 있으면 코멘트 달아주세요

yellow2041 commented 4 years ago

FE 필요한 변수 정리

1. home.js

  • selectedSketch(스케치버튼 클릭 후 가져온 사진의 uri)
  • selectedPattern(패턴버튼 클릭 후 가져온 패턴 사진의 uri 또는 RGB 색상 코드)

    2. Sketch.js

  • selectedPicture(선택된 스케치 사진의 uri, 카메라랑 앨범 중 어느것을 선택해도 이 변경되는건 이 변수)

    3. Pattern.js

  • selectedResult(앨범에서 패턴 사진을 고를 시 해당 사진의 uri를 담거나 팔레트에서 받아온 색상 코드를 담음)

    4. Palette.js

  • newColor(사용자가 선택한 새로운 컬러 코드)
  • oldColor(사용자가 이전에 선택했던 컬러 코드)

    5. ProgressBarComponent.android.js

  • prograssStatus(transform 진행 상황에 따라 업데이트 되어 프로그레스 바에 반영 될 진행률)

    6. transpose.js

  • resultPicture(완성된 결과물 사진을 받아올 변수)
  • recommend1(추천 제품 사진 1)
  • recommend2(추천 제품 사진 2)
  • recommend3(추천 제품 사진3)

    추가 구현 사항

  • myHistory.js (사용자가 지금까지 만든 사진들 모아놓는곳) userName(화면에 띄울 사용자 이름), userInfo(사용자 정보)
kmes055 commented 4 years ago

End.