Kakeruのcode reading
KakeruにPRを出せるようにするために、Kakeruの構造を調べるtakker.icon
odiak/draw
Directory layout
src/
index.tsx
index.html
CanvasManager.ts
components/
UserMenuButton.tsx
NewButton.tsx
NewPicture.tsx
DrawingScreen.tsx
ToolBar.tsx
types/
services/
odiak/draw-serverやlocal storageとのデータのやり取りを行う
AuthService.tsx
PictureService.tsx
ExperimentalSettingsService.ts
MigrationService.ts
SettingsService.ts
utils/
custom hooksやその他便利関数置き場
custom hooksは別directoryに出したほうがいい気がするtakker.icon
Color.ts
Subject.ts
Variable.ts
addEventListener.ts
copyToClipboard.ts
generateId.ts
localStorage.ts
Local Storageがない環境でdummyのlocal storageを提供するmodule
third partyのstorage wrapperを導入して、そっちに任せちゃってもいいかもtakker.icon
依存が増えてしまうのが欠点か。
memo.ts
shallowEqual.ts
tickWithRequestAnimationFrame.ts
useMenu.ts
useSubject.ts
useVariable.ts
odiak/draw-server