Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Refactor / Be more maintainable#7

Merged
maxam2017 merged 7 commits into
masterfrom
refactor/more-maintainable
Nov 16, 2019
Merged

Refactor / Be more maintainable#7
maxam2017 merged 7 commits into
masterfrom
refactor/more-maintainable

Conversation

@maxam2017

@maxam2017 maxam2017 commented Nov 16, 2019

Copy link
Copy Markdown
Collaborator

Refactor 起來

1. 放棄 react-jss 採用 styled-component

react-jss 是用 CSSProperties 方式寫的,
寫了一堆都是字串的東西又找不到 syntax-highlight的套件
氣氣氣氣氣

轉移的時候可以用 react-jss 的 compiler 去轉成 css ,再寫回 styled-component
講起來很簡單,但真D累 ![]

2. 移除 react-dropzone

更新到 v1.10.1 有個大 bug,會導致拖進來檔案時 isDragReject 永遠是 false
等不了更新,所以直接用 native 的 drag & drop API 去做 Uploader

反省一下,當初不應該選擇採用套件,而不自己研究 DnD api
其實不必為了省時間,用一個不確定是否能活很久的套件

(未完待續 ... #8)

@maxam2017 maxam2017 merged commit 988eebf into master Nov 16, 2019
@maxam2017 maxam2017 deleted the refactor/more-maintainable branch November 16, 2019 19:41
@hsinju0511

hsinju0511 commented Nov 23, 2019

Copy link
Copy Markdown

鸚鵡好可愛

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants