-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: render events for month view (initial) * refactor: code refactoring(remove duplicate method) * fix: resolve collision events on month view * fix: resolve exceedLeft, exceedRight on month view * feat: apply creation guide for month view * refactor: resolve merged conflicts * fix: resolve grid cell info * feat: cancel creation guide feature * feat: apply creation guide for month view * refactor: refactor code * test: resolve checking types * refactor: apply PR feedbacks * test: resolve tests
- Loading branch information
1 parent
087b9ad
commit 0fcb60a
Showing
50 changed files
with
1,008 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { h, FunctionComponent } from 'preact'; | ||
|
||
import { toPercent } from '@src/util/units'; | ||
import { cls } from '@src/util/cssHelper'; | ||
|
||
interface CreationGuideProps { | ||
left: number; | ||
width: number; | ||
} | ||
|
||
const CreationGuide: FunctionComponent<CreationGuideProps> = (props) => { | ||
const { left, width } = props; | ||
const style = { | ||
left: toPercent(left), | ||
width: toPercent(width), | ||
height: toPercent(100), | ||
}; | ||
|
||
return <div className={cls('guide-creation')} style={style}></div>; | ||
}; | ||
|
||
export default CreationGuide; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.