Skip to content

Commit

Permalink
upgrade calcit; fix format method
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyinyong committed Nov 29, 2023
1 parent 153ee67 commit 61b2556
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 177 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.13/cr'
name: 'cr'
version: '0.8.9'
version: '0.8.13'

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.13/caps'
name: 'caps'
version: '0.8.9'
version: '0.8.13'

- run: caps --ci && yarn && yarn compile-page && yarn release-page

Expand Down
6 changes: 3 additions & 3 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
div
{} $ :class-name css/row-parted
<>
-> (:time note) dayjs $ .format "\"HH:mm"
-> (:time note) dayjs $ .!format "\"HH:mm"
{} (:font-family ui/font-fancy)
:color $ hsl 0 0 70
:font-size 12
Expand Down Expand Up @@ -614,7 +614,7 @@
.group-by $ fn (pair)
->
:time $ last pair
, dayjs $ .format "\"MM-DD"
, dayjs $ .!format "\"MM-DD"
.to-list
.sort $ fn (x y)
&compare (first y) (first x)
Expand All @@ -627,7 +627,7 @@
div
{} (:class-name css/font-fancy)
:style $ {} (:font-size 14) (:font-weight 500)
<> $ -> (str year "\"-" date) dayjs (.format "\"ddd")
<> $ -> (str year "\"-" date) dayjs (.!format "\"ddd")
=< 12 nil
<> $ str date
list->
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "cumulo-workflow",
"name": "timegrass",
"version": "0.1.0",
"description": "Cumulo Workflow",
"main": "index.js",
Expand All @@ -15,15 +15,15 @@
"author": "jiyinyiyong",
"license": "MIT",
"dependencies": {
"@calcit/procs": "^0.8.9",
"@calcit/procs": "^0.8.13",
"dayjs": "^1.11.10",
"nanoid": "^5.0.2"
"nanoid": "^5.0.3"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"copy-text-to-clipboard": "^3.2.0",
"feather-icons": "^4.29.1",
"url-parse": "^1.5.10",
"vite": "^4.5.0"
"vite": "^5.0.4"
}
}
Loading

0 comments on commit 61b2556

Please sign in to comment.