-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6754eae
commit a780706
Showing
6 changed files
with
133 additions
and
331 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,28 @@ | ||
var date = new Date(); | ||
|
||
var isoDate = date.toISOString().split("T")[0]; | ||
|
||
var todo = Item("To do today"); | ||
|
||
if (date.isSaturday()) { | ||
todo.add(Item("Laundry")); | ||
} | ||
|
||
if (date.isMonday() || date.isWednesday() || date.isFriday()) { | ||
todo.add( | ||
Item("Workout", [ | ||
Item("Push-ups"), | ||
Item("Squats"), | ||
Item("Plank"), | ||
]) | ||
); | ||
} | ||
|
||
Item( | ||
isoDate, | ||
date.getDayName(), | ||
[ | ||
Item("Menu"), | ||
todo, | ||
] | ||
); |
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,11 +1,19 @@ | ||
module wf | ||
|
||
go 1.15 | ||
go 1.22.3 | ||
Check failure on line 3 in go.mod GitHub Actions / Build
|
||
|
||
require ( | ||
github.com/dlclark/regexp2 v1.4.0 // indirect | ||
github.com/dop251/goja v0.0.0-20210215114437-465e240c17c9 | ||
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect | ||
github.com/dop251/goja v0.0.0-20240220182346-e401ed450204 | ||
github.com/pkg/errors v0.9.1 | ||
github.com/spf13/cobra v1.1.3 | ||
github.com/urfave/cli/v2 v2.27.2 | ||
) | ||
|
||
require ( | ||
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect | ||
github.com/dlclark/regexp2 v1.11.0 // indirect | ||
github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect | ||
github.com/google/pprof v0.0.0-20240507183855-6f11f98ebb1c // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/xrash/smetrics v0.0.0-20240312152122-5f08fbb34913 // indirect | ||
golang.org/x/text v0.15.0 // indirect | ||
) |
Oops, something went wrong.