Skip to content

Commit

Permalink
Merge pull request #48 from TopixIM/shortcut
Browse files Browse the repository at this point in the history
add short cut command+b for adding
  • Loading branch information
NoEgAm authored Oct 19, 2023
2 parents ff41894 + ed9dc72 commit f82489d
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 91 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.3/cr'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
name: 'cr'
version: '0.8.3'
version: '0.8.9'

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

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

Expand Down
66 changes: 59 additions & 7 deletions calcit.cirru

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

17 changes: 12 additions & 5 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
println "\"App started!"
|mount-target $ %{} :CodeEntry (:doc |)
:code $ quote
def mount-target $ .querySelector js/document "\".app"
def mount-target $ js/document.querySelector "\".app"
|on-server-data $ %{} :CodeEntry (:doc |)
:code $ quote
defn on-server-data (data)
Expand Down Expand Up @@ -323,9 +323,9 @@
{} $ :class-name css/row-parted
span
{} $ :class-name css/font-fancy
<> $ .format the-day "\"ddd"
<> $ .!format the-day "\"ddd"
=< 12 nil
<> $ .format the-day "\"MM-DD"
<> $ .!format the-day "\"MM-DD"
=< nil 4
list-> ({})
-> task-list
Expand Down Expand Up @@ -400,7 +400,7 @@
defn on-submit (username password signup?)
fn (e dispatch!)
dispatch! (if signup? :user/sign-up :user/log-in) ([] username password)
.setItem js/localStorage (:storage-key config/site)
js/localStorage.setItem (:storage-key config/site)
format-cirru-edn $ [] username password
:ns $ %{} :CodeEntry (:doc |)
:code $ quote
Expand Down Expand Up @@ -696,12 +696,18 @@
&{} :font-size 14 :color (hsl 200 80 80) :cursor :pointer
fn (e d!)
.show create-plugin d! $ fn (result) (d! :task/create-working result)
comp-global-keydown ({})
fn (e d!)
if
and (:meta? e)
= "\"b" $ :key e
.show create-plugin d! $ fn (result) (d! :task/create-working result)
div
{}
:class-name $ str-spaced css/row-middle css/font-fancy
:style $ {}
:color $ hsl 0 0 60
<> $ .format (dayjs today) "\"ddd"
<> $ .!format (dayjs today) "\"ddd"
=< 8 nil
<> $ str
.!week $ dayjs today
Expand Down Expand Up @@ -867,6 +873,7 @@
feather.core :refer $ comp-i comp-icon
"\"dayjs" :default dayjs
"\"copy-text-to-clipboard" :default copy!
respo.comp.global-keydown :refer $ comp-global-keydown
|app.comp.profile $ %{} :FileEntry
:defs $ {}
|comp-profile $ %{} :CodeEntry (:doc |)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"author": "jiyinyiyong",
"license": "MIT",
"dependencies": {
"@calcit/procs": "^0.8.3",
"@calcit/procs": "^0.8.9",
"dayjs": "^1.11.10",
"nanoid": "^5.0.1"
"nanoid": "^5.0.2"
},
"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.4.9"
"vite": "^4.5.0"
}
}
Loading

0 comments on commit f82489d

Please sign in to comment.