Skip to content

Commit d095971

Browse files
committed
prefer enlarge view on redo; tag 0.1.17
1 parent 5233032 commit d095971

File tree

3 files changed

+91
-9
lines changed

3 files changed

+91
-9
lines changed

calcit.cirru

Lines changed: 76 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{} (:package |app)
3-
:configs $ {} (:init-fn |app.server/main!) (:reload-fn |app.server/reload!) (:version |0.1.16)
3+
:configs $ {} (:init-fn |app.server/main!) (:reload-fn |app.server/reload!) (:version |0.1.17)
44
:modules $ [] |lilac/ |recollect/ |memof/ |ws-edn.calcit/ |cumulo-util.calcit/ |cumulo-reel.calcit/ |fuzzy-filter/
55
:entries $ {}
66
:page $ {} (:init-fn |app.client/main!) (:reload-fn |app.client/reload!)
@@ -696,11 +696,14 @@
696696
div
697697
{} $ :class-name css/row-middle
698698
button $ {} (:class-name css/button)
699+
:style $ {}
700+
:background $ hsl 0 0 0 0.1
701+
:color :white
699702
:on-click $ fn (e d!)
700703
d! $ :: :session/enlarge (:pid process)
701704
:inner-text "\"Enlarge"
702-
=< 8 nil
703-
a $ {} (:class-name css/link)
705+
; =< 8 nil
706+
; a $ {} (:class-name css/link)
704707
:on-click $ fn (e d!)
705708
d! :router/change $ {} (:name :process)
706709
:params $ {}
@@ -869,8 +872,11 @@
869872
:class-name css/font-fancy
870873
:style $ merge style/text
871874
{} $ :padding "\"0 8px"
875+
if (:alive? process)
876+
{} (:color :black) (:border-radius "\"4px")
877+
:background-color $ hsl 60 100 60
872878
; =< 16 nil
873-
<> (:command process) style/text
879+
; <> (:command process) style/text
874880
; =< 16 nil
875881
; <> (:cwd process)
876882
merge style/text $ {} (:font-size 12)
@@ -892,7 +898,7 @@
892898
:cwd $ :cwd process
893899
:command $ :command process
894900
:title $ :title process
895-
:jump? true
901+
:enlarge? true
896902
d! :process/remove-dead $ :pid process
897903
=< 8 nil
898904
a $ {} (:class-name css/link) (:inner-text "\"Drop")
@@ -1299,6 +1305,7 @@
12991305
command $ :command op-data
13001306
cwd $ :cwd op-data
13011307
jump? $ :jump? op-data
1308+
enlarge? $ :enlarge? op-data
13021309
proc $ cp/exec command
13031310
js-object $ :cwd cwd
13041311
pid $ .-pid proc
@@ -1311,6 +1318,8 @@
13111318
:: :router/change $ {} (:name :process)
13121319
:params $ {} (:id pid)
13131320
, sid
1321+
if (w-js-log enlarge?)
1322+
dispatch! (:: :session/enlarge pid) sid
13141323
.!on proc "\"exit" $ fn (event _)
13151324
dispatch!
13161325
:: :process/error $ [] pid (str &newline "\"exit " event)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "termina",
3-
"version": "0.1.16",
3+
"version": "0.1.17",
44
"description": "Start process from a Webpage",
55
"bin": {
66
"termina": "./server.mjs"

0 commit comments

Comments
 (0)