Skip to content

Commit

Permalink
fixed console spams
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Tazman Reinier committed Sep 28, 2024
1 parent 479ee54 commit c12a675
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
## 2.5.0 (9/28/2024)

**Added:**
- Add settings for [remaining days](https://github.com/joshuatazrein/obsidian-time-ruler/issues/112)
- Add settings for [remaining days](https://github.com/joshuatazrein/obsidian-time-ruler/issues/112) in deadlines
- Add support for [ICS Calendar repeats](https://github.com/joshuatazrein/obsidian-time-ruler/issues/50)

**Fixed:**
- Fixed this bug: [Empty/Cleared Interface when time ruler is moved to another window · Issue #102 · joshuatazrein/obsidian-time-ruler · GitHub](https://github.com/joshuatazrein/obsidian-time-ruler/issues/102?notification_referrer_id=NT_kwDOBQ8O87M5ODYzNDc1MzMyOjg0ODcyOTQ3)
- [Done tasks marked by Time Ruler are marked with time · Issue #114 · j-palindrome/obsidian-time-ruler · GitHub](https://github.com/j-palindrome/obsidian-time-ruler/issues/114)
- All-day events overflowing onto the next day's events
- Fixed all-day events overflowing onto the next day's events

## 2.4.0 (6/1/2024)
**Fixed:**
Expand Down
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "time-ruler",
"name": "Time Ruler",
"version": "2.4.0",
"version": "2.5.0",
"minAppVersion": "0.15.0",
"description": "A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).",
"author": "Joshua Tazman Reinier",
Expand Down
1 change: 0 additions & 1 deletion dist/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "time-ruler",
"name": "Time Ruler",
"version": "2.5.0",
"version": "2.5.1",
"minAppVersion": "0.15.0",
"description": "A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).",
"author": "Joshua Tazman Reinier",
Expand Down
3 changes: 0 additions & 3 deletions src/components/Day.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ export default function Day({
})

for (let event of _.filter(state.events, (event) => {
if (event.startISO === '2024-09-28')
console.log(event.startISO, event.endISO)

const shouldInclude = isDateISO(event.startISO)
? event.startISO <= startDate && event.endISO > startDate
: event.startISO < endISO &&
Expand Down
9 changes: 0 additions & 9 deletions src/components/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ export default function Task({
const hasLengthDrag =
task.duration || (task.scheduled && !isDateISO(task.scheduled))

if (task.due) {
console.log(
DateTime.fromISO(startISO as string),
DateTime.fromISO(task.due)
.diff(DateTime.fromISO(startISO as string))
.shiftTo('days').days
)
}

return (
<div
className={`relative rounded-icon py-0.5 transition-colors duration-300 w-full min-h-line`}
Expand Down

0 comments on commit c12a675

Please sign in to comment.