-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent commands with alerts from dying before timer is launched
should address #20
- Loading branch information
1 parent
aa2cd6e
commit c2bebcf
Showing
13 changed files
with
13 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules/* | |
.idea/ | ||
raycast-env.d.ts | ||
assets/TimersNotifHelper.app/ | ||
*.swp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 10, timerName: "10 Minute Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 10, timerName: "10 Minute Timer" }); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 2, timerName: "2 Minute Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 2, timerName: "2 Minute Timer" }); | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
await startTimer({ timeInSeconds: 60 * 30, timerName: "30 Minute Timer" }); | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 45, timerName: "45 Minute Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 45, timerName: "45 Minute Timer" }); | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 5, timerName: "5 Minute Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 5, timerName: "5 Minute Timer" }); | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 60, timerName: "1 Hour Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 60, timerName: "1 Hour Timer" }); | ||
}; |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { closeMainWindow } from "@raycast/api"; | ||
import { checkForOverlyLoudAlert, startTimer } from "./backend/timerBackend"; | ||
|
||
export default async () => { | ||
if (!checkForOverlyLoudAlert()) return; | ||
await closeMainWindow(); | ||
startTimer({ timeInSeconds: 60 * 90, timerName: "90 Minute Timer" }); | ||
await startTimer({ timeInSeconds: 60 * 90, timerName: "90 Minute Timer" }); | ||
}; |
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