Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

calcit.cirru -diff linguist-generated
yarn.lock -diff linguist-generated
4 changes: 3 additions & 1 deletion .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 22
- uses: calcit-lang/setup-calcit@v1.5.1
with:
version: "0.43.0"
version: "0.44.0"
tools: calcit,caps
- name: Install dependencies
run: |
Expand All @@ -35,6 +35,7 @@ jobs:
- name: Build
run: yarn build
- name: Deploy to server
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
id: deploy
uses: Pendect/action-rsyncer@v1.1.0
env:
Expand All @@ -46,4 +47,5 @@ jobs:
src: 'dist/*'
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'
- name: Display status from deploy
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
run: echo "${{ steps.deploy.outputs.status }}"
24 changes: 10 additions & 14 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@
{} $ :background-color |#f0f0f0
list->
{} $ :style $ {} (:width |100%) (:height |100%)
map-indexed notes $ fn (idx raw)
let
note $ decode-map-as raw Note
[] (:id note) (comp-note note)
map-indexed notes $ fn (idx note)
[] (:id note) (comp-note note)
button $ {} (:inner-text "|+ Note") (:style ui/button)
:style $ {} (:position :absolute) (:left 16) (:bottom 16)
:on-click $ fn (e d!)
d! $ schema/Action :add-note 40 $ + 40
* 24 $ count notes
:examples $ []
:schema $ quote $ Fn (List Dynamic) (-> respo.schema/Component)
:schema $ quote $ Fn (List Note) (-> respo.schema/Component)
'comp-note $ %{} 'CodeEntry (:doc |)
:code $ quote $ defcomp comp-note (note)
div
Expand All @@ -58,21 +56,19 @@
'*notes $ %{} 'CodeEntry (:doc |)
:code $ quote $ defref *notes ([])
:examples $ []
:schema $ quote $ Ref (List Dynamic)
:schema $ quote $ Ref (List Note)
'dispatch! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn dispatch! (action)
match action
(:add-note x y)
reset! *notes $ conj @*notes $ {}
:id $ str |note- $ count @*notes
:x x
:y y
:text |
reset! *notes $ conj @*notes $ Note :id
str |note- $ count @*notes
, :x x :y y :text |
(:update-note id text)
reset! *notes $ map-indexed @*notes $ fn (idx raw)
if
= id $ .unwrap-or (get raw :id) |
assoc raw :text text
= id $ :id raw
&struct:assoc raw :text text
, raw
, &unit
:examples $ []
Expand Down Expand Up @@ -108,7 +104,7 @@
:require
respo.core :refer $ render-with!
respo.ffi.browser :refer $ query-selector
app.comp.container :refer $ comp-container
app.comp.container :refer $ comp-container Note
app.schema :as schema
|./calcit.build-errors :default build-errors
'app.schema $ %{} 'FileEntry
Expand Down
6 changes: 3 additions & 3 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{} (:calcit-version |0.43.0)
{} (:calcit-version |0.44.0)
:version |0.0.1
:dependencies $ {} (|Respo/respo.calcit |0.19.10)
|Respo/respo-ui.calcit |0.15.4
:dependencies $ {} (|Respo/respo.calcit |0.19.12)
|Respo/respo-ui.calcit |0.15.6
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"vite": "^7.0.0"
},
"dependencies": {
"@calcit/procs": "0.43.0",
"@calcit/procs": "0.44.0",
"feather-icons": "^4.9.0",
"shortid": "^2.2.14"
},
Expand Down
5 changes: 5 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'vite'

export default defineConfig({
define: { process: 'globalThis.process' },
})
10 changes: 5 additions & 5 deletions yarn.lock

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

Loading